@pandacss/language-server 0.0.0-dev-20230905224446 → 0.0.0-dev-20230906232302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -30725,7 +30725,7 @@ ${Mt}`}cn.exports={isPragma:Ft,hasPragma:T,insertPragma:y}}}),_v=Oo({"src/langua
30725
30725
  `+Rn.replace(/^Error(:[^\n]*)?\n/,""))});return as.prototype=Object.create($n.prototype),as.prototype.constructor=as,as.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},as}var ds=void 0;function wl(Fi){throw new ds(Fi)}var Bl=Fi=>(Fi||wl("Cannot use deleted val. handle = "+Fi),Xr[Fi].value),Wc=Fi=>{switch(Fi){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var $n=qs.length?qs.pop():Xr.length;return Xr[$n]={fa:1,value:Fi},$n}},Dt=void 0,Qu=void 0;function Po(Fi){for(var $n="";en[Fi];)$n+=Qu[en[Fi++]];return $n}var kp=[];function Wf(){for(;kp.length;){var Fi=kp.pop();Fi.L.Z=!1,Fi.delete()}}var pg=void 0,xh={};function i_(Fi,$n){for($n===void 0&&wl("ptr should not be undefined");Fi.P;)$n=Fi.aa($n),Fi=Fi.P;return $n}var Eh={};function kg(Fi){var $n=Po(Fi=bu(Fi));return Wd(Fi),$n}function c_(Fi,$n){var as=Eh[Fi];return as===void 0&&wl($n+" has unknown type "+kg(Fi)),as}function KB(){}var FC=!1;function rC(Fi){--Fi.count.value,Fi.count.value===0&&(Fi.S?Fi.T.V(Fi.S):Fi.O.M.V(Fi.N))}var A_={},Sv=void 0;function Pb(Fi){throw new Sv(Fi)}function Vr(Fi,$n){return $n.O&&$n.N||Pb("makeClassHandle requires ptr and ptrType"),!!$n.T!=!!$n.S&&Pb("Both smartPtrType and smartPtr must be specified"),$n.count={value:1},Bs(Object.create(Fi,{L:{value:$n}}))}function Bs(Fi){return typeof FinalizationRegistry>"u"?(Bs=$n=>$n,Fi):(FC=new FinalizationRegistry($n=>{rC($n.L)}),Bs=$n=>{var as=$n.L;return as.S&&FC.register($n,{L:as},$n),$n},KB=$n=>{FC.unregister($n)},Bs(Fi))}var kc={};function to(Fi){for(;Fi.length;){var $n=Fi.pop();Fi.pop()($n)}}function ku(Fi){return this.fromWireType(on[Fi>>2])}var Od={},Du={};function js(Fi,$n,as){function Rn(ho){(ho=as(ho)).length!==Fi.length&&Pb("Mismatched type converter count");for(var Gc=0;Gc<Fi.length;++Gc)Ws(Fi[Gc],ho[Gc])}Fi.forEach(function(ho){Du[ho]=$n});var aa=Array($n.length),Mr=[],_s=0;$n.forEach((ho,Gc)=>{Eh.hasOwnProperty(ho)?aa[Gc]=Eh[ho]:(Mr.push(ho),Od.hasOwnProperty(ho)||(Od[ho]=[]),Od[ho].push(()=>{aa[Gc]=Eh[ho],++_s===Mr.length&&Rn(aa)}))}),Mr.length===0&&Rn(aa)}function la(Fi){switch(Fi){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+Fi)}}function Ws(Fi,$n,as={}){if(!("argPackAdvance"in $n))throw TypeError("registerType registeredInstance requires argPackAdvance");var Rn=$n.name;if(Fi||wl('type "'+Rn+'" must have a positive integer typeid pointer'),Eh.hasOwnProperty(Fi)){if(as.ta)return;wl("Cannot register type '"+Rn+"' twice")}Eh[Fi]=$n,delete Du[Fi],Od.hasOwnProperty(Fi)&&($n=Od[Fi],delete Od[Fi],$n.forEach(aa=>aa()))}function Fa(Fi){wl(Fi.L.O.M.name+" instance already deleted")}function ks(){}function ac(Fi,$n,as){if(Fi[$n].R===void 0){var Rn=Fi[$n];Fi[$n]=function(){return Fi[$n].R.hasOwnProperty(arguments.length)||wl("Function '"+as+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+Fi[$n].R+")!"),Fi[$n].R[arguments.length].apply(this,arguments)},Fi[$n].R=[],Fi[$n].R[Rn.Y]=Rn}}function Hi(Fi,$n,as,Rn,aa,Mr,_s,ho){this.name=Fi,this.constructor=$n,this.W=as,this.V=Rn,this.P=aa,this.oa=Mr,this.aa=_s,this.ma=ho,this.ia=[]}function $u(Fi,$n,as){for(;$n!==as;)$n.aa||wl("Expected null or instance of "+as.name+", got an instance of "+$n.name),Fi=$n.aa(Fi),$n=$n.P;return Fi}function sl(Fi,$n){return $n===null?(this.da&&wl("null is not a valid "+this.name),0):($n.L||wl('Cannot pass "'+JB($n)+'" as a '+this.name),$n.L.N||wl("Cannot pass deleted object as a pointer of type "+this.name),$u($n.L.N,$n.L.O.M,this.M))}function Ra(Fi,$n){if($n===null){if(this.da&&wl("null is not a valid "+this.name),this.ca){var as=this.ea();return Fi!==null&&Fi.push(this.V,as),as}return 0}if($n.L||wl('Cannot pass "'+JB($n)+'" as a '+this.name),$n.L.N||wl("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&$n.L.O.ba&&wl("Cannot convert argument of type "+($n.L.T?$n.L.T.name:$n.L.O.name)+" to parameter type "+this.name),as=$u($n.L.N,$n.L.O.M,this.M),this.ca)switch($n.L.S===void 0&&wl("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:$n.L.T===this?as=$n.L.S:wl("Cannot convert argument of type "+($n.L.T?$n.L.T.name:$n.L.O.name)+" to parameter type "+this.name);break;case 1:as=$n.L.S;break;case 2:if($n.L.T===this)as=$n.L.S;else{var Rn=$n.clone();as=this.wa(as,Wc(function(){Rn.delete()})),Fi!==null&&Fi.push(this.V,as)}break;default:wl("Unsupporting sharing policy")}return as}function Hs(Fi,$n){return $n===null?(this.da&&wl("null is not a valid "+this.name),0):($n.L||wl('Cannot pass "'+JB($n)+'" as a '+this.name),$n.L.N||wl("Cannot pass deleted object as a pointer of type "+this.name),$n.L.O.ba&&wl("Cannot convert argument of type "+$n.L.O.name+" to parameter type "+this.name),$u($n.L.N,$n.L.O.M,this.M))}function Df(Fi,$n,as,Rn){this.name=Fi,this.M=$n,this.da=as,this.ba=Rn,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,$n.P!==void 0?this.toWireType=Ra:(this.toWireType=Rn?sl:Hs,this.U=null)}function wp(Fi,$n){var as,Rn,aa=(Fi=Po(Fi)).includes("j")?(as=Fi,Rn=[],function(){if(Rn.length=0,Object.assign(Rn,arguments),as.includes("j")){var Mr=V["dynCall_"+as];Mr=Rn&&Rn.length?Mr.apply(null,[$n].concat(Rn)):Mr.call(null,$n)}else Mr=Gs.get($n).apply(null,Rn);return Mr}):Gs.get($n);return typeof aa!="function"&&wl("unknown function pointer with signature "+Fi+": "+$n),aa}var kh=void 0;function qd(Fi,$n){var as=[],Rn={};throw $n.forEach(function aa(Mr){Rn[Mr]||Eh[Mr]||(Du[Mr]?Du[Mr].forEach(aa):(as.push(Mr),Rn[Mr]=!0))}),new kh(Fi+": "+as.map(kg).join([", "]))}function q_(Fi,$n,as,Rn,aa){var Mr=$n.length;2>Mr&&wl("argTypes array size mismatch! Must at least get return value and 'this' types!");var _s=$n[1]!==null&&as!==null,ho=!1;for(as=1;as<$n.length;++as)if($n[as]!==null&&$n[as].U===void 0){ho=!0;break}var Gc=$n[0].name!=="void",ic=Mr-2,wc=Array(ic),mc=[],lp=[];return function(){if(arguments.length!==ic&&wl("function "+Fi+" called with "+arguments.length+" arguments, expected "+ic+" args!"),lp.length=0,mc.length=_s?2:1,mc[0]=aa,_s){var Gf=$n[1].toWireType(lp,this);mc[1]=Gf}for(var Da=0;Da<ic;++Da)wc[Da]=$n[Da+2].toWireType(lp,arguments[Da]),mc.push(wc[Da]);if(Da=Rn.apply(null,mc),ho)to(lp);else for(var ou=_s?1:2;ou<$n.length;ou++){var wm=ou===1?Gf:wc[ou-2];$n[ou].U!==null&&$n[ou].U(wm)}return Gc?$n[0].fromWireType(Da):void 0}}function sp(Fi,$n){for(var as=[],Rn=0;Rn<Fi;Rn++)as.push(Pn[$n+4*Rn>>2]);return as}function cc(Fi){4<Fi&&--Xr[Fi].fa==0&&(Xr[Fi]=void 0,qs.push(Fi))}function JB(Fi){if(Fi===null)return"null";var $n=typeof Fi;return $n==="object"||$n==="array"||$n==="function"?Fi.toString():""+Fi}function Dm(Fi,$n){for(var as="",Rn=0;!(Rn>=$n/2);++Rn){var aa=Tn[Fi+2*Rn>>1];if(aa==0)break;as+=String.fromCharCode(aa)}return as}function xv(Fi,$n,as){if(as===void 0&&(as=2147483647),2>as)return 0;as-=2;var Rn=$n;as=as<2*Fi.length?as/2:Fi.length;for(var aa=0;aa<as;++aa)Tn[$n>>1]=Fi.charCodeAt(aa),$n+=2;return Tn[$n>>1]=0,$n-Rn}function Cy(Fi){return 2*Fi.length}function cu(Fi,$n){for(var as=0,Rn="";!(as>=$n/4);){var aa=on[Fi+4*as>>2];if(aa==0)break;++as,65536<=aa?(aa-=65536,Rn+=String.fromCharCode(55296|aa>>10,56320|1023&aa)):Rn+=String.fromCharCode(aa)}return Rn}function Ui(Fi,$n,as){if(as===void 0&&(as=2147483647),4>as)return 0;var Rn=$n;as=Rn+as-4;for(var aa=0;aa<Fi.length;++aa){var Mr=Fi.charCodeAt(aa);if(55296<=Mr&&57343>=Mr&&(Mr=65536+((1023&Mr)<<10)|1023&Fi.charCodeAt(++aa)),on[$n>>2]=Mr,($n+=4)+4>as)break}return on[$n>>2]=0,$n-Rn}function ta(Fi){for(var $n=0,as=0;as<Fi.length;++as){var Rn=Fi.charCodeAt(as);55296<=Rn&&57343>=Rn&&++as,$n+=4}return $n}var Ha={};function ra(Fi){var $n=Ha[Fi];return $n===void 0?Po(Fi):$n}var Al=[],Bc=[],uu=[null,[],[]];ds=V.BindingError=Wo("BindingError"),V.count_emval_handles=function(){for(var Fi=0,$n=5;$n<Xr.length;++$n)Xr[$n]!==void 0&&++Fi;return Fi},V.get_first_emval=function(){for(var Fi=5;Fi<Xr.length;++Fi)if(Xr[Fi]!==void 0)return Xr[Fi];return null},Dt=V.PureVirtualError=Wo("PureVirtualError");for(var pu=Array(256),vu=0;256>vu;++vu)pu[vu]=String.fromCharCode(vu);Qu=pu,V.getInheritedInstanceCount=function(){return Object.keys(xh).length},V.getLiveInheritedInstances=function(){var Fi,$n=[];for(Fi in xh)xh.hasOwnProperty(Fi)&&$n.push(xh[Fi]);return $n},V.flushPendingDeletes=Wf,V.setDelayFunction=function(Fi){pg=Fi,kp.length&&pg&&pg(Wf)},Sv=V.InternalError=Wo("InternalError"),ks.prototype.isAliasOf=function(Fi){if(!(this instanceof ks&&Fi instanceof ks))return!1;var $n=this.L.O.M,as=this.L.N,Rn=Fi.L.O.M;for(Fi=Fi.L.N;$n.P;)as=$n.aa(as),$n=$n.P;for(;Rn.P;)Fi=Rn.aa(Fi),Rn=Rn.P;return $n===Rn&&as===Fi},ks.prototype.clone=function(){if(this.L.N||Fa(this),this.L.$)return this.L.count.value+=1,this;var Fi=Bs,$n=Object,as=$n.create,Rn=Object.getPrototypeOf(this),aa=this.L;return Fi=Fi(as.call($n,Rn,{L:{value:{count:aa.count,Z:aa.Z,$:aa.$,N:aa.N,O:aa.O,S:aa.S,T:aa.T}}})),Fi.L.count.value+=1,Fi.L.Z=!1,Fi},ks.prototype.delete=function(){this.L.N||Fa(this),this.L.Z&&!this.L.$&&wl("Object already scheduled for deletion"),KB(this),rC(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},ks.prototype.isDeleted=function(){return!this.L.N},ks.prototype.deleteLater=function(){return this.L.N||Fa(this),this.L.Z&&!this.L.$&&wl("Object already scheduled for deletion"),kp.push(this),kp.length===1&&pg&&pg(Wf),this.L.Z=!0,this},Df.prototype.pa=function(Fi){return this.ja&&(Fi=this.ja(Fi)),Fi},Df.prototype.ga=function(Fi){this.V&&this.V(Fi)},Df.prototype.argPackAdvance=8,Df.prototype.readValueFromPointer=ku,Df.prototype.deleteObject=function(Fi){Fi!==null&&Fi.delete()},Df.prototype.fromWireType=function(Fi){function $n(){return this.ca?Vr(this.M.W,{O:this.va,N:Rn,T:this,S:Fi}):Vr(this.M.W,{O:this,N:Fi})}var as,Rn=this.pa(Fi);if(!Rn)return this.ga(Fi),null;var aa=xh[i_(this.M,Rn)];if(aa!==void 0)return aa.L.count.value===0?(aa.L.N=Rn,aa.L.S=Fi,aa.clone()):(aa=aa.clone(),this.ga(Fi),aa);if(!(aa=A_[aa=this.M.oa(Rn)]))return $n.call(this);aa=this.ba?aa.ka:aa.pointerType;var Mr=function _s(ho,Gc,ic){return Gc===ic?ho:ic.P===void 0||(ho=_s(ho,Gc,ic.P))===null?null:ic.ma(ho)}(Rn,this.M,aa.M);return Mr===null?$n.call(this):this.ca?Vr(aa.M.W,{O:aa,N:Mr,T:this,S:Fi}):Vr(aa.M.W,{O:aa,N:Mr})},kh=V.UnboundTypeError=Wo("UnboundTypeError");var mf=typeof atob=="function"?atob:function(Fi){var $n="",as=0;Fi=Fi.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Fi.charAt(as++)),aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Fi.charAt(as++)),Mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Fi.charAt(as++)),_s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Fi.charAt(as++));Rn=Rn<<2|aa>>4,aa=(15&aa)<<4|Mr>>2;var ho=(3&Mr)<<6|_s;$n+=String.fromCharCode(Rn),Mr!==64&&($n+=String.fromCharCode(aa)),_s!==64&&($n+=String.fromCharCode(ho))}while(as<Fi.length);return $n},Qf={q:function(Fi,$n,as){Fi=Po(Fi),$n=c_($n,"wrapper"),as=Bl(as);var Rn=[].slice,aa=$n.M,Mr=aa.W,_s=aa.P.W,ho=aa.P.constructor;for(var Gc in Fi=Ar(Fi,function(){aa.P.ia.forEach(function(ic){if(this[ic]===_s[ic])throw new Dt("Pure virtual function "+ic+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:Mr}),this.__construct.apply(this,Rn.call(arguments))}),Mr.__construct=function(){this===Mr&&wl("Pass correct 'this' to __construct");var ic=ho.implement.apply(void 0,[this].concat(Rn.call(arguments)));KB(ic);var wc=ic.L;ic.notifyOnDestruction(),wc.$=!0,Object.defineProperties(this,{L:{value:wc}}),Bs(this),ic=i_(aa,ic=wc.N),xh.hasOwnProperty(ic)?wl("Tried to register registered instance: "+ic):xh[ic]=this},Mr.__destruct=function(){this===Mr&&wl("Pass correct 'this' to __destruct"),KB(this);var ic=this.L.N;ic=i_(aa,ic),xh.hasOwnProperty(ic)?delete xh[ic]:wl("Tried to unregister unregistered instance: "+ic)},Fi.prototype=Object.create(Mr),as)Fi.prototype[Gc]=as[Gc];return Wc(Fi)},k:function(Fi){var $n=kc[Fi];delete kc[Fi];var as=$n.ea,Rn=$n.V,aa=$n.ha;js([Fi],aa.map(Mr=>Mr.sa).concat(aa.map(Mr=>Mr.ya)),Mr=>{var _s={};return aa.forEach((ho,Gc)=>{var ic=Mr[Gc],wc=ho.qa,mc=ho.ra,lp=Mr[Gc+aa.length],Gf=ho.xa,Da=ho.za;_s[ho.na]={read:ou=>ic.fromWireType(wc(mc,ou)),write:(ou,wm)=>{var b0=[];Gf(Da,ou,lp.toWireType(b0,wm)),to(b0)}}}),[{name:$n.name,fromWireType:function(ho){var Gc,ic={};for(Gc in _s)ic[Gc]=_s[Gc].read(ho);return Rn(ho),ic},toWireType:function(ho,Gc){for(var ic in _s)if(!(ic in Gc))throw TypeError('Missing field: "'+ic+'"');var wc=as();for(ic in _s)_s[ic].write(wc,Gc[ic]);return ho!==null&&ho.push(Rn,wc),wc},argPackAdvance:8,readValueFromPointer:ku,U:Rn}]})},w:function(){},C:function(Fi,$n,as,Rn,aa){var Mr=la(as);Ws(Fi,{name:$n=Po($n),fromWireType:function(_s){return!!_s},toWireType:function(_s,ho){return ho?Rn:aa},argPackAdvance:8,readValueFromPointer:function(_s){if(as===1)var ho=Rt;else if(as===2)ho=Tn;else if(as===4)ho=on;else throw TypeError("Unknown boolean type size: "+$n);return this.fromWireType(ho[_s>>Mr])},U:null})},f:function(Fi,$n,as,Rn,aa,Mr,_s,ho,Gc,ic,wc,mc,lp){wc=Po(wc),Mr=wp(aa,Mr),ho&&(ho=wp(_s,ho)),ic&&(ic=wp(Gc,ic)),lp=wp(mc,lp);var Gf,Da=us(wc);Gf=function(){qd("Cannot construct "+wc+" due to unbound types",[Rn])},V.hasOwnProperty(Da)?(wl("Cannot register public name '"+Da+"' twice"),ac(V,Da,Da),V.hasOwnProperty(void 0)&&wl("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),V[Da].R[void 0]=Gf):V[Da]=Gf,js([Fi,$n,as],Rn?[Rn]:[],function(ou){if(ou=ou[0],Rn)var wm,b0=ou.M,oc=b0.W;else oc=ks.prototype;ou=Ar(Da,function(){if(Object.getPrototypeOf(this)!==OC)throw new ds("Use 'new' to construct "+wc);if(ae.X===void 0)throw new ds(wc+" has no accessible constructor");var S0=ae.X[arguments.length];if(S0===void 0)throw new ds("Tried to invoke ctor of "+wc+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(ae.X).toString()+") parameters instead!");return S0.apply(this,arguments)});var OC=Object.create(oc,{constructor:{value:ou}});ou.prototype=OC;var ae=new Hi(wc,ou,OC,lp,b0,Mr,ho,ic);b0=new Df(wc,ae,!0,!1),oc=new Df(wc+"*",ae,!1,!1);var Sc=new Df(wc+" const*",ae,!1,!0);return A_[Fi]={pointerType:oc,ka:Sc},wm=ou,V.hasOwnProperty(Da)||Pb("Replacing nonexistant public symbol"),V[Da]=wm,V[Da].Y=void 0,[b0,oc,Sc]})},d:function(Fi,$n,as,Rn,aa,Mr,_s){var ho=sp(as,Rn);$n=Po($n),Mr=wp(aa,Mr),js([],[Fi],function(Gc){function ic(){qd("Cannot call "+wc+" due to unbound types",ho)}var wc=(Gc=Gc[0]).name+"."+$n;$n.startsWith("@@")&&($n=Symbol[$n.substring(2)]);var mc=Gc.M.constructor;return mc[$n]===void 0?(ic.Y=as-1,mc[$n]=ic):(ac(mc,$n,wc),mc[$n].R[as-1]=ic),js([],ho,function(lp){return lp=q_(wc,[lp[0],null].concat(lp.slice(1)),null,Mr,_s),mc[$n].R===void 0?(lp.Y=as-1,mc[$n]=lp):mc[$n].R[as-1]=lp,[]}),[]})},p:function(Fi,$n,as,Rn,aa,Mr){0<$n||ai();var _s=sp($n,as);aa=wp(Rn,aa),js([],[Fi],function(ho){var Gc="constructor "+(ho=ho[0]).name;if(ho.M.X===void 0&&(ho.M.X=[]),ho.M.X[$n-1]!==void 0)throw new ds("Cannot register multiple constructors with identical number of parameters ("+($n-1)+") for class '"+ho.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return ho.M.X[$n-1]=()=>{qd("Cannot construct "+ho.name+" due to unbound types",_s)},js([],_s,function(ic){return ic.splice(1,0,null),ho.M.X[$n-1]=q_(Gc,ic,null,aa,Mr),[]}),[]})},b:function(Fi,$n,as,Rn,aa,Mr,_s,ho){var Gc=sp(as,Rn);$n=Po($n),Mr=wp(aa,Mr),js([],[Fi],function(ic){function wc(){qd("Cannot call "+mc+" due to unbound types",Gc)}var mc=(ic=ic[0]).name+"."+$n;$n.startsWith("@@")&&($n=Symbol[$n.substring(2)]),ho&&ic.M.ia.push($n);var lp=ic.M.W,Gf=lp[$n];return Gf===void 0||Gf.R===void 0&&Gf.className!==ic.name&&Gf.Y===as-2?(wc.Y=as-2,wc.className=ic.name,lp[$n]=wc):(ac(lp,$n,mc),lp[$n].R[as-2]=wc),js([],Gc,function(Da){return Da=q_(mc,Da,ic,Mr,_s),lp[$n].R===void 0?(Da.Y=as-2,lp[$n]=Da):lp[$n].R[as-2]=Da,[]}),[]})},B:function(Fi,$n){Ws(Fi,{name:$n=Po($n),fromWireType:function(as){var Rn=Bl(as);return cc(as),Rn},toWireType:function(as,Rn){return Wc(Rn)},argPackAdvance:8,readValueFromPointer:ku,U:null})},n:function(Fi,$n,as){as=la(as),Ws(Fi,{name:$n=Po($n),fromWireType:function(Rn){return Rn},toWireType:function(Rn,aa){return aa},argPackAdvance:8,readValueFromPointer:function(Rn,aa){switch(aa){case 2:return function(Mr){return this.fromWireType(Xn[Mr>>2])};case 3:return function(Mr){return this.fromWireType(Jt[Mr>>3])};default:throw TypeError("Unknown float type: "+Rn)}}($n,as),U:null})},e:function(Fi,$n,as,Rn,aa){$n=Po($n),aa===-1&&(aa=4294967295),aa=la(as);var Mr=ho=>ho;if(Rn===0){var _s=32-8*as;Mr=ho=>ho<<_s>>>_s}as=$n.includes("unsigned")?function(ho,Gc){return Gc>>>0}:function(ho,Gc){return Gc},Ws(Fi,{name:$n,fromWireType:Mr,toWireType:as,argPackAdvance:8,readValueFromPointer:function(ho,Gc,ic){switch(Gc){case 0:return ic?function(wc){return Rt[wc]}:function(wc){return en[wc]};case 1:return ic?function(wc){return Tn[wc>>1]}:function(wc){return hn[wc>>1]};case 2:return ic?function(wc){return on[wc>>2]}:function(wc){return Pn[wc>>2]};default:throw TypeError("Unknown integer type: "+ho)}}($n,aa,Rn!==0),U:null})},c:function(Fi,$n,as){function Rn(Mr){Mr>>=2;var _s=Pn;return new aa(_s.buffer,_s[Mr+1],_s[Mr])}var aa=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][$n];Ws(Fi,{name:as=Po(as),fromWireType:Rn,argPackAdvance:8,readValueFromPointer:Rn},{ta:!0})},o:function(Fi,$n){var as=($n=Po($n))==="std::string";Ws(Fi,{name:$n,fromWireType:function(Rn){var aa=Pn[Rn>>2],Mr=Rn+4;if(as)for(var _s=Mr,ho=0;ho<=aa;++ho){var Gc=Mr+ho;if(ho==aa||en[Gc]==0){if(_s=_s?Ne(en,_s,Gc-_s):"",ic===void 0)var ic=_s;else ic+="\0"+_s;_s=Gc+1}}else{for(ho=0,ic=Array(aa);ho<aa;++ho)ic[ho]=String.fromCharCode(en[Mr+ho]);ic=ic.join("")}return Wd(Rn),ic},toWireType:function(Rn,aa){aa instanceof ArrayBuffer&&(aa=new Uint8Array(aa));var Mr,_s=typeof aa=="string";if(_s||aa instanceof Uint8Array||aa instanceof Uint8ClampedArray||aa instanceof Int8Array||wl("Cannot pass non-string to std::string"),as&&_s){var ho=0;for(Mr=0;Mr<aa.length;++Mr){var Gc=aa.charCodeAt(Mr);127>=Gc?ho++:2047>=Gc?ho+=2:55296<=Gc&&57343>=Gc?(ho+=4,++Mr):ho+=3}Mr=ho}else Mr=aa.length;if(Gc=(ho=Oo(4+Mr+1))+4,Pn[ho>>2]=Mr,as&&_s){if(_s=Gc,Gc=Mr+1,Mr=en,0<Gc){Gc=_s+Gc-1;for(var ic=0;ic<aa.length;++ic){var wc=aa.charCodeAt(ic);if(55296<=wc&&57343>=wc&&(wc=65536+((1023&wc)<<10)|1023&aa.charCodeAt(++ic)),127>=wc){if(_s>=Gc)break;Mr[_s++]=wc}else{if(2047>=wc){if(_s+1>=Gc)break;Mr[_s++]=192|wc>>6}else{if(65535>=wc){if(_s+2>=Gc)break;Mr[_s++]=224|wc>>12}else{if(_s+3>=Gc)break;Mr[_s++]=240|wc>>18,Mr[_s++]=128|wc>>12&63}Mr[_s++]=128|wc>>6&63}Mr[_s++]=128|63&wc}}Mr[_s]=0}}else if(_s)for(_s=0;_s<Mr;++_s)255<(ic=aa.charCodeAt(_s))&&(Wd(Gc),wl("String has UTF-16 code units that do not fit in 8 bits")),en[Gc+_s]=ic;else for(_s=0;_s<Mr;++_s)en[Gc+_s]=aa[_s];return Rn!==null&&Rn.push(Wd,ho),ho},argPackAdvance:8,readValueFromPointer:ku,U:function(Rn){Wd(Rn)}})},j:function(Fi,$n,as){if(as=Po(as),$n===2)var Rn=Dm,aa=xv,Mr=Cy,_s=()=>hn,ho=1;else $n===4&&(Rn=cu,aa=Ui,Mr=ta,_s=()=>Pn,ho=2);Ws(Fi,{name:as,fromWireType:function(Gc){for(var ic,wc=Pn[Gc>>2],mc=_s(),lp=Gc+4,Gf=0;Gf<=wc;++Gf){var Da=Gc+4+Gf*$n;(Gf==wc||mc[Da>>ho]==0)&&(lp=Rn(lp,Da-lp),ic===void 0?ic=lp:ic+="\0"+lp,lp=Da+$n)}return Wd(Gc),ic},toWireType:function(Gc,ic){typeof ic!="string"&&wl("Cannot pass non-string to C++ string type "+as);var wc=Mr(ic),mc=Oo(4+wc+$n);return Pn[mc>>2]=wc>>ho,aa(ic,mc+4,wc+$n),Gc!==null&&Gc.push(Wd,mc),mc},argPackAdvance:8,readValueFromPointer:ku,U:function(Gc){Wd(Gc)}})},l:function(Fi,$n,as,Rn,aa,Mr){kc[Fi]={name:Po($n),ea:wp(as,Rn),V:wp(aa,Mr),ha:[]}},i:function(Fi,$n,as,Rn,aa,Mr,_s,ho,Gc,ic){kc[Fi].ha.push({na:Po($n),sa:as,qa:wp(Rn,aa),ra:Mr,ya:_s,xa:wp(ho,Gc),za:ic})},D:function(Fi,$n){Ws(Fi,{ua:!0,name:$n=Po($n),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(Fi,$n,as,Rn,aa){Fi=Al[Fi],$n=Bl($n),as=ra(as);var Mr=[];return Pn[Rn>>2]=Wc(Mr),Fi($n,as,Mr,aa)},u:function(Fi,$n,as,Rn){Fi=Al[Fi],Fi($n=Bl($n),as=ra(as),null,Rn)},h:cc,m:function(Fi,$n){var as,Rn,aa=function(Gc,ic){for(var wc=Array(Gc),mc=0;mc<Gc;++mc)wc[mc]=c_(Pn[ic+4*mc>>2],"parameter "+mc);return wc}(Fi,$n),Mr=aa[0],_s=Bc[$n=Mr.name+"_$"+aa.slice(1).map(function(Gc){return Gc.name}).join("_")+"$"];if(_s!==void 0)return _s;var ho=Array(Fi-1);return as=(Gc,ic,wc,mc)=>{for(var lp=0,Gf=0;Gf<Fi-1;++Gf)ho[Gf]=aa[Gf+1].readValueFromPointer(mc+lp),lp+=aa[Gf+1].argPackAdvance;for(Gf=0,Gc=Gc[ic].apply(Gc,ho);Gf<Fi-1;++Gf)aa[Gf+1].la&&aa[Gf+1].la(ho[Gf]);if(!Mr.ua)return Mr.toWireType(wc,Gc)},Rn=Al.length,Al.push(as),_s=Rn,Bc[$n]=_s},r:function(Fi){4<Fi&&(Xr[Fi].fa+=1)},s:function(Fi){to(Bl(Fi)),cc(Fi)},g:function(){ai("")},y:function(Fi,$n,as){en.copyWithin(Fi,$n,$n+as)},x:function(Fi){var $n=en.length;if(2147483648<(Fi>>>=0))return!1;for(var as=1;4>=as;as*=2){var Rn=$n*(1+.2/as);Rn=Math.min(Rn,Fi+100663296);var aa=Math,Mr=aa.min;Rn=Math.max(Fi,Rn),Rn+=(65536-Rn%65536)%65536;e:{var _s=we.buffer;try{we.grow(Mr.call(aa,2147483648,Rn)-_s.byteLength+65535>>>16),Me();var ho=1;break e}catch{}ho=void 0}if(ho)return!0}return!1},A:function(){return 52},v:function(){return 70},z:function(Fi,$n,as,Rn){for(var aa=0,Mr=0;Mr<as;Mr++){var _s=Pn[$n>>2],ho=Pn[$n+4>>2];$n+=8;for(var Gc=0;Gc<ho;Gc++){var ic=en[_s+Gc],wc=uu[Fi];ic===0||ic===10?((Fi===1?g:b)(Ne(wc,0)),wc.length=0):wc.push(ic)}aa+=ho}return Pn[Rn>>2]=aa,0},a:we},Ea=function(){function Fi(as){V.asm=as.exports,Gs=V.asm.I,Zt.unshift(V.asm.E),Gn--,V.monitorRunDependencies&&V.monitorRunDependencies(Gn),Gn==0&&Ti&&(as=Ti,Ti=null,as())}var $n={a:Qf};if(Gn++,V.monitorRunDependencies&&V.monitorRunDependencies(Gn),V.instantiateWasm)try{return V.instantiateWasm($n,Fi)}catch(as){b("Module.instantiateWasm callback failed with error: "+as),ue(as)}return $n=function(as){var Rn=i;try{try{if(Rn==i&&De)new Uint8Array(De);else{if(_a(Rn)){try{var aa=mf(Rn.slice(37)),Mr=new Uint8Array(aa.length);for(Rn=0;Rn<aa.length;++Rn)Mr[Rn]=aa.charCodeAt(Rn);var _s=Mr}catch{throw Error("Converting base64 string to bytes failed.")}var ho=_s}else ho=void 0;if(!ho)throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)"}}catch(wc){ai(wc)}var Gc=new E,ic=new I(as)}catch(wc){throw b("failed to compile wasm module: "+(as=wc.toString())),(as.includes("imported Memory")||as.includes("memory import"))&&b("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time)."),wc}return[ic,Gc]}($n),Fi($n[0]),V.asm}(),bu=V.___getTypeName=Ea.F;V.__embind_initialize_bindings=Ea.G;var Oo=Ea.H,Wd=Ea.J;function u_(){function Fi(){if(!l&&(l=!0,V.calledRun=!0,!We)){if(Lo(Zt),X(V),V.onRuntimeInitialized&&V.onRuntimeInitialized(),V.postRun)for(typeof V.postRun=="function"&&(V.postRun=[V.postRun]);V.postRun.length;){var $n=V.postRun.shift();hi.unshift($n)}Lo(hi)}}if(!(0<Gn)){if(V.preRun)for(typeof V.preRun=="function"&&(V.preRun=[V.preRun]);V.preRun.length;)(function(){var $n=V.preRun.shift();Qs.unshift($n)})();Lo(Qs),0<Gn||(V.setStatus?(V.setStatus("Running..."),setTimeout(function(){setTimeout(function(){V.setStatus("")},1),Fi()},1)):Fi())}}if(V.dynCall_jiji=Ea.K,Ti=function Fi(){l||u_(),l||(Ti=Fi)},V.preInit)for(typeof V.preInit=="function"&&(V.preInit=[V.preInit]);0<V.preInit.length;)V.preInit.pop()();return u_(),n}})()});var Fzr={};module.exports=fze(Fzr);re();var P2e=_d($Xt());re();var _Jn=function(r,n,i){if(i||arguments.length===2)for(var l=0,p=n.length,m;l<p;l++)(m||!(l in n))&&(m||(m=Array.prototype.slice.call(n,0,l)),m[l]=n[l]);return r.concat(m||Array.prototype.slice.call(n))},ZXt=function(){function r(n,i,l,p){this._uri=n,this._languageId=i,this._version=l,this._content=p,this._lineOffsets=void 0}return Object.defineProperty(r.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),r.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),l=this.offsetAt(n.end);return this._content.substring(i,l)}return this._content},r.prototype.update=function(n,i){for(var l=0,p=n;l<p.length;l++){var m=p[l];if(r.isIncremental(m)){var g=tYt(m.range),b=this.offsetAt(g.start),E=this.offsetAt(g.end);this._content=this._content.substring(0,b)+m.text+this._content.substring(E,this._content.length);var I=Math.max(g.start.line,0),R=Math.max(g.end.line,0),V=this._lineOffsets,X=eYt(m.text,!1,b);if(R-I===X.length)for(var ue=0,De=X.length;ue<De;ue++)V[ue+I+1]=X[ue];else X.length<1e4?V.splice.apply(V,_Jn([I+1,R-I],X,!1)):this._lineOffsets=V=V.slice(0,I+1).concat(X,V.slice(R+1));var we=m.text.length-(E-b);if(we!==0)for(var ue=I+1+X.length,De=V.length;ue<De;ue++)V[ue]=V[ue]+we}else if(r.isFull(m))this._content=m.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},r.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=eYt(this._content,!0)),this._lineOffsets},r.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),l=0,p=i.length;if(p===0)return{line:0,character:n};for(;l<p;){var m=Math.floor((l+p)/2);i[m]>n?p=m:l=m+1}var g=l-1;return{line:g,character:n-i[g]}},r.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var l=i[n.line],p=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(l+n.character,p),l)},Object.defineProperty(r.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),r.isIncremental=function(n){var i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},r.isFull=function(n){var i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},r}(),L$e;(function(r){function n(p,m,g,b){return new ZXt(p,m,g,b)}r.create=n;function i(p,m,g){if(p instanceof ZXt)return p.update(m,g),p;throw new Error("TextDocument.update: document must be created by TextDocument.create")}r.update=i;function l(p,m){for(var g=p.getText(),b=k4t(m.map(hJn),function(De,we){var We=De.range.start.line-we.range.start.line;return We===0?De.range.start.character-we.range.start.character:We}),E=0,I=[],R=0,V=b;R<V.length;R++){var X=V[R],ue=p.offsetAt(X.range.start);if(ue<E)throw new Error("Overlapping edit");ue>E&&I.push(g.substring(E,ue)),X.newText.length&&I.push(X.newText),E=p.offsetAt(X.range.end)}return I.push(g.substr(E)),I.join("")}r.applyEdits=l})(L$e||(L$e={}));function k4t(r,n){if(r.length<=1)return r;var i=r.length/2|0,l=r.slice(0,i),p=r.slice(i);k4t(l,n),k4t(p,n);for(var m=0,g=0,b=0;m<l.length&&g<p.length;){var E=n(l[m],p[g]);E<=0?r[b++]=l[m++]:r[b++]=p[g++]}for(;m<l.length;)r[b++]=l[m++];for(;g<p.length;)r[b++]=p[g++];return r}function eYt(r,n,i){i===void 0&&(i=0);for(var l=n?[i]:[],p=0;p<r.length;p++){var m=r.charCodeAt(p);(m===13||m===10)&&(m===13&&p+1<r.length&&r.charCodeAt(p+1)===10&&p++,l.push(i+p+1))}return l}function tYt(r){var n=r.start,i=r.end;return n.line>i.line||n.line===i.line&&n.character>i.character?{start:i,end:n}:r}function hJn(r){var n=tYt(r.range);return n!==r.range?{newText:r.newText,range:n}:r}re();re();re();h1();re();var rx=_d(SFt(),1),hB=rx.default,nJr=rx.default.stringify,rJr=rx.default.fromJSON,iJr=rx.default.plugin,oJr=rx.default.parse,sJr=rx.default.list,aJr=rx.default.document,lJr=rx.default.comment,cJr=rx.default.atRule,uJr=rx.default.rule,pJr=rx.default.decl,fJr=rx.default.root,o$t=rx.default.CssSyntaxError,dJr=rx.default.Declaration,mJr=rx.default.Container,_Jr=rx.default.Processor,hJr=rx.default.Document,gJr=rx.default.Comment,BJr=rx.default.Warning,yJr=rx.default.AtRule,CJr=rx.default.Result,vJr=rx.default.Input,bJr=rx.default.Rule,SJr=rx.default.Root,xJr=rx.default.Node;var Wbn=_d(bOt(),1);h1();h1();h1();h1();h1();h1();var Y8t=_d(NOt(),1);re();re();var ROt,qZt,KZt,XZt,YZt=!0;typeof process<"u"&&({FORCE_COLOR:ROt,NODE_DISABLE_COLORS:qZt,NO_COLOR:KZt,TERM:XZt}=process.env||{},YZt=process.stdout&&process.stdout.isTTY);var Db={enabled:!qZt&&KZt==null&&XZt!=="dumb"&&(ROt!=null&&ROt!=="0"||YZt),reset:sx(0,0),bold:sx(1,22),dim:sx(2,22),italic:sx(3,23),underline:sx(4,24),inverse:sx(7,27),hidden:sx(8,28),strikethrough:sx(9,29),black:sx(30,39),red:sx(31,39),green:sx(32,39),yellow:sx(33,39),blue:sx(34,39),magenta:sx(35,39),cyan:sx(36,39),white:sx(37,39),gray:sx(90,39),grey:sx(90,39),bgBlack:sx(40,49),bgRed:sx(41,49),bgGreen:sx(42,49),bgYellow:sx(43,49),bgBlue:sx(44,49),bgMagenta:sx(45,49),bgCyan:sx(46,49),bgWhite:sx(47,49)};function JZt(r,n){let i=0,l,p="",m="";for(;i<r.length;i++)l=r[i],p+=l.open,m+=l.close,~n.indexOf(l.close)&&(n=n.replace(l.rgx,l.close+l.open));return p+n+m}function Jer(r,n){let i={has:r,keys:n};return i.reset=Db.reset.bind(i),i.bold=Db.bold.bind(i),i.dim=Db.dim.bind(i),i.italic=Db.italic.bind(i),i.underline=Db.underline.bind(i),i.inverse=Db.inverse.bind(i),i.hidden=Db.hidden.bind(i),i.strikethrough=Db.strikethrough.bind(i),i.black=Db.black.bind(i),i.red=Db.red.bind(i),i.green=Db.green.bind(i),i.yellow=Db.yellow.bind(i),i.blue=Db.blue.bind(i),i.magenta=Db.magenta.bind(i),i.cyan=Db.cyan.bind(i),i.white=Db.white.bind(i),i.gray=Db.gray.bind(i),i.grey=Db.grey.bind(i),i.bgBlack=Db.bgBlack.bind(i),i.bgRed=Db.bgRed.bind(i),i.bgGreen=Db.bgGreen.bind(i),i.bgYellow=Db.bgYellow.bind(i),i.bgBlue=Db.bgBlue.bind(i),i.bgMagenta=Db.bgMagenta.bind(i),i.bgCyan=Db.bgCyan.bind(i),i.bgWhite=Db.bgWhite.bind(i),i}function sx(r,n){let i={open:`\x1B[${r}m`,close:`\x1B[${n}m`,rgx:new RegExp(`\\x1b\\[${n}m`,"g")};return function(l){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(r)||(this.has.push(r),this.keys.push(i)),l===void 0?this:Db.enabled?JZt(this.keys,l+""):l+""):l===void 0?Jer([r],[i]):Db.enabled?JZt([i],l+""):l+""}}var HI=Db;re();re();re();var qer=Object.defineProperty,dre=(r,n)=>{for(var i in n)qer(r,i,{get:n[i],enumerable:!0})};var M8={};dre(M8,{at:()=>itr,compact:()=>utr,concat:()=>ctr,every:()=>atr,filter:()=>Xer,filterMap:()=>$er,flat:()=>ptr,forEach:()=>Zer,from:()=>Ker,has:()=>ltr,head:()=>ntr,map:()=>Yer,next:()=>etr,prev:()=>ttr,reduce:()=>Qer,some:()=>str,tail:()=>rtr,uniq:()=>otr});var Ker=r=>Array.from(r),Xer=r=>n=>n.filter(r),Yer=r=>n=>n.map(r),Qer=(r,n)=>i=>i.reduce(r,n),$er=r=>n=>n.reduce((i,l,p,m)=>{let g=r(l,p,m);return g==null?i:[...i,g]},[]),Zer=r=>n=>n.forEach(r),etr=(r,n)=>i=>i[(r+1)%(n?i.length:i.length-1)],ttr=(r,n)=>i=>i[(r-1+(n?i.length:0))%i.length],ntr=r=>r[0],rtr=r=>r[r.length-1],itr=r=>n=>n.at(r),otr=r=>[...new Set(r)],str=r=>n=>n.some(r),atr=r=>n=>n.every(r),ltr=r=>n=>n.includes(r),ctr=(...r)=>n=>n.concat(...r),utr=r=>r.filter(n=>n!=null),ptr=()=>r=>r.flat();re();var pI={};dre(pI,{and:()=>mtr,not:()=>dtr,or:()=>ftr});function ftr(...r){return n=>r.some(i=>i(n))}var dtr=r=>n=>!r(n);function mtr(...r){return n=>r.every(i=>i(n))}re();var Vje=(...r)=>n=>{for(let i of r){let l=i(n);if(l!=null)return l}};function SCe(r,n){return i=>{if(r(i))return n(i)}}var LOt=r=>n=>SCe(()=>!0,r)(n);re();re();function ok(r,...n){return n.reduce((i,l)=>l(i),r)}function Aee(r){return n=>(r(n),n)}var mU=r=>r,NZe=()=>{};var n6=(r,n)=>i=>{try{return r(i)}catch(l){return mU(n?.(l,i))}};re();var RZe=r=>typeof r=="boolean";var LZe=r=>typeof r=="string",QZt=r=>Array.isArray(r),MZe=r=>r!==null&&typeof r=="object"&&!QZt(r),MOt=r=>typeof r=="function";var fI={};dre(fI,{assign:()=>gtr,assignTo:()=>Btr,bind:()=>ytr,compact:()=>vtr,defaults:()=>Etr,entries:()=>htr,filter:()=>$Zt,fromEntries:()=>FZe,get:()=>Ttr,keys:()=>Ctr,map:()=>_tr,merge:()=>ZZt,omit:()=>Str,pick:()=>xtr,split:()=>btr});var FZe=r=>Object.fromEntries(r),_tr=r=>n=>FZe(Object.entries(n).map(([i,l])=>r(i,l))),htr=r=>Object.entries(r);function gtr(r){return n=>({...n,...MOt(r)?r(n):r})}var Btr=r=>n=>FZe([[r,n]]),ytr=(r,n)=>i=>mU({...i,[r]:n(i)}),Ctr=r=>Object.keys(r),$Zt=r=>n=>FZe(Object.entries(n).filter(([i,l])=>r(i,l))),vtr=r=>$Zt((n,i)=>i!=null)(r),btr=(...r)=>n=>{let i=Object.getOwnPropertyDescriptors(n),l=Object.keys(i),p=g=>{let b={};for(let E=0;E<g.length;E++){let I=g[E];i[I]&&(Object.defineProperty(b,I,i[I]),delete i[I])}return b},m=g=>p(Array.isArray(g)?g:l.filter(g));return r.map(m).concat(p(l))};function ZZt(...r){return n=>{if(!r.length)return n;for(let i=1;i<r.length;i++){let l={...r[i]};for(let p in l){let m=n[p],g=l[p];MZe(m)&&MZe(g)?n[p]=ZZt(g)(m):n[p]=g}}return n}}var Str=r=>n=>{let i={...n};for(let l=0;l<r.length;l++)delete i[r[l]];return i},xtr=r=>n=>{let i={};for(let l=0;l<r.length;l++)i[r[l]]=n[r[l]];return i},Etr=r=>n=>mU({...r,...n}),Dtr=r=>r!=="__proto__"&&r!=="prototype"&&r!=="constructor",Ttr=(r,n)=>i=>{let l=Array.isArray(r)?r:r.split(".");for(let p=0;p<l.length;p++){let m=l[p];if(!i||!Object.prototype.hasOwnProperty.call(i,m)||!Dtr(m)){i=void 0;break}i=i[m]}return mU(i??n)};re();var Uje={};dre(Uje,{filter:()=>Otr,flatMap:()=>Ptr,fromExecution:()=>ktr,fromNullable:()=>een,fromPredicate:()=>Atr,getOrElse:()=>Ntr,getOrThrow:()=>Rtr,isNone:()=>kee,isSome:()=>ten,map:()=>Itr,match:()=>Ltr,none:()=>mre,orElse:()=>Mtr,some:()=>Hje,tap:()=>Ftr});var mre=Object.freeze({_tag:"None"}),Hje=r=>Object.freeze({_tag:"Some",value:r});function Atr(r){return n=>r(n)?Hje(n):mre}var een=r=>r==null?mre:Hje(r),ktr=r=>{try{return een(r())}catch{return mre}},kee=r=>r._tag==="None",ten=r=>r._tag==="Some",wtr=r=>r._tag==="None"||r._tag==="Some",Itr=r=>n=>kee(n)?mre:Hje(r(n.value)),Ptr=r=>n=>kee(n)?mre:r(n.value),Ntr=r=>n=>kee(n)?r():n.value,Rtr=r=>n=>{if(kee(n))throw new Error(r);return n.value},Ltr=(r,n)=>i=>kee(i)?n():r(i.value),Mtr=r=>n=>{let i=r();return wtr(i)?kee(n)?i:n:kee(n)?Hje(i):n},Ftr=r=>n=>(ten(n)&&r(n.value),n),Otr=r=>n=>kee(n)?mre:r(n.value)?n:mre;function Vtr(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var FOt=new Map,nen=(r,n)=>{if(!Array.isArray(r))switch(typeof r){case"string":r=[r];break;case"undefined":r=[];break;default:throw new TypeError(`Expected '${n}' to be a string or an array, but got a type of '${typeof r}'`)}return r.filter(i=>{if(typeof i!="string"){if(typeof i>"u")return!1;throw new TypeError(`Expected '${n}' to be an array of strings, but found a type of '${typeof i}' in the array`)}return!0})},Utr=(r,n)=>{n={caseSensitive:!1,...n};let i=r+JSON.stringify(n);if(FOt.has(i))return FOt.get(i);let l=r[0]==="!";l&&(r=r.slice(1)),r=Vtr(r).replace(/\\\*/g,"[\\s\\S]*");let p=new RegExp(`^${r}$`,n.caseSensitive?"":"i");return p.negated=l,FOt.set(i,p),p},Htr=(r,n,i,l)=>{if(r=nen(r,"inputs"),n=nen(n,"patterns"),n.length===0)return[];n=n.map(g=>Utr(g,i));let{allPatterns:p}=i||{},m=[];for(let g of r){let b,E=[...n].fill(!1);for(let[I,R]of n.entries())if(R.test(g)&&(E[I]=!0,b=!R.negated,!b))break;if(!(b===!1||b===void 0&&n.some(I=>!I.negated)||p&&E.some((I,R)=>!I&&!n[R].negated))&&(m.push(g),l))break}return m};function Jtr(r,n,i){return Htr(r,n,i,!0).length>0}var OOt={debug:{weight:0,color:HI.magenta},info:{weight:1,color:HI.blue},warn:{weight:2,color:HI.yellow},error:{weight:3,color:HI.red},silent:{weight:4,color:HI.white}},qtr=r=>ok({entry:r},fI.assign(({entry:n})=>({uword:n.type?HI.gray(`[${n.type}]`):""})),Vje(SCe(({entry:n})=>n.level!=null,({entry:n,uword:i})=>{let{msg:l,level:p}=n,m=OOt[p].color;return{label:["\u{1F43C}",HI.bold(m(`${p}`)),i].filter(Boolean).join(" "),msg:l}}),LOt(({entry:n,uword:i})=>{let{msg:l}=n;return{label:i??"",msg:l}}))),Ktr=(r,n,i)=>{let l=i instanceof Error?HI.red(i.message):i;return{type:n,level:r,msg:l}},Xtr=(r,n)=>r.some(i=>Jtr(n,i)),Ytr=(r={})=>{let n=r.level??"info",{stdout:i,timing:l}=ok(r,({filter:p})=>({getLevel:()=>p?"debug":n,filter:p!=="*"?p?.split(/[\s,]+/)??[]:[]}),fI.assignTo("config"),fI.assign(({config:p})=>({isValid(m,g){let b=OOt[p.getLevel()].weight>OOt[m].weight;return!(p.filter.length>0&&!Xtr(p.filter,g)||b)}})),fI.assign(({isValid:p,config:m})=>({stdout(g){return(b,E)=>{ok(Ktr(g,b,E),Vje(SCe(({level:I,type:R})=>I!=null&&p(I,R),I=>{let{msg:R,label:V}=qtr(I)??{};console.log(V,R)}),SCe(({level:I})=>m.getLevel()!=="silent"&&I==null,()=>{console.log(...[b,E].filter(Boolean))})))}}})),fI.assign(({stdout:p})=>({timing:m=>g=>{let b=performance.now();return()=>{let I=performance.now()-b;p(m)("hrtime",`${g} ${HI.gray(`(${I.toFixed(2)}ms)`)}`)}}})));return{get level(){return n},set level(p){n=p},warn:i("warn"),info:i("info"),debug:i("debug"),error:i("error"),log:p=>i(null)("",p),time:{info:l("info"),debug:l("debug")},isDebug:!!r.isDebug}};var wee=(...r)=>HI.cyan(`\`${r.join("")}\``),ren=process.env.PANDA_DEBUG,P1=Ytr({filter:typeof process<"u"?ren:void 0,isDebug:!!ren});h1();re();var qM=Symbol.for("@ts-pattern/matcher"),ien=Symbol.for("@ts-pattern/isVariadic"),WZe="@ts-pattern/anonymous-select-key",WOt=r=>!!(r&&typeof r=="object"),OZe=r=>r&&!!r[qM],v3=(r,n,i)=>{if(OZe(r)){let l=r[qM](),{matched:p,selections:m}=l.match(n);return p&&m&&Object.keys(m).forEach(g=>i(g,m[g])),p}if(WOt(r)){if(!WOt(n))return!1;if(Array.isArray(r)){if(!Array.isArray(n))return!1;let l=[],p=[],m=[];for(let g of r.keys()){let b=r[g];OZe(b)&&b[ien]?m.push(b):m.length?p.push(b):l.push(b)}if(m.length){if(m.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(n.length<l.length+p.length)return!1;let g=n.slice(0,l.length),b=p.length===0?[]:n.slice(-p.length),E=n.slice(l.length,p.length===0?1/0:-p.length);return l.every((I,R)=>v3(I,g[R],i))&&p.every((I,R)=>v3(I,b[R],i))&&(m.length===0||v3(m[0],E,i))}return r.length===n.length&&r.every((g,b)=>v3(g,n[b],i))}return Object.keys(r).every(l=>{let p=r[l];return(l in n||OZe(m=p)&&m[qM]().matcherType==="optional")&&v3(p,n[l],i);var m})}return Object.is(n,r)},F8=r=>{var n,i,l;return WOt(r)?OZe(r)?(n=(i=(l=r[qM]()).getSelectionKeys)==null?void 0:i.call(l))!=null?n:[]:Array.isArray(r)?Jje(r,F8):Jje(Object.values(r),F8):[]},Jje=(r,n)=>r.reduce((i,l)=>i.concat(n(l)),[]);function hre(...r){if(r.length===1){let[n]=r;return i=>v3(n,i,()=>{})}if(r.length===2){let[n,i]=r;return v3(n,i,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${r.length}.`)}function r6(r){return Object.assign(r,{optional:()=>VOt(r),and:n=>eE(r,n),or:n=>oen(r,n),select:n=>n===void 0?qje(r):qje(n,r)})}function GOt(r){return Object.assign((n=>Object.assign(n,{*[Symbol.iterator](){yield Object.assign(n,{[ien]:!0})}}))(r),{optional:()=>GOt(VOt(r)),select:n=>GOt(n===void 0?qje(r):qje(n,r))})}function VOt(r){return r6({[qM]:()=>({match:n=>{let i={},l=(p,m)=>{i[p]=m};return n===void 0?(F8(r).forEach(p=>l(p,void 0)),{matched:!0,selections:i}):{matched:v3(r,n,l),selections:i}},getSelectionKeys:()=>F8(r),matcherType:"optional"})})}var Qtr=(r,n)=>{for(let i of r)if(!n(i))return!1;return!0},$tr=(r,n)=>{for(let[i,l]of r.entries())if(!n(l,i))return!1;return!0};function eE(...r){return r6({[qM]:()=>({match:n=>{let i={},l=(p,m)=>{i[p]=m};return{matched:r.every(p=>v3(p,n,l)),selections:i}},getSelectionKeys:()=>Jje(r,F8),matcherType:"and"})})}function oen(...r){return r6({[qM]:()=>({match:n=>{let i={},l=(p,m)=>{i[p]=m};return Jje(r,F8).forEach(p=>l(p,void 0)),{matched:r.some(p=>v3(p,n,l)),selections:i}},getSelectionKeys:()=>Jje(r,F8),matcherType:"or"})})}function vv(r){return{[qM]:()=>({match:n=>({matched:!!r(n)})})}}function qje(...r){let n=typeof r[0]=="string"?r[0]:void 0,i=r.length===2?r[1]:typeof r[0]=="string"?void 0:r[0];return r6({[qM]:()=>({match:l=>{let p={[n??WZe]:l};return{matched:i===void 0||v3(i,l,(m,g)=>{p[m]=g}),selections:p}},getSelectionKeys:()=>[n??WZe].concat(i===void 0?[]:F8(i))})})}function hU(r){return typeof r=="number"}function xCe(r){return typeof r=="string"}function gre(r){return typeof r=="bigint"}var sen=r6(vv(function(r){return!0})),Ztr=sen,ECe=r=>Object.assign(r6(r),{startsWith:n=>{return ECe(eE(r,(i=n,vv(l=>xCe(l)&&l.startsWith(i)))));var i},endsWith:n=>{return ECe(eE(r,(i=n,vv(l=>xCe(l)&&l.endsWith(i)))));var i},minLength:n=>ECe(eE(r,(i=>vv(l=>xCe(l)&&l.length>=i))(n))),maxLength:n=>ECe(eE(r,(i=>vv(l=>xCe(l)&&l.length<=i))(n))),includes:n=>{return ECe(eE(r,(i=n,vv(l=>xCe(l)&&l.includes(i)))));var i},regex:n=>{return ECe(eE(r,(i=n,vv(l=>xCe(l)&&!!l.match(i)))));var i}}),enr=ECe(vv(xCe)),aen=(r,n)=>vv(i=>hU(i)&&r<=i&&n>=i),len=r=>vv(n=>hU(n)&&n<r),cen=r=>vv(n=>hU(n)&&n>r),uen=r=>vv(n=>hU(n)&&n<=r),pen=r=>vv(n=>hU(n)&&n>=r),fen=()=>vv(r=>hU(r)&&Number.isInteger(r)),den=()=>vv(r=>hU(r)&&Number.isFinite(r)),men=()=>vv(r=>hU(r)&&r>0),_en=()=>vv(r=>hU(r)&&r<0),_U=r=>Object.assign(r6(r),{between:(n,i)=>_U(eE(r,aen(n,i))),lt:n=>_U(eE(r,len(n))),gt:n=>_U(eE(r,cen(n))),lte:n=>_U(eE(r,uen(n))),gte:n=>_U(eE(r,pen(n))),int:()=>_U(eE(r,fen())),finite:()=>_U(eE(r,den())),positive:()=>_U(eE(r,men())),negative:()=>_U(eE(r,_en()))}),tnr=_U(vv(hU)),hen=(r,n)=>vv(i=>gre(i)&&r<=i&&n>=i),gen=r=>vv(n=>gre(n)&&n<r),Ben=r=>vv(n=>gre(n)&&n>r),yen=r=>vv(n=>gre(n)&&n<=r),Cen=r=>vv(n=>gre(n)&&n>=r),ven=()=>vv(r=>gre(r)&&r>0),ben=()=>vv(r=>gre(r)&&r<0),_re=r=>Object.assign(r6(r),{between:(n,i)=>_re(eE(r,hen(n,i))),lt:n=>_re(eE(r,gen(n))),gt:n=>_re(eE(r,Ben(n))),lte:n=>_re(eE(r,yen(n))),gte:n=>_re(eE(r,Cen(n))),positive:()=>_re(eE(r,ven())),negative:()=>_re(eE(r,ben()))}),nnr=_re(vv(gre)),rnr=r6(vv(function(r){return typeof r=="boolean"})),inr=r6(vv(function(r){return typeof r=="symbol"})),onr=r6(vv(function(r){return r==null})),FS={__proto__:null,matcher:qM,optional:VOt,array:function(...r){return GOt({[qM]:()=>({match:n=>{if(!Array.isArray(n))return{matched:!1};if(r.length===0)return{matched:!0};let i=r[0],l={};if(n.length===0)return F8(i).forEach(m=>{l[m]=[]}),{matched:!0,selections:l};let p=(m,g)=>{l[m]=(l[m]||[]).concat([g])};return{matched:n.every(m=>v3(i,m,p)),selections:l}},getSelectionKeys:()=>r.length===0?[]:F8(r[0])})})},set:function(...r){return r6({[qM]:()=>({match:n=>{if(!(n instanceof Set))return{matched:!1};let i={};if(n.size===0)return{matched:!0,selections:i};if(r.length===0)return{matched:!0};let l=(m,g)=>{i[m]=(i[m]||[]).concat([g])},p=r[0];return{matched:Qtr(n,m=>v3(p,m,l)),selections:i}},getSelectionKeys:()=>r.length===0?[]:F8(r[0])})})},map:function(...r){return r6({[qM]:()=>({match:n=>{if(!(n instanceof Map))return{matched:!1};let i={};if(n.size===0)return{matched:!0,selections:i};let l=(b,E)=>{i[b]=(i[b]||[]).concat([E])};if(r.length===0)return{matched:!0};var p;if(r.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(p=r[0])==null?void 0:p.toString()}`);let[m,g]=r;return{matched:$tr(n,(b,E)=>{let I=v3(m,E,l),R=v3(g,b,l);return I&&R}),selections:i}},getSelectionKeys:()=>r.length===0?[]:[...F8(r[0]),...F8(r[1])]})})},intersection:eE,union:oen,not:function(r){return r6({[qM]:()=>({match:n=>({matched:!v3(r,n,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:vv,select:qje,any:sen,_:Ztr,string:enr,between:aen,lt:len,gt:cen,lte:uen,gte:pen,int:fen,finite:den,positive:men,negative:_en,number:tnr,betweenBigInt:hen,ltBigInt:gen,gtBigInt:Ben,lteBigInt:yen,gteBigInt:Cen,positiveBigInt:ven,negativeBigInt:ben,bigint:nnr,boolean:rnr,symbol:inr,nullish:onr,instanceOf:function(r){return r6(vv(function(n){return i=>i instanceof n}(r)))},shape:function(r){return r6(vv(hre(r)))}},zOt={matched:!1,value:void 0};function H_(r){return new jOt(r,zOt)}var jOt=class r{constructor(n,i){this.input=void 0,this.state=void 0,this.input=n,this.state=i}with(...n){if(this.state.matched)return this;let i=n[n.length-1],l=[n[0]],p;n.length===3&&typeof n[1]=="function"?(l.push(n[0]),p=n[1]):n.length>2&&l.push(...n.slice(1,n.length-1));let m=!1,g={},b=(I,R)=>{m=!0,g[I]=R},E=!l.some(I=>v3(I,this.input,b))||p&&!p(this.input)?zOt:{matched:!0,value:i(m?WZe in g?g[WZe]:g:this.input,this.input)};return new r(this.input,E)}when(n,i){if(this.state.matched)return this;let l=!!n(this.input);return new r(this.input,l?{matched:!0,value:i(this.input,this.input)}:zOt)}otherwise(n){return this.state.matched?this.state.value:n(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let n;try{n=JSON.stringify(this.input)}catch{n=this.input}throw new Error(`Pattern matching error: no pattern matches value ${n}`)}returnType(){return this}};var $8t=_d(Aen(),1),Z8t=_d(Pen(),1),e7t=_d(Y1n(),1),t7t=_d(ibn(),1),Aet=_d(bOt(),1),n7t=_d(xbn(),1);h1();var $bn=_d(NOt(),1),Zbn=_d(Fje(),1);re();function G8t(r,n={},i){for(let l in r){let p=r[l],m=i?`${i}:${l}`:l;typeof p=="object"&&p!==null?G8t(p,n,m):typeof p=="function"&&(n[m]=p)}return n}var Mor={run:r=>r()},For=()=>Mor,Dbn=typeof console.createTask<"u"?console.createTask:For;function Oor(r,n){let i=n.shift(),l=Dbn(i);return r.reduce((p,m)=>p.then(()=>l.run(()=>m(...n))),Promise.resolve())}function Wor(r,n){let i=n.shift(),l=Dbn(i);return Promise.all(r.map(p=>l.run(()=>p(...n))))}function W8t(r,n){for(let i of[...r])i(n)}var z8t=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(n,i,l={}){if(!n||typeof i!="function")return()=>{};let p=n,m;for(;this._deprecatedHooks[n];)m=this._deprecatedHooks[n],n=m.to;if(m&&!l.allowDeprecated){let g=m.message;g||(g=`${p} hook has been deprecated`+(m.to?`, please use ${m.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(g)||(console.warn(g),this._deprecatedMessages.add(g))}if(!i.name)try{Object.defineProperty(i,"name",{get:()=>"_"+n.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[n]=this._hooks[n]||[],this._hooks[n].push(i),()=>{i&&(this.removeHook(n,i),i=void 0)}}hookOnce(n,i){let l,p=(...m)=>(typeof l=="function"&&l(),l=void 0,p=void 0,i(...m));return l=this.hook(n,p),l}removeHook(n,i){if(this._hooks[n]){let l=this._hooks[n].indexOf(i);l!==-1&&this._hooks[n].splice(l,1),this._hooks[n].length===0&&delete this._hooks[n]}}deprecateHook(n,i){this._deprecatedHooks[n]=typeof i=="string"?{to:i}:i;let l=this._hooks[n]||[];delete this._hooks[n];for(let p of l)this.hook(n,p)}deprecateHooks(n){Object.assign(this._deprecatedHooks,n);for(let i in n)this.deprecateHook(i,n[i])}addHooks(n){let i=G8t(n),l=Object.keys(i).map(p=>this.hook(p,i[p]));return()=>{for(let p of l.splice(0,l.length))p()}}removeHooks(n){let i=G8t(n);for(let l in i)this.removeHook(l,i[l])}removeAllHooks(){for(let n in this._hooks)delete this._hooks[n]}callHook(n,...i){return i.unshift(n),this.callHookWith(Oor,n,...i)}callHookParallel(n,...i){return i.unshift(n),this.callHookWith(Wor,n,...i)}callHookWith(n,i,...l){let p=this._before||this._after?{name:i,args:l,context:{}}:void 0;this._before&&W8t(this._before,p);let m=n(i in this._hooks?[...this._hooks[i]]:[],l);return m instanceof Promise?m.finally(()=>{this._after&&p&&W8t(this._after,p)}):(this._after&&p&&W8t(this._after,p),m)}beforeEach(n){return this._before=this._before||[],this._before.push(n),()=>{if(this._before!==void 0){let i=this._before.indexOf(n);i!==-1&&this._before.splice(i,1)}}}afterEach(n){return this._after=this._after||[],this._after.push(n),()=>{if(this._after!==void 0){let i=this._after.indexOf(n);i!==-1&&this._after.splice(i,1)}}}};function Eet(){return new z8t}var Ebn=typeof window<"u";function Tbn(r,n={}){let i={inspect:Ebn,group:Ebn,filter:()=>!0,...n},l=i.filter,p=typeof l=="string"?R=>R.startsWith(l):l,m=i.tag?`[${i.tag}] `:"",g=R=>m+R.name+"".padEnd(R._id,"\0"),b={},E=r.beforeEach(R=>{p!==void 0&&!p(R.name)||(b[R.name]=b[R.name]||0,R._id=b[R.name]++,console.time(g(R)))}),I=r.afterEach(R=>{p!==void 0&&!p(R.name)||(i.group&&console.groupCollapsed(R.name),i.inspect?console.timeLog(g(R),R.args):console.timeEnd(g(R)),i.group&&console.groupEnd(),b[R.name]--)});return{close:()=>{E(),I()}}}h1();h1();var Gor={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,msGridRow:!0,msGridRowSpan:!0,msGridColumn:!0,msGridColumnSpan:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,WebkitLineClamp:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Det=new Set;Object.keys(Gor).forEach(r=>{Det.add(r),Det.add(dCe(r))});function j8t(r){return typeof r.nodes>"u"?!0:K8t(r)}function K8t(r){let n,i={};return r.each(l=>{if(l.type==="atrule")n="@"+l.name,l.params&&(n+=" "+l.params),typeof i[n]>"u"?i[n]=j8t(l):Array.isArray(i[n])?i[n].push(j8t(l)):i[n]=[i[n],j8t(l)];else if(l.type==="rule"){let p=K8t(l);if(i[l.selector])for(let m in p)i[l.selector][m]=p[m];else i[l.selector]=p}else if(l.type==="decl"){l.prop[0]==="-"&&l.prop[1]==="-"?n=l.prop:n=P4t(l.prop);let p=l.value;!isNaN(Number(p))&&Det.has(n)&&(p=parseFloat(l.value)),l.important&&(p+=" !important"),typeof i[n]>"u"?i[n]=p:Array.isArray(i[n])?i[n].push(p):i[n]=[i[n],p]}}),i}var Abn=/\s*!important\s*$/i;function kbn(r,n,i){if(i===!1||i==null)return;let l=n.startsWith("--");l||(n=dCe(n)),typeof i=="number"&&(i===0||Det.has(n)||l?i=i.toString():i=`${i}px`),n==="css-float"&&(n="float"),Abn.test(i)?(i=i.replace(Abn,""),r.push(hB.decl({prop:n,value:i,important:!0}))):r.push(hB.decl({prop:n,value:i}))}function wbn(r,n,i){if(!n)return;let l=hB.atRule({name:n[1],params:n[3]||""});typeof i=="object"&&(l.nodes=[],X8t(i,l)),r.push(l)}var zor=/@(\S+)(\s+([\W\w]*)\s*)?/;function X8t(r,n){let i,l,p;for(i in r)if(l=r[i],!(l===null||typeof l>"u"))if(i[0]==="@"){let m=i.match(zor);if(Array.isArray(l))for(let g of l)wbn(n,m,g);else wbn(n,m,l)}else if(Array.isArray(l))for(let m of l)kbn(n,i,m);else typeof l=="object"?(p=hB.rule({selector:i}),X8t(l,p),n.push(p)):kbn(n,i,l)}var jor=r=>{let n=hB.root();return X8t(r,n),n},Vor=jor,Gbn={parser:Vor,objectify:K8t};function tVe(r){try{return hB.parse(r)}catch{return hB.root()}}function t5(r,{important:n}={}){let i=hB([(0,Wbn.default)({bubble:["breakpoint"]})]).process(r,{parser:Gbn.parser});return n&&i.root.walkDecls(l=>{l.important=!0}),i}function Ibn(r){return Gbn.objectify(tVe(r))}var Tet=class{constructor(r){this.context=r,this.root=hB.root(),this.layer=r.layers.utilities}root;layer;hashFn=(r,n)=>{let{conditions:i,hash:l,utility:p}=this.context,m;if(l){let g=[...i.finalize(r),n];m=p.formatClassName(uCe(g.join(":")))}else m=[...i.finalize(r),p.formatClassName(n)].join(":");return L4t(m)};get rule(){return this.context.conditions.rule()}get transform(){return this.context?.transform??this.context.utility.transform}process=r=>{let{styles:n}=r,{conditions:i}=this.context,l=F$e(n,this.context);if(typeof l!="object")return;let p=this.rule;if(VI(l,(g,b)=>{if(g==null)return;let E=iSe(g),[I,...R]=i.shift(b),V=rSe(R),X=this.transform(I,oSe(g)),ue=t5(X.styles,{important:E});if(p.nodes=ue.root.nodes,p.isEmpty)return;let De=this.hashFn(V,X.className);if(p.selector=E?`.${De}\\!`:`.${De}`,p.update(),p.applyConditions(V),X.layer){let we=hB.atRule({name:"layer",params:X.layer,nodes:[p.rule]});this.root.append(we)}else this.root.append(p.rule)}),this.root.nodes.length===0)return;let m=hB.atRule({name:"layer",params:this.layer,nodes:[this.root]});this.context.root.append(m)};toCss=()=>this.context.root.toString()},Uor=class{constructor(r){this.breakpoints=r}get sorted(){return Hor(this.breakpoints)}get values(){return Object.fromEntries(this.sorted)}get keys(){return["base",...Object.keys(this.values)]}get=r=>this.values[r];build=({min:r,max:n})=>r==null&&n==null?"":["screen",r&&`(min-width: ${r})`,n&&`(max-width: ${n})`].filter(Boolean).join(" and ");only=r=>{let{min:n,max:i}=this.get(r);return this.build({min:n,max:i})};get ranges(){let r=Object.keys(this.values),n=qor(r),i=r.flatMap(l=>{let p=this.get(l),m=[`${l}Down`,this.build({max:p.min})],g=[l,this.build({min:p.min})],b=[`${l}Only`,this.only(l)];return[g,b,m]}).filter(([l,p])=>p!=="").concat(n.map(([l,p])=>{let m=this.get(l),g=this.get(p);return[`${l}To${t6(p)}`,this.build({min:m.min,max:zbn(g.min)})]}));return Object.fromEntries(i)}get conditions(){let r=Object.entries(this.ranges).map(([n,i])=>[n,Jor(n,i)]);return Object.fromEntries(r)}getCondition=r=>this.conditions[r];expandScreenAtRule=r=>{r.walkAtRules("breakpoint",n=>{let i=this.getCondition(n.params);if(!i)throw n.error(`No \`${n.params}\` screen found.`);n.name="media",n.params=i.params})}};function zbn(r){let n=parseFloat(fCe(r)??"")-.05;return W$e(`${n}px`)}function Hor(r){return Object.entries(r).sort(([,n],[,i])=>parseInt(n,10)<parseInt(i,10)?-1:1).map(([n,i],l,p)=>{let m=null;return l<=p.length-1&&(m=p[l+1]?.[1]),m!=null&&(m=zbn(m)),[n,{name:n,min:W$e(i),max:m}]})}var Jor=(r,n)=>({type:"at-rule",name:"breakpoint",value:r,raw:r,rawValue:`@media ${n}`,params:n});function qor(r){let n=[];return r.forEach((i,l)=>{let p=l;p++;let m=r[p];for(;m;)n.push([i,m]),p++,m=r[p]}),n}function Q8t(r,n){let{utility:i,conditions:l}=n,p=l.rule(),m={};return VI(r,(g,b)=>{let E=iSe(g),[I,...R]=l.shift(b),V=rSe(R),X=V.length>0,{styles:ue}=i.transform(I,oSe(g)),De=t5(ue,{important:E});if(X){let we=l.segment(V);p.nodes=De.root.nodes,p.selector=we.selector.length>0?we.selector[0]:"&",p.update(),p.applyConditions(we.condition),ue=Ibn(p.toString())}else ue=Ibn(De.css);(0,Y8t.default)(m,ue)}),m}function Kor(r,n){let i={};for(let[l,p]of Object.entries(r))i[l]||={},(0,Y8t.default)(i[l],Q8t(p,n));return t5(i).root}function jbn(r,n){for(let[i,l]of Object.entries(r)){let p=M4t(l??{}),m={layer:"compositions",className:i,values:Object.keys(p),transform:g=>Q8t(p[g],n)};n.utility.register(i,m)}}var Xor=class{constructor(r){this.conditionsMap=r}rule;selector="";nodes=[];get isEmpty(){return this.nodes.length===0}update=()=>{this.rule=hB.rule({selector:this.selector,nodes:this.nodes})};applyConditions=r=>{let n=this.conditionsMap.sort(r),i=hB.rule({selector:this.selector});n.forEach(l=>{if(!l)return;let p=l.rawValue??l.value;(U8t(i)??i).append(hB.rule({selector:p}))}),U8t(i)?.append(this.nodes),this.rule=i};toString(){return this.rule.toString()}};function U8t(r){return r.nodes&&r.nodes.length?U8t(r.nodes[r.nodes.length-1]):r}function Yor(r){let i=tVe(r).nodes[0];return{type:"at-rule",name:i.name,value:i.params,raw:r,rawValue:r}}function H8t(r){if(r.startsWith("@"))return Yor(r);let n;if(r.startsWith("&")?n="self-nesting":r.endsWith(" &")?n="parent-nesting":r.includes("&")&&(n="combinator-nesting"),n)return{type:n,value:r,raw:r}}var Pbn=["self-nesting","combinator-nesting","parent-nesting","at-rule"],Qor=/^_/,$or=/&|@/,Vbn=class{constructor(r){this.options=r;let{breakpoints:n={},conditions:i={}}=this.options,l=new Uor(n);this.breakpoints=l;let p=Object.entries(i).map(([m,g])=>[`_${m}`,H8t(g)]);this.values={...Object.fromEntries(p),...l.conditions}}values;breakpoints;finalize=r=>r.map(n=>this.has(n)?n.replace(Qor,""):$or.test(n)?`[${Hze(n.trim())}]`:n);shift=r=>r.slice().sort((n,i)=>{let l=this.isCondition(n),p=this.isCondition(i);return l&&!p?1:!l&&p||!l&&!p?-1:0});segment=r=>{let n=[],i=[];for(let l of r)this.isCondition(l)?n.push(l):i.push(l);return{condition:n,selector:i}};has=r=>Object.prototype.hasOwnProperty.call(this.values,r);isCondition=r=>this.has(r)||!!this.getRaw(r)||nSe(r);isEmpty=()=>Object.keys(this.values).length===0;get=r=>{let n=this.values[r];return n?.rawValue??n?.value};getRaw=r=>{try{return this.values[r]??H8t(r)}catch(n){P1.error("core:condition",n)}};sort=r=>r.map(this.getRaw).filter(Boolean).sort((i,l)=>Pbn.indexOf(i.type)-Pbn.indexOf(l.type));normalize=r=>typeof r=="string"?this.getRaw(r):r;keys=()=>Object.keys(this.values);rule=()=>new Xor(this)},LSe=r=>"slots"in r&&Array.isArray(r.slots)&&r.slots.length>0;var Zor=/token\(([^)]+)\)/g,esr=/\)$/;function Ubn(r){return n=>{n.walkDecls(i=>{if(i.value.includes("token(")){let l=i.value.replace(Zor,(p,m)=>{let[g,b]=m.split(",").map(I=>I.trim()),E=[g,b].filter(Boolean).map(I=>r?.(I)??(I.includes(".")?`'${I}'`:I));if(E.length>1){let[I,R]=E;return I.endsWith(")")?I.replace(esr,`, ${R})`):`var(${I}, ${R})`}return E[0]});i.value=l}})}}Ubn.postcssPlugin="panda:expand-token-fn";var tsr=Ubn;function r7t(){return r=>{let n=new Map;r.walkAtRules("layer",i=>{let l=n.get(i.params);l?(i.remove(),l.append(i.nodes)):n.set(i.params,i)})}}r7t.postcssPlugin="panda-merge-layers";function Hbn(r,n=0){r.each&&r.each((i,l)=>{(!i.raws.before||!i.raws.before.trim()||i.raws.before.includes(`
30726
30726
  `))&&(i.raws.before=`
30727
30727
  ${r.type!=="rule"&&l>0?`
30728
- `:""}${" ".repeat(n)}`),Hbn(i,n+1)})}function nVe(){return r=>{Hbn(r),r.first&&(r.first.raws.before="")}}nVe.postcssPlugin="panda-prettify";var nsr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],Nbn=r=>nsr.findIndex(i=>r.trim().includes(i))+1;function i7t(){let r=n=>{let i=[],l=[],p=[];n.each(m=>{switch(m.type){case"rule":{m.first?.type==="atrule"?p.push(m):l.push(m);break}case"atrule":{p.push(m);break}default:i.push(m)}}),l.sort((m,g)=>{let b=m.selectors.length?m.selectors[0]:m.selector,E=g.selectors.length?g.selectors[0]:g.selector;return Nbn(b)-Nbn(E)}),n.nodes=[...i,...l,...p],n.nodes.forEach(m=>{"nodes"in m&&r(m)})};return r}i7t.postcssPlugin="panda-sort-css";var Jbn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,rsr=/\(\s*min(-device)?-width/i,qbn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,isr=/\(\s*max(-device)?-width/i,J8t=ket(Jbn,qbn,rsr),Rbn=ket(qbn,Jbn,isr),Kbn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,osr=/\(\s*min(-device)?-height/i,Xbn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,ssr=/\(\s*max(-device)?-height/i,q8t=ket(Kbn,Xbn,osr),Lbn=ket(Xbn,Kbn,ssr),Mbn=/print/i,Fbn=/^print$/i,eVe=Number.MAX_VALUE;function Obn(r){let n=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(r);if(n===null&&(J8t(r)||q8t(r))&&(n=/(\d)/.exec(r)),n==="0")return 0;if(n===null)return eVe;let i=n[1];switch(n[2]){case"ch":i=parseFloat(i)*8.8984375;break;case"em":case"rem":i=parseFloat(i)*16;break;case"ex":i=parseFloat(i)*8.296875;break;case"px":i=parseFloat(i);break}return+i}function ket(r,n,i){return function(l){return r.test(l)?!0:n.test(l)?!1:i.test(l)}}function asr(r,n){let i=Mbn.test(r),l=Fbn.test(r),p=Mbn.test(n),m=Fbn.test(n);return i&&p?!l&&m?1:l&&!m?-1:r.localeCompare(n):i?1:p?-1:null}function lsr(r={}){let{unitlessMqAlwaysFirst:n}=r;return function(l,p){let m=asr(l,p);if(m!==null)return m;let g=J8t(l)||q8t(l),b=Rbn(l)||Lbn(l),E=J8t(p)||q8t(p),I=Rbn(p)||Lbn(p);if(n&&(!g&&!b||!E&&!I))return!g&&!b&&!E&&!I?l.localeCompare(p):!E&&!I?1:-1;{if(g&&I)return-1;if(b&&E)return 1;let R=Obn(l),V=Obn(p);return R===eVe&&V===eVe?l.localeCompare(p):R===eVe?1:V===eVe?-1:R>V?b?-1:1:R<V?b?1:-1:l.localeCompare(p)}}}var csr=lsr();function o7t(){let r=n=>{n.nodes.sort((i,l)=>H_({a:i,b:l}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:p,b:m})=>csr(p.params,m.params)).with({a:{type:"atrule",name:"media"},b:FS.any},()=>1).with({a:FS.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),n.nodes.forEach(i=>{"nodes"in i&&r(i)})};return r}o7t.postcssPlugin="panda-sort-mq";function wet(r,n={}){let{minify:i=!1}=n,l=[(0,Aet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function usr(r,n={}){let{token:i}=n,{css:l}=hB([tsr(i)]).process(r);return l}function Iet(r,n={}){let{minify:i=!1}=n,l=[(0,Aet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function Ybn(r){let{css:n}=hB([(0,Aet.default)(),nVe()]).process(r);return n}function Qbn(r){let{css:n}=hB([nVe()]).process(r);return n}function Pet(r,n){let i=tVe(r),l=tVe(n),p=i.nodes.filter(hre({type:"atrule",name:"layer",params:"utilities"}));return l.walkAtRules("layer",m=>{m.params==="utilities"&&p.forEach(g=>{m.append(g.nodes)})}),Iet(l)}var YM={classNames:new Map,styles:new Map,nodes:new Map,slots:new Map},s7t=class{constructor(r={},n){this.recipes=r,this.context=n,this.assignRules()}rules=new Map;getPropKey=(r,n,i)=>`${r} (${n} = ${i})`;get separator(){return this.context.utility.separator??"_"}getClassName=(r,n,i)=>`${r}--${n}${this.separator}${i}`;save=()=>{for(let[r,n]of Object.entries(this.recipes))if(LSe(n)){let i=qze(n),l=new Map;Object.entries(i).forEach(([p,m])=>{let g=this.getSlotKey(r,p);this.normalize(g,m),l.set(g,m)}),this.assignRecipe(r,n),YM.slots.set(r,l)}else this.assignRecipe(r,this.normalize(r,n))};assignRecipe=(r,n)=>{let i=Object.keys(n.variants??{}),l=n.jsx??[t6(r)],p=Jze(l);YM.nodes.set(r,{...this.getNames(r),jsx:l,type:"recipe",variantKeys:i,variantKeyMap:Object.fromEntries(Object.entries(n.variants??{}).map(([m,g])=>[m,Object.keys(g)])),match:p,config:n,splitProps:m=>F4t(m,i),props:i})};getSlotKey=(r,n)=>`${r}__${n}`;assignRules=()=>{if(this.context)for(let[r,n]of Object.entries(this.recipes))LSe(n)?n.slots.forEach(i=>{let l=this.getSlotKey(r,i);this.rules.set(l,this.createRule(l))}):this.rules.set(r,this.createRule(r))};isEmpty=()=>YM.nodes.size===0;getNames=zb(r=>({baseName:r,upperName:t6(r),dashName:Uze(r),jsxName:t6(r)}));getRecipe=zb(r=>YM.nodes.get(r));getConfig=zb(r=>this.recipes[r]);find=zb(r=>this.details.find(n=>n.match.test(r)));filter=zb(r=>this.details.filter(n=>n.match.test(r)));get details(){return Array.from(YM.nodes.values())}splitProps=(r,n)=>{let i=this.details.find(l=>l.baseName===r);return i?i.splitProps(n):[{},n]};normalize=(r,n)=>{let{className:i,jsx:l=[t6(r)],base:p={},variants:m={},defaultVariants:g={},description:b="",compoundVariants:E=[]}=n,I={...n,jsx:l,className:i,description:b,base:{},variants:{},defaultVariants:g,compoundVariants:E};I.base=this.serialize(p),YM.styles.set(r,I.base),YM.classNames.set(r,i);for(let[R,V]of Object.entries(m))for(let[X,ue]of Object.entries(V)){let De=this.getPropKey(r,R,X),we=this.getClassName(n.className,R,X),We=this.serialize(ue);YM.styles.set(De,We),YM.classNames.set(De,we),(0,$bn.default)(I.variants,{[R]:{[X]:We}})}return I};serialize=r=>this.context?Q8t(r,this.context):r;getTransform=r=>(n,i)=>{if(i==="__ignore__")return{layer:"_base",className:YM.classNames.get(r),styles:YM.styles.get(r)??{}};let l=this.getPropKey(r,n,i);return{className:YM.classNames.get(l),styles:YM.styles.get(l)??{}}};createRule=r=>{if(!this.context)throw new Error("Can't create a rule without a context");let n=new Tet({...this.context,transform:this.getTransform(r)});return n.layer=this.context.layers.recipes,n};check=(r,n,i)=>{let{defaultVariants:l={},base:p={}}=r,m=Object.assign({[n]:"__ignore__"},l,i),g=Object.keys(m);return{styles:m,isEmpty:g.length===1&&Object.keys(p).length===0}};process=(r,n)=>{let{styles:i}=n,l=this.getRecipe(r);if(!l)return;let p=YM.slots.get(r);if(p)p.forEach((m,g)=>{let{isEmpty:b,styles:E}=this.check(m,g,i);if(b)return;this.rules.get(g)?.process({styles:E})});else{let{isEmpty:m,styles:g}=this.check(l.config,l.config.className,i);if(m)return;this.rules.get(r)?.process({styles:g})}};toCss=()=>this.context?this.context.root.toString():""},psr=/\s&/g;function eSn(r){let n=new Set;(0,Zbn.default)(l=>{l.each(p=>{let m=H8t(p.toString());H_(m).with({type:"parent-nesting"},()=>{n.add(p.toString().replace(psr,"").trim())}).otherwise(()=>{})})}).processSync(r);let i=Array.from(n).join(", ").trim();return n.size>1?`:where(${i})`:i}var Zhi=Eet(),V8t=(r,n)=>r.breakpoints.includes(n)?n:`_${n}`;function tSn(r){let{css:n=[],recipes:i={}}=r,l={css:[],recipes:[]};return p=>(n.forEach(m=>{let g=m.conditions||[];m.responsive&&g.push(...p.breakpoints),Object.entries(m.properties).forEach(([b,E])=>{E.flatMap(R=>R==="*"?p.getPropertyKeys(b):R).forEach(R=>{let V=g.reduce((X,ue)=>({base:R,...X,[V8t(p,ue)]:R}),{});l.css.push({[b]:g.length?V:R})})})}),Object.entries(i).forEach(([m,g])=>{g.forEach(b=>{let{__base:E,...I}=p.getRecipeKeys(m),R=b==="*",{conditions:V=[],responsive:X=R,...ue}=R?I:b;if(X&&V.push(...p.breakpoints),E){let De=V.reduce((we,We)=>({base:E,...we,[V8t(p,We)]:E}),{});l.recipes.push({[m]:V.length?De:E})}Object.entries(ue).forEach(([De,we])=>{if(!Array.isArray(we))return;we.flatMap(Ne=>Ne==="*"?I[De]:Ne).forEach(Ne=>{let Me=V.reduce((Ct,Rt)=>({base:Ne,...Ct,[V8t(p,Rt)]:Ne}),{});l.recipes.push({[m]:{[De]:V.length?Me:Ne}})})})})}),l)}var nSn=class{constructor(r,n){this.context=r,this.options=n;let{recipes:i={},slotRecipes:l={}}=n??{},p=Object.assign({},i,l);this.recipes=new s7t(p,r)}recipes;processGlobalCss=r=>{let{conditions:n,utility:i}=this.context,l=Kor(r,{conditions:n,utility:i}),p=hB.atRule({name:"layer",params:this.context.layers.base,nodes:[l]});this.context.root.append(p)};processSelectorObject(r,n){let i=t5(n),{nodes:l}=tVe(i);if(l.length===0)return;let p=hB.rule({selector:r,nodes:i.root.nodes});this.context.root.append(p)}processObject(r){let i=t5(r).root;this.context.root.append(i)}processAtomic=(...r)=>{let n=new Tet(this.context);r.forEach(i=>{i&&n.process({styles:i})})};processStyleProps=r=>{let{css:n,...i}=r;this.processAtomic(i,n)};processCompoundVariants=r=>{r.compoundVariants?.forEach(n=>{if(LSe(r))for(let i of Object.values(n.css))this.processAtomic(i);else this.processAtomic(n.css)})};processRecipe=(r,n,i)=>{this.recipes.process(r,{styles:i}),this.processCompoundVariants(n)};processAtomicSlotRecipe=r=>{let n=qze(r);for(let i of Object.values(n))this.processAtomicRecipe(i)};processAtomicRecipe=r=>{let{base:n={},variants:i={},compoundVariants:l=[]}=r;this.processAtomic(n);for(let p of Object.values(i))for(let m of Object.values(p))this.processAtomic(m);l.forEach(p=>{this.processAtomic(p.css)})};toCss=({optimize:r=!1,minify:n}={})=>{try{let{conditions:{breakpoints:i},utility:l}=this.context;i.expandScreenAtRule(this.context.root),usr(this.context.root,{token:l.getToken});let p=this.context.root.toString();return r&&(p=wet(p,{minify:n})),this.options?.content&&(p=`${this.options.content}
30728
+ `:""}${" ".repeat(n)}`),Hbn(i,n+1)})}function nVe(){return r=>{Hbn(r),r.first&&(r.first.raws.before="")}}nVe.postcssPlugin="panda-prettify";var nsr=[":link",":visited",":focus-within",":focus",":focus-visible",":hover",":active"],Nbn=r=>nsr.findIndex(i=>r.trim().includes(i))+1;function i7t(){let r=n=>{let i=[],l=[],p=[];n.each(m=>{switch(m.type){case"rule":{m.first?.type==="atrule"?p.push(m):l.push(m);break}case"atrule":{p.push(m);break}default:i.push(m)}}),l.sort((m,g)=>{let b=m.selectors.length?m.selectors[0]:m.selector,E=g.selectors.length?g.selectors[0]:g.selector;return Nbn(b)-Nbn(E)}),n.nodes=[...i,...l,...p],n.nodes.forEach(m=>{"nodes"in m&&r(m)})};return r}i7t.postcssPlugin="panda-sort-css";var Jbn=/(!?\(\s*min(-device-)?-width)(.|\n)+\(\s*max(-device)?-width/i,rsr=/\(\s*min(-device)?-width/i,qbn=/(!?\(\s*max(-device)?-width)(.|\n)+\(\s*min(-device)?-width/i,isr=/\(\s*max(-device)?-width/i,J8t=ket(Jbn,qbn,rsr),Rbn=ket(qbn,Jbn,isr),Kbn=/(!?\(\s*min(-device)?-height)(.|\n)+\(\s*max(-device)?-height/i,osr=/\(\s*min(-device)?-height/i,Xbn=/(!?\(\s*max(-device)?-height)(.|\n)+\(\s*min(-device)?-height/i,ssr=/\(\s*max(-device)?-height/i,q8t=ket(Kbn,Xbn,osr),Lbn=ket(Xbn,Kbn,ssr),Mbn=/print/i,Fbn=/^print$/i,eVe=Number.MAX_VALUE;function Obn(r){let n=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(r);if(n===null&&(J8t(r)||q8t(r))&&(n=/(\d)/.exec(r)),n==="0")return 0;if(n===null)return eVe;let i=n[1];switch(n[2]){case"ch":i=parseFloat(i)*8.8984375;break;case"em":case"rem":i=parseFloat(i)*16;break;case"ex":i=parseFloat(i)*8.296875;break;case"px":i=parseFloat(i);break}return+i}function ket(r,n,i){return function(l){return r.test(l)?!0:n.test(l)?!1:i.test(l)}}function asr(r,n){let i=Mbn.test(r),l=Fbn.test(r),p=Mbn.test(n),m=Fbn.test(n);return i&&p?!l&&m?1:l&&!m?-1:r.localeCompare(n):i?1:p?-1:null}function lsr(r={}){let{unitlessMqAlwaysFirst:n}=r;return function(l,p){let m=asr(l,p);if(m!==null)return m;let g=J8t(l)||q8t(l),b=Rbn(l)||Lbn(l),E=J8t(p)||q8t(p),I=Rbn(p)||Lbn(p);if(n&&(!g&&!b||!E&&!I))return!g&&!b&&!E&&!I?l.localeCompare(p):!E&&!I?1:-1;{if(g&&I)return-1;if(b&&E)return 1;let R=Obn(l),V=Obn(p);return R===eVe&&V===eVe?l.localeCompare(p):R===eVe?1:V===eVe?-1:R>V?b?-1:1:R<V?b?1:-1:l.localeCompare(p)}}}var csr=lsr();function o7t(){let r=n=>{n.nodes.sort((i,l)=>H_({a:i,b:l}).with({a:{type:"atrule",name:"media"},b:{type:"atrule",name:"media"}},({a:p,b:m})=>csr(p.params,m.params)).with({a:{type:"atrule",name:"media"},b:FS.any},()=>1).with({a:FS.any,b:{type:"atrule",name:"media"}},()=>-1).otherwise(()=>0)),n.nodes.forEach(i=>{"nodes"in i&&r(i)})};return r}o7t.postcssPlugin="panda-sort-mq";function wet(r,n={}){let{minify:i=!1}=n,l=[(0,Aet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function usr(r,n={}){let{token:i}=n,{css:l}=hB([tsr(i)]).process(r);return l}function Iet(r,n={}){let{minify:i=!1}=n,l=[(0,Aet.default)(),r7t(),o7t(),(0,$8t.default)(),(0,e7t.default)(),i7t(),(0,Z8t.default)()];i?l.push((0,n7t.default)(),(0,t7t.default)()):l.push(nVe());let{css:p}=hB(l).process(r);return p}function Ybn(r){let{css:n}=hB([(0,Aet.default)(),nVe()]).process(r);return n}function Qbn(r){let{css:n}=hB([nVe()]).process(r);return n}function Pet(r,n){let i=tVe(r),l=tVe(n),p=i.nodes.filter(hre({type:"atrule",name:"layer",params:"utilities"}));return l.walkAtRules("layer",m=>{m.params==="utilities"&&p.forEach(g=>{m.append(g.nodes)})}),Iet(l)}var YM={classNames:new Map,styles:new Map,nodes:new Map,slots:new Map},s7t=class{constructor(r={},n){this.recipes=r,this.context=n,this.assignRules()}rules=new Map;getPropKey=(r,n,i)=>`${r} (${n} = ${i})`;get separator(){return this.context.utility.separator??"_"}getClassName=(r,n,i)=>`${r}--${n}${this.separator}${i}`;save=()=>{for(let[r,n]of Object.entries(this.recipes))if(LSe(n)){let i=qze(n),l=new Map;Object.entries(i).forEach(([p,m])=>{let g=this.getSlotKey(r,p);this.normalize(g,m),l.set(g,m)}),this.assignRecipe(r,n),YM.slots.set(r,l)}else this.assignRecipe(r,this.normalize(r,n))};assignRecipe=(r,n)=>{let i=Object.keys(n.variants??{}),l=n.jsx??[t6(r)],p=Jze(l);YM.nodes.set(r,{...this.getNames(r),jsx:l,type:"recipe",variantKeys:i,variantKeyMap:Object.fromEntries(Object.entries(n.variants??{}).map(([m,g])=>[m,Object.keys(g)])),match:p,config:n,splitProps:m=>F4t(m,i),props:i})};getSlotKey=(r,n)=>`${r}__${n}`;assignRules=()=>{if(this.context)for(let[r,n]of Object.entries(this.recipes))LSe(n)?n.slots.forEach(i=>{let l=this.getSlotKey(r,i);this.rules.set(l,this.createRule(l,!0))}):this.rules.set(r,this.createRule(r))};isEmpty=()=>YM.nodes.size===0;getNames=zb(r=>({baseName:r,upperName:t6(r),dashName:Uze(r),jsxName:t6(r)}));getRecipe=zb(r=>YM.nodes.get(r));getConfig=zb(r=>this.recipes[r]);find=zb(r=>this.details.find(n=>n.match.test(r)));filter=zb(r=>this.details.filter(n=>n.match.test(r)));get details(){return Array.from(YM.nodes.values())}splitProps=(r,n)=>{let i=this.details.find(l=>l.baseName===r);return i?i.splitProps(n):[{},n]};normalize=(r,n)=>{let{className:i,jsx:l=[t6(r)],base:p={},variants:m={},defaultVariants:g={},description:b="",compoundVariants:E=[]}=n,I={...n,jsx:l,className:i,description:b,base:{},variants:{},defaultVariants:g,compoundVariants:E};I.base=this.serialize(p),YM.styles.set(r,I.base),YM.classNames.set(r,i);for(let[R,V]of Object.entries(m))for(let[X,ue]of Object.entries(V)){let De=this.getPropKey(r,R,X),we=this.getClassName(n.className,R,X),We=this.serialize(ue);YM.styles.set(De,We),YM.classNames.set(De,we),(0,$bn.default)(I.variants,{[R]:{[X]:We}})}return I};serialize=r=>this.context?Q8t(r,this.context):r;getTransform=r=>(n,i)=>{if(i==="__ignore__")return{layer:"_base",className:YM.classNames.get(r),styles:YM.styles.get(r)??{}};let l=this.getPropKey(r,n,i);return{className:YM.classNames.get(l),styles:YM.styles.get(l)??{}}};createRule=(r,n)=>{if(!this.context)throw new Error("Can't create a rule without a context");let i=new Tet({...this.context,transform:this.getTransform(r)}),l=this.context.layers.recipes;return i.layer=n?`${l}.slots`:l,i};check=(r,n,i)=>{let{defaultVariants:l={},base:p={}}=r,m=Object.assign({[n]:"__ignore__"},l,i),g=Object.keys(m);return{styles:m,isEmpty:g.length===1&&Object.keys(p).length===0}};process=(r,n)=>{let{styles:i}=n,l=this.getRecipe(r);if(!l)return;let p=YM.slots.get(r);if(p)p.forEach((m,g)=>{let{isEmpty:b,styles:E}=this.check(m,g,i);if(b)return;this.rules.get(g)?.process({styles:E})});else{let{isEmpty:m,styles:g}=this.check(l.config,l.config.className,i);if(m)return;this.rules.get(r)?.process({styles:g})}};toCss=()=>this.context?this.context.root.toString():""},psr=/\s&/g;function eSn(r){let n=new Set;(0,Zbn.default)(l=>{l.each(p=>{let m=H8t(p.toString());H_(m).with({type:"parent-nesting"},()=>{n.add(p.toString().replace(psr,"").trim())}).otherwise(()=>{})})}).processSync(r);let i=Array.from(n).join(", ").trim();return n.size>1?`:where(${i})`:i}var Zhi=Eet(),V8t=(r,n)=>r.breakpoints.includes(n)?n:`_${n}`;function tSn(r){let{css:n=[],recipes:i={}}=r,l={css:[],recipes:[]};return p=>(n.forEach(m=>{let g=m.conditions||[];m.responsive&&g.push(...p.breakpoints),Object.entries(m.properties).forEach(([b,E])=>{E.flatMap(R=>R==="*"?p.getPropertyKeys(b):R).forEach(R=>{let V=g.reduce((X,ue)=>({base:R,...X,[V8t(p,ue)]:R}),{});l.css.push({[b]:g.length?V:R})})})}),Object.entries(i).forEach(([m,g])=>{g.forEach(b=>{let{__base:E,...I}=p.getRecipeKeys(m),R=b==="*",{conditions:V=[],responsive:X=R,...ue}=R?I:b;if(X&&V.push(...p.breakpoints),E){let De=V.reduce((we,We)=>({base:E,...we,[V8t(p,We)]:E}),{});l.recipes.push({[m]:V.length?De:E})}Object.entries(ue).forEach(([De,we])=>{if(!Array.isArray(we))return;we.flatMap(Ne=>Ne==="*"?I[De]:Ne).forEach(Ne=>{let Me=V.reduce((Ct,Rt)=>({base:Ne,...Ct,[V8t(p,Rt)]:Ne}),{});l.recipes.push({[m]:{[De]:V.length?Me:Ne}})})})})}),l)}var nSn=class{constructor(r,n){this.context=r,this.options=n;let{recipes:i={},slotRecipes:l={}}=n??{},p=Object.assign({},i,l);this.recipes=new s7t(p,r)}recipes;processGlobalCss=r=>{let{conditions:n,utility:i}=this.context,l=Kor(r,{conditions:n,utility:i}),p=hB.atRule({name:"layer",params:this.context.layers.base,nodes:[l]});this.context.root.append(p)};processSelectorObject(r,n){let i=t5(n),{nodes:l}=tVe(i);if(l.length===0)return;let p=hB.rule({selector:r,nodes:i.root.nodes});this.context.root.append(p)}processObject(r){let i=t5(r).root;this.context.root.append(i)}processAtomic=(...r)=>{let n=new Tet(this.context);r.forEach(i=>{i&&n.process({styles:i})})};processStyleProps=r=>{let{css:n,...i}=r;this.processAtomic(i,n)};processCompoundVariants=r=>{r.compoundVariants?.forEach(n=>{if(LSe(r))for(let i of Object.values(n.css))this.processAtomic(i);else this.processAtomic(n.css)})};processRecipe=(r,n,i)=>{this.recipes.process(r,{styles:i}),this.processCompoundVariants(n)};processAtomicSlotRecipe=r=>{let n=qze(r);for(let i of Object.values(n))this.processAtomicRecipe(i)};processAtomicRecipe=r=>{let{base:n={},variants:i={},compoundVariants:l=[]}=r;this.processAtomic(n);for(let p of Object.values(i))for(let m of Object.values(p))this.processAtomic(m);l.forEach(p=>{this.processAtomic(p.css)})};toCss=({optimize:r=!1,minify:n}={})=>{try{let{conditions:{breakpoints:i},utility:l}=this.context;i.expandScreenAtRule(this.context.root),usr(this.context.root,{token:l.getToken});let p=this.context.root.toString();return r&&(p=wet(p,{minify:n})),this.options?.content&&(p=`${this.options.content}
30729
30729
 
30730
30730
  ${p}`),r?Iet(p,{minify:n}):p}catch(i){throw i instanceof o$t&&(P1.error("sheet",i.message),i.plugin&&P1.error("sheet",`By plugin: ${i.plugin}:`),i.source&&(P1.error("sheet",`Line ${i.line}:${i.column}, in:`),P1.error("sheet",i.source))),i}};append=(...r)=>{this.context.root.append(...r)};prepend=(...r)=>{this.context.root.prepend(...r)}},rSn=class{tokens;classNames=new Map;styles=new Map;shorthands=new Map;types=new Map;propertyKeys=new Map;config={};customValues=new Map;transforms=new Map;configs=new Map;separator="_";prefix="";strictTokens=!1;constructor(r){let{tokens:n,config:i={},separator:l,prefix:p,shorthands:m,strictTokens:g}=r;this.tokens=n,this.config=i,l&&(this.separator=l),p&&(this.prefix=p),g&&(this.strictTokens=g),m&&this.assignShorthands(),this.assignColorPaletteProperty(),this.assignProperties(),this.assignPropertyTypes()}register=(r,n)=>{this.assignProperty(r,n),this.assignPropertyType(r,n),this.config[r]=n};assignShorthands=()=>{for(let[r,n]of Object.entries(this.config)){let{shorthand:i}=this.normalize(n)??{};if(!i)continue;(Array.isArray(i)?i:[i]).forEach(p=>{this.shorthands.set(p,r)})}};assignColorPaletteProperty=()=>{let r=this.tokens.colorPalettes;this.config.colorPalette={values:Object.keys(r),transform(n){return r[n]}}};resolveShorthand=r=>this.shorthands.get(r)??r;get hasShorthand(){return this.shorthands.size>0}get isEmpty(){return Object.keys(this.config).length===0}entries=()=>Object.entries(this.config).filter(([,n])=>!!n?.className).map(([n,i])=>[n,i.className]);getPropKey=(r,n)=>`(${r} = ${n})`;hash=(r,n)=>`${r}${this.separator}${n}`;getPropertyValues=(r,n)=>{let{values:i}=r,l=p=>{let m=n?.(p);return m?{[m]:m}:void 0};return X7(i)?l?.(i)??this.tokens.getValue(i)??{}:Array.isArray(i)?i.reduce((p,m)=>(p[m]=m,p),{}):w4t(i)?i(n?l:this.getToken.bind(this)):i};getToken=r=>this.tokens.get(r);normalize=r=>r;assignProperty=(r,n)=>{let i=this.normalize(n);if(this.setTransform(r,i?.transform),!i)return;this.configs.set(r,i);let l=this.getPropertyValues(i);if(l)for(let[p,m]of Object.entries(l)){let g=this.getPropKey(r,p);this.setStyles(r,m,p,g),this.setClassName(r,p)}};assignProperties=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignProperty(r,n)};getPropertyKeys=r=>{let n=this.propertyKeys.get(r);return n?Array.from(n):[]};assignPropertyType=(r,n)=>{let i=this.normalize(n);if(!i)return;let l=this.getPropertyValues(i,m=>`type:Tokens["${m}"]`);if(typeof l=="object"&&l.type){this.types.set(r,new Set([`type:${l.type}`]));return}if(l){let m=new Set(Object.keys(l));this.types.set(r,m),this.propertyKeys.set(r,m)}let p=this.types.get(r)??new Set;!this.strictTokens&&i.property&&this.types.set(r,p.add(`CssProperties["${i.property}"]`))};assignPropertyTypes=()=>{for(let[r,n]of Object.entries(this.config))n&&this.assignPropertyType(r,n)};getTypes=()=>{let r=new Map;for(let[n,i]of this.types.entries()){if(i.size===0){r.set(n,["string"]);continue}let l=Array.from(i).map(p=>p.startsWith("CssProperties")?p:p.startsWith("type:")?p.replace("type:",""):JSON.stringify(p));r.set(n,l)}return r};defaultTransform=zb((r,n)=>{if(n.startsWith("--")){let l=this.tokens.getTokenVar(r);r=typeof l=="string"?l:r}return{[n]:r}});setTransform=(r,n)=>{let l=n??(p=>this.defaultTransform(p,r));return this.transforms.set(r,l),this};setStyles=(r,n,i,l)=>{l=l??this.getPropKey(r,n);let p=E=>this.defaultTransform(E,r),m=this.transforms.get(r)??p,g=Object.assign(this.getToken.bind(this),{raw:E=>this.tokens.getByName(E)}),b=m(n,{token:g,raw:i});return this.styles.set(l,b??{}),this};formatClassName=r=>[this.prefix,r].filter(Boolean).join("-");setClassName=(r,n)=>{let i=this.getPropKey(r,n),l=this.configs.get(r),p;return!l||!l.className?p=this.hash(dCe(r),n):p=this.hash(l.className,n),this.classNames.set(i,p),this};isProperty=r=>this.configs.has(r);getOrCreateClassName=(r,n)=>((l,p)=>{let m=this.getPropKey(l,p);return this.classNames.has(m)||(this.isProperty(l)&&this.customValues.set(l,p),this.setClassName(l,p)),this.classNames.get(m)})(r,n);getOrCreateStyle=(r,n)=>{let i=this.getPropKey(r,n);return this.styles.get(i)??this.setStyles(r,n,n,i),this.styles.get(i)};transform=(r,n)=>{if(n==null)return{className:"",styles:{}};let i=this.resolveShorthand(r);return cre({layer:this.configs.get(i)?.layer,className:this.getOrCreateClassName(i,Hze(n)),styles:this.getOrCreateStyle(i,n)})};keys=()=>{let r=Array.from(this.shorthands.keys()),n=Object.keys(this.config);return[...r,...n]};getPropShorthandsMap=()=>{let r=new Map;return this.shorthands.forEach((n,i)=>{let l=r.get(n)??[];l.push(i),r.set(n,l)}),r};getPropShorthands=r=>this.getPropShorthandsMap().get(r)??[]};re();re();var QVe=_d(V8(),1);var jp=_d(V8(),1);re();var lfr=_d(SWt(),1),U8=_d(STn(),1);re();var l5=_d(require("path"),1),ETn=_d(require("os"),1),zpr=/(^\/\w:\/)|(^\/\w:\\)/,xTn=l5.default.parse(process.cwd()).root,DTn=/^\w:/,jpr=ETn.default.platform();function Vpr(r){return/\\/.test(r)||DTn.test(r)}function TTn(r){let n=/^\\\\\?\\/.test(r),i=/[^\u0000-\u0080]+/.test(r);return n||i?r:r.replace(/\\/g,"/")}function Upr(r){let n=typeof r=="string"?r:r.pathname;return n.startsWith("file:")&&(n.startsWith("file://")&&(n=n.slice(7)),zpr.test(n)&&(n=n.slice(1))),xWt(n)}function ATn(r){return[...r].some(n=>typeof n=="string"&&Vpr(n))?l5.default.win32:l5.default}function zre(r,n){return TTn(ATn(n)[r](...n))}function kTn(r,n){return l5.default.posix[r](...[...n].map(i=>typeof i=="string"?TTn(i):i))}function Hpr(r){return kTn("parse",arguments)}function Jpr(r){return kTn("extname",arguments)}function qpr(r){return ATn(arguments).isAbsolute(r)}function Kpr(...r){return zre("join",arguments)}function xWt(r){let n=zre("normalize",arguments);return r.startsWith("./")&&!n.startsWith("./")?"./"+n:n}function Xpr(r,n){return zre("relative",arguments)}function Ypr(...r){return zre("resolve",arguments)}function Qpr(r){return zre("dirname",arguments)}function $pr(r,n){return zre("basename",arguments)}function Zpr(r){return zre("format",arguments)}function efr(r){return zre("toNamespacedPath",arguments)}function tfr(r){return jpr!=="win32"||DTn.test(r)||r.startsWith(xTn)||!l5.default.win32.isAbsolute(l5.default.win32.normalize(r))?r:l5.default.win32.join(xTn,r)}var EWt={sep:l5.default.posix.sep,delimiter:l5.default.posix.delimiter,parse:Hpr,isAbsolute:qpr,join:Kpr,extname:Jpr,normalize:xWt,relative:Xpr,resolve:Ypr,dirname:Qpr,basename:$pr,format:Zpr,toNamespacedPath:efr,get posix(){return this},get win32(){return wTn}},wTn={...l5.default.win32,get posix(){return EWt},get win32(){return this}},nfr=l5.default,n0e={...EWt,posix:EWt,win32:wTn,native:nfr,includeDriveLetter:tfr,urlToFilename:Upr};var VTn=require("module"),UTn=require("util"),HTn=_d(MTn(),1),xst=()=>{let r={Infinity:1/0,NaN:NaN,undefined:void 0,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Array,Boolean,Date,Error,EvalError,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError,JSON,Math,escape,unescape,eval,Function};try{r.AggregateError=AggregateError}catch{}try{r.FinalizationRegistry=FinalizationRegistry}catch{}try{r.WeakRef=WeakRef}catch{}try{r.BigInt=BigInt}catch{}try{r.Reflect=Reflect}catch{}try{r.WeakMap=WeakMap}catch{}try{r.WeakSet=WeakSet}catch{}try{r.Set=Set}catch{}try{r.Map=Map}catch{}try{r.Uint8Array=Uint8Array}catch{}try{r.BigUint64Array=BigUint64Array}catch{}try{r.BigInt64Array=BigInt64Array}catch{}try{r.Atomics=Atomics}catch{}try{r.SharedArrayBuffer=SharedArrayBuffer}catch{}try{r.WebAssembly=WebAssembly}catch{}try{r.Uint8ClampedArray=Uint8ClampedArray}catch{}try{r.Uint16Array=Uint16Array}catch{}try{r.Uint32Array=Uint32Array}catch{}try{r.Intl=Intl}catch{}try{r.Int8Array=Int8Array}catch{}try{r.Int16Array=Int16Array}catch{}try{r.Int32Array=Int32Array}catch{}try{r.Float32Array=Float32Array}catch{}try{r.Float64Array=Float64Array}catch{}try{r.ArrayBuffer=ArrayBuffer}catch{}try{r.DataView=DataView}catch{}try{r.isFinite=isFinite}catch{}try{r.Promise=Promise}catch{}try{r.Proxy=Proxy}catch{}try{r.Symbol=Symbol}catch{}return r};function Vre(r,n,i){let l={};return[r,n??{},i??{}].forEach(g=>Object.defineProperties(l,Object.getOwnPropertyDescriptors(g))),l}function hst(r,n){let i={};return Object.getOwnPropertyNames(r).forEach(l=>{l in n||Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(r,l))}),i}var JTn=(0,VTn.createRequire)(Ye),cfr=()=>{let r=xst(),n=Vre(hst(global,r),r,{require:JTn,process,__dirname:i=>n0e.native.normalize(n0e.native.dirname(i)),__filename:i=>n0e.native.normalize(i)});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function ufr(r){let n=0;return{requestAnimationFrame:function(m){let g=new Date().getTime(),b=Math.max(0,16-(g-n)),E=r.setTimeout(function(){m(g+b)},b);return n=g+b,E},cancelAnimationFrame:function(m){clearTimeout(m)}}}var dst;function pfr(r=!1){return dst??(dst=ffr("evaluate against a browser environment",r,"jsdom"))}function ffr(r,n,i=r){try{return JTn(i)}catch{if(n)throw new ReferenceError(`You must install the peer dependency '${i}' in order to ${r} with ts-evaluator`);return}}var dfr=()=>{let{JSDOM:r}=pfr(!0),{window:n}=new r("",{url:"https://example.com"}),i=xst(),l=ufr(n),p=Vre(hst(n,i),hst(l,n),i);return Object.defineProperties(p,{window:{get(){return p}},globalThis:{get(){return p}}}),p},B1="[return]",ZL="[break]",t4="[continue]",n4="this",r0e="super",mfr=()=>{let r=xst(),n=Vre(hst(global,r),r,{import:{meta:{url:i=>{let l=n0e.normalize(i);return`file:///${l.startsWith("/")?l.slice(1):l}`}}},process});return Object.defineProperties(n,{global:{get(){return n}},globalThis:{get(){return n}}}),n};function qTn(r,n){return n.isDeclaration(r)}function _fr(r,n){return n.isPropertyAccessExpression(r)?!1:"name"in r&&r.name!=null}function KTn(r,n){return r.flags!==n.NodeFlags.Const&&r.flags!==n.NodeFlags.Let}var r4=class extends Error{constructor({node:n,environment:i,message:l}){super(l),Error.captureStackTrace(this,this.constructor),this.node=n,this.environment=i}};function Uee(r){return typeof r=="object"&&r!=null&&r instanceof r4}var gst=class extends r4{constructor({path:n,node:i,environment:l,message:p=`Module '${n}' could not be resolved'`}){super({message:p,environment:l,node:i}),this.path=n}},KI=class extends r4{constructor({node:n,environment:i,typescript:l,message:p=`Unexpected Node: '${l.SyntaxKind[n.kind]}'`}){super({message:p,node:n,environment:i})}};function hfr(r){var n;let{node:i,evaluate:l,environment:p,typescript:m,throwError:g}=r,b=m.getNameOfDeclaration(i);if(b!=null)return m.isIdentifier(b)||!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,b)||m.isStringLiteralLike(b)?b.text:m.isNumericLiteral(b)?Number(b.text):m.isComputedPropertyName(b)?l.expression(b.expression,r):g(new KI({node:b,environment:p,typescript:m}))}function XTn(r,n){let{node:i,typescript:l}=n;if(!l.isExternalModuleNameRelative(r))return r;let p=i.getSourceFile().fileName;return n0e.join(n0e.dirname(p),r)}function Bst(r){var n,i,l,p,m;let{node:g,typescript:b,throwError:E,environment:I}=r,R=hfr(r);if(Uee(R))return R;if(R==null)return E(new KI({node:g,environment:I,typescript:b}));let V=ED(g,r.environment,R);if(V!=null&&V.literal!=null)return V.literal;let X=ED(g,r.environment,"require").literal,ue=b.isModuleDeclaration(g)?g:gfr(g,b.SyntaxKind.ModuleDeclaration,b);if(ue==null)return E(new KI({node:g,environment:I,typescript:b}));let De=ue.name.text,we=XTn(De,r);try{let We=(p=(i=(n=r.moduleOverrides)===null||n===void 0?void 0:n[De])!==null&&i!==void 0?i:(l=r.moduleOverrides)===null||l===void 0?void 0:l[we])!==null&&p!==void 0?p:X(we);return b.isModuleDeclaration(g)?We:(m=We[R])!==null&&m!==void 0?m:We}catch(We){return Uee(We)?We:E(new gst({node:ue,environment:I,path:we}))}}function mst(r,n,i){var l,p,m,g,b,E;let{node:I,throwError:R,environment:V}=i,X=ED(I,i.environment,"require").literal,ue=XTn(n,i);try{let De=(g=(p=(l=i.moduleOverrides)===null||l===void 0?void 0:l[n])!==null&&p!==void 0?p:(m=i.moduleOverrides)===null||m===void 0?void 0:m[ue])!==null&&g!==void 0?g:X(ue);return(E=(b=De[r])!==null&&b!==void 0?b:De.default)!==null&&E!==void 0?E:De}catch(De){return Uee(De)?De:R(new gst({node:I,environment:V,path:ue}))}}function gfr(r,n,i){let l=r;for(;;){if(l=l.parent,l==null)return;if(l.kind===n){let p=i.getCombinedNodeFlags(l);if(!((p&i.NodeFlags.Namespace)!==0||(p&i.NodeFlags.NestedNamespace)!==0))return l}if(i.isSourceFile(l))return}}function GWt(r,n,i,l=new WeakSet){let{typescript:p}=i,m;function g(E,I=0){var R,V,X,ue,De;if(l.has(E))return!1;if(l.add(E),p.isIdentifier(E)){if(E.text===n)return m=E,!0}else{if(p.isShorthandPropertyAssignment(E))return!1;if(p.isPropertyAssignment(E))return!1;if(p.isImportDeclaration(E)){if(E.importClause!=null){if(E.importClause.name!=null&&g(E.importClause.name)){let we=E.moduleSpecifier;if(we!=null&&p.isStringLiteralLike(we))return m=mst(n,we.text,i),!0}else if(E.importClause.namedBindings!=null&&g(E.importClause.namedBindings))return!0}return!1}else if(p.isImportEqualsDeclaration(E)){if(E.name!=null&&g(E.name)){if(p.isIdentifier(E.moduleReference))return m=GWt(E.parent,E.moduleReference.text,i,l),m!=null;if(p.isQualifiedName(E.moduleReference))return!1;{let we=E.moduleReference.expression;if(we!=null&&p.isStringLiteralLike(we))return m=mst(n,we.text,i),!0}}return!1}else if(p.isNamespaceImport(E)){if(g(E.name)){let we=(V=(R=E.parent)===null||R===void 0?void 0:R.parent)===null||V===void 0?void 0:V.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=mst(n,we.text,i),!0)}}else if(p.isNamedImports(E)){for(let we of E.elements)if(g(we))return!0}else if(p.isImportSpecifier(E)){if(g(E.name)){let we=(De=(ue=(X=E.parent)===null||X===void 0?void 0:X.parent)===null||ue===void 0?void 0:ue.parent)===null||De===void 0?void 0:De.moduleSpecifier;return we==null||!p.isStringLiteralLike(we)?!1:(m=mst(n,we.text,i),!0)}}else if(p.isSourceFile(E)){for(let we of E.statements)if(g(we))return!0}else if(p.isVariableStatement(E)){for(let we of E.declarationList.declarations)if(g(we)&&(KTn(E.declarationList,p)||I<1))return!0}else if(p.isBlock(E)){for(let we of E.statements)if(g(we,I+1))return!0}else if(_fr(E,p)&&E.name!=null&&g(E.name))return m=E,!0}return!1}return p.findAncestor(r,E=>g(E))?m:void 0}function FTn(r,n){let i=r;for(;;){if(i=i.parent,i==null)return;if(qTn(i,n)||n.isSourceFile(i))return i}}function Bfr(r){return r!=null&&(typeof r=="function"||typeof r=="object")}function OTn(r){return Bfr(r)}function zWt(r,n){switch(r){case Function.prototype.bind:case Function.prototype.call:case Function.prototype.apply:return!0}if(n!=null){let i=ED(void 0,n,"Function").literal;switch(r){case i.prototype.bind:case i.prototype.call:case i.prototype.apply:return!0}}return!1}var Vee=class{constructor(n){this.intent=n}construct(n,i){return this.intent(n,i)}};function YTn(r){return typeof r=="object"&&r!=null&&r instanceof Vee}function Est(r,n,i){return YTn(i)?n.throwError(i.construct(r,n)):i}function AWt(r){return r.map(n=>typeof n=="symbol"?n.description:n).join(".")}function WTn({hook:r,item:n,scope:i,policy:l}){function p(m,g){let b=(E,I)=>{if(E!==!1)return YTn(E)||Uee(E)?E:I()};return!OTn(g)||zWt(g)?g:new Proxy(g,{construct(E,I,R){return b(r({kind:"__$$_PROXY_CONSTRUCT",policy:l,newTarget:R,argArray:I,target:E,path:AWt(m)}),()=>Reflect.construct(E,I,R))},apply(E,I,R=[]){return b(r({kind:"__$$_PROXY_APPLY",policy:l,thisArg:I,argArray:R,target:E,path:AWt(m)}),()=>Reflect.apply(E,I,R))},get(E,I,R){let V=[...m,I];return b(r({kind:"__$$_PROXY_GET",policy:l,path:AWt(V),target:E}),()=>{let X=Reflect.get(E,I,R),ue=Reflect.getOwnPropertyDescriptor(g,I);return ue!=null&&ue.configurable===!1&&ue.writable===!1?g[I]:p(V,X)})}})}return OTn(n)?p([i],n):n}function GTn(r,n){switch(r){case"__$$_PROXY_GET":return`get ${n}`;case"__$$_PROXY_APPLY":return`${n}(...)`;case"__$$_PROXY_CONSTRUCT":return`new ${n}(...)`}}var QTn={"node:http2":"http2",http2:{connect:{__$$_PROXY_APPLY:!0},createSecureServer:{__$$_PROXY_APPLY:!0},createServer:{__$$_PROXY_APPLY:!0}},"node:https":"https",https:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:http":"http",http:{createServer:{__$$_PROXY_APPLY:!0},request:{__$$_PROXY_APPLY:!0},get:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},ClientRequest:{__$$_PROXY_CONSTRUCT:!0},globalAgent:{destroy:{__$$_PROXY_APPLY:!0}},Agent:{__$$_PROXY_CONSTRUCT:!0}},"node:dgram":"dgram",dgram:{createSocket:{__$$_PROXY_APPLY:!0}},"node:dns":"dns",dns:{lookup:{__$$_PROXY_APPLY:!0},lookupService:{__$$_PROXY_APPLY:!0},resolve:{__$$_PROXY_APPLY:!0},resolve4:{__$$_PROXY_APPLY:!0},resolve6:{__$$_PROXY_APPLY:!0},resolveAny:{__$$_PROXY_APPLY:!0},resolveCname:{__$$_PROXY_APPLY:!0},resolveMx:{__$$_PROXY_APPLY:!0},resolveNaptr:{__$$_PROXY_APPLY:!0},resolveNs:{__$$_PROXY_APPLY:!0},resolvePtr:{__$$_PROXY_APPLY:!0},resolveSoa:{__$$_PROXY_APPLY:!0},resolveSrv:{__$$_PROXY_APPLY:!0},resolveTxt:{__$$_PROXY_APPLY:!0},reverse:{__$$_PROXY_APPLY:!0},Resolver:{__$$_PROXY_CONSTRUCT:!0}},"node:net":"net",net:{createServer:{__$$_PROXY_APPLY:!0},createConnection:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0}},"node:tls":"tls",tls:{createServer:{__$$_PROXY_APPLY:!0},createSecureContext:{__$$_PROXY_APPLY:!0},connect:{__$$_PROXY_APPLY:!0},Server:{__$$_PROXY_CONSTRUCT:!0},TLSSocket:{__$$_PROXY_CONSTRUCT:!0}}},yfr={...QTn,Math:{random:{__$$_PROXY_APPLY:!0}},Date:{now:{__$$_PROXY_APPLY:!0},__$$_PROXY_CONSTRUCT:(...r)=>r.length===0&&!(r[0]instanceof Date)}};function Cfr(r,n){return typeof r==typeof n||typeof r=="function"}function vfr(r){return typeof r=="function"}function i0e(r,n,i){let l=i.path.split(".");return wWt(r,n,i,l)}function wWt(r,n,i,l){let[p,...m]=l;if(p==null)return!1;let g=r[p];if(g==null)return!1;if(typeof g=="string")return wWt(r,n,i,[g,...m]);if(Cfr(g,n))return zTn(g,n,i);{let b=g[i.kind];return b!=null?zTn(b,n,i):wWt(g,n,i,m)}}function zTn(r,n,i){if(vfr(r)){let l=i;return l.argArray!=null&&r(...l.argArray)===n}else return r===n}function bfr(r){return i0e(yfr,!0,r)}var Ure=class extends r4{constructor({violation:n,node:i,environment:l,message:p}){super({node:i,environment:l,message:`[${n}]: ${p}`}),this.violation=n}},IWt=class extends Ure{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is nondeterministic. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},$Tn={"node:fs":"fs",fs:{readFile:{__$$_PROXY_APPLY:"read"},readFileSync:{__$$_PROXY_APPLY:"read"},readdir:{__$$_PROXY_APPLY:"read"},readdirSync:{__$$_PROXY_APPLY:"read"},read:{__$$_PROXY_APPLY:"read"},readSync:{__$$_PROXY_APPLY:"read"},exists:{__$$_PROXY_APPLY:"read"},existsSync:{__$$_PROXY_APPLY:"read"},access:{__$$_PROXY_APPLY:"read"},accessSync:{__$$_PROXY_APPLY:"read"},close:{__$$_PROXY_APPLY:"read"},closeSync:{__$$_PROXY_APPLY:"read"},createReadStream:{__$$_PROXY_APPLY:"read"},stat:{__$$_PROXY_APPLY:"read"},statSync:{__$$_PROXY_APPLY:"read"},watch:{__$$_PROXY_APPLY:"read"},watchFile:{__$$_PROXY_APPLY:"read"},unwatchFile:{__$$_PROXY_APPLY:"read"},realpath:{__$$_PROXY_APPLY:"read"},realpathSync:{__$$_PROXY_APPLY:"read"},fstat:{__$$_PROXY_APPLY:"read"},fstatSync:{__$$_PROXY_APPLY:"read"},createWriteStream:{__$$_PROXY_APPLY:"write"},copyFile:{__$$_PROXY_APPLY:"write"},copyFileSync:{__$$_PROXY_APPLY:"write"},unlink:{__$$_PROXY_APPLY:"write"},unlinkSync:{__$$_PROXY_APPLY:"write"},rmdir:{__$$_PROXY_APPLY:"write"},rmdirSync:{__$$_PROXY_APPLY:"write"},symlink:{__$$_PROXY_APPLY:"write"},symlinkSync:{__$$_PROXY_APPLY:"write"},truncate:{__$$_PROXY_APPLY:"write"},truncateSync:{__$$_PROXY_APPLY:"write"},utimes:{__$$_PROXY_APPLY:"write"},utimesSync:{__$$_PROXY_APPLY:"write"},appendFile:{__$$_PROXY_APPLY:"write"},appendFileSync:{__$$_PROXY_APPLY:"write"},write:{__$$_PROXY_APPLY:"write"},writeSync:{__$$_PROXY_APPLY:"write"},writeFile:{__$$_PROXY_APPLY:"write"},writeFileSync:{__$$_PROXY_APPLY:"write"},chmod:{__$$_PROXY_APPLY:"write"},chmodSync:{__$$_PROXY_APPLY:"write"},chown:{__$$_PROXY_APPLY:"write"},chownSync:{__$$_PROXY_APPLY:"write"},mkdir:{__$$_PROXY_APPLY:"write"},mkdirSync:{__$$_PROXY_APPLY:"write"},rename:{__$$_PROXY_APPLY:"write"},renameSync:{__$$_PROXY_APPLY:"write"},futimes:{__$$_PROXY_APPLY:"write"},futimesSync:{__$$_PROXY_APPLY:"write"},link:{__$$_PROXY_APPLY:"write"},linkSync:{__$$_PROXY_APPLY:"write"},mkdtemp:{__$$_PROXY_APPLY:"write"},open:{__$$_PROXY_APPLY:"write"},openSync:{__$$_PROXY_APPLY:"write"},fchmod:{__$$_PROXY_APPLY:"write"},fchmodSync:{__$$_PROXY_APPLY:"write"},fchown:{__$$_PROXY_APPLY:"write"},fchownSync:{__$$_PROXY_APPLY:"write"},ftruncate:{__$$_PROXY_APPLY:"write"},ftruncateSync:{__$$_PROXY_APPLY:"write"},fsync:{__$$_PROXY_APPLY:"write"},fsyncSync:{__$$_PROXY_APPLY:"write"},fdatasync:{__$$_PROXY_APPLY:"write"},fdatasyncSync:{__$$_PROXY_APPLY:"write"},lchmod:{__$$_PROXY_APPLY:"write"},lchmodSync:{__$$_PROXY_APPLY:"write"}}};function Sfr(r){return i0e($Tn,"read",r)}var yst=class extends Ure{constructor({node:n,environment:i,kind:l,message:p=`${l} operations are in violation of the policy`}){super({violation:"io",message:p,environment:i,node:n}),this.kind=l}};function xfr(r){return i0e($Tn,"write",r)}function Efr(r){return i0e(QTn,!0,r)}var PWt=class extends Ure{constructor({operation:n,node:i,environment:l,message:p=`The operation: '${n}' is performing network activity. That is in violation of the policy`}){super({violation:"deterministic",message:p,node:i,environment:l}),this.operation=n}},ZTn={"node:process":"process",process:{exit:{__$$_PROXY_APPLY:"exit"}},"node:child_process":"child_process",child_process:{__$$_PROXY_APPLY:"spawnChild"},"node:cluster":"cluster",cluster:{Worker:{__$$_PROXY_CONSTRUCT:"spawnChild"}}};function Dfr(r){return i0e(ZTn,"exit",r)}var Cst=class extends Ure{constructor({kind:n,node:i,environment:l,message:p=`${n} operations are in violation of the policy`}){super({violation:"process",message:p,node:i,environment:l}),this.kind=n}};function Tfr(r){return i0e(ZTn,"spawnChild",r)}var Afr={"node:console":"console",console:{__$$_PROXY_APPLY:!0}};function kfr(r){return i0e(Afr,!0,r)}function wfr({policy:r,env:n}){let i=g=>!r.console&&kfr(g)?!1:!r.io.read&&Sfr(g)?new Vee((b,E)=>new yst({...E,node:b,kind:"read"})):!r.io.write&&xfr(g)?new Vee((b,E)=>new yst({...E,node:b,kind:"write"})):!r.process.exit&&Dfr(g)?new Vee((b,E)=>new Cst({...E,node:b,kind:"exit"})):!r.process.exit&&Tfr(g)?new Vee((b,E)=>new Cst({...E,node:b,kind:"spawnChild"})):!r.network&&Efr(g)?new Vee((b,E)=>new PWt({...E,node:b,operation:GTn(g.kind,g.path)})):r.deterministic&&bfr(g)?new Vee((b,E)=>new IWt({...E,node:b,operation:GTn(g.kind,g.path)})):!0,l=Object.entries(Object.getOwnPropertyDescriptors(n)),p=Object.assign({},...l.filter(([,g])=>!("value"in g)).map(([g,b])=>({[g]:b}))),m=Object.assign({},...l.filter(([,g])=>"value"in g).map(([g,b])=>({[g]:g==="require"?new Proxy(b.value,{apply(E,I,R=[]){let[V]=R;return WTn({policy:r,item:Reflect.apply(E,I,R),scope:V,hook:i})}}):WTn({policy:r,item:b.value,scope:g,hook:i})})));return Object.defineProperties(m,{...p})}function qVe(r,n){let[i]=n.split(".");if(U8.default.has(r.env,i))return r.env;if(r.parentEnv!=null)return qVe(r.parentEnv,n)}function NWt(r){return r.preset!=null?r.preset:r.parentEnv!=null?NWt(r.parentEnv):"NONE"}function eAn(r,n,i){let l=FTn(r.startingNode,i),p=FTn(n,i);if(l?.pos===p?.pos)return r;if(r.parentEnv!=null)return eAn(r.parentEnv,n,i)}function ED(r,n,i){let[l]=i.split(".");if(U8.default.has(n.env,l)){let p=U8.default.get(n.env,i);switch(i){case"__dirname":case"__filename":{let m=NWt(n);return(m==="NODE"||m==="NODE_CJS")&&typeof p=="function"&&r!=null?{literal:p(r.getSourceFile().fileName)}:{literal:p}}case"import.meta":{let m=NWt(n);return(m==="NODE_ESM"||m==="BROWSER"||m==="ECMA")&&typeof p=="object"&&p!=null&&typeof p.url=="function"&&r!=null?{literal:{url:p.url(r.getSourceFile().fileName)}}:{literal:p}}default:return{literal:p}}}if(n.parentEnv!=null)return ED(r,n.parentEnv,i)}function cx(r,n,i,...l){return l.some(p=>{let m=ED(r,n,p);return m==null?!1:m.literal===i})}function kWt(r){switch(r){case B1:case ZL:case t4:case n4:case r0e:return!0;default:return!1}}function e_({environment:r,path:n,value:i,reporting:l,node:p,newBinding:m=!1}){let[g]=n.split(".");if(U8.default.has(r.env,g)||m||r.parentEnv==null){if(U8.default.has(r.env,n)&&U8.default.get(r.env,n)===i)return;U8.default.set(r.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})}else{let b=r.parentEnv;for(;b!=null;)if(U8.default.has(b.env,g)){if(U8.default.has(b.env,n)&&U8.default.get(b.env,n)===i)return;U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p});return}else b.parentEnv==null?(U8.default.set(b.env,n,i),l.reportBindings!=null&&!kWt(n)&&l.reportBindings({path:n,value:i,node:p})):b=b.parentEnv}}function Ifr({inputEnvironment:{extra:r,preset:n},startingNode:i,policy:l}){let p;switch(n){case"NONE":p=Vre(r);break;case"ECMA":p=Vre(xst(),r);break;case"NODE":case"NODE_CJS":p=Vre(cfr(),r);break;case"NODE_ESM":p=Vre(mfr(),r);break;case"BROWSER":p=Vre(dfr(),r);break;default:p={};break}return{parentEnv:void 0,preset:n,startingNode:i,env:wfr({policy:l,env:p})}}function tAn(r,n){return r.kind===n.SyntaxKind.TrueKeyword||r.kind===n.SyntaxKind.FalseKeyword}function nAn(r,n){return r.kind===n.SyntaxKind.NullKeyword}function Pfr(r,n){var i;return n.isStringLiteralLike(r)?{success:!0,value:r.text}:tAn(r,n)?{success:!0,value:r.kind===n.SyntaxKind.TrueKeyword}:n.isRegularExpressionLiteral(r)?{success:!0,value:new Function(`return ${r.text}`)()}:n.isNumericLiteral(r)?{success:!0,value:Number(r.text)}:!((i=n.isBigIntLiteral)===null||i===void 0)&&i.call(n,r)?{success:!0,value:BigInt(r.text)}:n.isIdentifier(r)&&r.text==="Infinity"?{success:!0,value:1/0}:n.isIdentifier(r)&&r.text==="NaN"?{success:!0,value:NaN}:n.isIdentifier(r)&&r.text==="null"?{success:!0,value:null}:n.isIdentifier(r)&&r.text==="undefined"?{success:!0,value:void 0}:nAn(r,n)?{success:!0,value:null}:{success:!1}}var RWt=class extends Ure{constructor({ops:n,node:i,environment:l,message:p=`Maximum ops exceeded: ${n}`}){super({violation:"maxOps",message:p,node:i,environment:l}),this.ops=n}};function rAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,throwError:b,getCurrentError:E}=r,I=n??(i.initializer==null?void 0:p.expression(i.initializer,r));if(E()==null){if(I==null&&!g.isIdentifier(i.name))return b(new r4({node:i,environment:l}));p.nodeWithArgument(i.name,I,r),E()==null&&m.push(I)}}function iAn(r,n){return r.kind===n.SyntaxKind.ThisKeyword}function Dst(r,n){return r.kind===n.SyntaxKind.SuperKeyword}function cxe(r){var n,i;let{node:l,evaluate:p,typescript:m}=r;if(m.isIdentifier(l))return l.text;if(!((n=m.isPrivateIdentifier)===null||n===void 0)&&n.call(m,l))return l.text;if(iAn(l,m))return n4;if(Dst(l,m))return r0e;if(m.isParenthesizedExpression(l))return cxe({...r,node:l.expression});if(!((i=m.isTypeAssertionExpression)===null||i===void 0)&&i.call(m,l)||!("isTypeAssertionExpression"in m)&&m.isTypeAssertion(l))return cxe({...r,node:l.expression});if(m.isPropertyAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=cxe({...r,node:l.name});return b==null&&(b=p.expression(l.name,r)),g==null||b==null?void 0:`${g}.${b}`}else if(m.isElementAccessExpression(l)){let g=cxe({...r,node:l.expression});g==null&&(g=p.expression(l.expression,r));let b=p.expression(l.argumentExpression,r);return g==null||b==null?void 0:`${g}.${b}`}else if(m.isFunctionDeclaration(l))return l.name==null?void 0:l.name.text}var LWt=class extends r4{constructor({node:n,environment:i,message:l="'No leftValue could be determined'"}){super({message:l,environment:i,node:n})}};function _st(r,n){var i;return n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?_st(r.expression,n):r}function oAn(r){return r!=null&&typeof r=="object"&&"kind"in r&&"flags"in r&&"pos"in r&&"end"in r}function Nfr(r){var n;let{node:i,environment:l,evaluate:p,logger:m,throwError:g,typeChecker:b,typescript:E,getCurrentError:I}=r,R=p.expression(i.left,r);if(I()!=null)return;let V=p.expression(i.right,r);if(I()!=null)return;let X=cxe({...r,node:i.left}),ue=i.operatorToken.kind;switch(ue){case E.SyntaxKind.AmpersandToken:return R&V;case E.SyntaxKind.AmpersandAmpersandToken:return R&&V;case E.SyntaxKind.AmpersandEqualsToken:case E.SyntaxKind.CaretEqualsToken:case E.SyntaxKind.BarEqualsToken:case E.SyntaxKind.MinusEqualsToken:case E.SyntaxKind.PlusEqualsToken:case E.SyntaxKind.PercentEqualsToken:case E.SyntaxKind.SlashEqualsToken:case E.SyntaxKind.AsteriskEqualsToken:case E.SyntaxKind.AsteriskAsteriskEqualsToken:case E.SyntaxKind.LessThanLessThanEqualsToken:case E.SyntaxKind.GreaterThanGreaterThanEqualsToken:case E.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:case E.SyntaxKind.QuestionQuestionEqualsToken:case E.SyntaxKind.BarBarEqualsToken:case E.SyntaxKind.AmpersandAmpersandEqualsToken:{let De=R;switch(ue){case E.SyntaxKind.AmpersandEqualsToken:De&=V;break;case E.SyntaxKind.CaretEqualsToken:De^=V;break;case E.SyntaxKind.BarEqualsToken:De|=V;break;case E.SyntaxKind.AsteriskEqualsToken:De*=V;break;case E.SyntaxKind.AsteriskAsteriskEqualsToken:De**=V;break;case E.SyntaxKind.LessThanLessThanEqualsToken:De<<=V;break;case E.SyntaxKind.GreaterThanGreaterThanEqualsToken:De>>=V;break;case E.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:De>>>=V;break;case E.SyntaxKind.MinusEqualsToken:De-=V;break;case E.SyntaxKind.PlusEqualsToken:De+=V;break;case E.SyntaxKind.PercentEqualsToken:De%=V;break;case E.SyntaxKind.SlashEqualsToken:De/=V;break;case E.SyntaxKind.QuestionQuestionEqualsToken:De=R??V;break;case E.SyntaxKind.BarBarEqualsToken:R||(De=V);break;case E.SyntaxKind.AmpersandAmpersandEqualsToken:R&&(De=V);break}return X!=null&&e_({...r,path:X,value:De}),De}case E.SyntaxKind.AsteriskToken:return R*V;case E.SyntaxKind.AsteriskAsteriskToken:return R**V;case E.SyntaxKind.BarToken:return R|V;case E.SyntaxKind.BarBarToken:return R||V;case E.SyntaxKind.CaretToken:return R^V;case E.SyntaxKind.CommaToken:return V;case E.SyntaxKind.MinusToken:return R-V;case E.SyntaxKind.PlusToken:return m.logResult(R+V,"BinaryExpression (PlusToken)"),R+V;case E.SyntaxKind.PercentToken:return R%V;case E.SyntaxKind.SlashToken:return R/V;case E.SyntaxKind.EqualsToken:{if(X!=null){let De=_st(i.left,E),we=b?.getSymbolAtLocation(De),We=we?.valueDeclaration;if(We==null&&b==null&&E.isIdentifier(De)){let Me=GWt(De.parent,De.text,r);oAn(Me)&&(We=Me)}let Ne=We==null?l:(n=eAn(l,We,E))!==null&&n!==void 0?n:l;e_({...r,environment:Ne,path:X,value:V}),m.logBinding(X,V,"Assignment")}else return g(new LWt({node:i.left,environment:l}));return V}case E.SyntaxKind.EqualsEqualsToken:return R==V;case E.SyntaxKind.EqualsEqualsEqualsToken:return R===V;case E.SyntaxKind.ExclamationEqualsToken:return R!=V;case E.SyntaxKind.ExclamationEqualsEqualsToken:return R!==V;case E.SyntaxKind.GreaterThanToken:return R>V;case E.SyntaxKind.GreaterThanEqualsToken:return R>=V;case E.SyntaxKind.LessThanToken:return R<V;case E.SyntaxKind.LessThanEqualsToken:return R<=V;case E.SyntaxKind.InKeyword:return R in V;case E.SyntaxKind.QuestionQuestionToken:return R??V;case E.SyntaxKind.InstanceOfKeyword:return R instanceof V}return g(new KI({node:i.operatorToken,typescript:E,environment:l}))}var jWt="___lazyCallFlag";function Rfr(r){return r!=null&&typeof r=="object"&&jWt in r}function VWt(r){return r===void 0?"undefined":r===null?"null":typeof r=="string"?`"${r}"`:r.toString()}var vst=class extends r4{constructor({value:n,node:i,environment:l,message:p=`${VWt(n)} is not a function'`}){super({message:p,environment:l,node:i}),this.value=n}};function jre(r,n){var i;return Dst(r,n)?!0:n.isPropertyAccessExpression(r)?jre(r.expression,n)||jre(r.name,n):n.isElementAccessExpression(r)?jre(r.expression,n)||jre(r.argumentExpression,n):n.isParenthesizedExpression(r)||n.isAsExpression(r)||!((i=n.isTypeAssertionExpression)===null||i===void 0)&&i.call(n,r)||!("isTypeAssertionExpression"in n)&&n.isTypeAssertion(r)?jre(r.expression,n):!1}function Lfr(r){let{node:n,environment:i,evaluate:l,throwError:p,typescript:m,logger:g,getCurrentError:b}=r,E=[];for(let R=0;R<n.arguments.length;R++)if(E[R]=l.expression(n.arguments[R],r),b()!=null)return;let I=l.expression(n.expression,r);if(b()==null)if(Rfr(I)){let R=jre(n.expression,m)?ED(n,i,n4):void 0,V=I.invoke(R?.literal,...E);return b()!=null?void 0:(g.logResult(V,"CallExpression"),V)}else{if(n.questionDotToken==null&&typeof I!="function")return p(new vst({value:I,node:n.expression,environment:i}));let R=typeof I!="function"?void 0:Est(n,r,I(...E));return b()!=null?void 0:(g.logResult(R,"CallExpression"),R)}}function Mfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function hI(r,n){return{parentEnv:r,startingNode:n,env:{}}}function RU(r,n){let i=Array.isArray(r)?r:r.modifiers;return i!=null&&i.some(l=>l.kind===n)}function LU(r,n,i){let{node:l,evaluate:p,environment:m,typescript:g,getCurrentError:b}=r,E=l.filter(I=>!(g.isIdentifier(I.name)&&I.name.text==="this"));for(let I=0;I<E.length;I++){let R=E[I];if(R.dotDotDotToken!=null){if(p.nodeWithArgument(R,n.slice(I),r),b()!=null)return;break}else{if(p.nodeWithArgument(R,n[I],r),b()!=null)return;if(i!=null&&g.isIdentifier(R.name)&&(RU(R,g.SyntaxKind.PublicKeyword)||RU(R,g.SyntaxKind.ProtectedKeyword)||RU(R,g.SyntaxKind.PrivateKeyword))){let V=ED(R,m,R.name.text);V!=null&&(i[R.name.text]=V.literal)}}}}function Ffr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=RU(n,m.SyntaxKind.AsyncKeyword)?async(...E)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},E),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)}:(...E)=>{let I=hI(i,n),R={...r,environment:I};if(e_({...R,path:B1,value:!1,newBinding:!0}),e_({...R,path:"arguments",value:arguments,newBinding:!0}),LU({...r,node:n.parameters,environment:I},E),g()==null)return m.isBlock(n.body)?(l.statement(n.body,R),g()!=null?void 0:cx(n,I,!0,B1)?p.pop():void 0):l.expression(n.body,R)};return b.toString=()=>"[Function: anonymous]",Object.setPrototypeOf(b,ED(n,i,"Function").literal),b}function Ofr({node:r}){return r.text}function Wfr({node:r}){return Number(r.text)}function Gfr({node:r,typescript:n}){return r.kind===n.SyntaxKind.TrueKeyword}function zfr({node:r,environment:n}){let i=ED(r,n,"Function").literal;return new i(`return ${r.text}`)()}function jfr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r,m=ED(n,l,"Object").literal,g=m.create(m.prototype);e_({...r,path:n4,value:g,newBinding:!0});for(let b of n.properties)if(i.nodeWithArgument(b,g,r),p()!=null)return;return g}function Vfr(r){return r!=null&&r[Symbol.iterator]!=null}function Ufr(r){let{node:n,environment:i,evaluate:l,typescript:p,getCurrentError:m}=r,b=ED(n,i,"Array").literal.of();for(let E of n.elements){let I=l.expression(E,r);if(m()!=null)return;p.isSpreadElement(E)&&Vfr(I)?b.push(...I):b.push(I)}return b}var bst=class extends r4{constructor({node:n,environment:i,message:l=`'${n.text}' is not defined'`}){super({message:l,environment:i,node:n})}};function jTn(r){let{node:n,environment:i,typeChecker:l,evaluate:p,stack:m,logger:g,reporting:b,typescript:E,throwError:I,getCurrentError:R}=r,V=ED(n,i,n.text);if(V!=null)return g.logBinding(n.text,V.literal,"Lexical Environment match"),V.literal;let X=E.isShorthandPropertyAssignment(n.parent)?l?.getShorthandAssignmentValueSymbol(n.parent):l?.getSymbolAtLocation(n),ue=X?.valueDeclaration;if(X!=null&&ue==null)try{let De=l?.getAliasedSymbol(X);ue=De?.valueDeclaration}catch{}if(ue==null){let De=GWt(n.parent,n.text,r);if(R()!=null)return;if(oAn(De)&&!E.isIdentifier(De))ue=De;else if(De!=null)return e_({...r,path:n.text,value:De}),g.logBinding(n.text,De,"Discovered declaration value"),De}if(ue!=null){if(ue.getSourceFile().isDeclarationFile){let we=Bst({...r,node:ue});return R()!=null?void 0:(e_({environment:i,path:n.text,value:we,reporting:b,node:ue}),g.logBinding(n.text,we,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),we)}if(E.isVariableDeclaration(ue)&&ue.getSourceFile().fileName===n.getSourceFile().fileName&&ue.pos>n.pos)if(E.isVariableDeclarationList(ue.parent)&&KTn(ue.parent,E)){e_({...r,path:n.text,value:void 0,newBinding:!0,node:ue}),g.logBinding(n.text,void 0,"Hoisted var declaration");return}else return I(new bst({node:n,environment:i}));if(p.declaration(ue,r),R()!=null)return;let De=m.pop();return e_({...r,path:n.text,value:De,node:ue}),g.logBinding(n.text,De,`Discovered declaration value${ue.getSourceFile()===n.getSourceFile()?"":` (imported into '${n.getSourceFile().fileName}' from '${ue.getSourceFile().fileName}')`}`),De}return I(new bst({node:n,environment:i}))}function Hfr(r){let{node:n,environment:i,typescript:l,evaluate:p,getCurrentError:m}=r,g=hI(i,n);for(let b=0;b<n.statements.length;b++){let E=n.statements[b];if(!(l.isConstructorDeclaration(n.parent)&&b===0&&l.isExpressionStatement(E)&&l.isCallExpression(E.expression)&&Dst(E.expression.expression,l))&&(p.statement(E,{...r,environment:g}),m()!=null||cx(n,g,!0,ZL,t4,B1)))break}}function Jfr({node:r,evaluate:n,stack:i,...l}){let{getCurrentError:p}=l;if(e_({...l,environment:l.environment,path:B1,value:!0,node:r}),r.expression==null)i.push(void 0);else{let m=n.expression(r.expression,l);if(p()!=null)return;i.push(m)}}function sAn({node:r,evaluate:n,...i}){for(let l of r.declarations)if(n.declaration(l,i),i.getCurrentError()!=null)return}function qfr({node:r,...n}){sAn({node:r.declarationList,...n})}function Kfr(r){var n,i;let{node:l,environment:p,evaluate:m,reporting:g,typescript:b,throwError:E,getCurrentError:I}=r,R=m.expression(l.operand,r);if(I()==null)switch(l.operator){case b.SyntaxKind.PlusToken:return+R;case b.SyntaxKind.MinusToken:return-R;case b.SyntaxKind.TildeToken:return~R;case b.SyntaxKind.ExclamationToken:return!R;case b.SyntaxKind.PlusPlusToken:{if(!b.isIdentifier(l.operand)&&!(!((n=b.isPrivateIdentifier)===null||n===void 0)&&n.call(b,l.operand)))return E(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(p,l.operand.text),X=++V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}case b.SyntaxKind.MinusMinusToken:{if(!b.isIdentifier(l.operand)&&!(!((i=b.isPrivateIdentifier)===null||i===void 0)&&i.call(b,l.operand)))return E(new KI({node:l.operand,environment:p,typescript:b}));let V=qVe(p,l.operand.text),X=--V[l.operand.text];return g.reportBindings!=null&&g.reportBindings({path:l.operand.text,value:X,node:l}),X}}}function Xfr(r){let{evaluate:n,node:i,statementTraversalStack:l,environment:p,typescript:m,getCurrentError:g}=r,b=n.expression(i.expression,r);if(b==null||g()!=null)return;let E=i.questionDotToken!=null&&b==null?void 0:b[i.name.text];return typeof E=="function"&&l.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(I,...R)=>Est(i,r,I!=null&&!zWt(E,p)?b[i.name.text].call(I,...R):b[i.name.text](...R))}:E}function Yfr(r){let{node:n,environment:i,evaluate:l,statementTraversalStack:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()!=null)return;let E=l.expression(n.argumentExpression,r);if(g()!=null)return;let I=n.questionDotToken!=null&&b==null?void 0:b[E];return typeof I=="function"&&p.includes(m.SyntaxKind.CallExpression)?{[jWt]:0,invoke:(R,...V)=>Est(n,r,R!=null&&!zWt(I,i)?b[E].call(R,...V):b[E](...V))}:I}function Qfr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function $fr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,E=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...r,node:n.parameters,environment:V},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return Bst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),g()!=null)return;let ue=n.getSourceFile();if(b!=null&&ue.isDeclarationFile)return Bst(r)(...R);if(n.body!=null&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};b!=null&&e_({...r,path:b,value:E.bind(E)}),E.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(E,ED(n,i,"Function").literal),p.push(E)}function Zfr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.expression,i);if(l()==null){if(p){if(n.statement(r.thenStatement,i),l()!=null)return}else if(r.elseStatement!=null)return n.statement(r.elseStatement,i)}}function edr({node:r,evaluate:n,stack:i,...l}){let p=n.expression(r.expression,l);l.getCurrentError()==null&&i.push(p)}function tdr({node:r,evaluate:n,...i}){let l="";l+=r.head.text;for(let p of r.templateSpans){let m=n.expression(p.expression,i);if(i.getCurrentError()!=null)return;l+=m,l+=p.literal.text}return l}function ndr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function rdr(r){var n,i;let{evaluate:l,node:p,environment:m,typescript:g,throwError:b,reporting:E}=r;switch(l.expression(p.operand,r),p.operator){case g.SyntaxKind.PlusPlusToken:{if(!g.isIdentifier(p.operand)&&!(!((n=g.isPrivateIdentifier)===null||n===void 0)&&n.call(g,p.operand)))return b(new KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]++;return E.reportBindings!=null&&E.reportBindings({path:p.operand.text,value:I,node:p}),I}case g.SyntaxKind.MinusMinusToken:{if(!g.isIdentifier(p.operand)&&!(!((i=g.isPrivateIdentifier)===null||i===void 0)&&i.call(g,p.operand)))return b(new KI({node:p.operand,environment:m,typescript:g}));let I=qVe(m,p.operand.text)[p.operand.text]--;return E.reportBindings!=null&&E.reportBindings({path:p.operand.text,value:I,node:p}),I}}}function idr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=[];if(r.arguments!=null){for(let g=0;g<r.arguments.length;g++)if(p[g]=n.expression(r.arguments[g],i),l()!=null)return}let m=n.expression(r.expression,i);if(l()==null)return typeof m=="function"&&e_({...i,node:r,path:"[[NewTarget]]",value:m,newBinding:!0}),Est(r,i,new m(...p))}function odr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function sdr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function adr({node:r,evaluate:n,...i}){let l=n.expression(r.expression,i);i.getCurrentError()==null&&n.nodeWithArgument(r.caseBlock,l,i)}var MWt=class extends r4{constructor({message:n="It is not possible to evaluate an async iterator'",typescript:i,environment:l}){var p,m;super({message:n,environment:l,node:(m=(p=i.factory)===null||p===void 0?void 0:p.createEmptyStatement())!==null&&m!==void 0?m:i.createEmptyStatement()})}};function ldr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,E=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));if(n.awaitModifier!=null)return g(new MWt({typescript:m,environment:i}));for(let I of E){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function cdr({node:r,environment:n}){let i=ED(r,n,n4);return i?.literal}function udr(r){e_({...r,path:ZL,value:!0})}function pdr(r){e_({...r,path:t4,value:!0})}function fdr({environment:r,evaluate:n,typescript:i,...l}){let{node:p,getCurrentError:m}=l,g=hI(r,p),b={...l,environment:g};if(p.initializer!==void 0){if(i.isVariableDeclarationList(p.initializer)){for(let E of p.initializer.declarations)if(n.declaration(E,b),m()!=null)return}else if(n.expression(p.initializer,b),m()!=null)return}for(;;){let E=hI(g,p),I={...l,environment:E};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),!(p.condition==null?!0:n.expression(p.condition,b))||m()!=null||(n.statement(p.statement,I),m()!=null))return;if(cx(p,E,!0,ZL))break;if(cx(p,E,!0,B1))return;if(p.incrementor!=null){if(n.expression(p.incrementor,b),m()!=null)return}else if(cx(p,E,!0,t4))continue}}function ddr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,getCurrentError:g}=r,b=l.expression(n.expression,r);if(g()==null)for(;b;){let E=hI(i,n),I={...r,environment:E};if(e_({...I,path:ZL,value:!1,newBinding:!0}),e_({...I,path:t4,value:!1,newBinding:!0}),l.statement(n.statement,I),g()!=null)return;if(cx(n,E,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,E,!0,B1)){p.logReturn(n,m);return}if(b=l.expression(n.expression,r),g()!=null)return;if(cx(n,E,!0,t4)){p.logContinue(n,m);continue}}}function mdr(r){let{node:n,environment:i,evaluate:l,logger:p,typescript:m,throwError:g,getCurrentError:b}=r,E=l.expression(n.expression,r);if(b()==null){if(m.isVariableDeclarationList(n.initializer)){if(n.initializer.declarations.length>1)return g(new KI({node:n.initializer.declarations[1],environment:i,typescript:m}))}else return g(new KI({node:n.initializer,environment:i,typescript:m}));for(let I in E){let R=hI(i,n),V={...r,environment:R};if(e_({...V,path:ZL,value:!1,newBinding:!0}),e_({...V,path:t4,value:!1,newBinding:!0}),l.nodeWithArgument(n.initializer.declarations[0],I,V),b()!=null||(l.statement(n.statement,V),b()!=null))return;if(cx(n,R,!0,ZL)){p.logBreak(n,m);break}else if(cx(n,R,!0,t4)){p.logContinue(n,m);continue}else if(cx(n,R,!0,B1)){p.logReturn(n,m);return}}}}function _dr(r){let{node:n,environment:i,evaluate:l,stack:p,typescript:m,getCurrentError:g}=r,b=n.name==null?void 0:n.name.text,E=RU(n,m.SyntaxKind.AsyncKeyword)?async function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()}:function(...R){let V=hI(i,n),X={...r,environment:V};if(e_({...X,path:B1,value:!1,newBinding:!0}),e_({...X,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...X,path:n4,value:this,newBinding:!0}),LU({...X,node:n.parameters},R),!(n.body==null||g()!=null)&&(l.statement(n.body,X),g()==null&&cx(n,V,!0,B1)))return p.pop()};return b!=null&&e_({...r,path:b,value:E.bind(E)}),E.toString=()=>`[Function${b==null?"":`: ${b}`}]`,Object.setPrototypeOf(E,ED(n,i,"Function").literal),E}var FWt=class extends r4{constructor({node:n,environment:i,message:l="Missing catch or finally after try"}){super({node:n,environment:i,message:l})}};function hdr(r){let{node:n,evaluate:i,environment:l,throwError:p}=r,m,g=()=>{try{return i.statement(n.tryBlock,{...r,throwError:I=>(m=I,I),getCurrentError:()=>m})}catch(I){m=I}},b=I=>{i.nodeWithArgument(n.catchClause,I,r)},E=()=>{let I;i.statement(n.finallyBlock,{...r,throwError:R=>(I=R,r.throwError(R),R),getCurrentError:()=>I})};if(n.catchClause==null&&n.finallyBlock==null)return p(new FWt({node:n,environment:l}));n.catchClause!=null&&n.finallyBlock==null?(g(),m!=null&&b(m)):n.catchClause!=null&&n.finallyBlock!=null?(g(),m!=null&&b(m),E()):n.catchClause==null&&n.finallyBlock!=null&&(g(),m!=null&&p(m),E())}function aAn({name:r,extendedType:n,ctor:i=()=>{}}){return n==null?new Function("ctor",`return class ${r??""} {constructor () {const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(i):new Function("extendedType","ctor",`return class ${r??""} extends extendedType {constructor () {super(...arguments); const ctorReturnValue = ctor.call(this, ...arguments); if (ctorReturnValue != null) return ctorReturnValue;}}`)(n,i)}function KVe(r,n){return"canHaveDecorators"in n?n.canHaveDecorators(r):!0}function XVe(r,n){var i;if("getDecorators"in n)return n.getDecorators(r);{let l="decorators"in r&&Array.isArray(r.decorators)?r.decorators:void 0,p=(i=r.modifiers)===null||i===void 0?void 0:i.filter(m=>"expression"in m);return[...l??[],...p??[]]}}function gdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,E,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(E=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=aAn({name:X,extendedType:E,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;m.logHeritage(ue),p.push(ue),m.logStack(p)}function Bdr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r;function g(...b){let E=hI(i,n),I={...r,environment:E};if(e_({...I,path:B1,value:!1,newBinding:!0}),e_({...I,path:"arguments",value:arguments,newBinding:!0}),this!=null&&e_({...I,path:n4,value:this,newBinding:!0}),LU({...I,node:n.parameters},b,this),!(n.body==null||m()!=null)&&(l.statement(n.body,I),m()==null&&cx(n,E,!0,B1)))return p.pop()}g.toString=()=>"[Function: constructor]",p.push(g)}function ydr({node:r,environment:n}){let i=ED(r,n,r0e);return i?.literal}function Cdr({node:r,evaluate:n,...i}){return n.expression(r.expression,i)}function vdr(r){var n;let{node:i,evaluate:l,stack:p,logger:m,typescript:g,getCurrentError:b}=r,E,I=i.members.find(g.isConstructorDeclaration),R=i.members.filter(De=>!g.isConstructorDeclaration(De)),V;if(I!=null){if(l.declaration(I,r),b()!=null)return;V=p.pop()}if(i.heritageClauses!=null){let De=i.heritageClauses.find(we=>we.token===g.SyntaxKind.ExtendsKeyword);if(De!=null){let[we]=De.types;if(we!=null&&(E=l.expression(we.expression,r),b()!=null))return}}let X=i.name==null?void 0:i.name.text,ue=aAn({name:X,extendedType:E,ctor:V});if(KVe(i,g))for(let De of(n=XVe(i,g))!==null&&n!==void 0?n:[]){if(l.nodeWithArgument(De,[ue],r),b()!=null)return;ue=p.pop()}ue.toString=()=>`[Class${X==null?"":`: ${X}`}]`,X!=null&&e_({...r,path:X,value:ue,newBinding:!0});for(let De of R)if(l.nodeWithArgument(De,RU(De,g.SyntaxKind.StaticKeyword)?ue:ue.prototype,r),b()!=null)return;return m.logHeritage(ue),ue}function bdr(r){return null}function Sdr({node:r,evaluate:n,...i}){n.expression(r.expression,i)}function xdr({evaluate:r,node:n,...i}){let l=r.expression(n.expression,i);if(i.getCurrentError()==null)return typeof l}function Edr({node:r,environment:n}){let i=ED(r,n,"BigInt").literal;return i(r.text.endsWith("n")?r.text.slice(0,-1):r.text)}function Ddr(r){let{node:n,environment:i,evaluate:l,stack:p,getCurrentError:m}=r,g=ED(n,i,"Object").literal,b=g.create(g.prototype),E=n.name.text;e_({...r,path:E,value:b,newBinding:!0});for(let I of n.members)if(l.nodeWithArgument(I,b,r),m()!=null)return;b.toString=()=>`[Enum: ${E}]`,p.push(b)}function Tdr(r){let{node:n,evaluate:i,environment:l,typeChecker:p,stack:m,getCurrentError:g}=r,b=ED(n,l,"Object").literal,E=b.create(b.prototype),I=p?.getSymbolAtLocation(n);if(I!=null){let R=I.exports;if(R!=null)for(let[V,X]of R.entries()){let ue=X.valueDeclaration;if(ue==null||(i.declaration(ue,r),g()!=null))return;E[V]=m.pop()}}m.push(E)}function Adr(r){let{getCurrentError:n,stack:i}=r,l=Bst(r);n()==null&&i.push(l)}function kdr({node:r,evaluate:n,...i}){r.importClause!=null&&n.declaration(r.importClause,i)}function wdr({node:r,evaluate:n,...i}){let{getCurrentError:l,throwError:p}=i,m=n.expression(r.expression,i);if(l()==null)return p(m)}var OWt=class extends Ure{constructor({duration:n,environment:i,node:l,message:p=`Maximum operation duration exceeded: ${n}`}){super({violation:"maxOpDuration",message:p,node:l,environment:i}),this.duration=n}};async function Idr(r){let{node:n,environment:i,evaluate:l,policy:p,throwError:m,getCurrentError:g}=r,b=p.maxOpDuration===1/0?void 0:setTimeout(()=>{m(new OWt({duration:p.maxOpDuration,node:n,environment:i}))},p.maxOpDuration),E=l.expression(n.expression,r);if(b!=null&&clearTimeout(b),g()==null)return E}function Pdr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i,p=n.expression(r.condition,i);if(l()==null)return p?n.expression(r.whenTrue,i):n.expression(r.whenFalse,i)}function Tst(r,n){let i=r;for(;i!=null&&!n.isSourceFile(i);){if(RU(i,n.SyntaxKind.StaticKeyword))return!0;i=i.parent}return!1}function lAn(r,n){var i,l;let{node:p,environment:m,evaluate:g,stack:b,typescript:E,getCurrentError:I}=r,R=g.nodeWithValue(p.name,r);if(I()!=null)return;let V=Tst(p,E);if(n==null){let ue;if(E.isClassLike(p.parent)){if(g.declaration(p.parent,r),I()!=null)return;ue=b.pop()}else if(ue=g.expression(p.parent,r),I()!=null)return;b.push(V?ue[R]:ue.prototype[R]);return}let X=RU(p,E.SyntaxKind.AsyncKeyword)?async function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()}:function(...De){let we=hI(m,p),We={...r,environment:we};if(e_({...We,path:B1,value:!1,newBinding:!0}),e_({...We,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...We,path:n4,value:this,newBinding:!0}),e_({...We,path:r0e,value:V?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...r,node:p.parameters,environment:we},De),!(p.body==null||I()!=null)&&(g.statement(p.body,We),I()==null&&cx(p,we,!0,B1)))return b.pop()};if(X.toString=()=>`[Method: ${R}]`,Object.setPrototypeOf(X,ED(p,m,"Function").literal),n[R]=X,KVe(p,E))for(let ue of(i=XVe(p,E))!==null&&i!==void 0?i:[]){if(g.nodeWithArgument(ue,[n,R],r),I()!=null)return;b.pop()}if(p.parameters!=null){let ue=p.parameters.filter(De=>!(E.isIdentifier(De.name)&&De.name.text==="this"));for(let De=0;De<ue.length;De++){let we=ue[De];if(KVe(we,E))for(let We of(l=XVe(we,E))!==null&&l!==void 0?l:[]){if(g.nodeWithArgument(We,[n,R,De],r),I()!=null)return;b.pop()}}}}function cAn({node:r,evaluate:n,typescript:i,stack:l,...p},m){var g;let{getCurrentError:b}=p,E=n.nodeWithValue(r.name,p);if(b()==null){if(m==null){if(n.declaration(r.parent,p),b()!=null)return;let I=l.pop(),R=Tst(r,i);l.push(R?I[E]:I.prototype[E]);return}if(m[E]=r.initializer==null?void 0:n.expression(r.initializer,p),b()==null&&KVe(r,i))for(let I of(g=XVe(r,i))!==null&&g!==void 0?g:[]){if(n.nodeWithArgument(I,[m,E],p),b()!=null)return;l.pop()}}}function uAn(r,n){let{node:i,environment:l,evaluate:p,stack:m,typescript:g,getCurrentError:b}=r;if(g.isTypeLiteralNode(i.parent)||g.isInterfaceDeclaration(i.parent))return;let E=p.nodeWithValue(i.name,r);if(b()!=null)return;let I=Tst(i,g);if(n==null){let X;if(g.isClassLike(i.parent)){if(p.declaration(i.parent,r),b()!=null)return;X=m.pop()}else if(X=p.expression(i.parent,r),b()!=null)return;m.push(I?X[E]:X.prototype[E]);return}function R(){let X=hI(l,i),ue={...r,environment:X};if(e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:I?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),i.body!=null&&(p.statement(i.body,ue),b()==null&&cx(i,X,!0,B1)))return m.pop()}R.toString=()=>`[Get: ${E}]`;let V=Object.getOwnPropertyDescriptor(n,E);V==null&&(V={}),Object.defineProperty(n,E,{...V,configurable:!0,get:R})}function Ndr({node:r,evaluate:n,...i}){let{getCurrentError:l}=i;if(!(r.name!=null&&(n.declaration(r.name,i),l()!=null))&&r.namedBindings!=null)if("elements"in r.namedBindings){for(let p of r.namedBindings.elements)if(n.declaration(p,i),l()!=null)return}else n.declaration(r.namedBindings.name,i)}function Rdr({node:r,evaluate:n,...i}){var l;n.declaration((l=r.propertyName)!==null&&l!==void 0?l:r.name,i)}function Ldr({node:r,evaluate:n,...i}){n.declaration(r.name,i)}var Sst=class extends r4{constructor({node:n,environment:i,message:l="'SyntaxError'"}){super({message:l,environment:i,node:n})}};function Mdr({node:r,typescript:n,throwError:i,environment:l}){var p,m;switch(r.keywordToken){case n.SyntaxKind.NewKeyword:switch(r.name.text){case"target":return(p=ED(r,l,"[[NewTarget]]"))===null||p===void 0?void 0:p.literal;default:return i(new Sst({node:r.name,environment:l}))}case n.SyntaxKind.ImportKeyword:switch(r.name.text){case"meta":return(m=ED(r,l,"import.meta"))===null||m===void 0?void 0:m.literal;default:return i(new Sst({node:r.name,environment:l}))}}}function UWt({node:r,...n}){var i,l,p,m,g,b;return n.typescript.isIdentifier(r)?jTn({node:r,...n}):!((l=(i=n.typescript).isPrivateIdentifier)===null||l===void 0)&&l.call(i,r)?jTn({node:r,...n}):n.typescript.isStringLiteralLike(r)?Ofr({node:r,...n}):n.typescript.isNumericLiteral(r)?Wfr({node:r,...n}):tAn(r,n.typescript)?Gfr({node:r,...n}):n.typescript.isForOfStatement(r)?ldr({node:r,...n}):n.typescript.isForInStatement(r)?mdr({node:r,...n}):n.typescript.isForStatement(r)?fdr({node:r,...n}):n.typescript.isWhileStatement(r)?ddr({node:r,...n}):n.typescript.isRegularExpressionLiteral(r)?zfr({node:r,...n}):n.typescript.isObjectLiteralExpression(r)?jfr({node:r,...n}):n.typescript.isAwaitExpression(r)?Idr({node:r,...n}):!((m=(p=n.typescript).isTypeAssertionExpression)===null||m===void 0)&&m.call(p,r)||!("isTypeAssertionExpression"in n.typescript)&&n.typescript.isTypeAssertion(r)?ndr({node:r,...n}):n.typescript.isTemplateExpression(r)?tdr({node:r,...n}):n.typescript.isMethodDeclaration(r)?lAn({node:r,...n}):n.typescript.isPropertyDeclaration(r)?cAn({node:r,...n}):n.typescript.isGetAccessorDeclaration(r)?uAn({node:r,...n}):n.typescript.isArrayLiteralExpression(r)?Ufr({node:r,...n}):n.typescript.isSourceFile(r)?Tdr({node:r,...n}):n.typescript.isModuleDeclaration(r)?Adr({node:r,...n}):n.typescript.isPrefixUnaryExpression(r)?Kfr({node:r,...n}):n.typescript.isPostfixUnaryExpression(r)?rdr({node:r,...n}):n.typescript.isVariableStatement(r)?qfr({node:r,...n}):n.typescript.isComputedPropertyName(r)?Qfr({node:r,...n}):n.typescript.isVariableDeclarationList(r)?sAn({node:r,...n}):n.typescript.isImportDeclaration(r)?kdr({node:r,...n}):n.typescript.isImportClause(r)?Ndr({node:r,...n}):n.typescript.isImportSpecifier(r)?Rdr({node:r,...n}):n.typescript.isNamespaceImport(r)?Ldr({node:r,...n}):n.typescript.isImportEqualsDeclaration(r)?({...n},void 0):n.typescript.isMetaProperty(r)?Mdr({node:r,...n}):n.typescript.isThrowStatement(r)?wdr({node:r,...n}):n.typescript.isVariableDeclaration(r)?rAn({node:r,...n}):n.typescript.isEnumDeclaration(r)?Ddr({node:r,...n}):n.typescript.isConstructorDeclaration(r)?Bdr({node:r,...n}):n.typescript.isBinaryExpression(r)?Nfr({node:r,...n}):n.typescript.isParenthesizedExpression(r)?Mfr({node:r,...n}):n.typescript.isExpressionStatement(r)?edr({node:r,...n}):n.typescript.isArrowFunction(r)?Ffr({node:r,...n}):n.typescript.isFunctionDeclaration(r)?$fr({node:r,...n}):n.typescript.isFunctionExpression(r)?_dr({node:r,...n}):n.typescript.isClassDeclaration(r)?gdr({node:r,...n}):n.typescript.isIfStatement(r)?Zfr({node:r,...n}):n.typescript.isConditionalExpression(r)?Pdr({node:r,...n}):n.typescript.isPropertyAccessExpression(r)?Xfr({node:r,...n}):n.typescript.isElementAccessExpression(r)?Yfr({node:r,...n}):n.typescript.isCallExpression(r)?Lfr({node:r,...n}):n.typescript.isSwitchStatement(r)?adr({node:r,...n}):n.typescript.isNewExpression(r)?idr({node:r,...n}):n.typescript.isNonNullExpression(r)?odr({node:r,...n}):n.typescript.isAsExpression(r)?sdr({node:r,...n}):n.typescript.isBlock(r)?Hfr({node:r,...n}):n.typescript.isClassExpression(r)?vdr({node:r,...n}):n.typescript.isSpreadElement(r)?Cdr({node:r,...n}):n.typescript.isTryStatement(r)?hdr({node:r,...n}):n.typescript.isReturnStatement(r)?Jfr({node:r,...n}):iAn(r,n.typescript)?cdr({node:r,...n}):n.typescript.isVoidExpression(r)?Sdr({node:r,...n}):n.typescript.isTypeOfExpression(r)?xdr({node:r,...n}):Dst(r,n.typescript)?ydr({node:r,...n}):nAn(r,n.typescript)?bdr({node:r,...n}):!((b=(g=n.typescript).isBigIntLiteral)===null||b===void 0)&&b.call(g,r)?Edr({node:r,...n}):n.typescript.isBreakStatement(r)?udr({node:r,...n}):n.typescript.isContinueStatement(r)?pdr({node:r,...n}):n.typescript.isTypeAliasDeclaration(r)?({...n},void 0):n.typescript.isInterfaceDeclaration(r)?({...n},void 0):n.getCurrentError()!=null?void 0:n.throwError(new KI({node:r,environment:n.environment,typescript:n.typescript}))}function HWt(){return[]}function Fdr(r){r.logger.logNode(r.node,r.typescript),r.statementTraversalStack=HWt(),UWt(r)}function Odr(r){let{getCurrentError:n}=r;r.logger.logNode(r.node,r.typescript);let i=UWt(r);if(n()==null)return r.reporting.reportIntermediateResults!=null&&r.reporting.reportIntermediateResults({node:r.node,value:i}),i}function Wdr(r){r.logger.logNode(r.node,r.typescript),UWt(r)}function Gdr({node:r,evaluate:n,typescript:i,logger:l,...p},m){var g;i.isIdentifier(r)||!((g=i.isPrivateIdentifier)===null||g===void 0)&&g.call(i,r)?(e_({...p,node:r,path:r.text,value:m,newBinding:!0}),l.logBinding(r.text,m,"evaluateBindingName")):n.nodeWithArgument(r,m,p)}function zdr(r,n){let{node:i,environment:l,evaluate:p,typescript:m,getCurrentError:g}=r,b=p.nodeWithValue(i.name,r);if(g()!=null)return;let E=Tst(i,m);function I(...V){let X=hI(l,i),ue={...r,environment:X};e_({...ue,path:B1,value:!1,newBinding:!0}),e_({...ue,path:"arguments",value:arguments,newBinding:!0}),this!=null&&(e_({...ue,path:n4,value:this,newBinding:!0}),e_({...ue,path:r0e,value:E?Object.getPrototypeOf(this):Object.getPrototypeOf(this.constructor).prototype,newBinding:!0})),LU({...ue,node:i.parameters},V),!(i.body==null||g()!=null)&&(p.statement(i.body,ue),g()==null)}I.toString=()=>`[Set: ${b}]`;let R=Object.getOwnPropertyDescriptor(n,b);R==null&&(R={}),Object.defineProperty(n,b,{...R,configurable:!0,set:I})}function jdr({node:r,evaluate:n,...i},l){let p=n.expression(r.initializer,i);if(i.getCurrentError()!=null)return;let m=n.nodeWithValue(r.name,i);i.getCurrentError()==null&&(l[m]=p)}function Vdr({node:r,evaluate:n,logger:i,...l},p){let m=p!=null||r.initializer===void 0?p:n.expression(r.initializer,l);l.getCurrentError()==null&&(i.logBinding(r.name.getText(),m,"evaluateParameterDeclaration"),n.nodeWithArgument(r.name,m,l))}function Udr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i,m=r.name.text,g=n.expression(r.name,i);p()==null&&(l[m]=g)}function Hdr({node:r,evaluate:n,...i},l){let p=n.expression(r.expression,i);i.getCurrentError()==null&&Object.assign(l,p)}function Jdr({node:r,evaluate:n,...i},l){let p=l[Symbol.iterator](),m=0;for(;m<r.elements.length;){let{done:g,value:b}=p.next();if(g===!0)break;if(n.nodeWithArgument(r.elements[m++],b,i),i.getCurrentError()!=null)return}}function qdr(r,n){var i,l,p,m;let{node:g,evaluate:b,logger:E,typescript:I,getCurrentError:R}=r,V=g.initializer==null?void 0:b.expression(g.initializer,r);if(R()==null){if((I.isIdentifier(g.name)||!((i=I.isPrivateIdentifier)===null||i===void 0)&&i.call(I,g.name))&&g.propertyName!=null){let X=g.name.text,ue=b.nodeWithValue(g.propertyName,r);if(R()!=null)return;let De=I.isArrayBindingPattern(g.parent)?n:n[ue];e_({...r,path:X,value:De??V,newBinding:!0})}else if((I.isIdentifier(g.name)||!((l=I.isPrivateIdentifier)===null||l===void 0)&&l.call(I,g.name))&&g.propertyName==null){let X=g.name.text,ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;E.logBinding(g.name.text,De),e_({...r,path:g.name.text,value:De,newBinding:!0})}else if(!I.isIdentifier(g.name)&&!(!((p=I.isPrivateIdentifier)===null||p===void 0)&&p.call(I,g.name))&&g.propertyName!=null){let X=b.nodeWithValue(g.propertyName,r);if(R()!=null)return;let ue=I.isArrayBindingPattern(g.parent)?n:n[X],De=ue??V;if(b.nodeWithArgument(g.name,De,r),R()!=null)return}else if(!I.isIdentifier(g.name)&&!(!((m=I.isPrivateIdentifier)===null||m===void 0)&&m.call(I,g.name))&&g.propertyName==null){let X=n??V;if(b.nodeWithArgument(g.name,X,r),R()!=null)return}}}function Kdr({node:r,evaluate:n,...i},l){for(let p of r.elements)if(n.nodeWithArgument(p,l,i),i.getCurrentError()!=null)return}function Xdr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=hI(p,i),b={...r,environment:g};e_({...b,path:ZL,value:!1,newBinding:!0});for(let E of i.clauses){if(l.nodeWithArgument(E,n,b),m()!=null)return;if(cx(i,g,!0,ZL,t4,B1))break}}function Ydr({node:r,evaluate:n,...i},l){let{getCurrentError:p}=i;if(!(n.expression(r.expression,i)!==l||p()!=null))for(let g of r.statements){if(n.statement(g,i),p()!=null)return;if(cx(r,i.environment,!0,ZL,t4,B1))break}}function Qdr(r){let{node:n,evaluate:i,environment:l,getCurrentError:p}=r;for(let m of n.statements){if(i.statement(m,r),p()!=null)return;if(cx(n,l,!0,ZL,t4,B1))break}}function $dr(r,n){let{node:i,evaluate:l,environment:p,getCurrentError:m}=r,g=i.variableDeclaration==null?p:hI(p,i),b={...r,environment:g};i.variableDeclaration!=null&&(l.nodeWithArgument(i.variableDeclaration,n,b),m()!=null)||l.statement(i.block,b)}function Zdr(r,n,i,l){let p=arguments.length,m=p<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,i):l,g;for(let b=r.length-1;b>=0;b--)(g=r[b])&&(m=(p<3?g(m):p>3?g(n,i,m):g(n,i))||m);return p>3&&m&&Object.defineProperty(n,i,m),m}function emr(r,n){return function(i,l){n(i,l,r)}}function tmr(r,[n,i,l]){let{node:p,evaluate:m,environment:g,throwError:b,stack:E,getCurrentError:I}=r,R=m.expression(p.expression,r);if(I()==null){if(typeof R!="function")return b(new vst({node:p,environment:g,value:R,message:`${VWt(R)} is not a valid decorator implementation'`}));E.push(Zdr([l!=null?emr(l,R):R],n,i))}}function nmr(r,n){let{node:i,typeChecker:l,evaluate:p,getCurrentError:m}=r,g=l?.getConstantValue(i);if(g==null)if(i.initializer!=null){if(g=p.expression(i.initializer,r),m()!=null)return}else{let E=i.parent.members,I=E.findIndex(X=>X===i),R=E.slice(0,I),V=0;for(let X of[...R].reverse())if(V++,X.initializer!=null){let ue=p.expression(X.initializer,r);if(m()!=null)return;if(typeof ue=="number"){g=ue+V;break}}g==null&&(g=I)}let b=p.nodeWithValue(i.name,r);m()==null&&(typeof g=="string"?n[b]=g:n[n[b]=g??0]=b)}function rmr(r,n){r.logger.logNode(r.node,r.typescript,"nodeWithArgument");let{node:i,...l}=r;if(l.typescript.isGetAccessorDeclaration(i))uAn({node:i,...l},n);else if(l.typescript.isSetAccessorDeclaration(i))zdr({node:i,...l},n);else if(l.typescript.isPropertyAssignment(i))jdr({node:i,...l},n);else if(l.typescript.isPropertyDeclaration(i))cAn({node:i,...l},n);else if(l.typescript.isParameter(i))Vdr({node:i,...l},n);else if(l.typescript.isEnumMember(i))nmr({node:i,...l},n);else if(l.typescript.isShorthandPropertyAssignment(i))Udr({node:i,...l},n);else if(l.typescript.isDecorator(i))tmr({node:i,...l},n);else if(l.typescript.isSpreadAssignment(i))Hdr({node:i,...l},n);else if(l.typescript.isMethodDeclaration(i))lAn({node:i,...l},n);else if(l.typescript.isArrayBindingPattern(i))Jdr({node:i,...l},n);else if(l.typescript.isBindingElement(i))qdr({node:i,...l},n);else if(l.typescript.isObjectBindingPattern(i))Kdr({node:i,...l},n);else if(l.typescript.isVariableDeclaration(i))rAn({node:i,...l},n);else if(l.typescript.isCaseBlock(i))Xdr({node:i,...l},n);else if(l.typescript.isCaseClause(i))Ydr({node:i,...l},n);else if(l.typescript.isDefaultClause(i))Qdr({node:i,...l});else if(l.typescript.isCatchClause(i))$dr({node:i,...l},n);else if(l.typescript.isBindingName(i))Gdr({node:i,...l},n);else if(l.typescript.isOmittedExpression(i))({...l});else{if(r.getCurrentError()!=null)return;l.throwError(new KI({node:i,environment:l.environment,typescript:l.typescript}))}}function imr({node:r,evaluate:n,typescript:i,...l}){var p;return i.isComputedPropertyName(r)?n.expression(r.expression,l):i.isIdentifier(r)||!((p=i.isPrivateIdentifier)===null||p===void 0)&&p.call(i,r)?r.text:n.expression(r,l)}function omr(r){r.logger.logNode(r.node,r.typescript,"nodeWithValue");let{node:n,...i}=r;return r.typescript.isPropertyName(n)||r.typescript.isPrivateIdentifier(n)?imr({node:n,...i}):r.throwError(new KI({node:n,environment:r.environment,typescript:r.typescript}))}function smr(r){let n=0,{policy:i,reporting:l}=r,p=(b,E)=>{let{environment:I=r.environment,statementTraversalStack:R=r.statementTraversalStack,getCurrentError:V=r.getCurrentError,throwError:X=r.throwError}=E??{},ue=V();if(ue!=null)return ue;if(n++,n>=i.maxOps)return X(new RWt({ops:n,environment:I,node:b}));R.push(b.kind),l.reportTraversal!=null&&l.reportTraversal({node:b})},m={statement:(b,E)=>{let I={...E,statementTraversalStack:HWt()},R=p(b,I);if(!Uee(R))return Fdr(g(b,I))},declaration:(b,E)=>{let I=p(b,E);if(!Uee(I))return Wdr(g(b,E))},nodeWithArgument:(b,E,I)=>{let R=p(b,I);if(!Uee(R))return rmr(g(b,I),E)},expression:(b,E)=>{let I=p(b,E);return Uee(I)?I:Odr(g(b,E))},nodeWithValue:(b,E)=>{let I=p(b,E);return Uee(I)?I:omr(g(b,E))}};function g(b,E){return{...r,...E,evaluate:m,node:b}}return m}function JVe(r,n){return r===n.SyntaxKind.NumericLiteral?"NumericLiteral":n.SyntaxKind[r]}var WWt=class{constructor(n={}){let{logLevel:i=0,color:{info:l="white",verbose:p="yellow",debug:m="magenta"}={}}=typeof n=="object"?n:{logLevel:n};this.options={logLevel:i,color:{info:l,verbose:p,debug:m}}}logInfo(n){this.options.logLevel<1||console.log(this.formatWithColor(this.options.color.info,n))}logVerbose(n){this.options.logLevel<2||console.log(this.formatWithColor(this.options.color.verbose,n))}logDebug(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,n))}logContinue(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"continue")} encountered within ${this.formatWithColor(this.options.color.debug,JVe(n.kind,i))}`)}logBreak(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"break")} encountered within ${this.formatWithColor(this.options.color.debug,JVe(n.kind,i))}`)}logReturn(n,i){this.options.logLevel<3||console.log(`${this.formatWithColor(this.options.color.debug,"return")} encountered within ${this.formatWithColor(this.options.color.debug,JVe(n.kind,i))}`)}logResult(n,i){this.options.logLevel<1||(i!=null?console.log(this.formatWithColor(this.options.color.info,`(intermediate value from context '${i}'):`),this.formatWithColor(this.options.color.info,"[RESULT]:"),this.compactValue(n)):console.log(this.formatWithColor(this.options.color.info,"[RESULT]:"),n))}logNode(n,i,l){if(this.options.logLevel<3)return;let p=`[${JVe(n.kind,i)}]`.padEnd(25);l!=null&&(p+=this.formatWithColor(this.options.color.debug,`(${l})`));let m=n.getText(),g=this.formatWithColor(this.options.color.debug,p),b=this.formatWithColor(this.options.color.debug,m);console.log(g),console.log(b)}logBinding(n,i,l){this.options.logLevel<2||console.log(`${l==null?"":this.formatWithColor(this.options.color.verbose,`(${l}): `)}${this.formatWithColor(this.options.color.verbose,`${n} ->`)}`,this.formatWithColor(this.options.color.verbose,this.compactValue(i)))}logHeritage(n){if(this.options.logLevel<3)return;let i=Object.getPrototypeOf(n);i.toString().includes("[Class")&&console.log(`${this.formatWithColor(this.options.color.debug,n.toString())} ${this.formatWithColor(this.options.color.debug,"extends")} ${this.formatWithColor(this.options.color.debug,i.toString())}`)}logStack(n){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`Stack value: ${VWt(this.compactValue(n.lastItem))}`))}logStatementTraversalStack(n,i){this.options.logLevel<3||console.log(this.formatWithColor(this.options.color.debug,`[${n.map(l=>JVe(l,i)).join(", ")}]`))}compactValue(n){return(0,UTn.inspect)(n,{depth:0,colors:!0,compact:!0,maxArrayLength:5})}formatWithColor(n,i){return HTn.default[n](i)}};function amr(r,n){var i;return n.isExpressionNode(r)||n.isIdentifier(r)||((i=n.isPrivateIdentifier)===null||i===void 0?void 0:i.call(n,r))}function lmr(r,n){return n.isStatementButNotDeclaration(r)}function cmr(){let r=[];return{[Symbol.iterator](){return r[Symbol.iterator]()},get length(){return r.length},get lastItem(){return r[r.length-1]},push(...n){return r.push(...n)},pop(){return r.pop()}}}function umr(r,n,i){r.reportErrors!=null&&!r.reportedErrorSet.has(n)&&(r.reportedErrorSet.add(n),r.reportErrors({error:n,node:n instanceof r4?n.node:i}))}function pmr(){return new WeakSet}function pAn({typeChecker:r,node:n,environment:{preset:i="NODE",extra:l={}}={},moduleOverrides:p={},typescript:m=lfr,logLevel:g=0,policy:{deterministic:b=!1,network:E=!1,console:I=!1,maxOps:R=1/0,maxOpDuration:V=1/0,io:X={read:!0,write:!1},process:ue={exit:!1,spawnChild:!1}}={},reporting:De={}}){let we=Pfr(n,m);if(we.success)return we;let We={deterministic:b,maxOps:R,maxOpDuration:V,network:E,console:I,io:{read:typeof X=="boolean"?X:X.read,write:typeof X=="boolean"?X:X.write},process:{exit:typeof ue=="boolean"?ue:ue.exit,spawnChild:typeof ue=="boolean"?ue:ue.spawnChild}},Ne={...De,reportedErrorSet:pmr()},Me,Ct=new WWt(g),Rt=Xn=>(umr(Ne,Xn,Xn.node),Me=Xn,Me),en=Ifr({inputEnvironment:{preset:i,extra:l},startingNode:n,policy:We}),Tn=cmr(),hn=HWt(),on={policy:We,typeChecker:r,typescript:m,logger:Ct,stack:Tn,moduleOverrides:p,reporting:Ne,throwError:Rt,environment:en,statementTraversalStack:hn,getCurrentError:()=>Me},Pn=smr(on);try{let Xn;return amr(n,m)?Xn=Pn.expression(n,on):lmr(n,m)?(Pn.statement(n,on),Xn=Tn.pop()):qTn(n,m)?(Pn.declaration(n,on),Xn=Tn.pop()):Rt(new KI({node:n,environment:en,typescript:m})),Me!=null?{success:!1,reason:Me}:(Ct.logResult(Xn),{success:!0,value:Xn})}catch(Xn){return Rt(Xn),{success:!1,reason:Xn}}}var yAn=_d(V8(),1),i4=_d(V8(),1),$Ve=_d(V8(),1);var s0e=_d(V8(),1);var Jj=_d(V8(),1);var KWt=_d(V8(),1);var XWt=_d(V8(),1);var fmr=r=>{if(Array.isArray(r))return"array";if(typeof r=="string")return"string";if(typeof r=="number")return"number";if(typeof r=="boolean")return"boolean";if(r===null)return"null";if(r===void 0)return"undefined";throw new Error(`Unexpected literal type: ${r}`)},uk=r=>r!=null,hAn=r=>r==null,gAn=r=>r!=null&&typeof r=="object",dmr=r=>Array.isArray(r),mmr=r=>{let n=typeof r;return n==="string"||n==="number"||n==="boolean"||r===null||r===void 0},N1=r=>QVe.Node.isAsExpression(r)||QVe.Node.isParenthesizedExpression(r)||QVe.Node.isNonNullExpression(r)||QVe.Node.isTypeAssertion(r)?N1(r.getExpression()):r,_mr=r=>r.getTagNameNode().getText(),hmr=/\s+/g,BAn=r=>r.replaceAll(hmr," "),gmr=r=>{let n=r.getSourceFile(),[i,l]=[r.getStart(),r.getEnd()],p=n.getLineAndColumnAtPos(i),m=n.getLineAndColumnAtPos(l);return{startPosition:i,startLineNumber:p.line,startColumn:p.column,endPosition:l,endLineNumber:m.line,endColumn:m.column}},Jre=class{type;stack=[];node;constructor(r){this.type=r.type,this.node=r.node,this.stack=[...r.stack??[]]}getNode(){return this.node}getStack(){return this.stack}getRange=()=>gmr(this.node);toJSON(){let r=this.getRange();return{type:this.type,value:this.value,node:this.node.getKindName(),line:r.startLineNumber,column:r.startColumn}}toString(){return JSON.stringify(this.toJSON(),null,2)}},fAn=class extends Jre{value;isEmpty;constructor(r){super(r),this.value=r.value,this.isEmpty=r.isEmpty}},Bmr=class extends Jre{value;kind;constructor(r){super(r),this.value=r.value,this.kind=r.kind}},ymr=class extends Jre{value;spreadConditions;constructor(r){super(r),this.value=r.value}},Cmr=class extends Jre{value;constructor(r){super(r),this.value=r.value}},vmr=class extends Jre{},bmr=class extends Jre{whenTrue;whenFalse;constructor(r){super(r),this.whenTrue=r.whenTrue,this.whenFalse=r.whenFalse}},Smr=class extends Jre{},uxe=r=>r instanceof Jre;function qWt(r,n,i){return H_(r).when(hAn,()=>{}).when(uxe,l=>l).when(gAn,l=>Vc.object(l,n,i)).when(dmr,l=>l.length===1?qWt(l[0],n,i):l.map(p=>qWt(p,n,i))).when(mmr,l=>Vc.literal(l,n,i)).otherwise(()=>{})}var Vc={object(r,n,i){return new fAn({type:"object",value:r,node:n,stack:i})},literal(r,n,i){return new Bmr({type:"literal",value:r,kind:fmr(r),node:n,stack:i})},map(r,n,i){return new ymr({type:"map",value:r,node:n,stack:i})},array(r,n,i){return new Cmr({type:"array",value:r,node:n,stack:i})},conditional(r,n,i,l){return new bmr({type:"conditional",whenTrue:r,whenFalse:n,node:i,stack:l})},from:qWt,emptyObject:(r,n)=>new fAn({type:"object",value:{},isEmpty:!0,node:r,stack:n}),emptyInitializer:(r,n)=>new Smr({type:"empty-initializer",node:r,stack:n}),unresolvable:(r,n)=>new vmr({type:"unresolvable",node:r,stack:n}),isObject(r){return r?.type==="object"},isLiteral(r){return r?.type==="literal"},isMap(r){return r?.type==="map"},isArray(r){return r?.type==="array"},isUnresolvable(r){return r?.type==="unresolvable"},isConditional(r){return r?.type==="conditional"},isEmptyInitializer(r){return r?.type==="empty-initializer"},isNumberLiteral(r){return Vc.isLiteral(r)&&r.kind==="number"},hasValue:r=>Vc.isObject(r)||Vc.isLiteral(r)||Vc.isMap(r)||Vc.isArray(r)},CAn=Symbol("EvalError"),JWt=new WeakMap,xmr=(r,n,i)=>{if(i.flags?.skipEvaluate||i.canEval&&!i.canEval?.(r,n))return;if(JWt.has(r))return JWt.get(r);let l=pAn({policy:{deterministic:!0,network:!1,console:!1,maxOps:Number.POSITIVE_INFINITY,maxOpDuration:1e3,io:{read:!0,write:!1},process:{exit:!1,spawnChild:!1}},...i.getEvaluateOptions?.(r,n),node:r.compilerNode,typescript:yAn.ts}),p=l.success?l.value:CAn;return JWt.set(r,p),p},Ast=(r,n,i)=>{let l=xmr(r,n,i);if(l!==CAn)return l};function Emr(r){return i4.Node.isFunctionDeclaration(r)||i4.Node.isFunctionExpression(r)||i4.Node.isArrowFunction(r)||i4.Node.isSourceFile(r)}function Dmr(r,n,i){let l=r.getParent();if(!l)return;let p=[],m;if((i4.Node.isVariableDeclaration(l)||i4.Node.isParameterDeclaration(l)||i4.Node.isFunctionDeclaration(l)||i4.Node.isBindingElement(l))&&l.getNameNode()==r)p.push(l),m=l;else if(i4.Node.isImportSpecifier(l)&&l.getNameNode()==r){if(i.flags?.skipTraverseFiles)return;let g=DAn(l.getImportDeclaration());if(g){let b=[l,g],E=EAn(r.getText(),g,b,i);E&&(p.push(...b.concat(E)),m=E)}}return m&&n.push(...p),m}var Tmr=r=>{let n=r.getParent();for(;n&&!Emr(n);)n=n.getParent();return n};function Pst(r,n,i,l=new Map){let p=r,m,g=!1,b=0,E=[];do{if(p=Tmr(p),b++,!p)return;let I=r.getText();if(p.forEachDescendant((R,V)=>{if(l.has(R)){V.skip(),E.push(...l.get(R));return}if(R!=r&&(l.set(R,E),i4.Node.isIdentifier(R)&&R.getText()==I)){let X=[R],ue=Dmr(R,X,i);if(ue){if(i4.Node.isParameterDeclaration(ue)){let De=ue.getInitializer(),we=ue.getTypeNode();De?(E.push(...X.concat(De)),m=ue):we&&i4.Node.isTypeLiteral(we)?(E.push(...X.concat(we)),m=ue):g=!0,V.stop();return}E.push(...X),m=ue,V.stop()}}}),m||g)return m&&n.push(...E),m}while(p&&!i4.Node.isSourceFile(p)&&!m&&!g&&b<100)}var Amr=(r,n,i)=>H_(r).when(s0e.Node.isPropertyAssignment,l=>{let p=N1(l.getNameNode());return H_(p).when(s0e.Node.isIdentifier,m=>Vc.from(m.getText(),m,n)).when(s0e.Node.isComputedPropertyName,m=>{let g=m.getExpression();return n.push(g),FU(g,n,i)}).when(pI.or(s0e.Node.isStringLiteral,s0e.Node.isNumericLiteral),m=>Vc.from(m.getLiteralText(),m,n)).otherwise(()=>{})}).when(s0e.Node.isShorthandPropertyAssignment,l=>{let p=l.getName();if(p!=null)return Vc.from(p,l,n)}).otherwise(()=>{}),kmr=(r,n,i,l)=>{let p=r.getProperties();if(p.length===0)return Vc.emptyObject(r,n);let m=[],g=[];p.forEach(I=>{let R=[...n];if(R.push(I),$Ve.Node.isPropertyAssignment(I)||$Ve.Node.isShorthandPropertyAssignment(I)){let V=Amr(I,R,i);if(!V)return;let X=V.value;if(hAn(X)||l&&!l?.({propName:X,propNode:I}))return;if($Ve.Node.isShorthandPropertyAssignment(I)){let We=I.getNameNode();R.push(We);let Ne=Ab(We,R,i);if(Ne){m.push([X.toString(),Ne]);return}}let ue=I.getInitializer();if(!ue)return;let De=N1(ue);R.push(De);let we=Ab(De,R,i);if(we){m.push([X.toString(),we]);return}}if($Ve.Node.isSpreadAssignment(I)){let V=N1(I.getExpression());R.push(V);let X=Ab(V,R,i,l);if(!X)return;if(Vc.isObject(X)){Object.entries(X.value).forEach(([ue,De])=>{let we=Vc.from(De,V,R);we&&m.push([ue,we])});return}if(Vc.isMap(X)){X.value.forEach((ue,De)=>{m.push([De,ue])});return}Vc.isConditional(X)&&g.push(X)}});let b=new Map;m.forEach(([I,R])=>{b.has(I)&&b.delete(I),b.set(I,R)});let E=Vc.map(b,r,n);return g.length>0&&(E.spreadConditions=g),E},YWt=new WeakMap,wmr=r=>YWt.has(r),Imr=r=>YWt.get(r),Pmr=r=>r===jp.ts.SyntaxKind.PlusToken,Nmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken||r===jp.ts.SyntaxKind.AmpersandAmpersandToken||r===jp.ts.SyntaxKind.EqualsEqualsEqualsToken||r===jp.ts.SyntaxKind.EqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsEqualsToken||r===jp.ts.SyntaxKind.ExclamationEqualsToken||r===jp.ts.SyntaxKind.GreaterThanEqualsToken||r===jp.ts.SyntaxKind.GreaterThanToken||r===jp.ts.SyntaxKind.LessThanEqualsToken||r===jp.ts.SyntaxKind.LessThanToken||r===jp.ts.SyntaxKind.InstanceOfKeyword||r===jp.ts.SyntaxKind.InKeyword,Rmr=r=>r===jp.ts.SyntaxKind.AsteriskToken||r===jp.ts.SyntaxKind.SlashToken||r===jp.ts.SyntaxKind.PercentToken||r===jp.ts.SyntaxKind.AsteriskAsteriskToken||r===jp.ts.SyntaxKind.MinusToken,Lmr=r=>r===jp.ts.SyntaxKind.BarBarToken||r===jp.ts.SyntaxKind.QuestionQuestionToken;function Ab(r,n,i,l){let p=m=>(YWt.set(r,m),m);return H_(r).when(wmr,Imr).when(pI.or(jp.Node.isStringLiteral,jp.Node.isNoSubstitutionTemplateLiteral),m=>{let g=BAn(m.getLiteralValue());return p(Vc.literal(g,m,n))}).when(jp.Node.isObjectLiteralExpression,m=>p(kmr(m,n,i,l))).when(pI.or(jp.Node.isTrueLiteral,jp.Node.isFalseLiteral),m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNumericLiteral,m=>{let g=m.getLiteralValue();return p(Vc.literal(g,m,n))}).when(jp.Node.isNullLiteral,m=>p(Vc.literal(null,m,n))).when(jp.Node.isPrefixUnaryExpression,m=>{let g=m.getOperand(),b=m.getOperatorToken(),E=Ab(g,n,i);if(Vc.isNumberLiteral(E))return p(b===jp.ts.SyntaxKind.MinusToken?Vc.literal(-Number(E.value),m,n):E)}).when(jp.Node.isArrayLiteralExpression,m=>{let g=m.getElements().map(b=>Ab(b,n,i)??p(Vc.unresolvable(b,n)));return p(Vc.array(g,m,n))}).when(jp.Node.isIdentifier,m=>H_(m.getText()).with("undefined",()=>p(Vc.literal(void 0,m,n))).otherwise(()=>p(Umr(m,n,i)))).when(jp.Node.isTemplateHead,m=>p(Vc.literal(m.getLiteralText(),m,n))).when(jp.Node.isTemplateExpression,m=>{let g=bAn(m,n,i);return p(Vc.literal(g,m,n))}).when(jp.Node.isTaggedTemplateExpression,m=>p(Ab(m.getTemplate(),n,i))).when(jp.Node.isElementAccessExpression,m=>p(wst(m,n,i))).when(jp.Node.isPropertyAccessExpression,m=>p(Ist(m,[],n,i))).when(jp.Node.isConditionalExpression,m=>{if(i.flags?.skipConditions)return p(Vc.unresolvable(m,n));let g=N1(m.getCondition()),b=(jp.Node.isIdentifier(g)?Ab(g,[],i):Ast(g,n,i))??Vc.unresolvable(g,n),E=uxe(b)?b:Vc.from(b,m,n);if(Vc.isEmptyInitializer(E))return;let I=E.getStack().some(ue=>jp.Node.isBindingElement(ue));if(Vc.isUnresolvable(E)||Vc.isConditional(E)||I){let ue=N1(m.getWhenTrue()),De=N1(m.getWhenFalse());return p(dAn({whenTrueExpr:ue,whenFalseExpr:De,node:m,stack:n},i))}if(E.value){let ue=N1(m.getWhenTrue()),De=[...n],we=Ab(ue,De,i);return p(we??Vc.unresolvable(ue,n))}let R=N1(m.getWhenFalse()),V=[...n],X=Ab(R,V,i);return p(X??Vc.unresolvable(m,n))}).when(jp.Node.isCallExpression,m=>{let g=Ast(m,n,i);if(g)return p(Vc.from(g,m,n))}).when(jp.Node.isBinaryExpression,m=>{let g=m.getOperatorToken().getKind();return H_(g).when(Pmr,()=>{let b=TAn(m,n,i)??Ast(m,n,i);if(b)return p(Vc.from(b,m,n))}).when(Nmr,b=>{let E=N1(m.getLeft()),I=N1(m.getRight()),R={whenTrueExpr:E,whenFalseExpr:I,node:m,stack:n,canReturnWhenTrue:Lmr(b)};return p(dAn(R,i))}).when(Rmr,()=>p(Vc.literal(Ast(m,n,i),m,n))).otherwise(()=>{})}).otherwise(()=>{})}var vAn=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="string")return r},Mmr=r=>{if(r&&uxe(r)&&Vc.isLiteral(r)&&typeof r.value=="number")return r},Fmr=(r,n,i)=>vAn(Ab(r,n,i)),FU=(r,n,i)=>{let l=Ab(r,n,i),p=vAn(l);if(p)return p;let m=Mmr(l);if(m)return m},dAn=({whenTrueExpr:r,whenFalseExpr:n,node:i,stack:l,canReturnWhenTrue:p},m)=>{let g=Ab(r,l,m),b=Ab(n,l,m);if(p&&g&&!Vc.isUnresolvable(g))return g;if(jp.Node.isBinaryExpression(i)&&i.getOperatorToken().getKind()===jp.ts.SyntaxKind.AmpersandAmpersandToken&&g&&b&&Vc.isLiteral(g)&&g.value===!0)return b;if(!g&&!b)return;if(g&&!b)return g;if(!g&&b)return b;let E=g,I=b;return Vc.isLiteral(E)&&Vc.isLiteral(I)&&E.value===I.value?E:Vc.conditional(E,I,i,l)},Omr=(r,n,i,l)=>{let p=[...i];if(jp.Node.isPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r;if(jp.Node.isStringLiteral(m)&&m.getLiteralText()===n)return p.push(m),m.getLiteralText();if(jp.Node.isComputedPropertyName(m)){let g=N1(m.getExpression()),b=FU(g,p,l);if(!b)return;if(String(b.value)===n)return p.push(m,g),r}}if(jp.Node.isShorthandPropertyAssignment(r)){let m=r.getNameNode();if(jp.Node.isIdentifier(m)&&m.getText()===n)return p.push(m),r}},QWt=(r,n,i,l)=>{let p=[...i],m=n.pop(),g=r.getProperty(m)??r.getProperties().find(b=>Omr(b,m,p,l));if(g){if(p.push(g),jp.Node.isPropertyAssignment(g)){let b=g.getInitializer();if(!b)return;if(jp.Node.isObjectLiteralExpression(b))return n.length>0?QWt(b,n,p,l):Ab(b,p,l);let E=Ab(b,p,l);if(E)return E}if(jp.Node.isShorthandPropertyAssignment(g)){let b=g.getNameNode();if(n.length>0)return MU(b,n,p,l);let E=Ab(b,p,l);if(E)return E}}},bAn=(r,n,i)=>{let l=r.getHead(),p=r.getTemplateSpans(),m=Fmr(l,n,i);if(!m)return;let g=p.map(b=>{let E=b.getExpression(),I=FU(E,n,i);if(!I)return;let R=b.getLiteral();return I.value+R.getLiteralText()});if(g.every(uk))return m.value+g.join("")},SAn=(r,n,i,l)=>{let p=r.getParent();if(!p)return;let m=p.getParent();if(m){if(jp.Node.isArrayBindingPattern(p)){let g=p.getChildIndex();if(Number.isNaN(g))return;if(jp.Node.isVariableDeclaration(m)){let b=m.getInitializer();if(!b)return;let E=N1(b);if(!jp.Node.isArrayLiteralExpression(E))return;let I=E.getElements()[g+1];if(!I)return;let R=[...n,E,I],V=Ab(I,R,l);if(!V)return;if(Vc.isObject(V)){let ue=V.value[i];return Vc.from(ue,I,R)}if(!Vc.isMap(V))return V;let X=V.value.get(i);return X||void 0}}jp.Node.isObjectBindingPattern(p)}};function Wmr(r,n,i,l){let p=n.at(-1);if(jp.Node.isVariableDeclaration(r)){let m=r.getInitializer();if(!m){let I=r.getTypeNode();if(!I)return;if(jp.Node.isTypeLiteral(I)){if(n.length>0){let V=[...i];V.push(I);let X=n.pop(),ue=I.getProperty(X),De=ue?.getTypeNode();for(;ue&&n.length>0&&De&&jp.Node.isTypeLiteral(De);)V.push(ue,De),X=n.pop(),ue=De.getProperty(X),De=ue?.getTypeNode();if(!De)return;let we=$Wt(De,V,l);return Vc.from(we,De,V)}let R=xAn(I,p,i,l);return i.push(I),Vc.from(R,I,i)}return}let g=N1(m);if(jp.Node.isObjectLiteralExpression(g)){let I=QWt(g,n,i,l);return I?(i.push(g),I):void 0}if(jp.Node.isArrayLiteralExpression(g)){let I=Number(p);if(Number.isNaN(I))return;let R=g.getElements()[I];if(!R)return;i.push(g);let V=Ab(R,i,l);if(V&&uxe(V)&&Vc.isLiteral(V))return V}let b=[...i,g],E=Ab(g,b,l);if(E)return E}if(jp.Node.isBindingElement(r)){let m=SAn(r,i,p,l);if(m)return m}}var MU=(r,n,i,l)=>{let p=Pst(r,i,l);if(!p)return Vc.unresolvable(r,i);let m=Wmr(p,n,i,l);return m||Vc.unresolvable(r,i)},o0e=new WeakMap,xAn=(r,n,i,l)=>{if(o0e.has(r)){let g=o0e.get(r);if(g===null)return;if(g?.has(n))return g.get(n)}let m=r.getMembers().find(g=>jp.Node.isPropertySignature(g)&&g.getName()===n);if(jp.Node.isPropertySignature(m)&&m.isReadonly()){let g=m.getTypeNode();if(!g){o0e.set(r,null);return}let b=$Wt(g,i,l);if(uk(b))return o0e.has(r)||o0e.set(r,new Map),o0e.get(r).set(n,b),b}o0e.set(r,null)};function Gmr(r){return jp.Node.isStringLiteral(r)?r.getLiteralText():r.getText()}var YVe=new WeakMap,$Wt=(r,n,i)=>{if(YVe.has(r))return YVe.get(r);if(jp.Node.isLiteralTypeNode(r)){let l=r.getLiteral();if(jp.Node.isStringLiteral(l)){let p=l.getLiteralText();return YVe.set(r,p),p}}if(jp.Node.isTypeLiteral(r)){let l=r.getMembers();if(!l.some(p=>!jp.Node.isPropertySignature(p)||!p.isReadonly())){let m=l.map(b=>{let E=b.getNameNode(),I=E.getText(),R=Gmr(E);if(!R)return;let V=xAn(r,I,n,i);return[R,V]}).filter(uk),g=Object.fromEntries(m);return YVe.set(r,g),g}}YVe.set(r,void 0)},zmr=(r,n,i)=>{if(jp.Node.isShorthandPropertyAssignment(r)){let l=r.getNameNode();return MU(l,[l.getText()],n,i)}if(jp.Node.isVariableDeclaration(r)){let l=r.getInitializer();if(!l){let b=r.getTypeNode();if(!b)return;if(jp.Node.isTypeLiteral(b)){n.push(b);let E=$Wt(b,n,i);if(uk(E))return Vc.from(E,r,n)}return Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}if(jp.Node.isBindingElement(r)){let l=r.getInitializer();if(!l){let b=r.getPropertyNameNode()??r.getNameNode(),E=b.getText(),I=[...n,b],R=SAn(r,I,E,i);return R||Vc.unresolvable(r,n)}let p=N1(l),m=[...n,p],g=Ab(p,m,i);if(g)return g}},EAn=(r,n,i,l)=>{let p=n.getVariableDeclaration(r);if(p)return p;let m=Vmr(r,n,i,l);if(m)return m},jmr=(r,n)=>{let i=n.getNamedExports();if(i.length===0)return!0;for(let l of i)if(l.getNameNode().getText()===r)return!0},DAn=r=>{let n=r.getProject(),i=r.getModuleSpecifierValue();if(!i)return;let l=r.getSourceFile().getFilePath(),p=jp.ts.resolveModuleName(i,l,n.getCompilerOptions(),n.getModuleResolutionHost());return p.resolvedModule?n.addSourceFileAtPath(p.resolvedModule.resolvedFileName):void 0};function Vmr(r,n,i,l){for(let p of n.getExportDeclarations()){let m=[p];if(!jmr(r,p))continue;let g=DAn(p);if(!g)continue;m.push(g);let b=EAn(r,g,i,l);if(b)return i.push(...m.concat(b)),b}}var Umr=(r,n,i)=>{let l=Pst(r,n,i);if(!l)return Vc.unresolvable(r,n);let p=N1(l),m=[...n],g=zmr(p,m,i);return g||Vc.unresolvable(r,m)},TAn=(r,n,i)=>{let l=N1(r.getLeft()),p=N1(r.getRight()),m=FU(l,n,i),g=FU(p,n,i);if(!(!m||!g)&&uk(m.value)&&uk(g.value))return Vc.literal(String(m.value)+String(g.value),r,n)},wst=(r,n,i)=>{let l=N1(r.getExpression()),p=r.getArgumentExpression();if(!p)return;let m=N1(p),g=[...n,l,m],b=FU(m,g,i);if(jp.Node.isIdentifier(l)&&b)return uk(b.value)?MU(l,[b.value.toString()],g,i):void 0;if(jp.Node.isBinaryExpression(m)){if(m.getOperatorToken().getKind()!==jp.ts.SyntaxKind.PlusToken)return;let E=TAn(m,g,i)??FU(m,g,i);if(E&&jp.Node.isIdentifier(l))return uk(E.value)?MU(l,[E.value.toString()],g,i):void 0}if(jp.Node.isTemplateExpression(m)){let E=bAn(m,g,i);if(E&&jp.Node.isIdentifier(l))return MU(l,[E],g,i)}if(jp.Node.isObjectLiteralExpression(l)&&b)return uk(b.value)?QWt(l,[b.value.toString()],g,i):void 0;if(jp.Node.isPropertyAccessExpression(m))return Ist(m,[],g,i);if(jp.Node.isPropertyAccessExpression(l)&&b&&uk(b.value)){let E=Ist(l,[],g,i);if(!E)return Vc.unresolvable(l,g);let I=b.value.toString();if(Vc.isObject(E)){let R=E.value[I];return Vc.from(R,m,g)}if(Vc.isMap(E)){let R=E.value.get(I);return Vc.from(R,m,g)}if(Vc.isArray(E)){let R=E.value[Number(I)];return Vc.from(R,m,g)}return Vc.unresolvable(l,g)}if(jp.Node.isIdentifier(l)&&jp.Node.isElementAccessExpression(m)){let E=wst(m,g,i);if(typeof E=="string"&&uk(E))return MU(l,[E],g,i)}if(jp.Node.isElementAccessExpression(l)&&b&&uk(b.value)){let E=wst(l,g,i);if(gAn(E)){let I=b.value.toString();if(Vc.isMap(E))return E.value.get(I);if(Vc.isObject(E)){let R=E.value[I];return R?Vc.from(R,r,g):void 0}}}if(jp.Node.isArrayLiteralExpression(l)&&b)return Hmr(l,Number(b.value),g,i);if(jp.Node.isConditionalExpression(m)){if(i.flags?.skipConditions)return Vc.unresolvable(m,g);let E=FU(m,g,i);if(uk(E)&&uk(E.value)&&jp.Node.isIdentifier(l))return MU(l,[E.value.toString()],g,i);let I=N1(m.getWhenTrue()),R=N1(m.getWhenFalse()),V=FU(I,g,i),X=FU(R,g,i);if(jp.Node.isIdentifier(l)){let ue=V&&uk(V.value)?MU(l,[V.value.toString()],g,i):void 0,De=X&&uk(X.value)?MU(l,[X.value.toString()],g,i):void 0;return!ue&&!De?void 0:ue&&!De?ue:!ue&&De?De:Vc.conditional(ue,De,m,g)}}},Hmr=(r,n,i,l)=>{let p=r.getElements()[n];if(!p)return;let m=Ab(p,i,l);if(uk(m))return m},Ist=(r,n,i,l)=>{let p=r.getName(),m=N1(r.getExpression()),g=n.concat(p);if(i.push(m),jp.Node.isIdentifier(m))return MU(m,g,i,l);if(jp.Node.isPropertyAccessExpression(m))return Ist(m,g,i,l);if(jp.Node.isElementAccessExpression(m)){let b=wst(m,i,l);if(!b)return;if(Vc.isObject(b)){let E=b.value[p];return Vc.from(E,r,i)}if(Vc.isMap(b)){let E=b.value.get(p);return Vc.from(E,r,i)}}},mAn=()=>!0,Nst=(r,n,i=mAn,l=mAn)=>{let p=r.getArguments(),m=r.getExpression().getText();return p.length===0?Vc.array([],r,[]):Vc.array(p.map((g,b)=>{let E=N1(g),I=[r,E];return H_(E).when(R=>l({fnNode:r,fnName:m,argNode:R,index:b}),R=>Ab(R,I,n,i)??Vc.unresolvable(R,I)).otherwise(()=>Vc.unresolvable(E,I))}),r,[])},Rst=(r,n)=>{let i=r.getInitializer(),l=[r,i];return H_(i).with(FS.nullish,()=>{let p=r.getNameNode();return Vc.emptyInitializer(p,l)}).when(KWt.Node.isStringLiteral,p=>{let m=p.getLiteralText();return Vc.literal(BAn(m),p,l)}).when(KWt.Node.isJsxExpression,p=>{let m=p.getExpression();if(!m)return;let g=N1(m);if(!g)return;l.push(g);let b=Ab(g,l,n);if(b)return b}).otherwise(()=>{})},AAn=(r,n,i)=>{let l=N1(r.getExpression());return Ab(l,[],n,i)},_An=(r,n)=>r?uxe(r)?Vc.isUnresolvable(r)||Vc.isConditional(r)?new Map:Vc.isMap(r)?r.value:new Map(Object.entries(r.value).map(([i,l])=>{let p=Vc.from(l,r.getNode()??n,r.getStack()??[]);return[i,p||null]}).filter(([,i])=>i!==null)):new Map(Object.entries(r)):new Map,Jmr=pI.or(Jj.Node.isImportDeclaration,Jj.Node.isExportDeclaration),kAn=({ast:r,...n})=>{let{components:i,functions:l,taggedTemplates:p}=n,m=new Map,g=new Map,b,E,I,R,V;return r.forEachDescendant((X,ue)=>{if(Jmr(X)){ue.skip();return}if(i){if(Jj.Node.isJsxOpeningElement(X)||Jj.Node.isJsxSelfClosingElement(X)){if(b=X,E=_mr(b),I=E.includes("."),!i.matchTag({tagNode:b,tagName:E,isFactory:I})){b=void 0;return}m.has(E)||m.set(E,{kind:"component",nodesByProp:new Map,queryList:[]}),R=m.get(E).nodesByProp,g.has(b)||g.set(b,{name:E,props:new Map,conditionals:[]}),V=g.get(b)}if(Jj.Node.isJsxSpreadAttribute(X)){if(!b||!V)return;let De=({propName:Me,propNode:Ct})=>i.matchProp({tagNode:b,tagName:E,propName:Me,propNode:Ct}),we=AAn(X,n,mU(De));if(!we)return;let We=Me=>{let Ct=_An(Me,X),Rt=Vc.isMap(Me),en=Vc.map(Ct,X,[b]);Rt&&Me.spreadConditions?.length&&(en.spreadConditions=Me.spreadConditions),Ct.forEach((Tn,hn)=>{De({propName:hn,propNode:X})&&(V.props.set(hn,Tn),R.set(hn,(R.get(hn)??[]).concat(Tn)))})};(Me=>H_(Me).when(Vc.isConditional,Ct=>{V.conditionals.push(Ct)}).when(pI.or(Vc.isObject,Vc.isMap),Ct=>We(Ct)).otherwise(NZe))(we);return}if(Jj.Node.isJsxAttribute(X)){if(!b||!V)return;let De=X.getNameNode().getText();if(!i.matchProp({tagNode:b,tagName:E,propName:De,propNode:X}))return;ok(Rst(X,n),Uje.fromNullable,Uje.tap(we=>{V.props.set(De,we),R.set(De,(R.get(De)??[]).concat(we))}))}}if(l&&Jj.Node.isCallExpression(X)){let De=X.getExpression(),we=Jj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!l.matchFn({fnNode:X,fnName:we}))return;let We=({propName:Tn,propNode:hn})=>l.matchProp({fnNode:X,fnName:we,propName:Tn,propNode:hn});m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let Ne=m.get(we),Me=Ne.nodesByProp,Ct=Nst(X,n,We,l.matchArg),Rt=ok(Ct.value,M8.map(Tn=>H_(Tn).when(pI.or(Vc.isObject,Vc.isMap),hn=>{let on=_An(hn,X),Pn=Vc.isMap(hn);on.forEach((Jt,Gs)=>{(Pn||We({propName:Gs,propNode:X}))&&Me.set(Gs,(Me.get(Gs)??[]).concat(Jt))});let Xn=Vc.map(on,X,hn.getStack());return Vc.isMap(hn)&&hn.spreadConditions?.length&&(Xn.spreadConditions=hn.spreadConditions),Xn}).otherwise(hn=>hn))),en={kind:"call-expression",name:we,box:Vc.array(Rt,X,[])};Ne.queryList.push(en)}if(p&&Jj.Node.isTaggedTemplateExpression(X)){let De=X.getTag(),we=Jj.Node.isCallExpression(De)?De.getExpression().getText():De.getText();if(!p.matchTaggedTemplate({taggedTemplateNode:X,fnName:we}))return;m.has(we)||m.set(we,{kind:"function",nodesByProp:new Map,queryList:[]});let We=m.get(we),Ne={kind:"tagged-template",name:we,box:Ab(X,[],n)};We.queryList.push(Ne)}}),g.forEach((X,ue)=>{let De=g.get(ue);if(!De)return;let we=mU({name:X.name,box:Vc.map(De.props,ue,[])});De.conditionals?.length&&(we.box.spreadConditions=De.conditionals);let We=X.name;m.get(We).queryList.push(we)}),m},qmr=pI.or(Vc.isObject,Vc.isMap),wAn=(r,n)=>{let i=r.getTagNameNode().getText(),l=r.getAttributes(),p=new Map;return l.forEach(m=>{if(XWt.Node.isJsxAttribute(m)){let g=m.getNameNode(),b=Rst(m,n);if(!b)return;p.set(g.getText(),b);return}if(XWt.Node.isJsxSpreadAttribute(m)){let g=AAn(m,n,()=>!0);if(!qmr(g))return;Vc.isMap(g)&&g.value.forEach((b,E)=>{p.set(E,b)}),Vc.isObject(g)&&Object.entries(g.value).forEach(([b,E])=>{p.set(b,Vc.literal(E,r,[]))})}}),{name:i,props:p}},kst=(r,n)=>{if(!r.length)return n;let i={};return r.reduce((l,p,m)=>{let g=m===r.length-1;return l[p]=g?n:{},g?i:l[p]},i),i},Hre=(r,n)=>H_(r).with(FS.nullish,()=>{}).when(Vc.isConditional,i=>{let l=n.path,p=Hre(i.whenTrue,Object.assign({},n,{path:l,parent:i})),m=Hre(i.whenFalse,Object.assign({},n,{path:l,parent:i}));p&&n.conditions.push(kst(l,p)),m&&n.conditions.push(kst(l,m))}).when(pI.or(Vc.isLiteral,Vc.isObject),i=>i.value).when(Vc.isEmptyInitializer,()=>!0).when(Vc.isMap,i=>{if(i.spreadConditions){let l=n.path;i.spreadConditions.forEach(p=>{let m=Hre(p.whenTrue,Object.assign({},n,{path:l,parent:i})),g=Hre(p.whenFalse,Object.assign({},n,{path:l,parent:i}));m&&n.spreadConditions.push(kst(l,m)),g&&n.spreadConditions.push(kst(l,g))})}return ok(M8.from(i.value.entries()),M8.map(([l,p])=>[l,Hre(p,Object.assign({},n,{path:n.path.concat(l),parent:i}))]),M8.filter(([,l])=>uk(l)),Object.fromEntries)}).when(Vc.isArray,i=>{let l=0;return ok(i.value,M8.map(p=>Hre(p,Object.assign({},n,{path:n.path.concat(String(l++)),parent:i}))),M8.filter(uk),p=>p.flat())}).otherwise(()=>{}),Kmr=new WeakMap,Xmr=r=>({value:r,has:n=>r.has(n),get:n=>r.get(n),set:(n,i)=>r.set(n,i)}),qj=(r,n)=>{let i={cache:n?.cache??Kmr,...n,path:[],parent:void 0,conditions:[],spreadConditions:[]},l=Xmr(i.cache);return{raw:H_(r).with(FS.nullish,()=>{}).when(l.has,l.get).when(Array.isArray,m=>{let g=ok(m,M8.map(b=>Hre(b,i)),M8.filter(uk),M8.head);return l.set(m,g),g}).otherwise(m=>{let g=Hre(m,i);return l.set(m,g),g})??{},conditions:i.conditions,spreadConditions:i.spreadConditions}};re();re();re();re();function ZVe(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ymr(r){return ZVe(r)==="Undefined"}function Qmr(r){return ZVe(r)==="Null"}function eUe(r){if(ZVe(r)!=="Object")return!1;let n=Object.getPrototypeOf(r);return n.constructor===Object&&n===Object.prototype}function ZWt(r){return ZVe(r)==="Array"}function eGt(r){return ZVe(r)==="Symbol"}var m0i=$mr(Qmr,Ymr);function $mr(r,n,i,l,p){return m=>r(m)||n(m)||!!i&&i(m)||!!l&&l(m)||!!p&&p(m)}function Zmr(r,n){return ZWt(r)&&ZWt(n)?r.concat(n):n}function IAn(r,n,i,l){let p={}.propertyIsEnumerable.call(l,n)?"enumerable":"nonenumerable";p==="enumerable"&&(r[n]=i),p==="nonenumerable"&&Object.defineProperty(r,n,{value:i,enumerable:!1,writable:!0,configurable:!0})}function PAn(r,n,i){if(!eUe(n))return n;let l={};if(eUe(r)){let b=Object.getOwnPropertyNames(r),E=Object.getOwnPropertySymbols(r);l=[...b,...E].reduce((I,R)=>{let V=r[R];return(!eGt(R)&&!Object.getOwnPropertyNames(n).includes(R)||eGt(R)&&!Object.getOwnPropertySymbols(n).includes(R))&&IAn(I,R,V,r),I},{})}let p=Object.getOwnPropertyNames(n),m=Object.getOwnPropertySymbols(n);return[...p,...m].reduce((b,E)=>{let I=n[E],R=eUe(r)?r[E]:void 0;R!==void 0&&eUe(I)&&(I=PAn(R,I,i));let V=i?i(R,I,E):I;return IAn(b,E,V,n),b},l)}function NAn(r,...n){return n.reduce((i,l)=>PAn(i,l,Zmr),r)}var RAn=r=>Object.prototype.toString.call(r)==="[object Object]";function tGt(r,...n){let i=n.pop();for(let l of n)for(let p in l){let m=i(r[p],l[p]);m===void 0?RAn(r[p])&&RAn(l[p])?r[p]=tGt({},r[p],l[p],i):r[p]=l[p]:r[p]=m}return r}function LAn(r,...n){for(let i of n)for(let l in i)r?.hasOwnProperty?.(l)||(r[l]=i[l]);return r}function e_r(r){return r.reduce((n,{extend:i})=>i?tGt(n,i,(l,p)=>p===void 0?l??[]:l===void 0?[p]:Array.isArray(l)?[p,...l]:[p,l]):n,{})}function t_r(r){return{...r.reduce((n,i)=>LAn(n,i),{}),extend:e_r(r)}}function tUe(r){let{extend:n=[],...i}=t_r(r);return tGt(i,n,(l,p)=>NAn({},l,...p))}var n_r=r=>typeof r=="object"&&Object.keys(r).length===0,r_r=r=>Object.keys(r).reduce((n,i)=>(r[i]!==void 0&&!n_r(r[i])&&(n[i]=r[i]),n),{});function MAn(r){let n=LAn({conditions:tUe(r.map(i=>i.conditions??{})),theme:tUe(r.map(i=>i.theme??{})),patterns:tUe(r.map(i=>i.patterns??{})),utilities:tUe(r.map(i=>i.utilities??{})),globalCss:tUe(r.map(i=>i.globalCss??{}))},...r);return r_r(n)}re();var Lst=require("path"),nUe=(r,n)=>{for(let i of r){let l=n.match(i.pattern);if(l)for(let p of i.paths){let m=0;return p.replace(/\*/g,()=>{let b=Math.min(++m,l.length-1);return l[b]}).split(Lst.sep).join(Lst.posix.sep)}}};re();var pxe=require("path"),Mst=require("fs");function FAn(r,n){let i=(0,pxe.resolve)(".",r),l;for((0,Mst.statSync)(i).isDirectory()||(i=(0,pxe.dirname)(i));;){if(l=n(i,(0,Mst.readdirSync)(i)),l)return(0,pxe.resolve)(i,l);if(i=(0,pxe.dirname)(l=i),l===i)break}}var UAn=require("path"),rUe=_d(require("fs"),1),fxe=_d(require("path"),1),HAn=require("path"),nGt=_d(SWt(),1);re();var OAn=require("esbuild"),WAn=_d(require("path"),1),Fst=_d(require("fs"),1),OU=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});function i_r(r){let n=Fst.default.realpathSync(r);delete OU.cache[r];let i=OU(n);return{mod:i.default??i,dependencies:[n],code:Fst.default.readFileSync(n,"utf-8")}}async function o_r(r,n){let i=await(0,OAn.build)({absWorkingDir:n,entryPoints:[r],outfile:"out.js",write:!1,platform:"node",bundle:!0,format:"cjs",sourcemap:!1,metafile:!0,mainFields:["module","main"]}),{text:l}=i.outputFiles[0];return{code:l,dependencies:i.metafile?Object.keys(i.metafile.inputs):[]}}function s_r(r,n){let i=WAn.default.extname(r),l=Fst.default.realpathSync(r),p=OU.extensions[i];OU.extensions[i]=(b,E)=>{E===l?b._compile(n,E):p(b,E)},delete OU.cache[OU.resolve(r)];let m=OU(r),g=m.default??m;return OU.extensions[i]=p,g}async function GAn(r,n={}){let{cwd:i=process.cwd()}=n,l=OU.resolve(r,{paths:[i]});try{return i_r(l)}catch{let p=await o_r(l,i);try{p.mod=await s_r(l,p.code)}catch{p.mod=OU("node-eval")(p.code).default}return p}}re();var zAn=class extends Error{code;hint;constructor(r,n,i){super(n),this.code=`ERR_PANDA_${r}`,this.hint=i?.hint}};var Ost=class extends zAn{constructor(){let r="Cannot find config file: panda.config.ts or panda.config.js/cjs/mjs/mts/cts. Did you forget to run `panda init`?";super("NO_CONFIG",r)}},jAn=class extends zAn{constructor(r){super("CONFIG_ERROR",r)}};var rGt=require("@pandacss/preset-base"),Gst=require("@pandacss/preset-panda"),a_r=[".ts",".js",".mts",".mjs",".cts",".cjs"],l_r=new RegExp(`panda.config(${a_r.join("|")})$`),c_r=r=>l_r.test(r);function u_r({cwd:r,file:n}){return n?(0,UAn.resolve)(r,n):FAn(r,(i,l)=>l.find(c_r))}function JAn(r,n){let i=Object.keys(r).sort((p,m)=>VAn(m)-VAn(p)),l=[];for(let p of i){let m=r[p];p=p_r(p).replace(/\*/g,"(.+)"),l.push({pattern:new RegExp("^"+p+"$"),paths:m.map(g=>(0,HAn.resolve)(n,g))})}return l}function VAn(r){let n=r.indexOf("*");return r.substr(0,n).length}function p_r(r){return r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/-/g,"\\x2d")}var f_r=[".js",".cjs",".mjs"],d_r=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],m_r=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];function __r(r,n){for(let i of n){let l=`${r}${i}`;if(rUe.default.existsSync(l)&&rUe.default.statSync(l).isFile())return l}for(let i of n){let l=`${r}/index${i}`;if(rUe.default.existsSync(l))return l}return null}var h_r=/import[\s\S]*?['"](.{3,}?)['"]/gi,g_r=/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,B_r=/require\(['"`](.+)['"`]\)/gi,y_r=/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi;function Wst(r,n){let{filename:i,seen:l}=r,{moduleResolution:p,...m}=r.compilerOptions??{},g=__r(fxe.default.resolve(r.cwd,i),f_r.includes(r.ext)?d_r:m_r);if(g===null||(n&&r.foundModuleAliases.set(n,g),l.size>1&&l.has(g)))return;l.add(g);let b=rUe.default.readFileSync(g,"utf-8"),E=[...b.matchAll(h_r),...b.matchAll(g_r),...b.matchAll(B_r),...b.matchAll(y_r)];if(!E.length)return;let I={cwd:fxe.default.dirname(g),ext:fxe.default.extname(g),seen:l,baseUrl:r.baseUrl,pathMappings:r.pathMappings,foundModuleAliases:r.foundModuleAliases};E.forEach(R=>{let V=R[1];if(V[0]==="."){Wst(Object.assign({},I,{filename:V}));return}try{let X=nGt.default.resolveModuleName(V,g,m,nGt.default.sys).resolvedModule;if(X&&X.extension===".ts"){Wst(Object.assign({},I,{filename:X.resolvedFileName}));return}if(!r.pathMappings)return;let ue=nUe(r.pathMappings,V);if(!ue)return;Wst(Object.assign({},I,{filename:ue}),V)}catch{}})}function qAn(r,n={pathMappings:[]},i){if(r===null)return{deps:new Set,aliases:new Map};let l=new Map,p=new Set;return p.add(r),Wst({filename:r,ext:fxe.default.extname(r),cwd:fxe.default.dirname(r),seen:p,baseUrl:n.baseUrl,pathMappings:n.pathMappings??[],foundModuleAliases:l,compilerOptions:i}),{deps:p,aliases:l}}async function KAn(r,n){let{mod:i,dependencies:l}=await GAn(r,{cwd:n,interopDefault:!0});return{config:i?.default??i,dependencies:l}}async function C_r(r,n){let i=r.presets??[],l=[r];for(;i.length>0;){let p=await i.shift();if(typeof p=="string"){let m=await KAn(p,n);l.push(await m.config),i.unshift(...await m.config.presets??[])}else l.push(p),i.unshift(...p.presets??[])}return MAn(l)}var XAn={"@pandacss/preset-base":rGt.preset,"@pandacss/preset-panda":Gst.preset,"@pandacss/dev/presets":Gst.preset},v_r=Object.keys(XAn),b_r=r=>v_r.includes(r);async function YAn(r){let n=await x_r(r);return S_r(n,r.cwd)}async function S_r(r,n){let i=new Set;r.config.eject||i.add(rGt.preset),r.config.presets?r.config.presets.forEach(p=>{typeof p=="string"&&b_r(p)?i.add(XAn[p]):i.add(p)}):r.config.eject||i.add(Gst.preset),r.config.presets=Array.from(i);let l=await C_r(r.config,n);return{...r,config:l}}async function x_r(r){let{cwd:n,file:i}=r,l=u_r({cwd:n,file:i});if(!l)throw new Ost;P1.debug("config:path",l);let p=await KAn(l,n);if(typeof p.config!="object")throw new jAn("\u{1F4A5} Config must export or return an object.");return{...p,config:p.config,path:l}}var H8n=require("fs"),KHt=_d(vGt(),1),eut=require("path");re();var gxe=require("path"),bGt=require("fs");var Kwn=r=>r===(0,gxe.dirname)(r),Igr=Symbol("stop"),Pgr=r=>r===Igr;var $st=(r,n=process.cwd())=>{if(typeof r=="function"&&r(n)instanceof Promise)throw new Error("Async matcher can not be used in 'lookItUpSync'");if(typeof r=="string"){let l=(0,gxe.join)(n,r);return(0,bGt.existsSync)(l)?l:Kwn(n)?null:$st(r,(0,gxe.dirname)(n))}let i=r(n);return Pgr(i)?null:i??(Kwn(n)?null:$st(r,(0,gxe.dirname)(n)))};re();var Bxe=_d(require("path"),1),nIn=require("fs"),rIn=_d(require("path"),1);var Yj=_d(require("path"),1),oIn=require("fs"),TGt=require("module"),HD=_d(require("path"),1),sIn=require("fs");async function Xwn(r,n){let i=Bxe.default.dirname(Bxe.default.resolve(r)),l=n?.root?Bxe.default.resolve(n.root):null;for(;i;){let p=await Ngr(i,n);if(p)return p;{if(l===i)break;let m=Bxe.default.dirname(i);if(m===i)break;i=m}}throw new Error(`no tsconfig file found for ${r}`)}async function Ngr(r,n){let i=Bxe.default.join(r,"tsconfig.json");if(n?.tsConfigPaths)return n.tsConfigPaths.has(i)?i:void 0;try{let l=await nIn.promises.stat(i);if(l.isFile()||l.isFIFO())return i}catch(l){if(l.code!=="ENOENT")throw l}}var i1i=rIn.default.sep;function Rgr(r){let n=Lgr(Mgr(Fgr(r)));return n.trim()===""?"{}":n}function Lgr(r){let n=!1,i=0,l="",p=null;for(let m=0;m<r.length;m++){let g=r[m];if(g==='"'&&(iIn(r,m)||(n=!n)),n){p=null;continue}if(g===","){p=m;continue}p&&(g==="}"||g==="]"?(l+=r.slice(i,p)+" ",i=p+1,p=null):g.match(/\s/)||(p=null))}return l+r.substring(i)}function iIn(r,n){let i=n-1,l=0;for(;r[i]==="\\";)i-=1,l+=1;return!!(l%2)}function Zst(r,n,i){return r.slice(n,i).replace(/\S/g," ")}var SGt=Symbol("singleComment"),Ywn=Symbol("multiComment");function Mgr(r){let n=!1,i=!1,l=0,p="";for(let m=0;m<r.length;m++){let g=r[m],b=r[m+1];!i&&g==='"'&&(iIn(r,m)||(n=!n)),!n&&(!i&&g+b==="//"?(p+=r.slice(l,m),l=m,i=SGt,m++):i===SGt&&g+b===`\r
30731
30731
  `?(m++,i=!1,p+=Zst(r,l,m),l=m):i===SGt&&g===`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pandacss/language-server",
3
3
  "displayName": "Panda CSS",
4
4
  "description": "🐼 The official Panda language server",
5
- "version": "0.0.0-dev-20230905224446",
5
+ "version": "0.0.0-dev-20230906232302",
6
6
  "main": "dist/index.js",
7
7
  "repository": {
8
8
  "url": "https://github.com/chakra-ui/panda",
@@ -32,14 +32,14 @@
32
32
  "vscode-languageserver": "^8.1.0",
33
33
  "vscode-languageserver-textdocument": "^1.0.8",
34
34
  "vscode-uri": "^3.0.7",
35
- "@pandacss/core": "0.0.0-dev-20230905224446",
36
- "@pandacss/extension-shared": "0.0.0-dev-20230905224446",
37
- "@pandacss/extractor": "0.0.0-dev-20230905224446",
38
- "@pandacss/node": "0.0.0-dev-20230905224446",
39
- "@pandacss/parser": "0.0.0-dev-20230905224446",
40
- "@pandacss/shared": "0.0.0-dev-20230905224446",
41
- "@pandacss/token-dictionary": "0.0.0-dev-20230905224446",
42
- "@pandacss/types": "0.0.0-dev-20230905224446"
35
+ "@pandacss/core": "0.0.0-dev-20230906232302",
36
+ "@pandacss/extension-shared": "0.0.0-dev-20230906232302",
37
+ "@pandacss/extractor": "0.0.0-dev-20230906232302",
38
+ "@pandacss/node": "0.0.0-dev-20230906232302",
39
+ "@pandacss/parser": "0.0.0-dev-20230906232302",
40
+ "@pandacss/shared": "0.0.0-dev-20230906232302",
41
+ "@pandacss/token-dictionary": "0.0.0-dev-20230906232302",
42
+ "@pandacss/types": "0.0.0-dev-20230906232302"
43
43
  },
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.3.1"