import{Q as N,D as O,R as Y,S as x,T as M,U,V as j,W as I,E as C,H as F,i as G,X as K,K as T,Y as y,Z,_ as P,a0 as S,a1 as $,a2 as q,h as g,b as z,g as H,a3 as Q,a4 as V,a5 as W,a6 as X,a7 as m,a8 as J,O as k,a9 as rr,aa as er,ab as A,ac as v}from"./tjbnEgXP.js";import{B as ar,c as nr}from"./K_aHH2KN.js";function fr(r,e,n=!1){var a;O&&(a=C,Y());var t=new ar(r),u=n?x:0;function l(i,s){if(O){var d=M(a);if(i!==parseInt(d.substring(1))){var o=U();j(o),t.anchor=o,I(!1),t.ensure(i,s),I(!0);return}}t.ensure(i,s)}N(()=>{var i=!1;e((s,d=0)=>{i=!0,l(d,s)}),i||l(-1,null)},u)}function R(r,e){return r===e||r?.[P]===e}function ur(r={},e,n,a){var t=F.r,u=y;return G(()=>{var l,i;return K(()=>{l=i,i=[],T(()=>{r!==n(...i)&&(e(r,...i),l&&R(n(...l),r)&&e(null,...l))})}),()=>{let s=u;for(;s!==t&&s.parent!==null&&s.parent.f&Z;)s=s.parent;const d=()=>{i&&R(n(...i),r)&&e(null,...i)},o=s.teardown;s.teardown=()=>{d(),o?.()}}}),r}const tr={get(r,e){let n=r.props.length;for(;n--;){let a=r.props[n];if(v(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(r,e,n){let a=r.props.length;for(;a--;){let t=r.props[a];v(t)&&(t=t());const u=S(t,e);if(u&&u.set)return u.set(n),!0}return!1},getOwnPropertyDescriptor(r,e){let n=r.props.length;for(;n--;){let a=r.props[n];if(v(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const t=S(a,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(r,e){if(e===P||e===A)return!1;for(let n of r.props)if(v(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(r){const e=[];for(let n of r.props)if(v(n)&&(n=n()),!!n){for(const a in n)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(n))e.includes(a)||e.push(a)}return e}};function or(...r){return new Proxy({props:r},tr)}function lr(r,e,n,a){var t=!X||(n&m)!==0,u=(n&W)!==0,l=(n&er)!==0,i=a,s=!0,d=()=>(s&&(s=!1,i=l?T(a):a),i);let o;if(u){var D=P in r||A in r;o=S(r,e)?.set??(D&&e in r?f=>r[e]=f:void 0)}var _,w=!1;u?[_,w]=nr(()=>r[e]):_=r[e],_===void 0&&a!==void 0&&(_=d(),o&&(t&&$(),o(_)));var c;if(t?c=()=>{var f=r[e];return f===void 0?d():(s=!0,f)}:c=()=>{var f=r[e];return f!==void 0&&(i=void 0),f===void 0?i:f},t&&(n&q)===0)return c;if(o){var B=r.$$legacy;return(function(f,h){return arguments.length>0?((!t||!h||B||w)&&o(h?c():f),f):c()})}var b=!1,p=((n&J)!==0?k:rr)(()=>(b=!1,c()));u&&g(p);var L=y;return(function(f,h){if(arguments.length>0){const E=h?g(p):t&&u?z(f):f;return H(p,E),b=!0,i!==void 0&&(i=E),f}return Q&&b||(L.f&V)!==0?p.v:g(p)})}export{ur as b,fr as i,lr as p,or as s};
