var r="https://",l="dev.dndbeyond.com",n=`${r}${l}`,i=e=>e==="production"?"":"-stg",c=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,s=c?JSON.parse(globalThis.self?.name||"{}"):{},o=new URLSearchParams(globalThis.location?.search),D=!!(o.get("isDebug")==="true"||s.isDebug),R=!!(o.get("isPhysicsDebug")==="true"||s.isPhysicsDebug),u=!!(o.get("isMobileApp")==="true"||s.isMobileApp),v=!!(o.get("isAnimationsDisabled")==="true"||s.isAnimationsDisabled),x=o.get("view")==="vtt",E=e=>e==="production",T=(e,t)=>e==="development"?`${n}:2023`:`https://dice-service${i(t)}.dndbeyond.com`,A=(e,t)=>e==="development"?`${n}:2030`:`https://media${i(t)}.dndbeyond.com`,b=(e,t)=>e==="development"?`${n}:2024/v1/cobalt-token`:`https://auth-service${i(t)}.dndbeyond.com/v1/cobalt-token`,M=.85,_=.25,y={ComponentMounted:"componentMounted",CustomUrlMap:"customUrlMap",CustomSetOverrideId:"customSetOverrideId",DiceSets:"diceSets",Manifests:"manifests",PlaySound:"playSound",UserSettings:"userSettings",ToastMessage:"toastMessage",ResetStore:"resetStore",RemoveEventListener:"removeEventListener",WorkerStats:"workerStats",Scales:"scales",RenderDice:"renderDice",RemoveRoll:"removeRoll",PreRoll:"preRoll",StartRoll:"startRoll"},h={SetUpdate:"dice/set/update"},O={Pending:"dice/roll/pending",Rejected:"dice/roll/rejected",Fulfilled:"dice/roll/fulfilled",Deferred:"dice/roll/deferred"},d=50,p=900,g=.7,f=e=>{let t=Math.min(e/p,1),a=Math.max(t,g);return d*a},S=2e3,m=-2,L={near:.1,far:S+Math.abs(m)+1},I={Self:"Self",Everyone:"Everyone"},P="animationTargetId",N={d20:0,d12:0,d100:0,d10:0,d8:0,d6:0,d4:0},C={ROLL_BEGIN:"rollBegin",COLLISION:"collision",ROLL_COMPLETE:"rollComplete",MIN_ROLL:"minRoll",MAX_ROLL:"maxRoll",DIE_REMOVED:"dieRemoved"},B={entities:{},ids:[]},U={adv:"Advantage",flat:"Flat (One Die)",disadv:"Disadvantage"},k={Roll:"roll",ToHit:"to hit",Damage:"damage",Heal:"heal",Spell:"spell",Save:"save",Check:"check"},H={Advantage:"advantage",Disadvantage:"disadvantage",CriticalHit:"critical hit"},G={d4:"d4",d6:"d6",d8:"d8",d10:"d10",d12:"d12",d20:"d20",d100:"d100"},$={Shared:"shared",Self:"self",Disabled:"disabled"},V=3,W=7.5;export{D as a,R as b,u as c,v as d,x as e,E as f,T as g,A as h,b as i,M as j,_ as k,y as l,h as m,O as n,d as o,f as p,S as q,m as r,L as s,I as t,P as u,N as v,C as w,B as x,U as y,k as z,H as A,G as B,$ as C,V as D,W as E};
//# sourceMappingURL=chunk-IRFDE6LX.js.map
