import{a as t,g as a}from"./chunk-WGB426CL.js";a();a();function i(){let e=performance.now();return{end:t(()=>performance.now()-e,"end")}}t(i,"startTimer");function m(e){let o=i();return e(),o.end()}t(m,"time");async function d(e){let o=i();return await e(),o.end()}t(d,"timeAsync");var x={startTimer:i,time:m,timeAsync:d};function l(){let e={};function o(n){let s=i();return{end:t(()=>{let r=s.end();return e[n]=r,r},"end")}}return t(o,"startReportingTimer"),{startTimer:o,time:t((n,s)=>{let r=o(n),c=s();return r.end(),c},"time"),timeAsync:t(async(n,s)=>{let r=o(n),c=await s();return r.end(),c},"timeAsync"),report:t((n,s)=>{e[n]=s},"report"),measures:e}}t(l,"createPerfReporter");a();var u=class{static{t(this,"DuplicateTracker")}#t=new Map;track(o,n){let s=this.#t.get(o);s===void 0?this.#t.set(o,[n]):s.push(n)}*entries(){for(let[o,n]of this.#t.entries())n.length>1&&(yield[o,n])}};a();function g(e){return[t((r,c)=>r.stateMap(e).get(c),"getter"),t((r,c,f)=>r.stateMap(e).set(c,f),"setter"),t(r=>r.stateMap(e),"mapGetter")]}t(g,"useStateMap");function M(e){return[t((s,r)=>s.stateSet(e).has(r),"getter"),t((s,r)=>s.stateSet(e).add(r),"setter")]}t(M,"useStateSet");export{g as a,M as b,u as c,x as d,l as e};
