import{aC as T,aD as N,aE as I,Z as K,i as E,g as v,aF as P,aG as M,aH as U,K as B,L as Y,ay as j,aI as $,ae as C,aJ as G,aK as Z,x as q,al as z,aL as F,aM as H,aN as J,S as x,aO as D,aP as d}from"./DOPisAOl.js";import{s as Q,g as V}from"./yjlNamjV.js";let _=!1,S=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:K(void 0),unsubscribe:I});if(n.store!==e&&!(S in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var t=!0;n.unsubscribe=Q(e,s=>{t?n.source.v=s:E(n.source,s)}),t=!1}return e&&S in i?V(e):v(n.source)}function ie(){const e={};function r(){T(()=>{for(var i in e)e[i].unsubscribe();N(e,S,{enumerable:!1,value:!0})})}return[e,r]}function W(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const X={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function te(e,r,i){return new Proxy({props:e,exclude:r},X)}const k={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let t=e.props[n];d(t)&&(t=t());const s=P(t,r);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const t=P(n,r);return t&&!t.configurable&&(t.configurable=!0),t}}},has(e,r){if(r===x||r===D)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ue(...e){return new Proxy({props:e},k)}function se(e,r,i,n){var w;var t=!z||(i&F)!==0,s=(i&Z)!==0,R=(i&J)!==0,a=n,b=!0,O=()=>(b&&(b=!1,a=R?q(n):n),a),l;if(s){var m=x in e||D in e;l=((w=P(e,r))==null?void 0:w.set)??(m&&r in e?u=>e[r]=u:void 0)}var o,h=!1;s?[o,h]=W(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=O(),l&&(t&&M(),l(o)));var f;if(t?f=()=>{var u=e[r];return u===void 0?O():(b=!0,u)}:f=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},t&&!(i&U))return f;if(l){var L=e.$$legacy;return function(u,p){return arguments.length>0?((!t||!p||L||h)&&l(p?f():u),u):f()}}var g=!1,c=(i&H?B:Y)(()=>(g=!1,f()));s&&v(c);var A=C;return function(u,p){if(arguments.length>0){const y=p?v(c):t&&s?j(u):u;return E(c,y),g=!0,a!==void 0&&(a=y),u}return $&&g||A.f&G?c.v:v(c)}}export{ne as a,ue as b,se as p,te as r,ie as s};
