import{A as l,C as c,B as i}from"./index-iQt3bUih.js";const p=60;function A(s){return l(s.x)?c(s.x,s.y):i(s.x,s.y)}function b(s,o,e=p){const n=[];for(const t of o){const r=A(t);for(const u of s){const f=Math.hypot(r.x-u.x,r.y-u.y);f<=e&&n.push({boss:u,entry:t,d:f})}}n.sort((t,r)=>t.d-r.d);const a=new Map,d=new Set;for(const t of n)a.has(t.boss)||d.has(t.entry)||(a.set(t.boss,t.entry),d.add(t.entry));return a}const w=2700;function M(s,o){const e={status:"unknown",diedAt:null,respawnAt:null,secondsLeft:null,measured:!1};if(!s)return e;if(s.alive===!0)return{...e,status:"alive"};const n=s.diedAt>0?s.diedAt:null,a=s.respawnedAt>0?s.respawnedAt:-1;return n!==null&&n>a?o-n>w?e:{status:"dead",diedAt:n,respawnAt:null,secondsLeft:null,measured:!1}:e}function _(s,o){return s.bossState===1&&s.respawnAt>0?{status:"dead",respawnAt:s.respawnAt,secondsLeft:s.respawnAt-o}:{status:"alive",respawnAt:null,secondsLeft:null}}export{b as a,M as b,A as c,_ as d};
