import{a0 as h,a1 as L,a2 as I,g as v,a3 as D,a4 as T,d as B,e as j,a5 as y,a6 as K,l as M,a7 as N,a8 as U,a9 as Y,aa as O,ab as p,S as g,ac as R,ad as $}from"./CwuLZfOX.js";let _=!1;function q(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const z={get(e,r){if(!e.exclude.includes(r))return v(e.version),r in e.special?e.special[r]():e.props[r]},set(e,r,i){return r in e.special||(e.special[r]=Z({get[r](){return e.props[r]}},r,I)),e.special[r](i),O(e.version),!0},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},deleteProperty(e,r){return e.exclude.includes(r)||(e.exclude.push(r),O(e.version)),!0},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 H(e,r){return new Proxy({props:e,exclude:r,special:{},version:y(0)},z)}const C={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(p(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 s=e.props[n];p(s)&&(s=s());const t=h(s,r);if(t&&t.set)return t.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(p(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const s=h(n,r);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,r){if(r===g||r===R)return!1;for(let i of e.props)if(p(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(p(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 J(...e){return new Proxy({props:e},C)}function G(e){var r;return((r=e.ctx)==null?void 0:r.d)??!1}function Z(e,r,i,n){var w;var s=!N||(i&U)!==0,t=(i&K)!==0,m=(i&$)!==0,a=n,P=!0,S=()=>(P&&(P=!1,a=m?M(n):n),a),o;if(t){var A=g in e||R in e;o=((w=h(e,r))==null?void 0:w.set)??(A&&r in e?u=>e[r]=u:void 0)}var c,b=!1;t?[c,b]=q(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=S(),o&&(s&&L(),o(c)));var l;if(s?l=()=>{var u=e[r];return u===void 0?S():(P=!0,u)}:l=()=>{var u=e[r];return u!==void 0&&(a=void 0),u===void 0?a:u},s&&(i&I)===0)return l;if(o){var E=e.$$legacy;return function(u,d){return arguments.length>0?((!s||!d||E||b)&&o(d?l():u),u):l()}}var f=((i&Y)!==0?D:T)(l);return t&&v(f),function(u,d){if(arguments.length>0){const x=d?v(f):s&&t?B(u):u;return j(f,x),a!==void 0&&(a=x),u}return G(f)?f.v:v(f)}}export{H as l,Z as p,J as s};
