import{U as L,V as U,W as I,X as N,i as E,h as v,Y as S,Z as Y,_ as B,G as M,a0 as j,g as K,a1 as $,a2 as q,a3 as G,a4 as Z,q as z,a5 as C,a6 as V,a7 as W,a8 as X,S as R,a9 as m,aa as d}from"./CVHvdSBf.js";import{b as F,g as H}from"./DujX6kBV.js";let _=!1,P=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:N(void 0),unsubscribe:I});if(n.store!==e&&!(P 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=F(e,s=>{t?n.source.v=s:E(n.source,s)}),t=!1}return e&&P in i?H(e):v(n.source)}function ie(){const e={};function r(){L(()=>{for(var i in e)e[i].unsubscribe();U(e,P,{enumerable:!1,value:!0})})}return[e,r]}function J(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const Q={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},Q)}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=S(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=S(n,r);return t&&!t.configurable&&(t.configurable=!0),t}}},has(e,r){if(r===R||r===m)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 O;var t=!C||(i&V)!==0,s=(i&Z)!==0,x=(i&X)!==0,f=n,b=!0,h=()=>(b&&(b=!1,f=x?z(n):n),f),l;if(s){var D=R in e||m in e;l=((O=S(e,r))==null?void 0:O.set)??(D&&r in e?u=>e[r]=u:void 0)}var o,w=!1;s?[o,w]=J(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=h(),l&&(t&&Y(),l(o)));var a;if(t?a=()=>{var u=e[r];return u===void 0?h():(b=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},t&&!(i&B))return a;if(l){var A=e.$$legacy;return function(u,p){return arguments.length>0?((!t||!p||A||w)&&l(p?a():u),u):a()}}var g=!1,c=(i&W?M:j)(()=>(g=!1,a()));s&&v(c);var T=q;return function(u,p){if(arguments.length>0){const y=p?v(c):t&&s?K(u):u;return E(c,y),g=!0,f!==void 0&&(f=y),u}return $&&g||T.f&G?c.v:v(c)}}export{ne as a,ue as b,se as p,te as r,ie as s};
