import{l,z as B,aA as Y,aB as m,aC as M,i as h,o as x,aD as y,F as z,ae as C,aE as F,aF as G,aG as N,aH as b,a8 as U,aI as $,aJ as q}from"./CiQWViEs.js";let c=!1;function w(e){var a=c;try{return c=!1,[e(),c]}finally{c=a}}function J(e,a,s,n){var E;var D=!0,_=(s&G)!==0,o=(s&F)!==0,d=n,S=!0,P=void 0,I=()=>o&&D?(P??(P=b(n)),l(P)):(S&&(S=!1,d=o?B(n):n),d);let i;if(_){var L=$ in e||q in e;i=((E=Y(e,a))==null?void 0:E.set)??(L&&a in e?r=>e[a]=r:void 0)}var t,A=!1;_?[t,A]=w(()=>e[a]):t=e[a],t===void 0&&n!==void 0&&(t=I(),i&&(m(),i(t)));var f;if(f=()=>{var r=e[a];return r===void 0?I():(S=!0,r)},(s&M)===0)return f;if(i){var R=e.$$legacy;return(function(r,v){return arguments.length>0?((!v||R||A)&&i(v?f():r),r):f()})}var g=!1,u=((s&N)!==0?b:U)(()=>(g=!1,f()));_&&l(u);var T=z;return(function(r,v){if(arguments.length>0){const O=v?l(u):_?h(r):r;return x(u,O),g=!0,d!==void 0&&(d=O),r}return y&&g||(T.f&C)!==0?u.v:l(u)})}export{J as p};
