import{$n as e,Et as t,Gn as n,Hn as r,J as i,Jn as a,Ln as o,Pn as s,Xn as c,Yn as l,bn as u,bt as d,ht as f,ir as p,nr as m,or as h,rr as g}from"./dist-CoD0k1Bd.js";function _(e){return o()?(n(e),!0):!1}var v=new WeakMap,y=(...e)=>{let n=e[0],r=f()?.proxy;if(r==null&&!d())throw Error(`injectLocal must be called in setup`);return r&&v.has(r)&&n in v.get(r)?v.get(r)[n]:t(...e)};function b(e){if(!r(e))return a(e);let t=new Proxy({},{get(t,n,r){return h(Reflect.get(e.value,n,r))},set(t,n,i){return r(e.value[n])&&!r(i)?e.value[n].value=i:e.value[n]=i,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return a(t)}function x(e){return b(i(e))}function S(e,...t){let n=t.flat(),r=n[0];return x(()=>Object.fromEntries(typeof r==`function`?Object.entries(g(e)).filter(([e,t])=>!r(p(t),e)):Object.entries(g(e)).filter(e=>!n.includes(e[0]))))}var C=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var w=e=>e!==void 0,T=Object.prototype.toString,E=e=>T.call(e)===`[object Object]`,D=()=>{};function O(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function k(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function A(e){return Array.isArray(e)?e:[e]}function j(...e){if(e.length!==1)return m(...e);let t=e[0];return typeof t==`function`?l(s(()=>({get:t,set:D}))):c(t)}function M(t,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=e(!1),s=null;function c(){s&&=(clearTimeout(s),null)}function u(){o.value=!1,c()}function d(...e){a&&t(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,t(...e)},p(n))}return i&&(o.value=!0,C&&d()),_(u),{isPending:l(o),start:d,stop:u}}function N(e,t,n){return u(e,t,{...n,immediate:!0})}export{E as a,A as c,M as d,N as f,w as i,j as l,y as n,k as o,C as r,S as s,O as t,_ as u};