mirror of
https://git.kittycat.homes/zoe/hugo-batsite.git
synced 2024-08-15 03:18:24 +00:00
280 lines
No EOL
3.3 MiB
280 lines
No EOL
3.3 MiB
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.typescript=e()}})(function(){"use strict";var Un=(R,te)=>()=>(te||R((te={exports:{}}).exports,te),te.exports);var Rc=Un((KU,eA)=>{var L0=function(R){return R&&R.Math==Math&&R};eA.exports=L0(typeof globalThis=="object"&&globalThis)||L0(typeof window=="object"&&window)||L0(typeof self=="object"&&self)||L0(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Vd=Un((GU,rA)=>{rA.exports=function(R){try{return!!R()}catch{return!0}}});var hm=Un((HU,iA)=>{var nL=Vd();iA.exports=!nL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var R0=Un((XU,tA)=>{var oL=Vd();tA.exports=!oL(function(){var R=function(){}.bind();return typeof R!="function"||R.hasOwnProperty("prototype")})});var J0=Un((QU,aA)=>{var sL=R0(),B0=Function.prototype.call;aA.exports=sL?B0.bind(B0):function(){return B0.apply(B0,arguments)}});var cA=Un(sA=>{"use strict";var nA={}.propertyIsEnumerable,oA=Object.getOwnPropertyDescriptor,cL=oA&&!nA.call({1:2},1);sA.f=cL?function(te){var qe=oA(this,te);return!!qe&&qe.enumerable}:nA});var AS=Un(($U,uA)=>{uA.exports=function(R,te){return{enumerable:!(R&1),configurable:!(R&2),writable:!(R&4),value:te}}});var sp=Un((ZU,_A)=>{var lA=R0(),fA=Function.prototype,uL=fA.bind,PS=fA.call,lL=lA&&uL.bind(PS,PS);_A.exports=lA?function(R){return R&&lL(R)}:function(R){return R&&function(){return PS.apply(R,arguments)}}});var j0=Un((ez,dA)=>{var pA=sp(),fL=pA({}.toString),_L=pA("".slice);dA.exports=function(R){return _L(fL(R),8,-1)}});var mA=Un((rz,gA)=>{var pL=Rc(),dL=sp(),gL=Vd(),mL=j0(),NS=pL.Object,vL=dL("".split);gA.exports=gL(function(){return!NS("z").propertyIsEnumerable(0)})?function(R){return mL(R)=="String"?vL(R,""):NS(R)}:NS});var IS=Un((iz,vA)=>{var yL=Rc(),hL=yL.TypeError;vA.exports=function(R){if(R==null)throw hL("Can't call method on "+R);return R}});var U0=Un((tz,yA)=>{var DL=mA(),bL=IS();yA.exports=function(R){return DL(bL(R))}});var cp=Un((az,hA)=>{hA.exports=function(R){return typeof R=="function"}});var Dm=Un((nz,DA)=>{var SL=cp();DA.exports=function(R){return typeof R=="object"?R!==null:SL(R)}});var Py=Un((oz,bA)=>{var wS=Rc(),TL=cp(),xL=function(R){return TL(R)?R:void 0};bA.exports=function(R,te){return arguments.length<2?xL(wS[R]):wS[R]&&wS[R][te]}});var TA=Un((sz,SA)=>{var EL=sp();SA.exports=EL({}.isPrototypeOf)});var EA=Un((cz,xA)=>{var CL=Py();xA.exports=CL("navigator","userAgent")||""});var wA=Un((uz,IA)=>{var NA=Rc(),OS=EA(),CA=NA.process,kA=NA.Deno,AA=CA&&CA.versions||kA&&kA.version,PA=AA&&AA.v8,Kp,z0;PA&&(Kp=PA.split("."),z0=Kp[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1]));!z0&&OS&&(Kp=OS.match(/Edge\/(\d+)/),(!Kp||Kp[1]>=74)&&(Kp=OS.match(/Chrome\/(\d+)/),Kp&&(z0=+Kp[1])));IA.exports=z0});var FS=Un((lz,FA)=>{var OA=wA(),kL=Vd();FA.exports=!!Object.getOwnPropertySymbols&&!kL(function(){var R=Symbol();return!String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&OA&&OA<41})});var MS=Un((fz,MA)=>{var AL=FS();MA.exports=AL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var LS=Un((_z,LA)=>{var PL=Rc(),NL=Py(),IL=cp(),wL=TA(),OL=MS(),FL=PL.Object;LA.exports=OL?function(R){return typeof R=="symbol"}:function(R){var te=NL("Symbol");return IL(te)&&wL(te.prototype,FL(R))}});var BA=Un((pz,RA)=>{var ML=Rc(),LL=ML.String;RA.exports=function(R){try{return LL(R)}catch{return"Object"}}});var W0=Un((dz,JA)=>{var RL=Rc(),BL=cp(),JL=BA(),jL=RL.TypeError;JA.exports=function(R){if(BL(R))return R;throw jL(JL(R)+" is not a function")}});var UA=Un((gz,jA)=>{var UL=W0();jA.exports=function(R,te){var qe=R[te];return qe==null?void 0:UL(qe)}});var WA=Un((mz,zA)=>{var zL=Rc(),RS=J0(),BS=cp(),JS=Dm(),WL=zL.TypeError;zA.exports=function(R,te){var qe,Ve;if(te==="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R))||BS(qe=R.valueOf)&&!JS(Ve=RS(qe,R))||te!=="string"&&BS(qe=R.toString)&&!JS(Ve=RS(qe,R)))return Ve;throw WL("Can't convert object to primitive value")}});var VA=Un((vz,qA)=>{qA.exports=!1});var q0=Un((yz,GA)=>{var KA=Rc(),qL=Object.defineProperty;GA.exports=function(R,te){try{qL(KA,R,{value:te,configurable:!0,writable:!0})}catch{KA[R]=te}return te}});var V0=Un((hz,XA)=>{var VL=Rc(),KL=q0(),HA="__core-js_shared__",GL=VL[HA]||KL(HA,{});XA.exports=GL});var jS=Un((Dz,YA)=>{var HL=VA(),QA=V0();(YA.exports=function(R,te){return QA[R]||(QA[R]=te!==void 0?te:{})})("versions",[]).push({version:"3.21.1",mode:HL?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var US=Un((bz,$A)=>{var XL=Rc(),QL=IS(),YL=XL.Object;$A.exports=function(R){return YL(QL(R))}});var Cg=Un((Sz,ZA)=>{var $L=sp(),ZL=US(),eR=$L({}.hasOwnProperty);ZA.exports=Object.hasOwn||function(te,qe){return eR(ZL(te),qe)}});var zS=Un((Tz,e4)=>{var rR=sp(),iR=0,tR=Math.random(),aR=rR(1 .toString);e4.exports=function(R){return"Symbol("+(R===void 0?"":R)+")_"+aR(++iR+tR,36)}});var Ny=Un((xz,n4)=>{var nR=Rc(),oR=jS(),r4=Cg(),sR=zS(),i4=FS(),a4=MS(),mv=oR("wks"),bm=nR.Symbol,t4=bm&&bm.for,cR=a4?bm:bm&&bm.withoutSetter||sR;n4.exports=function(R){if(!r4(mv,R)||!(i4||typeof mv[R]=="string")){var te="Symbol."+R;i4&&r4(bm,R)?mv[R]=bm[R]:a4&&t4?mv[R]=t4(te):mv[R]=cR(te)}return mv[R]}});var u4=Un((Ez,c4)=>{var uR=Rc(),lR=J0(),o4=Dm(),s4=LS(),fR=UA(),_R=WA(),pR=Ny(),dR=uR.TypeError,gR=pR("toPrimitive");c4.exports=function(R,te){if(!o4(R)||s4(R))return R;var qe=fR(R,gR),Ve;if(qe){if(te===void 0&&(te="default"),Ve=lR(qe,R,te),!o4(Ve)||s4(Ve))return Ve;throw dR("Can't convert object to primitive value")}return te===void 0&&(te="number"),_R(R,te)}});var WS=Un((Cz,l4)=>{var mR=u4(),vR=LS();l4.exports=function(R){var te=mR(R,"string");return vR(te)?te:te+""}});var p4=Un((kz,_4)=>{var yR=Rc(),f4=Dm(),qS=yR.document,hR=f4(qS)&&f4(qS.createElement);_4.exports=function(R){return hR?qS.createElement(R):{}}});var VS=Un((Az,d4)=>{var DR=hm(),bR=Vd(),SR=p4();d4.exports=!DR&&!bR(function(){return Object.defineProperty(SR("div"),"a",{get:function(){return 7}}).a!=7})});var KS=Un(m4=>{var TR=hm(),xR=J0(),ER=cA(),CR=AS(),kR=U0(),AR=WS(),PR=Cg(),NR=VS(),g4=Object.getOwnPropertyDescriptor;m4.f=TR?g4:function(te,qe){if(te=kR(te),qe=AR(qe),NR)try{return g4(te,qe)}catch{}if(PR(te,qe))return CR(!xR(ER.f,te,qe),te[qe])}});var y4=Un((Nz,v4)=>{var IR=hm(),wR=Vd();v4.exports=IR&&wR(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var GS=Un((Iz,D4)=>{var h4=Rc(),OR=Dm(),FR=h4.String,MR=h4.TypeError;D4.exports=function(R){if(OR(R))return R;throw MR(FR(R)+" is not an object")}});var $S=Un(S4=>{var LR=Rc(),RR=hm(),BR=VS(),JR=y4(),K0=GS(),b4=WS(),jR=LR.TypeError,HS=Object.defineProperty,UR=Object.getOwnPropertyDescriptor,XS="enumerable",QS="configurable",YS="writable";S4.f=RR?JR?function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),typeof te=="function"&&qe==="prototype"&&"value"in Ve&&YS in Ve&&!Ve[YS]){var ni=UR(te,qe);ni&&ni[YS]&&(te[qe]=Ve.value,Ve={configurable:QS in Ve?Ve[QS]:ni[QS],enumerable:XS in Ve?Ve[XS]:ni[XS],writable:!1})}return HS(te,qe,Ve)}:HS:function(te,qe,Ve){if(K0(te),qe=b4(qe),K0(Ve),BR)try{return HS(te,qe,Ve)}catch{}if("get"in Ve||"set"in Ve)throw jR("Accessors not supported");return"value"in Ve&&(te[qe]=Ve.value),te}});var G0=Un((Oz,T4)=>{var zR=hm(),WR=$S(),qR=AS();T4.exports=zR?function(R,te,qe){return WR.f(R,te,qR(1,qe))}:function(R,te,qe){return R[te]=qe,R}});var H0=Un((Fz,x4)=>{var VR=sp(),KR=cp(),ZS=V0(),GR=VR(Function.toString);KR(ZS.inspectSource)||(ZS.inspectSource=function(R){return GR(R)});x4.exports=ZS.inspectSource});var k4=Un((Mz,C4)=>{var HR=Rc(),XR=cp(),QR=H0(),E4=HR.WeakMap;C4.exports=XR(E4)&&/native code/.test(QR(E4))});var N4=Un((Lz,P4)=>{var YR=jS(),$R=zS(),A4=YR("keys");P4.exports=function(R){return A4[R]||(A4[R]=$R(R))}});var eT=Un((Rz,I4)=>{I4.exports={}});var R4=Un((Bz,L4)=>{var ZR=k4(),M4=Rc(),rT=sp(),eB=Dm(),rB=G0(),iT=Cg(),tT=V0(),iB=N4(),tB=eT(),w4="Object already initialized",nT=M4.TypeError,aB=M4.WeakMap,X0,Iy,Q0,nB=function(R){return Q0(R)?Iy(R):X0(R,{})},oB=function(R){return function(te){var qe;if(!eB(te)||(qe=Iy(te)).type!==R)throw nT("Incompatible receiver, "+R+" required");return qe}};ZR||tT.state?(kg=tT.state||(tT.state=new aB),O4=rT(kg.get),aT=rT(kg.has),F4=rT(kg.set),X0=function(R,te){if(aT(kg,R))throw new nT(w4);return te.facade=R,F4(kg,R,te),te},Iy=function(R){return O4(kg,R)||{}},Q0=function(R){return aT(kg,R)}):(Sm=iB("state"),tB[Sm]=!0,X0=function(R,te){if(iT(R,Sm))throw new nT(w4);return te.facade=R,rB(R,Sm,te),te},Iy=function(R){return iT(R,Sm)?R[Sm]:{}},Q0=function(R){return iT(R,Sm)});var kg,O4,aT,F4,Sm;L4.exports={set:X0,get:Iy,has:Q0,enforce:nB,getterFor:oB}});var j4=Un((Jz,J4)=>{var oT=hm(),sB=Cg(),B4=Function.prototype,cB=oT&&Object.getOwnPropertyDescriptor,sT=sB(B4,"name"),uB=sT&&function(){}.name==="something",lB=sT&&(!oT||oT&&cB(B4,"name").configurable);J4.exports={EXISTS:sT,PROPER:uB,CONFIGURABLE:lB}});var V4=Un((jz,q4)=>{var fB=Rc(),U4=cp(),_B=Cg(),z4=G0(),pB=q0(),dB=H0(),W4=R4(),gB=j4().CONFIGURABLE,mB=W4.get,vB=W4.enforce,yB=String(String).split("String");(q4.exports=function(R,te,qe,Ve){var ni=Ve?!!Ve.unsafe:!1,wr=Ve?!!Ve.enumerable:!1,fr=Ve?!!Ve.noTargetGet:!1,Mr=Ve&&Ve.name!==void 0?Ve.name:te,ir;if(U4(qe)&&(String(Mr).slice(0,7)==="Symbol("&&(Mr="["+String(Mr).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_B(qe,"name")||gB&&qe.name!==Mr)&&z4(qe,"name",Mr),ir=vB(qe),ir.source||(ir.source=yB.join(typeof Mr=="string"?Mr:""))),R===fB){wr?R[te]=qe:pB(te,qe);return}else ni?!fr&&R[te]&&(wr=!0):delete R[te];wr?R[te]=qe:z4(R,te,qe)})(Function.prototype,"toString",function(){return U4(this)&&mB(this).source||dB(this)})});var cT=Un((Uz,K4)=>{var hB=Math.ceil,DB=Math.floor;K4.exports=function(R){var te=+R;return te!==te||te===0?0:(te>0?DB:hB)(te)}});var H4=Un((zz,G4)=>{var bB=cT(),SB=Math.max,TB=Math.min;G4.exports=function(R,te){var qe=bB(R);return qe<0?SB(qe+te,0):TB(qe,te)}});var Q4=Un((Wz,X4)=>{var xB=cT(),EB=Math.min;X4.exports=function(R){return R>0?EB(xB(R),9007199254740991):0}});var Y0=Un((qz,Y4)=>{var CB=Q4();Y4.exports=function(R){return CB(R.length)}});var eP=Un((Vz,Z4)=>{var kB=U0(),AB=H4(),PB=Y0(),$4=function(R){return function(te,qe,Ve){var ni=kB(te),wr=PB(ni),fr=AB(Ve,wr),Mr;if(R&&qe!=qe){for(;wr>fr;)if(Mr=ni[fr++],Mr!=Mr)return!0}else for(;wr>fr;fr++)if((R||fr in ni)&&ni[fr]===qe)return R||fr||0;return!R&&-1}};Z4.exports={includes:$4(!0),indexOf:$4(!1)}});var tP=Un((Kz,iP)=>{var NB=sp(),uT=Cg(),IB=U0(),wB=eP().indexOf,OB=eT(),rP=NB([].push);iP.exports=function(R,te){var qe=IB(R),Ve=0,ni=[],wr;for(wr in qe)!uT(OB,wr)&&uT(qe,wr)&&rP(ni,wr);for(;te.length>Ve;)uT(qe,wr=te[Ve++])&&(~wB(ni,wr)||rP(ni,wr));return ni}});var nP=Un((Gz,aP)=>{aP.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var sP=Un(oP=>{var FB=tP(),MB=nP(),LB=MB.concat("length","prototype");oP.f=Object.getOwnPropertyNames||function(te){return FB(te,LB)}});var uP=Un(cP=>{cP.f=Object.getOwnPropertySymbols});var fP=Un((Qz,lP)=>{var RB=Py(),BB=sp(),JB=sP(),jB=uP(),UB=GS(),zB=BB([].concat);lP.exports=RB("Reflect","ownKeys")||function(te){var qe=JB.f(UB(te)),Ve=jB.f;return Ve?zB(qe,Ve(te)):qe}});var dP=Un((Yz,pP)=>{var _P=Cg(),WB=fP(),qB=KS(),VB=$S();pP.exports=function(R,te,qe){for(var Ve=WB(te),ni=VB.f,wr=qB.f,fr=0;fr<Ve.length;fr++){var Mr=Ve[fr];!_P(R,Mr)&&!(qe&&_P(qe,Mr))&&ni(R,Mr,wr(te,Mr))}}});var mP=Un(($z,gP)=>{var KB=Vd(),GB=cp(),HB=/#|\.prototype\./,wy=function(R,te){var qe=QB[XB(R)];return qe==$B?!0:qe==YB?!1:GB(te)?KB(te):!!te},XB=wy.normalize=function(R){return String(R).replace(HB,".").toLowerCase()},QB=wy.data={},YB=wy.NATIVE="N",$B=wy.POLYFILL="P";gP.exports=wy});var fT=Un((Zz,vP)=>{var lT=Rc(),ZB=KS().f,eJ=G0(),rJ=V4(),iJ=q0(),tJ=dP(),aJ=mP();vP.exports=function(R,te){var qe=R.target,Ve=R.global,ni=R.stat,wr,fr,Mr,ir,Pe,e;if(Ve?fr=lT:ni?fr=lT[qe]||iJ(qe,{}):fr=(lT[qe]||{}).prototype,fr)for(Mr in te){if(Pe=te[Mr],R.noTargetGet?(e=ZB(fr,Mr),ir=e&&e.value):ir=fr[Mr],wr=aJ(Ve?Mr:qe+(ni?".":"#")+Mr,R.forced),!wr&&ir!==void 0){if(typeof Pe==typeof ir)continue;tJ(Pe,ir)}(R.sham||ir&&ir.sham)&&eJ(Pe,"sham",!0),rJ(fr,Mr,Pe,R)}}});var yP=Un(()=>{var nJ=fT(),oJ=Rc();nJ({global:!0},{globalThis:oJ})});var hP=Un(()=>{yP()});var _T=Un((aW,DP)=>{var sJ=j0();DP.exports=Array.isArray||function(te){return sJ(te)=="Array"}});var TP=Un((nW,SP)=>{var bP=sp(),cJ=W0(),uJ=R0(),lJ=bP(bP.bind);SP.exports=function(R,te){return cJ(R),te===void 0?R:uJ?lJ(R,te):function(){return R.apply(te,arguments)}}});var CP=Un((oW,EP)=>{"use strict";var fJ=Rc(),_J=_T(),pJ=Y0(),dJ=TP(),gJ=fJ.TypeError,xP=function(R,te,qe,Ve,ni,wr,fr,Mr){for(var ir=ni,Pe=0,e=fr?dJ(fr,Mr):!1,a,O;Pe<Ve;){if(Pe in qe){if(a=e?e(qe[Pe],Pe,te):qe[Pe],wr>0&&_J(a))O=pJ(a),ir=xP(R,te,a,O,ir,wr-1)-1;else{if(ir>=9007199254740991)throw gJ("Exceed the acceptable array length");R[ir]=a}ir++}Pe++}return ir};EP.exports=xP});var PP=Un((sW,AP)=>{var mJ=Ny(),vJ=mJ("toStringTag"),kP={};kP[vJ]="z";AP.exports=String(kP)==="[object z]"});var IP=Un((cW,NP)=>{var yJ=Rc(),hJ=PP(),DJ=cp(),$0=j0(),bJ=Ny(),SJ=bJ("toStringTag"),TJ=yJ.Object,xJ=$0(function(){return arguments}())=="Arguments",EJ=function(R,te){try{return R[te]}catch{}};NP.exports=hJ?$0:function(R){var te,qe,Ve;return R===void 0?"Undefined":R===null?"Null":typeof(qe=EJ(te=TJ(R),SJ))=="string"?qe:xJ?$0(te):(Ve=$0(te))=="Object"&&DJ(te.callee)?"Arguments":Ve}});var RP=Un((uW,LP)=>{var CJ=sp(),kJ=Vd(),wP=cp(),AJ=IP(),PJ=Py(),NJ=H0(),OP=function(){},IJ=[],FP=PJ("Reflect","construct"),pT=/^\s*(?:class|function)\b/,wJ=CJ(pT.exec),OJ=!pT.exec(OP),Oy=function(te){if(!wP(te))return!1;try{return FP(OP,IJ,te),!0}catch{return!1}},MP=function(te){if(!wP(te))return!1;switch(AJ(te)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return OJ||!!wJ(pT,NJ(te))}catch{return!0}};MP.sham=!0;LP.exports=!FP||kJ(function(){var R;return Oy(Oy.call)||!Oy(Object)||!Oy(function(){R=!0})||R})?MP:Oy});var UP=Un((lW,jP)=>{var FJ=Rc(),BP=_T(),MJ=RP(),LJ=Dm(),RJ=Ny(),BJ=RJ("species"),JP=FJ.Array;jP.exports=function(R){var te;return BP(R)&&(te=R.constructor,MJ(te)&&(te===JP||BP(te.prototype))?te=void 0:LJ(te)&&(te=te[BJ],te===null&&(te=void 0))),te===void 0?JP:te}});var WP=Un((fW,zP)=>{var JJ=UP();zP.exports=function(R,te){return new(JJ(R))(te===0?0:te)}});var qP=Un(()=>{"use strict";var jJ=fT(),UJ=CP(),zJ=W0(),WJ=US(),qJ=Y0(),VJ=WP();jJ({target:"Array",proto:!0},{flatMap:function(te){var qe=WJ(this),Ve=qJ(qe),ni;return zJ(te),ni=VJ(qe,0),ni.length=UJ(ni,qe,qe,Ve,0,1,te,arguments.length>1?arguments[1]:void 0),ni}})});var qU=Un((dW,BN)=>{hP();qP();var bT=Object.defineProperty,KJ=Object.getOwnPropertyDescriptor,ST=Object.getOwnPropertyNames,GJ=Object.prototype.hasOwnProperty,My=(R,te)=>function(){return R&&(te=(0,R[ST(R)[0]])(R=0)),te},Aa=(R,te)=>function(){return te||(0,R[ST(R)[0]])((te={exports:{}}).exports,te),te.exports},t1=(R,te)=>{for(var qe in te)bT(R,qe,{get:te[qe],enumerable:!0})},HJ=(R,te,qe,Ve)=>{if(te&&typeof te=="object"||typeof te=="function")for(let ni of ST(te))!GJ.call(R,ni)&&ni!==qe&&bT(R,ni,{get:()=>te[ni],enumerable:!(Ve=KJ(te,ni))||Ve.enumerable});return R},up=R=>HJ(bT({},"__esModule",{value:!0}),R),VP,KP,yl,Sa=My({"<define:process>"(){VP={},KP=[],yl={env:VP,argv:KP}}}),QP=Aa({"src/common/parser-create-error.js"(R,te){"use strict";Sa();function qe(Ve,ni){let wr=new SyntaxError(Ve+" ("+ni.start.line+":"+ni.start.column+")");return wr.loc=ni,wr}te.exports=qe}}),XJ=Aa({"src/utils/try-combinations.js"(R,te){"use strict";Sa();function qe(){let Ve;for(var ni=arguments.length,wr=new Array(ni),fr=0;fr<ni;fr++)wr[fr]=arguments[fr];for(let[Mr,ir]of wr.entries())try{return{result:ir()}}catch(Pe){Mr===0&&(Ve=Pe)}return{error:Ve}}te.exports=qe}}),YP={};t1(YP,{EOL:()=>mT,arch:()=>QJ,cpus:()=>aN,default:()=>uN,endianness:()=>$P,freemem:()=>iN,getNetworkInterfaces:()=>cN,hostname:()=>ZP,loadavg:()=>eN,networkInterfaces:()=>sN,platform:()=>YJ,release:()=>oN,tmpDir:()=>dT,tmpdir:()=>gT,totalmem:()=>tN,type:()=>nN,uptime:()=>rN});function $P(){if(typeof Z0>"u"){var R=new ArrayBuffer(2),te=new Uint8Array(R),qe=new Uint16Array(R);if(te[0]=1,te[1]=2,qe[0]===258)Z0="BE";else if(qe[0]===513)Z0="LE";else throw new Error("unable to figure out endianess")}return Z0}function ZP(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function eN(){return[]}function rN(){return 0}function iN(){return Number.MAX_VALUE}function tN(){return Number.MAX_VALUE}function aN(){return[]}function nN(){return"Browser"}function oN(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function sN(){}function cN(){}function QJ(){return"javascript"}function YJ(){return"browser"}function dT(){return"/tmp"}var Z0,gT,mT,uN,$J=My({"node-modules-polyfills:os"(){Sa(),gT=dT,mT=`
|
|
`,uN={EOL:mT,tmpdir:gT,tmpDir:dT,networkInterfaces:sN,getNetworkInterfaces:cN,release:oN,type:nN,cpus:aN,totalmem:tN,freemem:iN,uptime:rN,loadavg:eN,hostname:ZP,endianness:$P}}}),ZJ=Aa({"node-modules-polyfills-commonjs:os"(R,te){Sa();var qe=($J(),up(YP));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),ej=Aa({"node_modules/detect-newline/index.js"(R,te){"use strict";Sa();var qe=Ve=>{if(typeof Ve!="string")throw new TypeError("Expected a string");let ni=Ve.match(/(?:\r?\n)/g)||[];if(ni.length===0)return;let wr=ni.filter(Mr=>Mr===`\r
|
|
`).length,fr=ni.length-wr;return wr>fr?`\r
|
|
`:`
|
|
`};te.exports=qe,te.exports.graceful=Ve=>typeof Ve=="string"&&qe(Ve)||`
|
|
`}}),rj=Aa({"node_modules/jest-docblock/build/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.extract=L,R.parse=N,R.parseWithComments=Q,R.print=pe,R.strip=W;function te(){let g=ZJ();return te=function(){return g},g}function qe(){let g=Ve(ej());return qe=function(){return g},g}function Ve(g){return g&&g.__esModule?g:{default:g}}var ni=/\*\/$/,wr=/^\/\*\*/,fr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Mr=/(^|\s+)\/\/([^\r\n]*)/g,ir=/^(\r?\n)+/,Pe=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,e=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,a=/(\r?\n|^) *\* ?/g,O=[];function L(g){let S=g.match(fr);return S?S[0].trimLeft():""}function W(g){let S=g.match(fr);return S&&S[0]?g.substring(S[0].length):g}function N(g){return Q(g).pragmas}function Q(g){let S=(0,qe().default)(g)||te().EOL;g=g.replace(wr,"").replace(ni,"").replace(a,"$1");let H="";for(;H!==g;)H=g,g=g.replace(Pe,"".concat(S,"$1 $2").concat(S));g=g.replace(ir,"").trimRight();let se=Object.create(null),p=g.replace(e,"").replace(ir,"").trimRight(),C;for(;C=e.exec(g);){let G=C[2].replace(Mr,"");typeof se[C[1]]=="string"||Array.isArray(se[C[1]])?se[C[1]]=O.concat(se[C[1]],G):se[C[1]]=G}return{comments:p,pragmas:se}}function pe(g){let{comments:S="",pragmas:H={}}=g,se=(0,qe().default)(S)||te().EOL,p="/**",C=" *",G=" */",E=Object.keys(H),ue=E.map(re=>F(re,H[re])).reduce((re,M)=>re.concat(M),[]).map(re=>C+" "+re+se).join("");if(!S){if(E.length===0)return"";if(E.length===1&&!Array.isArray(H[E[0]])){let re=H[E[0]];return"".concat(p," ").concat(F(E[0],re)[0]).concat(G)}}let B=S.split(se).map(re=>"".concat(C," ").concat(re)).join(se)+se;return p+se+(S?B:"")+(S&&E.length?C+se:"")+ue+G}function F(g,S){return O.concat(S).map(H=>"@".concat(g," ").concat(H).trim())}}}),ij=Aa({"src/common/end-of-line.js"(R,te){"use strict";Sa();function qe(fr){let Mr=fr.indexOf("\r");return Mr>=0?fr.charAt(Mr+1)===`
|
|
`?"crlf":"cr":"lf"}function Ve(fr){switch(fr){case"cr":return"\r";case"crlf":return`\r
|
|
`;default:return`
|
|
`}}function ni(fr,Mr){let ir;switch(Mr){case`
|
|
`:ir=/\n/g;break;case"\r":ir=/\r/g;break;case`\r
|
|
`:ir=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(Mr),"."))}let Pe=fr.match(ir);return Pe?Pe.length:0}function wr(fr){return fr.replace(/\r\n?/g,`
|
|
`)}te.exports={guessEndOfLine:qe,convertEndOfLineToChars:Ve,countEndOfLineChars:ni,normalizeEndOfLine:wr}}}),tj=Aa({"src/language-js/utils/get-shebang.js"(R,te){"use strict";Sa();function qe(Ve){if(!Ve.startsWith("#!"))return"";let ni=Ve.indexOf(`
|
|
`);return ni===-1?Ve:Ve.slice(0,ni)}te.exports=qe}}),aj=Aa({"src/language-js/pragma.js"(R,te){"use strict";Sa();var{parseWithComments:qe,strip:Ve,extract:ni,print:wr}=rj(),{normalizeEndOfLine:fr}=ij(),Mr=tj();function ir(a){let O=Mr(a);O&&(a=a.slice(O.length+1));let L=ni(a),{pragmas:W,comments:N}=qe(L);return{shebang:O,text:a,pragmas:W,comments:N}}function Pe(a){let O=Object.keys(ir(a).pragmas);return O.includes("prettier")||O.includes("format")}function e(a){let{shebang:O,text:L,pragmas:W,comments:N}=ir(a),Q=Ve(L),pe=wr({pragmas:Object.assign({format:""},W),comments:N.trimStart()});return(O?"".concat(O,`
|
|
`):"")+fr(pe)+(Q.startsWith(`
|
|
`)?`
|
|
`:`
|
|
|
|
`)+Q}te.exports={hasPragma:Pe,insertPragma:e}}}),nj=Aa({"src/utils/is-non-empty-array.js"(R,te){"use strict";Sa();function qe(Ve){return Array.isArray(Ve)&&Ve.length>0}te.exports=qe}}),lN=Aa({"src/language-js/loc.js"(R,te){"use strict";Sa();var qe=nj();function Ve(ir,Pe){let{ignoreDecorators:e}=Pe||{};if(!e){let a=ir.declaration&&ir.declaration.decorators||ir.decorators;if(qe(a))return Ve(a[0])}return ir.range?ir.range[0]:ir.start}function ni(ir){return ir.range?ir.range[1]:ir.end}function wr(ir,Pe){let e=Ve(ir);return Number.isInteger(e)&&e===Ve(Pe)}function fr(ir,Pe){let e=ni(ir);return Number.isInteger(e)&&e===ni(Pe)}function Mr(ir,Pe){return wr(ir,Pe)&&fr(ir,Pe)}te.exports={locStart:Ve,locEnd:ni,hasSameLocStart:wr,hasSameLoc:Mr}}}),oj=Aa({"src/language-js/parse/utils/create-parser.js"(R,te){"use strict";Sa();var{hasPragma:qe}=aj(),{locStart:Ve,locEnd:ni}=lN();function wr(fr){return fr=typeof fr=="function"?{parse:fr}:fr,Object.assign({astFormat:"estree",hasPragma:qe,locStart:Ve,locEnd:ni},fr)}te.exports=wr}}),sj=Aa({"src/language-js/parse/utils/replace-hashbang.js"(R,te){"use strict";Sa();function qe(Ve){return Ve.charAt(0)==="#"&&Ve.charAt(1)==="!"?"//"+Ve.slice(2):Ve}te.exports=qe}}),cj=Aa({"src/language-js/utils/is-ts-keyword-type.js"(R,te){"use strict";Sa();function qe(Ve){let{type:ni}=Ve;return ni.startsWith("TS")&&ni.endsWith("Keyword")}te.exports=qe}}),uj=Aa({"src/language-js/utils/is-block-comment.js"(R,te){"use strict";Sa();function qe(Ve){return Ve.type==="Block"||Ve.type==="CommentBlock"||Ve.type==="MultiLine"}te.exports=qe}}),lj=Aa({"src/language-js/utils/is-type-cast-comment.js"(R,te){"use strict";Sa();var qe=uj();function Ve(ni){return qe(ni)&&ni.value[0]==="*"&&/@type\b/.test(ni.value)}te.exports=Ve}}),fj=Aa({"src/utils/get-last.js"(R,te){"use strict";Sa();var qe=Ve=>Ve[Ve.length-1];te.exports=qe}}),fN=Aa({"src/language-js/parse/postprocess/visit-node.js"(R,te){"use strict";Sa();function qe(Ve,ni){if(Array.isArray(Ve)){for(let wr=0;wr<Ve.length;wr++)Ve[wr]=qe(Ve[wr],ni);return Ve}if(Ve&&typeof Ve=="object"&&typeof Ve.type=="string"){let wr=Object.keys(Ve);for(let fr=0;fr<wr.length;fr++)Ve[wr[fr]]=qe(Ve[wr[fr]],ni);return ni(Ve)||Ve}return Ve}te.exports=qe}}),_j=Aa({"src/language-js/parse/postprocess/typescript.js"(R,te){"use strict";Sa();var qe=QP(),Ve=fN();function ni(ir,Pe){let{start:e,end:a}=ir.loc;throw qe(Pe,{start:{line:e.line,column:e.column+1},end:{line:a.line,column:a.column+1}})}function wr(ir,Pe,e){let a=ir.decorators;if(!Array.isArray(a))return;let O=Pe.decorators;(!Array.isArray(O)||O.length!==a.length||a.some(L=>{let W=e.get(L);return!W||!O.includes(W)}))&&ni(Pe,"Leading decorators must be attached to a class declaration")}function fr(ir,Pe){ir.kind!==166||ir.modifiers&&!ir.modifiers.some(O=>O.kind===126)||ir.initializer&&Pe.value===null&&ni(Pe,"Abstract property cannot have an initializer")}function Mr(ir,Pe){let{esTreeNodeToTSNodeMap:e,tsNodeToESTreeNodeMap:a}=Pe.tsParseResult;Ve(ir,O=>{let L=e.get(O);if(!L)return;let W=a.get(L);W===O&&(wr(L,W,a),fr(L,W))})}te.exports={throwErrorForInvalidNodes:Mr}}}),pj=Aa({"src/language-js/parse/postprocess/index.js"(R,te){"use strict";Sa();var{locStart:qe,locEnd:Ve}=lN(),ni=cj(),wr=lj(),fr=fj(),Mr=fN(),{throwErrorForInvalidNodes:ir}=_j();function Pe(L,W){if(W.parser==="typescript"&&/@|abstract/.test(W.originalText)&&ir(L,W),W.parser!=="typescript"&&W.parser!=="flow"&&W.parser!=="acorn"&&W.parser!=="espree"&&W.parser!=="meriyah"){let Q=new Set;L=Mr(L,pe=>{pe.leadingComments&&pe.leadingComments.some(wr)&&Q.add(qe(pe))}),L=Mr(L,pe=>{if(pe.type==="ParenthesizedExpression"){let{expression:F}=pe;if(F.type==="TypeCastExpression")return F.range=pe.range,F;let g=qe(pe);if(!Q.has(g))return F.extra=Object.assign(Object.assign({},F.extra),{},{parenthesized:!0}),F}})}return L=Mr(L,Q=>{switch(Q.type){case"ChainExpression":return e(Q.expression);case"LogicalExpression":{if(a(Q))return O(Q);break}case"VariableDeclaration":{let pe=fr(Q.declarations);pe&&pe.init&&N(Q,pe);break}case"TSParenthesizedType":return ni(Q.typeAnnotation)||Q.typeAnnotation.type==="TSThisType"||(Q.typeAnnotation.range=[qe(Q),Ve(Q)]),Q.typeAnnotation;case"TSTypeParameter":if(typeof Q.name=="string"){let pe=qe(Q);Q.name={type:"Identifier",name:Q.name,range:[pe,pe+Q.name.length]}}break;case"SequenceExpression":{let pe=fr(Q.expressions);Q.range=[qe(Q),Math.min(Ve(pe),Ve(Q))];break}case"TopicReference":W.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:pe}=Q;if(W.parser==="meriyah"&&pe&&pe.type==="Identifier"){let F=W.originalText.slice(qe(pe),Ve(pe));(F.startsWith('"')||F.startsWith("'"))&&(Q.exported=Object.assign(Object.assign({},Q.exported),{},{type:"Literal",value:Q.exported.name,raw:F}))}break}}}),L;function N(Q,pe){W.originalText[Ve(pe)]!==";"&&(Q.range=[qe(Q),Ve(pe)])}}function e(L){switch(L.type){case"CallExpression":L.type="OptionalCallExpression",L.callee=e(L.callee);break;case"MemberExpression":L.type="OptionalMemberExpression",L.object=e(L.object);break;case"TSNonNullExpression":L.expression=e(L.expression);break}return L}function a(L){return L.type==="LogicalExpression"&&L.right.type==="LogicalExpression"&&L.operator===L.right.operator}function O(L){return a(L)?O({type:"LogicalExpression",operator:L.operator,left:O({type:"LogicalExpression",operator:L.operator,left:L.left,right:L.right.left,range:[qe(L.left),Ve(L.right.left)]}),right:L.right.right,range:[qe(L),Ve(L)]}):L}te.exports=Pe}}),Tm=Aa({"scripts/build/shims/debug.cjs"(R,te){"use strict";Sa(),te.exports=()=>()=>{}}}),dj=Aa({"node_modules/is-extglob/index.js"(R,te){Sa(),te.exports=function(Ve){if(typeof Ve!="string"||Ve==="")return!1;for(var ni;ni=/(\\).|([@?!+*]\(.*\))/g.exec(Ve);){if(ni[2])return!0;Ve=Ve.slice(ni.index+ni[0].length)}return!1}}}),gj=Aa({"node_modules/is-glob/index.js"(R,te){Sa();var qe=dj(),Ve={"{":"}","(":")","[":"]"},ni=function(fr){if(fr[0]==="!")return!0;for(var Mr=0,ir=-2,Pe=-2,e=-2,a=-2,O=-2;Mr<fr.length;){if(fr[Mr]==="*"||fr[Mr+1]==="?"&&/[\].+)]/.test(fr[Mr])||Pe!==-1&&fr[Mr]==="["&&fr[Mr+1]!=="]"&&(Pe<Mr&&(Pe=fr.indexOf("]",Mr)),Pe>Mr&&(O===-1||O>Pe||(O=fr.indexOf("\\",Mr),O===-1||O>Pe)))||e!==-1&&fr[Mr]==="{"&&fr[Mr+1]!=="}"&&(e=fr.indexOf("}",Mr),e>Mr&&(O=fr.indexOf("\\",Mr),O===-1||O>e))||a!==-1&&fr[Mr]==="("&&fr[Mr+1]==="?"&&/[:!=]/.test(fr[Mr+2])&&fr[Mr+3]!==")"&&(a=fr.indexOf(")",Mr),a>Mr&&(O=fr.indexOf("\\",Mr),O===-1||O>a))||ir!==-1&&fr[Mr]==="("&&fr[Mr+1]!=="|"&&(ir<Mr&&(ir=fr.indexOf("|",Mr)),ir!==-1&&fr[ir+1]!==")"&&(a=fr.indexOf(")",ir),a>ir&&(O=fr.indexOf("\\",ir),O===-1||O>a))))return!0;if(fr[Mr]==="\\"){var L=fr[Mr+1];Mr+=2;var W=Ve[L];if(W){var N=fr.indexOf(W,Mr);N!==-1&&(Mr=N+1)}if(fr[Mr]==="!")return!0}else Mr++}return!1},wr=function(fr){if(fr[0]==="!")return!0;for(var Mr=0;Mr<fr.length;){if(/[*?{}()[\]]/.test(fr[Mr]))return!0;if(fr[Mr]==="\\"){var ir=fr[Mr+1];Mr+=2;var Pe=Ve[ir];if(Pe){var e=fr.indexOf(Pe,Mr);e!==-1&&(Mr=e+1)}if(fr[Mr]==="!")return!0}else Mr++}return!1};te.exports=function(Mr,ir){if(typeof Mr!="string"||Mr==="")return!1;if(qe(Mr))return!0;var Pe=ni;return ir&&ir.strict===!1&&(Pe=wr),Pe(Mr)}}}),a1=Aa({"node_modules/semver/internal/constants.js"(R,te){Sa();var qe="2.0.0",Ve=256,ni=Number.MAX_SAFE_INTEGER||9007199254740991,wr=16;te.exports={SEMVER_SPEC_VERSION:qe,MAX_LENGTH:Ve,MAX_SAFE_INTEGER:ni,MAX_SAFE_COMPONENT_LENGTH:wr}}}),n1=Aa({"node_modules/semver/internal/debug.js"(R,te){Sa();var qe=typeof yl=="object"&&yl.env&&yl.env.NODE_DEBUG&&/\bsemver\b/i.test(yl.env.NODE_DEBUG)?function(){for(var Ve=arguments.length,ni=new Array(Ve),wr=0;wr<Ve;wr++)ni[wr]=arguments[wr];return console.error("SEMVER",...ni)}:()=>{};te.exports=qe}}),vv=Aa({"node_modules/semver/internal/re.js"(R,te){Sa();var{MAX_SAFE_COMPONENT_LENGTH:qe}=a1(),Ve=n1();R=te.exports={};var ni=R.re=[],wr=R.src=[],fr=R.t={},Mr=0,ir=(Pe,e,a)=>{let O=Mr++;Ve(O,e),fr[Pe]=O,wr[O]=e,ni[O]=new RegExp(e,a?"g":void 0)};ir("NUMERICIDENTIFIER","0|[1-9]\\d*"),ir("NUMERICIDENTIFIERLOOSE","[0-9]+"),ir("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),ir("MAINVERSION","(".concat(wr[fr.NUMERICIDENTIFIER],")\\.(").concat(wr[fr.NUMERICIDENTIFIER],")\\.(").concat(wr[fr.NUMERICIDENTIFIER],")")),ir("MAINVERSIONLOOSE","(".concat(wr[fr.NUMERICIDENTIFIERLOOSE],")\\.(").concat(wr[fr.NUMERICIDENTIFIERLOOSE],")\\.(").concat(wr[fr.NUMERICIDENTIFIERLOOSE],")")),ir("PRERELEASEIDENTIFIER","(?:".concat(wr[fr.NUMERICIDENTIFIER],"|").concat(wr[fr.NONNUMERICIDENTIFIER],")")),ir("PRERELEASEIDENTIFIERLOOSE","(?:".concat(wr[fr.NUMERICIDENTIFIERLOOSE],"|").concat(wr[fr.NONNUMERICIDENTIFIER],")")),ir("PRERELEASE","(?:-(".concat(wr[fr.PRERELEASEIDENTIFIER],"(?:\\.").concat(wr[fr.PRERELEASEIDENTIFIER],")*))")),ir("PRERELEASELOOSE","(?:-?(".concat(wr[fr.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(wr[fr.PRERELEASEIDENTIFIERLOOSE],")*))")),ir("BUILDIDENTIFIER","[0-9A-Za-z-]+"),ir("BUILD","(?:\\+(".concat(wr[fr.BUILDIDENTIFIER],"(?:\\.").concat(wr[fr.BUILDIDENTIFIER],")*))")),ir("FULLPLAIN","v?".concat(wr[fr.MAINVERSION]).concat(wr[fr.PRERELEASE],"?").concat(wr[fr.BUILD],"?")),ir("FULL","^".concat(wr[fr.FULLPLAIN],"$")),ir("LOOSEPLAIN","[v=\\s]*".concat(wr[fr.MAINVERSIONLOOSE]).concat(wr[fr.PRERELEASELOOSE],"?").concat(wr[fr.BUILD],"?")),ir("LOOSE","^".concat(wr[fr.LOOSEPLAIN],"$")),ir("GTLT","((?:<|>)?=?)"),ir("XRANGEIDENTIFIERLOOSE","".concat(wr[fr.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),ir("XRANGEIDENTIFIER","".concat(wr[fr.NUMERICIDENTIFIER],"|x|X|\\*")),ir("XRANGEPLAIN","[v=\\s]*(".concat(wr[fr.XRANGEIDENTIFIER],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIER],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIER],")(?:").concat(wr[fr.PRERELEASE],")?").concat(wr[fr.BUILD],"?)?)?")),ir("XRANGEPLAINLOOSE","[v=\\s]*(".concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(wr[fr.XRANGEIDENTIFIERLOOSE],")(?:").concat(wr[fr.PRERELEASELOOSE],")?").concat(wr[fr.BUILD],"?)?)?")),ir("XRANGE","^".concat(wr[fr.GTLT],"\\s*").concat(wr[fr.XRANGEPLAIN],"$")),ir("XRANGELOOSE","^".concat(wr[fr.GTLT],"\\s*").concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("COERCE","(^|[^\\d])(\\d{1,".concat(qe,"})(?:\\.(\\d{1,").concat(qe,"}))?(?:\\.(\\d{1,").concat(qe,"}))?(?:$|[^\\d])")),ir("COERCERTL",wr[fr.COERCE],!0),ir("LONETILDE","(?:~>?)"),ir("TILDETRIM","(\\s*)".concat(wr[fr.LONETILDE],"\\s+"),!0),R.tildeTrimReplace="$1~",ir("TILDE","^".concat(wr[fr.LONETILDE]).concat(wr[fr.XRANGEPLAIN],"$")),ir("TILDELOOSE","^".concat(wr[fr.LONETILDE]).concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("LONECARET","(?:\\^)"),ir("CARETTRIM","(\\s*)".concat(wr[fr.LONECARET],"\\s+"),!0),R.caretTrimReplace="$1^",ir("CARET","^".concat(wr[fr.LONECARET]).concat(wr[fr.XRANGEPLAIN],"$")),ir("CARETLOOSE","^".concat(wr[fr.LONECARET]).concat(wr[fr.XRANGEPLAINLOOSE],"$")),ir("COMPARATORLOOSE","^".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.LOOSEPLAIN],")$|^$")),ir("COMPARATOR","^".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.FULLPLAIN],")$|^$")),ir("COMPARATORTRIM","(\\s*)".concat(wr[fr.GTLT],"\\s*(").concat(wr[fr.LOOSEPLAIN],"|").concat(wr[fr.XRANGEPLAIN],")"),!0),R.comparatorTrimReplace="$1$2$3",ir("HYPHENRANGE","^\\s*(".concat(wr[fr.XRANGEPLAIN],")\\s+-\\s+(").concat(wr[fr.XRANGEPLAIN],")\\s*$")),ir("HYPHENRANGELOOSE","^\\s*(".concat(wr[fr.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(wr[fr.XRANGEPLAINLOOSE],")\\s*$")),ir("STAR","(<|>)?=?\\s*\\*"),ir("GTE0","^\\s*>=\\s*0.0.0\\s*$"),ir("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}}),o1=Aa({"node_modules/semver/internal/parse-options.js"(R,te){Sa();var qe=["includePrerelease","loose","rtl"],Ve=ni=>ni?typeof ni!="object"?{loose:!0}:qe.filter(wr=>ni[wr]).reduce((wr,fr)=>(wr[fr]=!0,wr),{}):{};te.exports=Ve}}),vT=Aa({"node_modules/semver/internal/identifiers.js"(R,te){Sa();var qe=/^[0-9]+$/,Ve=(wr,fr)=>{let Mr=qe.test(wr),ir=qe.test(fr);return Mr&&ir&&(wr=+wr,fr=+fr),wr===fr?0:Mr&&!ir?-1:ir&&!Mr?1:wr<fr?-1:1},ni=(wr,fr)=>Ve(fr,wr);te.exports={compareIdentifiers:Ve,rcompareIdentifiers:ni}}}),Nf=Aa({"node_modules/semver/classes/semver.js"(R,te){Sa();var qe=n1(),{MAX_LENGTH:Ve,MAX_SAFE_INTEGER:ni}=a1(),{re:wr,t:fr}=vv(),Mr=o1(),{compareIdentifiers:ir}=vT(),Pe=class{constructor(e,a){if(a=Mr(a),e instanceof Pe){if(e.loose===!!a.loose&&e.includePrerelease===!!a.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: ".concat(e));if(e.length>Ve)throw new TypeError("version is longer than ".concat(Ve," characters"));qe("SemVer",e,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let O=e.trim().match(a.loose?wr[fr.LOOSE]:wr[fr.FULL]);if(!O)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+O[1],this.minor=+O[2],this.patch=+O[3],this.major>ni||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ni||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ni||this.patch<0)throw new TypeError("Invalid patch version");O[4]?this.prerelease=O[4].split(".").map(L=>{if(/^[0-9]+$/.test(L)){let W=+L;if(W>=0&&W<ni)return W}return L}):this.prerelease=[],this.build=O[5]?O[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(qe("SemVer.compare",this.version,this.options,e),!(e instanceof Pe)){if(typeof e=="string"&&e===this.version)return 0;e=new Pe(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Pe||(e=new Pe(e,this.options)),ir(this.major,e.major)||ir(this.minor,e.minor)||ir(this.patch,e.patch)}comparePre(e){if(e instanceof Pe||(e=new Pe(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let a=0;do{let O=this.prerelease[a],L=e.prerelease[a];if(qe("prerelease compare",a,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return ir(O,L)}while(++a)}compareBuild(e){e instanceof Pe||(e=new Pe(e,this.options));let a=0;do{let O=this.build[a],L=e.build[a];if(qe("prerelease compare",a,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return ir(O,L)}while(++a)}inc(e,a){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a),this.inc("pre",a);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a),this.inc("pre",a);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let O=this.prerelease.length;for(;--O>=0;)typeof this.prerelease[O]=="number"&&(this.prerelease[O]++,O=-2);O===-1&&this.prerelease.push(0)}a&&(this.prerelease[0]===a?isNaN(this.prerelease[1])&&(this.prerelease=[a,0]):this.prerelease=[a,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}};te.exports=Pe}}),yv=Aa({"node_modules/semver/functions/parse.js"(R,te){Sa();var{MAX_LENGTH:qe}=a1(),{re:Ve,t:ni}=vv(),wr=Nf(),fr=o1(),Mr=(ir,Pe)=>{if(Pe=fr(Pe),ir instanceof wr)return ir;if(typeof ir!="string"||ir.length>qe||!(Pe.loose?Ve[ni.LOOSE]:Ve[ni.FULL]).test(ir))return null;try{return new wr(ir,Pe)}catch{return null}};te.exports=Mr}}),mj=Aa({"node_modules/semver/functions/valid.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni,wr);return fr?fr.version:null};te.exports=Ve}}),vj=Aa({"node_modules/semver/functions/clean.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni.trim().replace(/^[=v]+/,""),wr);return fr?fr.version:null};te.exports=Ve}}),yj=Aa({"node_modules/semver/functions/inc.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr,Mr)=>{typeof fr=="string"&&(Mr=fr,fr=void 0);try{return new qe(ni,fr).inc(wr,Mr).version}catch{return null}};te.exports=Ve}}),Gp=Aa({"node_modules/semver/functions/compare.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr)=>new qe(ni,fr).compare(new qe(wr,fr));te.exports=Ve}}),TT=Aa({"node_modules/semver/functions/eq.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)===0;te.exports=Ve}}),hj=Aa({"node_modules/semver/functions/diff.js"(R,te){Sa();var qe=yv(),Ve=TT(),ni=(wr,fr)=>{if(Ve(wr,fr))return null;{let Mr=qe(wr),ir=qe(fr),Pe=Mr.prerelease.length||ir.prerelease.length,e=Pe?"pre":"",a=Pe?"prerelease":"";for(let O in Mr)if((O==="major"||O==="minor"||O==="patch")&&Mr[O]!==ir[O])return e+O;return a}};te.exports=ni}}),Dj=Aa({"node_modules/semver/functions/major.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).major;te.exports=Ve}}),bj=Aa({"node_modules/semver/functions/minor.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).minor;te.exports=Ve}}),Sj=Aa({"node_modules/semver/functions/patch.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr)=>new qe(ni,wr).patch;te.exports=Ve}}),Tj=Aa({"node_modules/semver/functions/prerelease.js"(R,te){Sa();var qe=yv(),Ve=(ni,wr)=>{let fr=qe(ni,wr);return fr&&fr.prerelease.length?fr.prerelease:null};te.exports=Ve}}),xj=Aa({"node_modules/semver/functions/rcompare.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(wr,ni,fr);te.exports=Ve}}),Ej=Aa({"node_modules/semver/functions/compare-loose.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr)=>qe(ni,wr,!0);te.exports=Ve}}),xT=Aa({"node_modules/semver/functions/compare-build.js"(R,te){Sa();var qe=Nf(),Ve=(ni,wr,fr)=>{let Mr=new qe(ni,fr),ir=new qe(wr,fr);return Mr.compare(ir)||Mr.compareBuild(ir)};te.exports=Ve}}),Cj=Aa({"node_modules/semver/functions/sort.js"(R,te){Sa();var qe=xT(),Ve=(ni,wr)=>ni.sort((fr,Mr)=>qe(fr,Mr,wr));te.exports=Ve}}),kj=Aa({"node_modules/semver/functions/rsort.js"(R,te){Sa();var qe=xT(),Ve=(ni,wr)=>ni.sort((fr,Mr)=>qe(Mr,fr,wr));te.exports=Ve}}),s1=Aa({"node_modules/semver/functions/gt.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)>0;te.exports=Ve}}),ET=Aa({"node_modules/semver/functions/lt.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)<0;te.exports=Ve}}),_N=Aa({"node_modules/semver/functions/neq.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)!==0;te.exports=Ve}}),CT=Aa({"node_modules/semver/functions/gte.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)>=0;te.exports=Ve}}),kT=Aa({"node_modules/semver/functions/lte.js"(R,te){Sa();var qe=Gp(),Ve=(ni,wr,fr)=>qe(ni,wr,fr)<=0;te.exports=Ve}}),pN=Aa({"node_modules/semver/functions/cmp.js"(R,te){Sa();var qe=TT(),Ve=_N(),ni=s1(),wr=CT(),fr=ET(),Mr=kT(),ir=(Pe,e,a,O)=>{switch(e){case"===":return typeof Pe=="object"&&(Pe=Pe.version),typeof a=="object"&&(a=a.version),Pe===a;case"!==":return typeof Pe=="object"&&(Pe=Pe.version),typeof a=="object"&&(a=a.version),Pe!==a;case"":case"=":case"==":return qe(Pe,a,O);case"!=":return Ve(Pe,a,O);case">":return ni(Pe,a,O);case">=":return wr(Pe,a,O);case"<":return fr(Pe,a,O);case"<=":return Mr(Pe,a,O);default:throw new TypeError("Invalid operator: ".concat(e))}};te.exports=ir}}),Aj=Aa({"node_modules/semver/functions/coerce.js"(R,te){Sa();var qe=Nf(),Ve=yv(),{re:ni,t:wr}=vv(),fr=(Mr,ir)=>{if(Mr instanceof qe)return Mr;if(typeof Mr=="number"&&(Mr=String(Mr)),typeof Mr!="string")return null;ir=ir||{};let Pe=null;if(!ir.rtl)Pe=Mr.match(ni[wr.COERCE]);else{let e;for(;(e=ni[wr.COERCERTL].exec(Mr))&&(!Pe||Pe.index+Pe[0].length!==Mr.length);)(!Pe||e.index+e[0].length!==Pe.index+Pe[0].length)&&(Pe=e),ni[wr.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;ni[wr.COERCERTL].lastIndex=-1}return Pe===null?null:Ve("".concat(Pe[2],".").concat(Pe[3]||"0",".").concat(Pe[4]||"0"),ir)};te.exports=fr}}),Pj=Aa({"node_modules/semver/node_modules/yallist/iterator.js"(R,te){"use strict";Sa(),te.exports=function(qe){qe.prototype[Symbol.iterator]=function*(){for(let Ve=this.head;Ve;Ve=Ve.next)yield Ve.value}}}}),Nj=Aa({"node_modules/semver/node_modules/yallist/yallist.js"(R,te){"use strict";Sa(),te.exports=qe,qe.Node=fr,qe.create=qe;function qe(Mr){var ir=this;if(ir instanceof qe||(ir=new qe),ir.tail=null,ir.head=null,ir.length=0,Mr&&typeof Mr.forEach=="function")Mr.forEach(function(a){ir.push(a)});else if(arguments.length>0)for(var Pe=0,e=arguments.length;Pe<e;Pe++)ir.push(arguments[Pe]);return ir}qe.prototype.removeNode=function(Mr){if(Mr.list!==this)throw new Error("removing node which does not belong to this list");var ir=Mr.next,Pe=Mr.prev;return ir&&(ir.prev=Pe),Pe&&(Pe.next=ir),Mr===this.head&&(this.head=ir),Mr===this.tail&&(this.tail=Pe),Mr.list.length--,Mr.next=null,Mr.prev=null,Mr.list=null,ir},qe.prototype.unshiftNode=function(Mr){if(Mr!==this.head){Mr.list&&Mr.list.removeNode(Mr);var ir=this.head;Mr.list=this,Mr.next=ir,ir&&(ir.prev=Mr),this.head=Mr,this.tail||(this.tail=Mr),this.length++}},qe.prototype.pushNode=function(Mr){if(Mr!==this.tail){Mr.list&&Mr.list.removeNode(Mr);var ir=this.tail;Mr.list=this,Mr.prev=ir,ir&&(ir.next=Mr),this.tail=Mr,this.head||(this.head=Mr),this.length++}},qe.prototype.push=function(){for(var Mr=0,ir=arguments.length;Mr<ir;Mr++)ni(this,arguments[Mr]);return this.length},qe.prototype.unshift=function(){for(var Mr=0,ir=arguments.length;Mr<ir;Mr++)wr(this,arguments[Mr]);return this.length},qe.prototype.pop=function(){if(!!this.tail){var Mr=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,Mr}},qe.prototype.shift=function(){if(!!this.head){var Mr=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,Mr}},qe.prototype.forEach=function(Mr,ir){ir=ir||this;for(var Pe=this.head,e=0;Pe!==null;e++)Mr.call(ir,Pe.value,e,this),Pe=Pe.next},qe.prototype.forEachReverse=function(Mr,ir){ir=ir||this;for(var Pe=this.tail,e=this.length-1;Pe!==null;e--)Mr.call(ir,Pe.value,e,this),Pe=Pe.prev},qe.prototype.get=function(Mr){for(var ir=0,Pe=this.head;Pe!==null&&ir<Mr;ir++)Pe=Pe.next;if(ir===Mr&&Pe!==null)return Pe.value},qe.prototype.getReverse=function(Mr){for(var ir=0,Pe=this.tail;Pe!==null&&ir<Mr;ir++)Pe=Pe.prev;if(ir===Mr&&Pe!==null)return Pe.value},qe.prototype.map=function(Mr,ir){ir=ir||this;for(var Pe=new qe,e=this.head;e!==null;)Pe.push(Mr.call(ir,e.value,this)),e=e.next;return Pe},qe.prototype.mapReverse=function(Mr,ir){ir=ir||this;for(var Pe=new qe,e=this.tail;e!==null;)Pe.push(Mr.call(ir,e.value,this)),e=e.prev;return Pe},qe.prototype.reduce=function(Mr,ir){var Pe,e=this.head;if(arguments.length>1)Pe=ir;else if(this.head)e=this.head.next,Pe=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;e!==null;a++)Pe=Mr(Pe,e.value,a),e=e.next;return Pe},qe.prototype.reduceReverse=function(Mr,ir){var Pe,e=this.tail;if(arguments.length>1)Pe=ir;else if(this.tail)e=this.tail.prev,Pe=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;e!==null;a--)Pe=Mr(Pe,e.value,a),e=e.prev;return Pe},qe.prototype.toArray=function(){for(var Mr=new Array(this.length),ir=0,Pe=this.head;Pe!==null;ir++)Mr[ir]=Pe.value,Pe=Pe.next;return Mr},qe.prototype.toArrayReverse=function(){for(var Mr=new Array(this.length),ir=0,Pe=this.tail;Pe!==null;ir++)Mr[ir]=Pe.value,Pe=Pe.prev;return Mr},qe.prototype.slice=function(Mr,ir){ir=ir||this.length,ir<0&&(ir+=this.length),Mr=Mr||0,Mr<0&&(Mr+=this.length);var Pe=new qe;if(ir<Mr||ir<0)return Pe;Mr<0&&(Mr=0),ir>this.length&&(ir=this.length);for(var e=0,a=this.head;a!==null&&e<Mr;e++)a=a.next;for(;a!==null&&e<ir;e++,a=a.next)Pe.push(a.value);return Pe},qe.prototype.sliceReverse=function(Mr,ir){ir=ir||this.length,ir<0&&(ir+=this.length),Mr=Mr||0,Mr<0&&(Mr+=this.length);var Pe=new qe;if(ir<Mr||ir<0)return Pe;Mr<0&&(Mr=0),ir>this.length&&(ir=this.length);for(var e=this.length,a=this.tail;a!==null&&e>ir;e--)a=a.prev;for(;a!==null&&e>Mr;e--,a=a.prev)Pe.push(a.value);return Pe},qe.prototype.splice=function(Mr,ir){Mr>this.length&&(Mr=this.length-1),Mr<0&&(Mr=this.length+Mr);for(var Pe=0,e=this.head;e!==null&&Pe<Mr;Pe++)e=e.next;for(var a=[],Pe=0;e&&Pe<ir;Pe++)a.push(e.value),e=this.removeNode(e);e===null&&(e=this.tail),e!==this.head&&e!==this.tail&&(e=e.prev);for(var Pe=0;Pe<(arguments.length<=2?0:arguments.length-2);Pe++)e=Ve(this,e,Pe+2<2||arguments.length<=Pe+2?void 0:arguments[Pe+2]);return a},qe.prototype.reverse=function(){for(var Mr=this.head,ir=this.tail,Pe=Mr;Pe!==null;Pe=Pe.prev){var e=Pe.prev;Pe.prev=Pe.next,Pe.next=e}return this.head=ir,this.tail=Mr,this};function Ve(Mr,ir,Pe){var e=ir===Mr.head?new fr(Pe,null,ir,Mr):new fr(Pe,ir,ir.next,Mr);return e.next===null&&(Mr.tail=e),e.prev===null&&(Mr.head=e),Mr.length++,e}function ni(Mr,ir){Mr.tail=new fr(ir,Mr.tail,null,Mr),Mr.head||(Mr.head=Mr.tail),Mr.length++}function wr(Mr,ir){Mr.head=new fr(ir,null,Mr.head,Mr),Mr.tail||(Mr.tail=Mr.head),Mr.length++}function fr(Mr,ir,Pe,e){if(!(this instanceof fr))return new fr(Mr,ir,Pe,e);this.list=e,this.value=Mr,ir?(ir.next=this,this.prev=ir):this.prev=null,Pe?(Pe.prev=this,this.next=Pe):this.next=null}try{Pj()(qe)}catch{}}}),Ij=Aa({"node_modules/semver/node_modules/lru-cache/index.js"(R,te){"use strict";Sa();var qe=Nj(),Ve=Symbol("max"),ni=Symbol("length"),wr=Symbol("lengthCalculator"),fr=Symbol("allowStale"),Mr=Symbol("maxAge"),ir=Symbol("dispose"),Pe=Symbol("noDisposeOnSet"),e=Symbol("lruList"),a=Symbol("cache"),O=Symbol("updateAgeOnGet"),L=()=>1,W=class{constructor(H){if(typeof H=="number"&&(H={max:H}),H||(H={}),H.max&&(typeof H.max!="number"||H.max<0))throw new TypeError("max must be a non-negative number");let se=this[Ve]=H.max||1/0,p=H.length||L;if(this[wr]=typeof p!="function"?L:p,this[fr]=H.stale||!1,H.maxAge&&typeof H.maxAge!="number")throw new TypeError("maxAge must be a number");this[Mr]=H.maxAge||0,this[ir]=H.dispose,this[Pe]=H.noDisposeOnSet||!1,this[O]=H.updateAgeOnGet||!1,this.reset()}set max(H){if(typeof H!="number"||H<0)throw new TypeError("max must be a non-negative number");this[Ve]=H||1/0,pe(this)}get max(){return this[Ve]}set allowStale(H){this[fr]=!!H}get allowStale(){return this[fr]}set maxAge(H){if(typeof H!="number")throw new TypeError("maxAge must be a non-negative number");this[Mr]=H,pe(this)}get maxAge(){return this[Mr]}set lengthCalculator(H){typeof H!="function"&&(H=L),H!==this[wr]&&(this[wr]=H,this[ni]=0,this[e].forEach(se=>{se.length=this[wr](se.value,se.key),this[ni]+=se.length})),pe(this)}get lengthCalculator(){return this[wr]}get length(){return this[ni]}get itemCount(){return this[e].length}rforEach(H,se){se=se||this;for(let p=this[e].tail;p!==null;){let C=p.prev;S(this,H,p,se),p=C}}forEach(H,se){se=se||this;for(let p=this[e].head;p!==null;){let C=p.next;S(this,H,p,se),p=C}}keys(){return this[e].toArray().map(H=>H.key)}values(){return this[e].toArray().map(H=>H.value)}reset(){this[ir]&&this[e]&&this[e].length&&this[e].forEach(H=>this[ir](H.key,H.value)),this[a]=new Map,this[e]=new qe,this[ni]=0}dump(){return this[e].map(H=>Q(this,H)?!1:{k:H.key,v:H.value,e:H.now+(H.maxAge||0)}).toArray().filter(H=>H)}dumpLru(){return this[e]}set(H,se,p){if(p=p||this[Mr],p&&typeof p!="number")throw new TypeError("maxAge must be a number");let C=p?Date.now():0,G=this[wr](se,H);if(this[a].has(H)){if(G>this[Ve])return F(this,this[a].get(H)),!1;let B=this[a].get(H).value;return this[ir]&&(this[Pe]||this[ir](H,B.value)),B.now=C,B.maxAge=p,B.value=se,this[ni]+=G-B.length,B.length=G,this.get(H),pe(this),!0}let E=new g(H,se,G,C,p);return E.length>this[Ve]?(this[ir]&&this[ir](H,se),!1):(this[ni]+=E.length,this[e].unshift(E),this[a].set(H,this[e].head),pe(this),!0)}has(H){if(!this[a].has(H))return!1;let se=this[a].get(H).value;return!Q(this,se)}get(H){return N(this,H,!0)}peek(H){return N(this,H,!1)}pop(){let H=this[e].tail;return H?(F(this,H),H.value):null}del(H){F(this,this[a].get(H))}load(H){this.reset();let se=Date.now();for(let p=H.length-1;p>=0;p--){let C=H[p],G=C.e||0;if(G===0)this.set(C.k,C.v);else{let E=G-se;E>0&&this.set(C.k,C.v,E)}}}prune(){this[a].forEach((H,se)=>N(this,se,!1))}},N=(H,se,p)=>{let C=H[a].get(se);if(C){let G=C.value;if(Q(H,G)){if(F(H,C),!H[fr])return}else p&&(H[O]&&(C.value.now=Date.now()),H[e].unshiftNode(C));return G.value}},Q=(H,se)=>{if(!se||!se.maxAge&&!H[Mr])return!1;let p=Date.now()-se.now;return se.maxAge?p>se.maxAge:H[Mr]&&p>H[Mr]},pe=H=>{if(H[ni]>H[Ve])for(let se=H[e].tail;H[ni]>H[Ve]&&se!==null;){let p=se.prev;F(H,se),se=p}},F=(H,se)=>{if(se){let p=se.value;H[ir]&&H[ir](p.key,p.value),H[ni]-=p.length,H[a].delete(p.key),H[e].removeNode(se)}},g=class{constructor(H,se,p,C,G){this.key=H,this.value=se,this.length=p,this.now=C,this.maxAge=G||0}},S=(H,se,p,C)=>{let G=p.value;Q(H,G)&&(F(H,p),H[fr]||(G=void 0)),G&&se.call(C,G.value,G.key,H)};te.exports=W}}),Hp=Aa({"node_modules/semver/classes/range.js"(R,te){Sa();var qe=class{constructor(re,M){if(M=wr(M),re instanceof qe)return re.loose===!!M.loose&&re.includePrerelease===!!M.includePrerelease?re:new qe(re.raw,M);if(re instanceof fr)return this.raw=re.value,this.set=[[re]],this.format(),this;if(this.options=M,this.loose=!!M.loose,this.includePrerelease=!!M.includePrerelease,this.raw=re,this.set=re.split(/\s*\|\|\s*/).map(x=>this.parseRange(x.trim())).filter(x=>x.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(re));if(this.set.length>1){let x=this.set[0];if(this.set=this.set.filter(ie=>!W(ie[0])),this.set.length===0)this.set=[x];else if(this.set.length>1){for(let ie of this.set)if(ie.length===1&&N(ie[0])){this.set=[ie];break}}}this.format()}format(){return this.range=this.set.map(re=>re.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(re){re=re.trim();let M=Object.keys(this.options).join(","),x="parseRange:".concat(M,":").concat(re),ie=ni.get(x);if(ie)return ie;let _e=this.options.loose,Y=_e?Pe[e.HYPHENRANGELOOSE]:Pe[e.HYPHENRANGE];re=re.replace(Y,ue(this.options.includePrerelease)),Mr("hyphen replace",re),re=re.replace(Pe[e.COMPARATORTRIM],a),Mr("comparator trim",re,Pe[e.COMPARATORTRIM]),re=re.replace(Pe[e.TILDETRIM],O),re=re.replace(Pe[e.CARETTRIM],L),re=re.split(/\s+/).join(" ");let Z=_e?Pe[e.COMPARATORLOOSE]:Pe[e.COMPARATOR],k=re.split(" ").map(A=>pe(A,this.options)).join(" ").split(/\s+/).map(A=>E(A,this.options)).filter(this.options.loose?A=>!!A.match(Z):()=>!0).map(A=>new fr(A,this.options)),I=k.length,ne=new Map;for(let A of k){if(W(A))return[A];ne.set(A.value,A)}ne.size>1&&ne.has("")&&ne.delete("");let ee=[...ne.values()];return ni.set(x,ee),ee}intersects(re,M){if(!(re instanceof qe))throw new TypeError("a Range is required");return this.set.some(x=>Q(x,M)&&re.set.some(ie=>Q(ie,M)&&x.every(_e=>ie.every(Y=>_e.intersects(Y,M)))))}test(re){if(!re)return!1;if(typeof re=="string")try{re=new ir(re,this.options)}catch{return!1}for(let M=0;M<this.set.length;M++)if(B(this.set[M],re,this.options))return!0;return!1}};te.exports=qe;var Ve=Ij(),ni=new Ve({max:1e3}),wr=o1(),fr=c1(),Mr=n1(),ir=Nf(),{re:Pe,t:e,comparatorTrimReplace:a,tildeTrimReplace:O,caretTrimReplace:L}=vv(),W=re=>re.value==="<0.0.0-0",N=re=>re.value==="",Q=(re,M)=>{let x=!0,ie=re.slice(),_e=ie.pop();for(;x&&ie.length;)x=ie.every(Y=>_e.intersects(Y,M)),_e=ie.pop();return x},pe=(re,M)=>(Mr("comp",re,M),re=H(re,M),Mr("caret",re),re=g(re,M),Mr("tildes",re),re=p(re,M),Mr("xrange",re),re=G(re,M),Mr("stars",re),re),F=re=>!re||re.toLowerCase()==="x"||re==="*",g=(re,M)=>re.trim().split(/\s+/).map(x=>S(x,M)).join(" "),S=(re,M)=>{let x=M.loose?Pe[e.TILDELOOSE]:Pe[e.TILDE];return re.replace(x,(ie,_e,Y,Z,k)=>{Mr("tilde",re,ie,_e,Y,Z,k);let I;return F(_e)?I="":F(Y)?I=">=".concat(_e,".0.0 <").concat(+_e+1,".0.0-0"):F(Z)?I=">=".concat(_e,".").concat(Y,".0 <").concat(_e,".").concat(+Y+1,".0-0"):k?(Mr("replaceTilde pr",k),I=">=".concat(_e,".").concat(Y,".").concat(Z,"-").concat(k," <").concat(_e,".").concat(+Y+1,".0-0")):I=">=".concat(_e,".").concat(Y,".").concat(Z," <").concat(_e,".").concat(+Y+1,".0-0"),Mr("tilde return",I),I})},H=(re,M)=>re.trim().split(/\s+/).map(x=>se(x,M)).join(" "),se=(re,M)=>{Mr("caret",re,M);let x=M.loose?Pe[e.CARETLOOSE]:Pe[e.CARET],ie=M.includePrerelease?"-0":"";return re.replace(x,(_e,Y,Z,k,I)=>{Mr("caret",re,_e,Y,Z,k,I);let ne;return F(Y)?ne="":F(Z)?ne=">=".concat(Y,".0.0").concat(ie," <").concat(+Y+1,".0.0-0"):F(k)?Y==="0"?ne=">=".concat(Y,".").concat(Z,".0").concat(ie," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".0").concat(ie," <").concat(+Y+1,".0.0-0"):I?(Mr("replaceCaret pr",I),Y==="0"?Z==="0"?ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(Y,".").concat(Z,".").concat(+k+1,"-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k,"-").concat(I," <").concat(+Y+1,".0.0-0")):(Mr("no pr"),Y==="0"?Z==="0"?ne=">=".concat(Y,".").concat(Z,".").concat(k).concat(ie," <").concat(Y,".").concat(Z,".").concat(+k+1,"-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k).concat(ie," <").concat(Y,".").concat(+Z+1,".0-0"):ne=">=".concat(Y,".").concat(Z,".").concat(k," <").concat(+Y+1,".0.0-0")),Mr("caret return",ne),ne})},p=(re,M)=>(Mr("replaceXRanges",re,M),re.split(/\s+/).map(x=>C(x,M)).join(" ")),C=(re,M)=>{re=re.trim();let x=M.loose?Pe[e.XRANGELOOSE]:Pe[e.XRANGE];return re.replace(x,(ie,_e,Y,Z,k,I)=>{Mr("xRange",re,ie,_e,Y,Z,k,I);let ne=F(Y),ee=ne||F(Z),A=ee||F(k),f=A;return _e==="="&&f&&(_e=""),I=M.includePrerelease?"-0":"",ne?_e===">"||_e==="<"?ie="<0.0.0-0":ie="*":_e&&f?(ee&&(Z=0),k=0,_e===">"?(_e=">=",ee?(Y=+Y+1,Z=0,k=0):(Z=+Z+1,k=0)):_e==="<="&&(_e="<",ee?Y=+Y+1:Z=+Z+1),_e==="<"&&(I="-0"),ie="".concat(_e+Y,".").concat(Z,".").concat(k).concat(I)):ee?ie=">=".concat(Y,".0.0").concat(I," <").concat(+Y+1,".0.0-0"):A&&(ie=">=".concat(Y,".").concat(Z,".0").concat(I," <").concat(Y,".").concat(+Z+1,".0-0")),Mr("xRange return",ie),ie})},G=(re,M)=>(Mr("replaceStars",re,M),re.trim().replace(Pe[e.STAR],"")),E=(re,M)=>(Mr("replaceGTE0",re,M),re.trim().replace(Pe[M.includePrerelease?e.GTE0PRE:e.GTE0],"")),ue=re=>(M,x,ie,_e,Y,Z,k,I,ne,ee,A,f,P)=>(F(ie)?x="":F(_e)?x=">=".concat(ie,".0.0").concat(re?"-0":""):F(Y)?x=">=".concat(ie,".").concat(_e,".0").concat(re?"-0":""):Z?x=">=".concat(x):x=">=".concat(x).concat(re?"-0":""),F(ne)?I="":F(ee)?I="<".concat(+ne+1,".0.0-0"):F(A)?I="<".concat(ne,".").concat(+ee+1,".0-0"):f?I="<=".concat(ne,".").concat(ee,".").concat(A,"-").concat(f):re?I="<".concat(ne,".").concat(ee,".").concat(+A+1,"-0"):I="<=".concat(I),"".concat(x," ").concat(I).trim()),B=(re,M,x)=>{for(let ie=0;ie<re.length;ie++)if(!re[ie].test(M))return!1;if(M.prerelease.length&&!x.includePrerelease){for(let ie=0;ie<re.length;ie++)if(Mr(re[ie].semver),re[ie].semver!==fr.ANY&&re[ie].semver.prerelease.length>0){let _e=re[ie].semver;if(_e.major===M.major&&_e.minor===M.minor&&_e.patch===M.patch)return!0}return!1}return!0}}}),c1=Aa({"node_modules/semver/classes/comparator.js"(R,te){Sa();var qe=Symbol("SemVer ANY"),Ve=class{static get ANY(){return qe}constructor(a,O){if(O=ni(O),a instanceof Ve){if(a.loose===!!O.loose)return a;a=a.value}ir("comparator",a,O),this.options=O,this.loose=!!O.loose,this.parse(a),this.semver===qe?this.value="":this.value=this.operator+this.semver.version,ir("comp",this)}parse(a){let O=this.options.loose?wr[fr.COMPARATORLOOSE]:wr[fr.COMPARATOR],L=a.match(O);if(!L)throw new TypeError("Invalid comparator: ".concat(a));this.operator=L[1]!==void 0?L[1]:"",this.operator==="="&&(this.operator=""),L[2]?this.semver=new Pe(L[2],this.options.loose):this.semver=qe}toString(){return this.value}test(a){if(ir("Comparator.test",a,this.options.loose),this.semver===qe||a===qe)return!0;if(typeof a=="string")try{a=new Pe(a,this.options)}catch{return!1}return Mr(a,this.operator,this.semver,this.options)}intersects(a,O){if(!(a instanceof Ve))throw new TypeError("a Comparator is required");if((!O||typeof O!="object")&&(O={loose:!!O,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new e(a.value,O).test(this.value);if(a.operator==="")return a.value===""?!0:new e(this.value,O).test(a.semver);let L=(this.operator===">="||this.operator===">")&&(a.operator===">="||a.operator===">"),W=(this.operator==="<="||this.operator==="<")&&(a.operator==="<="||a.operator==="<"),N=this.semver.version===a.semver.version,Q=(this.operator===">="||this.operator==="<=")&&(a.operator===">="||a.operator==="<="),pe=Mr(this.semver,"<",a.semver,O)&&(this.operator===">="||this.operator===">")&&(a.operator==="<="||a.operator==="<"),F=Mr(this.semver,">",a.semver,O)&&(this.operator==="<="||this.operator==="<")&&(a.operator===">="||a.operator===">");return L||W||N&&Q||pe||F}};te.exports=Ve;var ni=o1(),{re:wr,t:fr}=vv(),Mr=pN(),ir=n1(),Pe=Nf(),e=Hp()}}),u1=Aa({"node_modules/semver/functions/satisfies.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr,fr)=>{try{wr=new qe(wr,fr)}catch{return!1}return wr.test(ni)};te.exports=Ve}}),wj=Aa({"node_modules/semver/ranges/to-comparators.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr)=>new qe(ni,wr).set.map(fr=>fr.map(Mr=>Mr.value).join(" ").trim().split(" "));te.exports=Ve}}),Oj=Aa({"node_modules/semver/ranges/max-satisfying.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=(wr,fr,Mr)=>{let ir=null,Pe=null,e=null;try{e=new Ve(fr,Mr)}catch{return null}return wr.forEach(a=>{e.test(a)&&(!ir||Pe.compare(a)===-1)&&(ir=a,Pe=new qe(ir,Mr))}),ir};te.exports=ni}}),Fj=Aa({"node_modules/semver/ranges/min-satisfying.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=(wr,fr,Mr)=>{let ir=null,Pe=null,e=null;try{e=new Ve(fr,Mr)}catch{return null}return wr.forEach(a=>{e.test(a)&&(!ir||Pe.compare(a)===1)&&(ir=a,Pe=new qe(ir,Mr))}),ir};te.exports=ni}}),Mj=Aa({"node_modules/semver/ranges/min-version.js"(R,te){Sa();var qe=Nf(),Ve=Hp(),ni=s1(),wr=(fr,Mr)=>{fr=new Ve(fr,Mr);let ir=new qe("0.0.0");if(fr.test(ir)||(ir=new qe("0.0.0-0"),fr.test(ir)))return ir;ir=null;for(let Pe=0;Pe<fr.set.length;++Pe){let e=fr.set[Pe],a=null;e.forEach(O=>{let L=new qe(O.semver.version);switch(O.operator){case">":L.prerelease.length===0?L.patch++:L.prerelease.push(0),L.raw=L.format();case"":case">=":(!a||ni(L,a))&&(a=L);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(O.operator))}}),a&&(!ir||ni(ir,a))&&(ir=a)}return ir&&fr.test(ir)?ir:null};te.exports=wr}}),Lj=Aa({"node_modules/semver/ranges/valid.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr)=>{try{return new qe(ni,wr).range||"*"}catch{return null}};te.exports=Ve}}),AT=Aa({"node_modules/semver/ranges/outside.js"(R,te){Sa();var qe=Nf(),Ve=c1(),{ANY:ni}=Ve,wr=Hp(),fr=u1(),Mr=s1(),ir=ET(),Pe=kT(),e=CT(),a=(O,L,W,N)=>{O=new qe(O,N),L=new wr(L,N);let Q,pe,F,g,S;switch(W){case">":Q=Mr,pe=Pe,F=ir,g=">",S=">=";break;case"<":Q=ir,pe=e,F=Mr,g="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fr(O,L,N))return!1;for(let H=0;H<L.set.length;++H){let se=L.set[H],p=null,C=null;if(se.forEach(G=>{G.semver===ni&&(G=new Ve(">=0.0.0")),p=p||G,C=C||G,Q(G.semver,p.semver,N)?p=G:F(G.semver,C.semver,N)&&(C=G)}),p.operator===g||p.operator===S||(!C.operator||C.operator===g)&&pe(O,C.semver))return!1;if(C.operator===S&&F(O,C.semver))return!1}return!0};te.exports=a}}),Rj=Aa({"node_modules/semver/ranges/gtr.js"(R,te){Sa();var qe=AT(),Ve=(ni,wr,fr)=>qe(ni,wr,">",fr);te.exports=Ve}}),Bj=Aa({"node_modules/semver/ranges/ltr.js"(R,te){Sa();var qe=AT(),Ve=(ni,wr,fr)=>qe(ni,wr,"<",fr);te.exports=Ve}}),Jj=Aa({"node_modules/semver/ranges/intersects.js"(R,te){Sa();var qe=Hp(),Ve=(ni,wr,fr)=>(ni=new qe(ni,fr),wr=new qe(wr,fr),ni.intersects(wr));te.exports=Ve}}),jj=Aa({"node_modules/semver/ranges/simplify.js"(R,te){Sa();var qe=u1(),Ve=Gp();te.exports=(ni,wr,fr)=>{let Mr=[],ir=null,Pe=null,e=ni.sort((W,N)=>Ve(W,N,fr));for(let W of e)qe(W,wr,fr)?(Pe=W,ir||(ir=W)):(Pe&&Mr.push([ir,Pe]),Pe=null,ir=null);ir&&Mr.push([ir,null]);let a=[];for(let[W,N]of Mr)W===N?a.push(W):!N&&W===e[0]?a.push("*"):N?W===e[0]?a.push("<=".concat(N)):a.push("".concat(W," - ").concat(N)):a.push(">=".concat(W));let O=a.join(" || "),L=typeof wr.raw=="string"?wr.raw:String(wr);return O.length<L.length?O:wr}}}),Uj=Aa({"node_modules/semver/ranges/subset.js"(R,te){Sa();var qe=Hp(),Ve=c1(),{ANY:ni}=Ve,wr=u1(),fr=Gp(),Mr=function(a,O){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a===O)return!0;a=new qe(a,L),O=new qe(O,L);let W=!1;e:for(let N of a.set){for(let Q of O.set){let pe=ir(N,Q,L);if(W=W||pe!==null,pe)continue e}if(W)return!1}return!0},ir=(a,O,L)=>{if(a===O)return!0;if(a.length===1&&a[0].semver===ni){if(O.length===1&&O[0].semver===ni)return!0;L.includePrerelease?a=[new Ve(">=0.0.0-0")]:a=[new Ve(">=0.0.0")]}if(O.length===1&&O[0].semver===ni){if(L.includePrerelease)return!0;O=[new Ve(">=0.0.0")]}let W=new Set,N,Q;for(let C of a)C.operator===">"||C.operator===">="?N=Pe(N,C,L):C.operator==="<"||C.operator==="<="?Q=e(Q,C,L):W.add(C.semver);if(W.size>1)return null;let pe;if(N&&Q){if(pe=fr(N.semver,Q.semver,L),pe>0)return null;if(pe===0&&(N.operator!==">="||Q.operator!=="<="))return null}for(let C of W){if(N&&!wr(C,String(N),L)||Q&&!wr(C,String(Q),L))return null;for(let G of O)if(!wr(C,String(G),L))return!1;return!0}let F,g,S,H,se=Q&&!L.includePrerelease&&Q.semver.prerelease.length?Q.semver:!1,p=N&&!L.includePrerelease&&N.semver.prerelease.length?N.semver:!1;se&&se.prerelease.length===1&&Q.operator==="<"&&se.prerelease[0]===0&&(se=!1);for(let C of O){if(H=H||C.operator===">"||C.operator===">=",S=S||C.operator==="<"||C.operator==="<=",N){if(p&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===p.major&&C.semver.minor===p.minor&&C.semver.patch===p.patch&&(p=!1),C.operator===">"||C.operator===">="){if(F=Pe(N,C,L),F===C&&F!==N)return!1}else if(N.operator===">="&&!wr(N.semver,String(C),L))return!1}if(Q){if(se&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===se.major&&C.semver.minor===se.minor&&C.semver.patch===se.patch&&(se=!1),C.operator==="<"||C.operator==="<="){if(g=e(Q,C,L),g===C&&g!==Q)return!1}else if(Q.operator==="<="&&!wr(Q.semver,String(C),L))return!1}if(!C.operator&&(Q||N)&&pe!==0)return!1}return!(N&&S&&!Q&&pe!==0||Q&&H&&!N&&pe!==0||p||se)},Pe=(a,O,L)=>{if(!a)return O;let W=fr(a.semver,O.semver,L);return W>0?a:W<0||O.operator===">"&&a.operator===">="?O:a},e=(a,O,L)=>{if(!a)return O;let W=fr(a.semver,O.semver,L);return W<0?a:W>0||O.operator==="<"&&a.operator==="<="?O:a};te.exports=Mr}}),PT=Aa({"node_modules/semver/index.js"(R,te){Sa();var qe=vv();te.exports={re:qe.re,src:qe.src,tokens:qe.t,SEMVER_SPEC_VERSION:a1().SEMVER_SPEC_VERSION,SemVer:Nf(),compareIdentifiers:vT().compareIdentifiers,rcompareIdentifiers:vT().rcompareIdentifiers,parse:yv(),valid:mj(),clean:vj(),inc:yj(),diff:hj(),major:Dj(),minor:bj(),patch:Sj(),prerelease:Tj(),compare:Gp(),rcompare:xj(),compareLoose:Ej(),compareBuild:xT(),sort:Cj(),rsort:kj(),gt:s1(),lt:ET(),eq:TT(),neq:_N(),gte:CT(),lte:kT(),cmp:pN(),coerce:Aj(),Comparator:c1(),Range:Hp(),satisfies:u1(),toComparators:wj(),maxSatisfying:Oj(),minSatisfying:Fj(),minVersion:Mj(),validRange:Lj(),outside:AT(),gtr:Rj(),ltr:Bj(),intersects:Jj(),simplifyRange:jj(),subset:Uj()}}}),dN={};t1(dN,{basename:()=>hN,default:()=>bN,delimiter:()=>hT,dirname:()=>yN,extname:()=>DN,isAbsolute:()=>IT,join:()=>mN,normalize:()=>NT,relative:()=>vN,resolve:()=>i1,sep:()=>yT});function gN(R,te){for(var qe=0,Ve=R.length-1;Ve>=0;Ve--){var ni=R[Ve];ni==="."?R.splice(Ve,1):ni===".."?(R.splice(Ve,1),qe++):qe&&(R.splice(Ve,1),qe--)}if(te)for(;qe--;qe)R.unshift("..");return R}function i1(){for(var R="",te=!1,qe=arguments.length-1;qe>=-1&&!te;qe--){var Ve=qe>=0?arguments[qe]:"/";if(typeof Ve!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!Ve)continue;R=Ve+"/"+R,te=Ve.charAt(0)==="/"}return R=gN(wT(R.split("/"),function(ni){return!!ni}),!te).join("/"),(te?"/":"")+R||"."}function NT(R){var te=IT(R),qe=SN(R,-1)==="/";return R=gN(wT(R.split("/"),function(Ve){return!!Ve}),!te).join("/"),!R&&!te&&(R="."),R&&qe&&(R+="/"),(te?"/":"")+R}function IT(R){return R.charAt(0)==="/"}function mN(){var R=Array.prototype.slice.call(arguments,0);return NT(wT(R,function(te,qe){if(typeof te!="string")throw new TypeError("Arguments to path.join must be strings");return te}).join("/"))}function vN(R,te){R=i1(R).substr(1),te=i1(te).substr(1);function qe(Pe){for(var e=0;e<Pe.length&&Pe[e]==="";e++);for(var a=Pe.length-1;a>=0&&Pe[a]==="";a--);return e>a?[]:Pe.slice(e,a-e+1)}for(var Ve=qe(R.split("/")),ni=qe(te.split("/")),wr=Math.min(Ve.length,ni.length),fr=wr,Mr=0;Mr<wr;Mr++)if(Ve[Mr]!==ni[Mr]){fr=Mr;break}for(var ir=[],Mr=fr;Mr<Ve.length;Mr++)ir.push("..");return ir=ir.concat(ni.slice(fr)),ir.join("/")}function yN(R){var te=l1(R),qe=te[0],Ve=te[1];return!qe&&!Ve?".":(Ve&&(Ve=Ve.substr(0,Ve.length-1)),qe+Ve)}function hN(R,te){var qe=l1(R)[2];return te&&qe.substr(-1*te.length)===te&&(qe=qe.substr(0,qe.length-te.length)),qe}function DN(R){return l1(R)[3]}function wT(R,te){if(R.filter)return R.filter(te);for(var qe=[],Ve=0;Ve<R.length;Ve++)te(R[Ve],Ve,R)&&qe.push(R[Ve]);return qe}var GP,l1,yT,hT,bN,SN,zj=My({"node-modules-polyfills:path"(){Sa(),GP=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,l1=function(R){return GP.exec(R).slice(1)},yT="/",hT=":",bN={extname:DN,basename:hN,dirname:yN,sep:yT,delimiter:hT,relative:vN,join:mN,isAbsolute:IT,normalize:NT,resolve:i1},SN="ab".substr(-1)==="b"?function(R,te,qe){return R.substr(te,qe)}:function(R,te,qe){return te<0&&(te=R.length+te),R.substr(te,qe)}}}),Ly=Aa({"node-modules-polyfills-commonjs:path"(R,te){Sa();var qe=(zj(),up(dN));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),TN={};t1(TN,{default:()=>xN});var xN,Wj=My({"node-modules-polyfills:fs"(){Sa(),xN={}}}),OT=Aa({"node-modules-polyfills-commonjs:fs"(R,te){Sa();var qe=(Wj(),up(TN));if(qe&&qe.default){te.exports=qe.default;for(let Ve in qe)te.exports[Ve]=qe[Ve]}else qe&&(te.exports=qe)}}),Lu=Aa({"node_modules/typescript/lib/typescript.js"(R,te){"use strict";Sa();var qe=R&&R.__spreadArray||function(e,a,O){if(O||arguments.length===2)for(var L=0,W=a.length,N;L<W;L++)(N||!(L in a))&&(N||(N=Array.prototype.slice.call(a,0,L)),N[L]=a[L]);return e.concat(N||Array.prototype.slice.call(a))},Ve=R&&R.__assign||function(){return Ve=Object.assign||function(e){for(var a,O=1,L=arguments.length;O<L;O++){a=arguments[O];for(var W in a)Object.prototype.hasOwnProperty.call(a,W)&&(e[W]=a[W])}return e},Ve.apply(this,arguments)},ni=R&&R.__makeTemplateObject||function(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e},wr=R&&R.__generator||function(e,a){var O={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},L,W,N,Q;return Q={next:pe(0),throw:pe(1),return:pe(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function pe(g){return function(S){return F([g,S])}}function F(g){if(L)throw new TypeError("Generator is already executing.");for(;O;)try{if(L=1,W&&(N=g[0]&2?W.return:g[0]?W.throw||((N=W.return)&&N.call(W),0):W.next)&&!(N=N.call(W,g[1])).done)return N;switch(W=0,N&&(g=[g[0]&2,N.value]),g[0]){case 0:case 1:N=g;break;case 4:return O.label++,{value:g[1],done:!1};case 5:O.label++,W=g[1],g=[0];continue;case 7:g=O.ops.pop(),O.trys.pop();continue;default:if(N=O.trys,!(N=N.length>0&&N[N.length-1])&&(g[0]===6||g[0]===2)){O=0;continue}if(g[0]===3&&(!N||g[1]>N[0]&&g[1]<N[3])){O.label=g[1];break}if(g[0]===6&&O.label<N[1]){O.label=N[1],N=g;break}if(N&&O.label<N[2]){O.label=N[2],O.ops.push(g);break}N[2]&&O.ops.pop(),O.trys.pop();continue}g=a.call(e,O)}catch(S){g=[6,S],W=0}finally{L=N=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},fr=R&&R.__rest||function(e,a){var O={};for(var L in e)Object.prototype.hasOwnProperty.call(e,L)&&a.indexOf(L)<0&&(O[L]=e[L]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,L=Object.getOwnPropertySymbols(e);W<L.length;W++)a.indexOf(L[W])<0&&Object.prototype.propertyIsEnumerable.call(e,L[W])&&(O[L[W]]=e[L[W]]);return O},Mr=R&&R.__extends||function(){var e=function(a,O){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,W){L.__proto__=W}||function(L,W){for(var N in W)Object.prototype.hasOwnProperty.call(W,N)&&(L[N]=W[N])},e(a,O)};return function(a,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");e(a,O);function L(){this.constructor=a}a.prototype=O===null?Object.create(O):(L.prototype=O.prototype,new L)}}(),Pe;(function(e){function a(){var G={};return G.prev=G,{head:G,tail:G,size:0}}function O(G,E){return{key:G,value:E,next:void 0,prev:void 0}}function L(G,E){return G===E||G!==G&&E!==E}function W(G){var E=G.prev;if(!E||E===G)throw new Error("Illegal state");return E}function N(G){for(;G;){var E=!G.prev;if(G=G.next,!E)return G}}function Q(G,E){for(var ue=G.tail;ue!==G.head;ue=W(ue))if(L(ue.key,E))return ue}function pe(G,E,ue){var B=Q(G,E);if(B){B.value=ue;return}var re=O(E,ue);return re.prev=G.tail,G.tail.next=re,G.tail=re,G.size++,re}function F(G,E){for(var ue=G.tail;ue!==G.head;ue=W(ue)){if(ue.prev===void 0)throw new Error("Illegal state");if(L(ue.key,E)){if(ue.next)ue.next.prev=ue.prev;else{if(G.tail!==ue)throw new Error("Illegal state");G.tail=ue.prev}return ue.prev.next=ue.next,ue.next=ue.prev,ue.prev=void 0,G.size--,ue}}}function g(G){for(var E=G.tail;E!==G.head;){var ue=W(E);E.next=G.head,E.prev=void 0,E=ue}G.head.next=void 0,G.tail=G.head,G.size=0}function S(G,E){for(var ue=G.head;ue;)ue=N(ue),ue&&E(ue.value,ue.key)}function H(G,E){if(G)for(var ue=G.next();!ue.done;ue=G.next())E(ue.value)}function se(G,E){return{current:G.head,selector:E}}function p(G){return G.current=N(G.current),G.current?{value:G.selector(G.current.key,G.current.value),done:!1}:{value:void 0,done:!0}}var C;(function(G){function E(B){var re=function(){function M(x,ie){this._data=se(x,ie)}return M.prototype.next=function(){return p(this._data)},M}();return function(){function M(x){var ie=this;this._mapData=a(),H(B(x),function(_e){var Y=_e[0],Z=_e[1];return ie.set(Y,Z)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.get=function(x){var ie;return(ie=Q(this._mapData,x))===null||ie===void 0?void 0:ie.value},M.prototype.set=function(x,ie){return pe(this._mapData,x,ie),this},M.prototype.has=function(x){return!!Q(this._mapData,x)},M.prototype.delete=function(x){return!!F(this._mapData,x)},M.prototype.clear=function(){g(this._mapData)},M.prototype.keys=function(){return new re(this._mapData,function(x,ie){return x})},M.prototype.values=function(){return new re(this._mapData,function(x,ie){return ie})},M.prototype.entries=function(){return new re(this._mapData,function(x,ie){return[x,ie]})},M.prototype.forEach=function(x){S(this._mapData,x)},M}()}G.createMapShim=E;function ue(B){var re=function(){function M(x,ie){this._data=se(x,ie)}return M.prototype.next=function(){return p(this._data)},M}();return function(){function M(x){var ie=this;this._mapData=a(),H(B(x),function(_e){return ie.add(_e)})}return Object.defineProperty(M.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),M.prototype.add=function(x){return pe(this._mapData,x,x),this},M.prototype.has=function(x){return!!Q(this._mapData,x)},M.prototype.delete=function(x){return!!F(this._mapData,x)},M.prototype.clear=function(){g(this._mapData)},M.prototype.keys=function(){return new re(this._mapData,function(x,ie){return x})},M.prototype.values=function(){return new re(this._mapData,function(x,ie){return ie})},M.prototype.entries=function(){return new re(this._mapData,function(x,ie){return[x,ie]})},M.prototype.forEach=function(x){S(this._mapData,x)},M}()}G.createSetShim=ue})(C=e.ShimCollections||(e.ShimCollections={}))})(Pe||(Pe={}));var Pe;(function(e){e.versionMajorMinor="4.6",e.version="4.6.3";var a;(function(W){W[W.LessThan=-1]="LessThan",W[W.EqualTo=0]="EqualTo",W[W.GreaterThan=1]="GreaterThan"})(a=e.Comparison||(e.Comparison={}));var O;(function(W){var N=typeof globalThis<"u"||typeof globalThis<"u"?globalThis:typeof self<"u"?self:void 0;function Q(){var F=N==null?void 0:N.Map;return typeof F<"u"&&"entries"in F.prototype&&new F([[0,0]]).size===1?F:void 0}W.tryGetNativeMap=Q;function pe(){var F=N==null?void 0:N.Set;return typeof F<"u"&&"entries"in F.prototype&&new F([0]).size===1?F:void 0}W.tryGetNativeSet=pe})(O||(O={})),e.Map=L("Map","tryGetNativeMap","createMapShim"),e.Set=L("Set","tryGetNativeSet","createSetShim");function L(W,N,Q){var pe,F=(pe=O[N]())!==null&&pe!==void 0?pe:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[Q](e.getIterator);if(F)return F;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(W," implementation."))}})(Pe||(Pe={}));var Pe;(function(e){function a(h){if(h){if(Oe(h))return Br(h);if(h instanceof e.Map)return h.entries();if(h instanceof e.Set)return h.values();throw new Error("Iteration not supported.")}}e.getIterator=a,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function O(h){return h?h.length:0}e.length=O;function L(h,Ee){if(h)for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr)return nr}}e.forEach=L;function W(h,Ee){if(h)for(var Re=h.length-1;Re>=0;Re--){var nr=Ee(h[Re],Re);if(nr)return nr}}e.forEachRight=W;function N(h,Ee){if(h!==void 0)for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr!==void 0)return nr}}e.firstDefined=N;function Q(h,Ee){for(;;){var Re=h.next();if(Re.done)return;var nr=Ee(Re.value);if(nr!==void 0)return nr}}e.firstDefinedIterator=Q;function pe(h,Ee,Re){var nr=Re;if(h)for(var Gr=h.next(),_i=0;!Gr.done;Gr=h.next(),_i++)nr=Ee(nr,Gr.value,_i);return nr}e.reduceLeftIterator=pe;function F(h,Ee,Re){var nr=[];e.Debug.assertEqual(h.length,Ee.length);for(var Gr=0;Gr<h.length;Gr++)nr.push(Re(h[Gr],Ee[Gr],Gr));return nr}e.zipWith=F;function g(h,Ee){e.Debug.assertEqual(h.length,Ee.length);var Re=0;return{next:function(){return Re===h.length?{value:void 0,done:!0}:(Re++,{value:[h[Re-1],Ee[Re-1]],done:!1})}}}e.zipToIterator=g;function S(h,Ee){e.Debug.assert(h.length===Ee.length);for(var Re=new e.Map,nr=0;nr<h.length;++nr)Re.set(h[nr],Ee[nr]);return Re}e.zipToMap=S;function H(h,Ee){if(h.length<=1)return h;for(var Re=[],nr=0,Gr=h.length;nr<Gr;nr++)nr&&Re.push(Ee),Re.push(h[nr]);return Re}e.intersperse=H;function se(h,Ee){if(h){for(var Re=0;Re<h.length;Re++)if(!Ee(h[Re],Re))return!1}return!0}e.every=se;function p(h,Ee){for(var Re=0;Re<h.length;Re++){var nr=h[Re];if(Ee(nr,Re))return nr}}e.find=p;function C(h,Ee){for(var Re=h.length-1;Re>=0;Re--){var nr=h[Re];if(Ee(nr,Re))return nr}}e.findLast=C;function G(h,Ee,Re){for(var nr=Re||0;nr<h.length;nr++)if(Ee(h[nr],nr))return nr;return-1}e.findIndex=G;function E(h,Ee,Re){for(var nr=Re===void 0?h.length-1:Re;nr>=0;nr--)if(Ee(h[nr],nr))return nr;return-1}e.findLastIndex=E;function ue(h,Ee){for(var Re=0;Re<h.length;Re++){var nr=Ee(h[Re],Re);if(nr)return nr}return e.Debug.fail()}e.findMap=ue;function B(h,Ee,Re){if(Re===void 0&&(Re=xt),h)for(var nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];if(Re(_i,Ee))return!0}return!1}e.contains=B;function re(h,Ee,Re){return Re===void 0&&(Re=xt),h.length===Ee.length&&h.every(function(nr,Gr){return Re(nr,Ee[Gr])})}e.arraysEqual=re;function M(h,Ee,Re){for(var nr=Re||0;nr<h.length;nr++)if(B(Ee,h.charCodeAt(nr)))return nr;return-1}e.indexOfAnyCharCode=M;function x(h,Ee){var Re=0;if(h)for(var nr=0;nr<h.length;nr++){var Gr=h[nr];Ee(Gr,nr)&&Re++}return Re}e.countWhere=x;function ie(h,Ee){if(h){for(var Re=h.length,nr=0;nr<Re&&Ee(h[nr]);)nr++;if(nr<Re){var Gr=h.slice(0,nr);for(nr++;nr<Re;){var _i=h[nr];Ee(_i)&&Gr.push(_i),nr++}return Gr}}return h}e.filter=ie;function _e(h,Ee){for(var Re=0,nr=0;nr<h.length;nr++)Ee(h[nr],nr,h)&&(h[Re]=h[nr],Re++);h.length=Re}e.filterMutate=_e;function Y(h){h.length=0}e.clear=Y;function Z(h,Ee){var Re;if(h){Re=[];for(var nr=0;nr<h.length;nr++)Re.push(Ee(h[nr],nr))}return Re}e.map=Z;function k(h,Ee){return{next:function(){var Re=h.next();return Re.done?Re:{value:Ee(Re.value),done:!1}}}}e.mapIterator=k;function I(h,Ee){if(h)for(var Re=0;Re<h.length;Re++){var nr=h[Re],Gr=Ee(nr,Re);if(nr!==Gr){var _i=h.slice(0,Re);for(_i.push(Gr),Re++;Re<h.length;Re++)_i.push(Ee(h[Re],Re));return _i}}return h}e.sameMap=I;function ne(h){for(var Ee=[],Re=0,nr=h;Re<nr.length;Re++){var Gr=nr[Re];Gr&&(Oe(Gr)?Fe(Ee,Gr):Ee.push(Gr))}return Ee}e.flatten=ne;function ee(h,Ee){var Re;if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr&&(Oe(Gr)?Re=Fe(Re,Gr):Re=ye(Re,Gr))}return Re||e.emptyArray}e.flatMap=ee;function A(h,Ee){var Re=[];if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr&&(Oe(Gr)?Fe(Re,Gr):Re.push(Gr))}return Re}e.flatMapToMutable=A;function f(h,Ee){var Re=h.next();if(Re.done)return e.emptyIterator;var nr=Gr(Re.value);return{next:function(){for(;;){var _i=nr.next();if(!_i.done)return _i;var Ei=h.next();if(Ei.done)return Ei;nr=Gr(Ei.value)}}};function Gr(_i){var Ei=Ee(_i);return Ei===void 0?e.emptyIterator:Oe(Ei)?Br(Ei):Ei}}e.flatMapIterator=f;function P(h,Ee){var Re;if(h)for(var nr=0;nr<h.length;nr++){var Gr=h[nr],_i=Ee(Gr,nr);(Re||Gr!==_i||Oe(_i))&&(Re||(Re=h.slice(0,nr)),Oe(_i)?Fe(Re,_i):Re.push(_i))}return Re||h}e.sameFlatMap=P;function D(h,Ee){for(var Re=[],nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);if(Gr===void 0)return;Re.push(Gr)}return Re}e.mapAllOrFail=D;function l(h,Ee){var Re=[];if(h)for(var nr=0;nr<h.length;nr++){var Gr=Ee(h[nr],nr);Gr!==void 0&&Re.push(Gr)}return Re}e.mapDefined=l;function _(h,Ee){return{next:function(){for(;;){var Re=h.next();if(Re.done)return Re;var nr=Ee(Re.value);if(nr!==void 0)return{value:nr,done:!1}}}}}e.mapDefinedIterator=_;function J(h,Ee){if(!!h){var Re=new e.Map;return h.forEach(function(nr,Gr){var _i=Ee(Gr,nr);if(_i!==void 0){var Ei=_i[0],Ki=_i[1];Ei!==void 0&&Ki!==void 0&&Re.set(Ei,Ki)}}),Re}}e.mapDefinedEntries=J;function w(h,Ee){if(h){var Re=new e.Set;return h.forEach(function(nr){var Gr=Ee(nr);Gr!==void 0&&Re.add(Gr)}),Re}}e.mapDefinedValues=w;function j(h,Ee,Re){if(h.has(Ee))return h.get(Ee);var nr=Re();return h.set(Ee,nr),nr}e.getOrUpdate=j;function U(h,Ee){return h.has(Ee)?!1:(h.add(Ee),!0)}e.tryAddToSet=U,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function z(h){var Ee=!1;return{next:function(){var Re=Ee;return Ee=!0,Re?{value:void 0,done:!0}:{value:h,done:!1}}}}e.singleIterator=z;function y(h,Ee,Re){var nr;if(h){nr=[];for(var Gr=h.length,_i=void 0,Ei=void 0,Ki=0,Nt=0;Ki<Gr;){for(;Nt<Gr;){var ca=h[Nt];if(Ei=Ee(ca,Nt),Nt===0)_i=Ei;else if(Ei!==_i)break;Nt++}if(Ki<Nt){var Fa=Re(h.slice(Ki,Nt),_i,Ki,Nt);Fa&&nr.push(Fa),Ki=Nt}_i=Ei,Nt++}}return nr}e.spanMap=y;function oe(h,Ee){if(!!h){var Re=new e.Map;return h.forEach(function(nr,Gr){var _i=Ee(Gr,nr),Ei=_i[0],Ki=_i[1];Re.set(Ei,Ki)}),Re}}e.mapEntries=oe;function ve(h,Ee){if(h)if(Ee)for(var Re=0,nr=h;Re<nr.length;Re++){var Gr=nr[Re];if(Ee(Gr))return!0}else return h.length>0;return!1}e.some=ve;function ce(h,Ee,Re){for(var nr,Gr=0;Gr<h.length;Gr++)Ee(h[Gr])?nr=nr===void 0?Gr:nr:nr!==void 0&&(Re(nr,Gr),nr=void 0);nr!==void 0&&Re(nr,h.length)}e.getRangesWhere=ce;function m(h,Ee){return ve(Ee)?ve(h)?qe(qe([],h,!0),Ee,!0):Ee:h}e.concatenate=m;function de(h,Ee){return Ee}function ae(h){return h.map(de)}e.indicesOf=ae;function V(h,Ee,Re){var nr=ae(h);Ir(h,nr,Re);for(var Gr=h[nr[0]],_i=[nr[0]],Ei=1;Ei<nr.length;Ei++){var Ki=nr[Ei],Nt=h[Ki];Ee(Gr,Nt)||(_i.push(Ki),Gr=Nt)}return _i.sort(),_i.map(function(ca){return h[ca]})}function le(h,Ee){for(var Re=[],nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];cr(Re,_i,Ee)}return Re}function ke(h,Ee,Re){return h.length===0?[]:h.length===1?h.slice():Re?V(h,Ee,Re):le(h,Ee)}e.deduplicate=ke;function Ue(h,Ee){if(h.length===0)return e.emptyArray;for(var Re=h[0],nr=[Re],Gr=1;Gr<h.length;Gr++){var _i=h[Gr];switch(Ee(_i,Re)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}nr.push(Re=_i)}return nr}function He(){return[]}e.createSortedArray=He;function ar(h,Ee,Re,nr){if(h.length===0){h.push(Ee);return}var Gr=Rr(h,Ee,Ti,Re);Gr<0?h.splice(~Gr,0,Ee):nr&&h.splice(Gr,0,Ee)}e.insertSorted=ar;function gr(h,Ee,Re){return Ue(dr(h,Ee),Re||Ee||gt)}e.sortAndDeduplicate=gr;function me(h,Ee){if(h.length<2)return!0;for(var Re=h[0],nr=0,Gr=h.slice(1);nr<Gr.length;nr++){var _i=Gr[nr];if(Ee(Re,_i)===1)return!1;Re=_i}return!0}e.arrayIsSorted=me;function Ge(h,Ee,Re){if(Re===void 0&&(Re=xt),!h||!Ee)return h===Ee;if(h.length!==Ee.length)return!1;for(var nr=0;nr<h.length;nr++)if(!Re(h[nr],Ee[nr],nr))return!1;return!0}e.arrayIsEqualTo=Ge;function er(h){var Ee;if(h)for(var Re=0;Re<h.length;Re++){var nr=h[Re];(Ee||!nr)&&(Ee||(Ee=h.slice(0,Re)),nr&&Ee.push(nr))}return Ee||h}e.compact=er;function he(h,Ee,Re){if(!Ee||!h||Ee.length===0||h.length===0)return Ee;var nr=[];e:for(var Gr=0,_i=0;_i<Ee.length;_i++){_i>0&&e.Debug.assertGreaterThanOrEqual(Re(Ee[_i],Ee[_i-1]),0);r:for(var Ei=Gr;Gr<h.length;Gr++)switch(Gr>Ei&&e.Debug.assertGreaterThanOrEqual(Re(h[Gr],h[Gr-1]),0),Re(Ee[_i],h[Gr])){case-1:nr.push(Ee[_i]);continue e;case 0:continue e;case 1:continue r}}return nr}e.relativeComplement=he;function we(h,Ee){for(var Re=0,nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr];Re+=_i[Ee]}return Re}e.sum=we;function ye(h,Ee){return Ee===void 0?h:h===void 0?[Ee]:(h.push(Ee),h)}e.append=ye;function Se(h,Ee){return h===void 0?Ee:Ee===void 0?h:Oe(h)?Oe(Ee)?m(h,Ee):ye(h,Ee):Oe(Ee)?ye(Ee,h):[h,Ee]}e.combine=Se;function ge(h,Ee){return Ee<0?h.length+Ee:Ee}function Fe(h,Ee,Re,nr){if(Ee===void 0||Ee.length===0)return h;if(h===void 0)return Ee.slice(Re,nr);Re=Re===void 0?0:ge(Ee,Re),nr=nr===void 0?Ee.length:ge(Ee,nr);for(var Gr=Re;Gr<nr&&Gr<Ee.length;Gr++)Ee[Gr]!==void 0&&h.push(Ee[Gr]);return h}e.addRange=Fe;function cr(h,Ee,Re){return B(h,Ee,Re)?!1:(h.push(Ee),!0)}e.pushIfUnique=cr;function ur(h,Ee,Re){return h?(cr(h,Ee,Re),h):[Ee]}e.appendIfUnique=ur;function Ir(h,Ee,Re){Ee.sort(function(nr,Gr){return Re(h[nr],h[Gr])||Ci(nr,Gr)})}function dr(h,Ee){return h.length===0?h:h.slice().sort(Ee)}e.sort=dr;function Br(h){var Ee=0;return{next:function(){return Ee===h.length?{value:void 0,done:!0}:(Ee++,{value:h[Ee-1],done:!1})}}}e.arrayIterator=Br;function Tr(h){var Ee=h.length;return{next:function(){return Ee===0?{value:void 0,done:!0}:(Ee--,{value:h[Ee],done:!1})}}}e.arrayReverseIterator=Tr;function n(h,Ee){var Re=ae(h);return Ir(h,Re,Ee),Re.map(function(nr){return h[nr]})}e.stableSort=n;function Er(h,Ee,Re,nr){for(;Re<nr;){if(h[Re]!==Ee[Re])return!1;Re++}return!0}e.rangeEquals=Er;function br(h,Ee){if(h&&(Ee=ge(h,Ee),Ee<h.length))return h[Ee]}e.elementAt=br;function Pr(h){return h.length===0?void 0:h[0]}e.firstOrUndefined=Pr;function Ce(h){return e.Debug.assert(h.length!==0),h[0]}e.first=Ce;function Le(h){return h.length===0?void 0:h[h.length-1]}e.lastOrUndefined=Le;function Xe(h){return e.Debug.assert(h.length!==0),h[h.length-1]}e.last=Xe;function Cr(h){return h&&h.length===1?h[0]:void 0}e.singleOrUndefined=Cr;function Lr(h){return h&&h.length===1?h[0]:h}e.singleOrMany=Lr;function Jr(h,Ee,Re){var nr=h.slice(0);return nr[Ee]=Re,nr}e.replaceElement=Jr;function Rr(h,Ee,Re,nr,Gr){return ci(h,Re(Ee),Re,nr,Gr)}e.binarySearch=Rr;function ci(h,Ee,Re,nr,Gr){if(!ve(h))return-1;for(var _i=Gr||0,Ei=h.length-1;_i<=Ei;){var Ki=_i+(Ei-_i>>1),Nt=Re(h[Ki],Ki);switch(nr(Nt,Ee)){case-1:_i=Ki+1;break;case 0:return Ki;case 1:Ei=Ki-1;break}}return~_i}e.binarySearchKey=ci;function be(h,Ee,Re,nr,Gr){if(h&&h.length>0){var _i=h.length;if(_i>0){var Ei=nr===void 0||nr<0?0:nr,Ki=Gr===void 0||Ei+Gr>_i-1?_i-1:Ei+Gr,Nt=void 0;for(arguments.length<=2?(Nt=h[Ei],Ei++):Nt=Re;Ei<=Ki;)Nt=Ee(Nt,h[Ei],Ei),Ei++;return Nt}}return Re}e.reduceLeft=be;var or=Object.prototype.hasOwnProperty;function Kr(h,Ee){return or.call(h,Ee)}e.hasProperty=Kr;function ei(h,Ee){return or.call(h,Ee)?h[Ee]:void 0}e.getProperty=ei;function li(h){var Ee=[];for(var Re in h)or.call(h,Re)&&Ee.push(Re);return Ee}e.getOwnKeys=li;function Si(h){var Ee=[];do for(var Re=Object.getOwnPropertyNames(h),nr=0,Gr=Re;nr<Gr.length;nr++){var _i=Gr[nr];cr(Ee,_i)}while(h=Object.getPrototypeOf(h));return Ee}e.getAllKeys=Si;function qi(h){var Ee=[];for(var Re in h)or.call(h,Re)&&Ee.push(h[Re]);return Ee}e.getOwnValues=qi;var ft=Object.entries||function(h){for(var Ee=li(h),Re=Array(Ee.length),nr=0;nr<Ee.length;nr++)Re[nr]=[Ee[nr],h[Ee[nr]]];return Re};function bt(h){return h?ft(h):[]}e.getEntries=bt;function aa(h,Ee){for(var Re=new Array(h),nr=0;nr<h;nr++)Re[nr]=Ee(nr);return Re}e.arrayOf=aa;function sr(h,Ee){for(var Re=[],nr=h.next();!nr.done;nr=h.next())Re.push(Ee?Ee(nr.value):nr.value);return Re}e.arrayFrom=sr;function Ji(h){for(var Ee=[],Re=1;Re<arguments.length;Re++)Ee[Re-1]=arguments[Re];for(var nr=0,Gr=Ee;nr<Gr.length;nr++){var _i=Gr[nr];if(_i!==void 0)for(var Ei in _i)Kr(_i,Ei)&&(h[Ei]=_i[Ei])}return h}e.assign=Ji;function di(h,Ee,Re){if(Re===void 0&&(Re=xt),h===Ee)return!0;if(!h||!Ee)return!1;for(var nr in h)if(or.call(h,nr)&&(!or.call(Ee,nr)||!Re(h[nr],Ee[nr])))return!1;for(var nr in Ee)if(or.call(Ee,nr)&&!or.call(h,nr))return!1;return!0}e.equalOwnProperties=di;function X(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=new e.Map,Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=Ee(Ei);Ki!==void 0&&nr.set(Ki,Re(Ei))}return nr}e.arrayToMap=X;function Ye(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=[],Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];nr[Ee(Ei)]=Re(Ei)}return nr}e.arrayToNumericMap=Ye;function Be(h,Ee,Re){Re===void 0&&(Re=Ti);for(var nr=v(),Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];nr.add(Ee(Ei),Re(Ei))}return nr}e.arrayToMultiMap=Be;function Qe(h,Ee,Re){return Re===void 0&&(Re=Ti),sr(Be(h,Ee).values(),Re)}e.group=Qe;function _r(h){var Ee={};for(var Re in h)or.call(h,Re)&&(Ee[Re]=h[Re]);return Ee}e.clone=_r;function hr(h,Ee){var Re={};for(var nr in Ee)or.call(Ee,nr)&&(Re[nr]=Ee[nr]);for(var nr in h)or.call(h,nr)&&(Re[nr]=h[nr]);return Re}e.extend=hr;function Dr(h,Ee){for(var Re in Ee)or.call(Ee,Re)&&(h[Re]=Ee[Re])}e.copyProperties=Dr;function Me(h,Ee){return Ee?Ee.bind(h):void 0}e.maybeBind=Me;function v(){var h=new e.Map;return h.add=xe,h.remove=ze,h}e.createMultiMap=v;function xe(h,Ee){var Re=this.get(h);return Re?Re.push(Ee):this.set(h,Re=[Ee]),Re}function ze(h,Ee){var Re=this.get(h);Re&&(Cn(Re,Ee),Re.length||this.delete(h))}function Je(){return v()}e.createUnderscoreEscapedMultiMap=Je;function Oe(h){return Array.isArray?Array.isArray(h):h instanceof Array}e.isArray=Oe;function Fr(h){return Oe(h)?h:[h]}e.toArray=Fr;function Xr(h){return typeof h=="string"}e.isString=Xr;function Or(h){return typeof h=="number"}e.isNumber=Or;function We(h,Ee){return h!==void 0&&Ee(h)?h:void 0}e.tryCast=We;function mr(h,Ee){return h!==void 0&&Ee(h)?h:e.Debug.fail("Invalid cast. The supplied value ".concat(h," did not pass the test '").concat(e.Debug.getFunctionName(Ee),"'."))}e.cast=mr;function Nr(h){}e.noop=Nr;function Ur(){return!1}e.returnFalse=Ur;function si(){return!0}e.returnTrue=si;function mi(){}e.returnUndefined=mi;function Ti(h){return h}e.identity=Ti;function hi(h){return h.toLowerCase()}e.toLowerCase=hi;var ki=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Ui(h){return ki.test(h)?h.replace(ki,hi):h}e.toFileNameLowerCase=Ui;function zi(){throw new Error("Not implemented")}e.notImplemented=zi;function ri(h){var Ee;return function(){return h&&(Ee=h(),h=void 0),Ee}}e.memoize=ri;function Gi(h){var Ee=new e.Map;return function(Re){var nr="".concat(typeof Re,":").concat(Re),Gr=Ee.get(nr);return Gr===void 0&&!Ee.has(nr)&&(Gr=h(Re),Ee.set(nr,Gr)),Gr}}e.memoizeOne=Gi;function Rt(h,Ee,Re,nr,Gr){if(Gr){for(var _i=[],Ei=0;Ei<arguments.length;Ei++)_i[Ei]=arguments[Ei];return function(Ki){return be(_i,function(Nt,ca){return ca(Nt)},Ki)}}else return nr?function(Ki){return nr(Re(Ee(h(Ki))))}:Re?function(Ki){return Re(Ee(h(Ki)))}:Ee?function(Ki){return Ee(h(Ki))}:h?function(Ki){return h(Ki)}:function(Ki){return Ki}}e.compose=Rt;var pa;(function(h){h[h.None=0]="None",h[h.Normal=1]="Normal",h[h.Aggressive=2]="Aggressive",h[h.VeryAggressive=3]="VeryAggressive"})(pa=e.AssertionLevel||(e.AssertionLevel={}));function xt(h,Ee){return h===Ee}e.equateValues=xt;function ua(h,Ee){return h===Ee||h!==void 0&&Ee!==void 0&&h.toUpperCase()===Ee.toUpperCase()}e.equateStringsCaseInsensitive=ua;function Vt(h,Ee){return xt(h,Ee)}e.equateStringsCaseSensitive=Vt;function St(h,Ee){return h===Ee?0:h===void 0?-1:Ee===void 0?1:h<Ee?-1:1}function Ci(h,Ee){return St(h,Ee)}e.compareValues=Ci;function Hi(h,Ee){return Ci(h==null?void 0:h.start,Ee==null?void 0:Ee.start)||Ci(h==null?void 0:h.length,Ee==null?void 0:Ee.length)}e.compareTextSpans=Hi;function Yi(h,Ee,Re){return Re(h,Ee)===-1?h:Ee}e.min=Yi;function yt(h,Ee){return h===Ee?0:h===void 0?-1:Ee===void 0?1:(h=h.toUpperCase(),Ee=Ee.toUpperCase(),h<Ee?-1:h>Ee?1:0)}e.compareStringsCaseInsensitive=yt;function gt(h,Ee){return St(h,Ee)}e.compareStringsCaseSensitive=gt;function oa(h){return h?yt:gt}e.getStringComparer=oa;var Bt=function(){var h,Ee,Re=Ki();return Nt;function nr(ca,Fa,Ta){if(ca===Fa)return 0;if(ca===void 0)return-1;if(Fa===void 0)return 1;var In=Ta(ca,Fa);return In<0?-1:In>0?1:0}function Gr(ca){var Fa=new Intl.Collator(ca,{usage:"sort",sensitivity:"variant"}).compare;return function(Ta,In){return nr(Ta,In,Fa)}}function _i(ca){if(ca!==void 0)return Ei();return function(Ta,In){return nr(Ta,In,Fa)};function Fa(Ta,In){return Ta.localeCompare(In)}}function Ei(){return function(Ta,In){return nr(Ta,In,ca)};function ca(Ta,In){return Fa(Ta.toUpperCase(),In.toUpperCase())||Fa(Ta,In)}function Fa(Ta,In){return Ta<In?-1:Ta>In?1:0}}function Ki(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Gr:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?_i:Ei}function Nt(ca){return ca===void 0?h||(h=Re(ca)):ca==="en-US"?Ee||(Ee=Re(ca)):Re(ca)}}(),Pi,Oi;function wi(){return Oi}e.getUILocale=wi;function Qr(h){Oi!==h&&(Oi=h,Pi=void 0)}e.setUILocale=Qr;function Ct(h,Ee){var Re=Pi||(Pi=Bt(Oi));return Re(h,Ee)}e.compareStringsCaseSensitiveUI=Ct;function tt(h,Ee,Re,nr){return h===Ee?0:h===void 0?-1:Ee===void 0?1:nr(h[Re],Ee[Re])}e.compareProperties=tt;function ta(h,Ee){return Ci(h?1:0,Ee?1:0)}e.compareBooleans=ta;function Xa(h,Ee,Re){for(var nr=Math.min(2,Math.floor(h.length*.34)),Gr=Math.floor(h.length*.4)+1,_i,Ei=0,Ki=Ee;Ei<Ki.length;Ei++){var Nt=Ki[Ei],ca=Re(Nt);if(ca!==void 0&&Math.abs(ca.length-h.length)<=nr){if(ca===h||ca.length<3&&ca.toLowerCase()!==h.toLowerCase())continue;var Fa=on(h,ca,Gr-.1);if(Fa===void 0)continue;e.Debug.assert(Fa<Gr),Gr=Fa,_i=Nt}}return _i}e.getSpellingSuggestion=Xa;function on(h,Ee,Re){for(var nr=new Array(Ee.length+1),Gr=new Array(Ee.length+1),_i=Re+.01,Ei=0;Ei<=Ee.length;Ei++)nr[Ei]=Ei;for(var Ei=1;Ei<=h.length;Ei++){var Ki=h.charCodeAt(Ei-1),Nt=Math.ceil(Ei>Re?Ei-Re:1),ca=Math.floor(Ee.length>Re+Ei?Re+Ei:Ee.length);Gr[0]=Ei;for(var Fa=Ei,Ta=1;Ta<Nt;Ta++)Gr[Ta]=_i;for(var Ta=Nt;Ta<=ca;Ta++){var In=h[Ei-1].toLowerCase()===Ee[Ta-1].toLowerCase()?nr[Ta-1]+.1:nr[Ta-1]+2,so=Ki===Ee.charCodeAt(Ta-1)?nr[Ta-1]:Math.min(nr[Ta]+1,Gr[Ta-1]+1,In);Gr[Ta]=so,Fa=Math.min(Fa,so)}for(var Ta=ca+1;Ta<=Ee.length;Ta++)Gr[Ta]=_i;if(Fa>Re)return;var as=nr;nr=Gr,Gr=as}var Ho=nr[Ee.length];return Ho>Re?void 0:Ho}function qr(h,Ee){var Re=h.length-Ee.length;return Re>=0&&h.indexOf(Ee,Re)===Re}e.endsWith=qr;function bn(h,Ee){return qr(h,Ee)?h.slice(0,h.length-Ee.length):h}e.removeSuffix=bn;function Rn(h,Ee){return qr(h,Ee)?h.slice(0,h.length-Ee.length):void 0}e.tryRemoveSuffix=Rn;function Sn(h,Ee){return h.indexOf(Ee)!==-1}e.stringContains=Sn;function zn(h){for(var Ee=h.length,Re=Ee-1;Re>0;Re--){var nr=h.charCodeAt(Re);if(nr>=48&&nr<=57)do--Re,nr=h.charCodeAt(Re);while(Re>0&&nr>=48&&nr<=57);else if(Re>4&&(nr===110||nr===78)){if(--Re,nr=h.charCodeAt(Re),nr!==105&&nr!==73||(--Re,nr=h.charCodeAt(Re),nr!==109&&nr!==77))break;--Re,nr=h.charCodeAt(Re)}else break;if(nr!==45&&nr!==46)break;Ee=Re}return Ee===h.length?h:h.slice(0,Ee)}e.removeMinAndVersionNumbers=zn;function Zn(h,Ee){for(var Re=0;Re<h.length;Re++)if(h[Re]===Ee)return ho(h,Re),!0;return!1}e.orderedRemoveItem=Zn;function ho(h,Ee){for(var Re=Ee;Re<h.length-1;Re++)h[Re]=h[Re+1];h.pop()}e.orderedRemoveItemAt=ho;function Vo(h,Ee){h[Ee]=h[h.length-1],h.pop()}e.unorderedRemoveItemAt=Vo;function Cn(h,Ee){return go(h,function(Re){return Re===Ee})}e.unorderedRemoveItem=Cn;function go(h,Ee){for(var Re=0;Re<h.length;Re++)if(Ee(h[Re]))return Vo(h,Re),!0;return!1}function ro(h){return h?Ti:Ui}e.createGetCanonicalFileName=ro;function Ko(h){var Ee=h.prefix,Re=h.suffix;return"".concat(Ee,"*").concat(Re)}e.patternText=Ko;function rs(h,Ee){return e.Debug.assert(Qn(h,Ee)),Ee.substring(h.prefix.length,Ee.length-h.suffix.length)}e.matchedText=rs;function rn(h,Ee,Re){for(var nr,Gr=-1,_i=0,Ei=h;_i<Ei.length;_i++){var Ki=Ei[_i],Nt=Ee(Ki);Qn(Nt,Re)&&Nt.prefix.length>Gr&&(Gr=Nt.prefix.length,nr=Ki)}return nr}e.findBestPatternMatch=rn;function Do(h,Ee){return h.lastIndexOf(Ee,0)===0}e.startsWith=Do;function io(h,Ee){return Do(h,Ee)?h.substr(Ee.length):h}e.removePrefix=io;function pn(h,Ee,Re){return Re===void 0&&(Re=Ti),Do(Re(h),Re(Ee))?h.substring(Ee.length):void 0}e.tryRemovePrefix=pn;function Qn(h,Ee){var Re=h.prefix,nr=h.suffix;return Ee.length>=Re.length+nr.length&&Do(Ee,Re)&&qr(Ee,nr)}function wo(h,Ee){return function(Re){return h(Re)&&Ee(Re)}}e.and=wo;function xo(){for(var h=[],Ee=0;Ee<arguments.length;Ee++)h[Ee]=arguments[Ee];return function(){for(var Re=[],nr=0;nr<arguments.length;nr++)Re[nr]=arguments[nr];for(var Gr=0,_i=h;Gr<_i.length;Gr++){var Ei=_i[Gr];if(Ei.apply(void 0,Re))return!0}return!1}}e.or=xo;function ds(h){return function(){for(var Ee=[],Re=0;Re<arguments.length;Re++)Ee[Re]=arguments[Re];return!h.apply(void 0,Ee)}}e.not=ds;function No(h){}e.assertType=No;function Ts(h){return h===void 0?void 0:[h]}e.singleElementArray=Ts;function Ms(h,Ee,Re,nr,Gr,_i){_i=_i||Nr;for(var Ei=0,Ki=0,Nt=h.length,ca=Ee.length,Fa=!1;Ei<Nt&&Ki<ca;){var Ta=h[Ei],In=Ee[Ki],so=Re(Ta,In);so===-1?(nr(Ta),Ei++,Fa=!0):so===1?(Gr(In),Ki++,Fa=!0):(_i(In,Ta),Ei++,Ki++)}for(;Ei<Nt;)nr(h[Ei++]),Fa=!0;for(;Ki<ca;)Gr(Ee[Ki++]),Fa=!0;return Fa}e.enumerateInsertsAndDeletes=Ms;function xr(h,Ee){for(var Re=Array(h),nr=0;nr<h;nr++)Re[nr]=Ee(nr);return Re}e.fill=xr;function bi(h){var Ee=[];return ut(h,Ee,void 0,0),Ee}e.cartesianProduct=bi;function ut(h,Ee,Re,nr){for(var Gr=0,_i=h[nr];Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=void 0;Re?(Ki=Re.slice(),Ki.push(Ei)):Ki=[Ei],nr===h.length-1?Ee.push(Ki):ut(h,Ee,Ki,nr+1)}}function Ht(h,Ee,Re){return Re===void 0&&(Re=" "),Ee<=h.length?h:Re.repeat(Ee-h.length)+h}e.padLeft=Ht;function Ka(h,Ee,Re){return Re===void 0&&(Re=" "),Ee<=h.length?h:h+Re.repeat(Ee-h.length)}e.padRight=Ka;function an(h,Ee){for(var Re=h.length,nr=0;nr<Re&&Ee(h[nr]);)nr++;return h.slice(0,nr)}e.takeWhile=an,e.trimString=String.prototype.trim?function(h){return h.trim()}:function(h){return e.trimStringEnd(e.trimStringStart(h))},e.trimStringEnd=String.prototype.trimEnd?function(h){return h.trimEnd()}:Ke,e.trimStringStart=String.prototype.trimStart?function(h){return h.trimStart()}:function(h){return h.replace(/^\s+/g,"")};function Ke(h){for(var Ee=h.length-1;Ee>=0&&e.isWhiteSpaceLike(h.charCodeAt(Ee));)Ee--;return h.slice(0,Ee+1)}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(L){L[L.Off=0]="Off",L[L.Error=1]="Error",L[L.Warning=2]="Warning",L[L.Info=3]="Info",L[L.Verbose=4]="Verbose"})(a=e.LogLevel||(e.LogLevel={}));var O;(function(L){var W,N=0;L.currentLogLevel=a.Warning,L.isDebugging=!1;function Q(){return W!=null?W:W=new e.Version(e.version)}L.getTypeScriptVersion=Q;function pe(dr){return L.currentLogLevel<=dr}L.shouldLog=pe;function F(dr,Br){L.loggingHost&&pe(dr)&&L.loggingHost.log(dr,Br)}function g(dr){F(a.Info,dr)}L.log=g,function(dr){function Br(br){F(a.Error,br)}dr.error=Br;function Tr(br){F(a.Warning,br)}dr.warn=Tr;function n(br){F(a.Info,br)}dr.log=n;function Er(br){F(a.Verbose,br)}dr.trace=Er}(g=L.log||(L.log={}));var S={};function H(){return N}L.getAssertionLevel=H;function se(dr){var Br=N;if(N=dr,dr>Br)for(var Tr=0,n=e.getOwnKeys(S);Tr<n.length;Tr++){var Er=n[Tr],br=S[Er];br!==void 0&&L[Er]!==br.assertion&&dr>=br.level&&(L[Er]=br,S[Er]=void 0)}}L.setAssertionLevel=se;function p(dr){return N>=dr}L.shouldAssert=p;function C(dr,Br){return p(dr)?!0:(S[Br]={level:dr,assertion:L[Br]},L[Br]=e.noop,!1)}function G(dr,Br){debugger;var Tr=new Error(dr?"Debug Failure. ".concat(dr):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Tr,Br||G),Tr}L.fail=G;function E(dr,Br,Tr){return G("".concat(Br||"Unexpected node.",`\r
|
|
Node `).concat(j(dr.kind)," was unexpected."),Tr||E)}L.failBadSyntaxKind=E;function ue(dr,Br,Tr,n){dr||(Br=Br?"False expression: ".concat(Br):"False expression.",Tr&&(Br+=`\r
|
|
Verbose Debug Information: `+(typeof Tr=="string"?Tr:Tr())),G(Br,n||ue))}L.assert=ue;function B(dr,Br,Tr,n,Er){if(dr!==Br){var br=Tr?n?"".concat(Tr," ").concat(n):Tr:"";G("Expected ".concat(dr," === ").concat(Br,". ").concat(br),Er||B)}}L.assertEqual=B;function re(dr,Br,Tr,n){dr>=Br&&G("Expected ".concat(dr," < ").concat(Br,". ").concat(Tr||""),n||re)}L.assertLessThan=re;function M(dr,Br,Tr){dr>Br&&G("Expected ".concat(dr," <= ").concat(Br),Tr||M)}L.assertLessThanOrEqual=M;function x(dr,Br,Tr){dr<Br&&G("Expected ".concat(dr," >= ").concat(Br),Tr||x)}L.assertGreaterThanOrEqual=x;function ie(dr,Br,Tr){dr==null&&G(Br,Tr||ie)}L.assertIsDefined=ie;function _e(dr,Br,Tr){return ie(dr,Br,Tr||_e),dr}L.checkDefined=_e;function Y(dr,Br,Tr){for(var n=0,Er=dr;n<Er.length;n++){var br=Er[n];ie(br,Br,Tr||Y)}}L.assertEachIsDefined=Y;function Z(dr,Br,Tr){return Y(dr,Br,Tr||Z),dr}L.checkEachDefined=Z;function k(dr,Br,Tr){Br===void 0&&(Br="Illegal value:");var n=typeof dr=="object"&&e.hasProperty(dr,"kind")&&e.hasProperty(dr,"pos")&&j?"SyntaxKind: "+j(dr.kind):JSON.stringify(dr);return G("".concat(Br," ").concat(n),Tr||k)}L.assertNever=k;function I(dr,Br,Tr,n){C(1,"assertEachNode")&&ue(Br===void 0||e.every(dr,Br),Tr||"Unexpected node.",function(){return"Node array did not pass test '".concat(l(Br),"'.")},n||I)}L.assertEachNode=I;function ne(dr,Br,Tr,n){C(1,"assertNode")&&ue(dr!==void 0&&(Br===void 0||Br(dr)),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," did not pass test '").concat(l(Br),"'.")},n||ne)}L.assertNode=ne;function ee(dr,Br,Tr,n){C(1,"assertNotNode")&&ue(dr===void 0||Br===void 0||!Br(dr),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr.kind)," should not have passed test '").concat(l(Br),"'.")},n||ee)}L.assertNotNode=ee;function A(dr,Br,Tr,n){C(1,"assertOptionalNode")&&ue(Br===void 0||dr===void 0||Br(dr),Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," did not pass test '").concat(l(Br),"'.")},n||A)}L.assertOptionalNode=A;function f(dr,Br,Tr,n){C(1,"assertOptionalToken")&&ue(Br===void 0||dr===void 0||dr.kind===Br,Tr||"Unexpected node.",function(){return"Node ".concat(j(dr==null?void 0:dr.kind)," was not a '").concat(j(Br),"' token.")},n||f)}L.assertOptionalToken=f;function P(dr,Br,Tr){C(1,"assertMissingNode")&&ue(dr===void 0,Br||"Unexpected node.",function(){return"Node ".concat(j(dr.kind)," was unexpected'.")},Tr||P)}L.assertMissingNode=P;function D(dr){}L.type=D;function l(dr){if(typeof dr!="function")return"";if(dr.hasOwnProperty("name"))return dr.name;var Br=Function.prototype.toString.call(dr),Tr=/^function\s+([\w\$]+)\s*\(/.exec(Br);return Tr?Tr[1]:""}L.getFunctionName=l;function _(dr){return"{ name: ".concat(e.unescapeLeadingUnderscores(dr.escapedName),"; flags: ").concat(ce(dr.flags),"; declarations: ").concat(e.map(dr.declarations,function(Br){return j(Br.kind)})," }")}L.formatSymbol=_;function J(dr,Br,Tr){dr===void 0&&(dr=0);var n=w(Br);if(dr===0)return n.length>0&&n[0][0]===0?n[0][1]:"0";if(Tr){for(var Er="",br=dr,Pr=0,Ce=n;Pr<Ce.length;Pr++){var Le=Ce[Pr],Xe=Le[0],Cr=Le[1];if(Xe>dr)break;Xe!==0&&Xe&dr&&(Er="".concat(Er).concat(Er?"|":"").concat(Cr),br&=~Xe)}if(br===0)return Er}else for(var Lr=0,Jr=n;Lr<Jr.length;Lr++){var Rr=Jr[Lr],Xe=Rr[0],Cr=Rr[1];if(Xe===dr)return Cr}return dr.toString()}L.formatEnum=J;function w(dr){var Br=[];for(var Tr in dr){var n=dr[Tr];typeof n=="number"&&Br.push([n,Tr])}return e.stableSort(Br,function(Er,br){return e.compareValues(Er[0],br[0])})}function j(dr){return J(dr,e.SyntaxKind,!1)}L.formatSyntaxKind=j;function U(dr){return J(dr,e.SnippetKind,!1)}L.formatSnippetKind=U;function z(dr){return J(dr,e.NodeFlags,!0)}L.formatNodeFlags=z;function y(dr){return J(dr,e.ModifierFlags,!0)}L.formatModifierFlags=y;function oe(dr){return J(dr,e.TransformFlags,!0)}L.formatTransformFlags=oe;function ve(dr){return J(dr,e.EmitFlags,!0)}L.formatEmitFlags=ve;function ce(dr){return J(dr,e.SymbolFlags,!0)}L.formatSymbolFlags=ce;function m(dr){return J(dr,e.TypeFlags,!0)}L.formatTypeFlags=m;function de(dr){return J(dr,e.SignatureFlags,!0)}L.formatSignatureFlags=de;function ae(dr){return J(dr,e.ObjectFlags,!0)}L.formatObjectFlags=ae;function V(dr){return J(dr,e.FlowFlags,!0)}L.formatFlowFlags=V;var le=!1,ke;function Ue(){if(ye(),!ke)throw new Error("Debugging helpers could not be loaded.");return ke}function He(dr){return console.log(ar(dr))}L.printControlFlowGraph=He;function ar(dr){return Ue().formatControlFlowGraph(dr)}L.formatControlFlowGraph=ar;var gr;function me(dr){"__debugFlowFlags"in dr||Object.defineProperties(dr,{__tsDebuggerDisplay:{value:function(){var Br=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Tr=this.flags&~(2048-1);return"".concat(Br).concat(Tr?" (".concat(V(Tr),")"):"")}},__debugFlowFlags:{get:function(){return J(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return ar(this)}}})}function Ge(dr){le&&(typeof Object.setPrototypeOf=="function"?(gr||(gr=Object.create(Object.prototype),me(gr)),Object.setPrototypeOf(dr,gr)):me(dr))}L.attachFlowNodeDebugInfo=Ge;var er;function he(dr){"__tsDebuggerDisplay"in dr||Object.defineProperties(dr,{__tsDebuggerDisplay:{value:function(Br){return Br=String(Br).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(Br)}}})}function we(dr){le&&(typeof Object.setPrototypeOf=="function"?(er||(er=Object.create(Array.prototype),he(er)),Object.setPrototypeOf(dr,er)):he(dr))}L.attachNodeArrayDebugInfo=we;function ye(){if(le)return;var dr,Br;function Tr(){return dr===void 0&&typeof WeakMap=="function"&&(dr=new WeakMap),dr}function n(){return Br===void 0&&typeof WeakMap=="function"&&(Br=new WeakMap),Br}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&33554432?"TransientSymbol":"Symbol",Lr=this.flags&-33554433;return"".concat(Cr," '").concat(e.symbolName(this),"'").concat(Lr?" (".concat(ce(Lr),")"):"")}},__debugFlags:{get:function(){return ce(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName):this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Lr=this.flags&524288?this.objectFlags&-1344:0;return"".concat(Cr).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(Lr?" (".concat(ae(Lr),")"):"")}},__debugFlags:{get:function(){return m(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?ae(this.objectFlags):""}},__debugTypeToString:{value:function(){var Cr=Tr(),Lr=Cr==null?void 0:Cr.get(this);return Lr===void 0&&(Lr=this.checker.typeToString(this),Cr==null||Cr.set(this,Lr)),Lr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return de(this.flags)}},__debugSignatureToString:{value:function(){var Cr;return(Cr=this.checker)===null||Cr===void 0?void 0:Cr.signatureToString(this)}}});for(var Er=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],br=0,Pr=Er;br<Pr.length;br++){var Ce=Pr[br];Ce.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(Ce.prototype,{__tsDebuggerDisplay:{value:function(){var Cr=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":j(this.kind);return"".concat(Cr).concat(this.flags?" (".concat(z(this.flags),")"):"")}},__debugKind:{get:function(){return j(this.kind)}},__debugNodeFlags:{get:function(){return z(this.flags)}},__debugModifierFlags:{get:function(){return y(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return oe(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return ve(e.getEmitFlags(this))}},__debugGetText:{value:function(Cr){if(e.nodeIsSynthesized(this))return"";var Lr=n(),Jr=Lr==null?void 0:Lr.get(this);if(Jr===void 0){var Rr=e.getParseTreeNode(this),ci=Rr&&e.getSourceFileOfNode(Rr);Jr=ci?e.getSourceTextOfNodeFromSourceFile(ci,Rr,Cr):"",Lr==null||Lr.set(this,Jr)}return Jr}}})}try{if(!1)var Le,Xe}catch{}le=!0}L.enableDebugInfo=ye;function Se(dr,Br,Tr,n,Er){var br=Br?"DeprecationError: ":"DeprecationWarning: ";return br+="'".concat(dr,"' "),br+=n?"has been deprecated since v".concat(n):"is deprecated",br+=Br?" and can no longer be used.":Tr?" and will no longer be usable after v".concat(Tr,"."):".",br+=Er?" ".concat(e.formatStringFromArgs(Er,[dr],0)):"",br}function ge(dr,Br,Tr,n){var Er=Se(dr,!0,Br,Tr,n);return function(){throw new TypeError(Er)}}function Fe(dr,Br,Tr,n){var Er=!1;return function(){Er||(g.warn(Se(dr,!1,Br,Tr,n)),Er=!0)}}function cr(dr,Br){var Tr,n;Br===void 0&&(Br={});var Er=typeof Br.typeScriptVersion=="string"?new e.Version(Br.typeScriptVersion):(Tr=Br.typeScriptVersion)!==null&&Tr!==void 0?Tr:Q(),br=typeof Br.errorAfter=="string"?new e.Version(Br.errorAfter):Br.errorAfter,Pr=typeof Br.warnAfter=="string"?new e.Version(Br.warnAfter):Br.warnAfter,Ce=typeof Br.since=="string"?new e.Version(Br.since):(n=Br.since)!==null&&n!==void 0?n:Pr,Le=Br.error||br&&Er.compareTo(br)<=0,Xe=!Pr||Er.compareTo(Pr)>=0;return Le?ge(dr,br,Ce,Br.message):Xe?Fe(dr,br,Ce,Br.message):e.noop}function ur(dr,Br){return function(){return dr(),Br.apply(this,arguments)}}function Ir(dr,Br){var Tr=cr(l(dr),Br);return ur(Tr,dr)}L.deprecate=Ir})(O=e.Debug||(e.Debug={}))})(Pe||(Pe={}));var Pe;(function(e){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,O=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,L=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,W=/^(0|[1-9]\d*)$/,N=function(){function k(I,ne,ee,A,f){if(ne===void 0&&(ne=0),ee===void 0&&(ee=0),A===void 0&&(A=""),f===void 0&&(f=""),typeof I=="string"){var P=e.Debug.checkDefined(Q(I),"Invalid version");I=P.major,ne=P.minor,ee=P.patch,A=P.prerelease,f=P.build}e.Debug.assert(I>=0,"Invalid argument: major"),e.Debug.assert(ne>=0,"Invalid argument: minor"),e.Debug.assert(ee>=0,"Invalid argument: patch"),e.Debug.assert(!A||O.test(A),"Invalid argument: prerelease"),e.Debug.assert(!f||L.test(f),"Invalid argument: build"),this.major=I,this.minor=ne,this.patch=ee,this.prerelease=A?A.split("."):e.emptyArray,this.build=f?f.split("."):e.emptyArray}return k.tryParse=function(I){var ne=Q(I);if(!!ne){var ee=ne.major,A=ne.minor,f=ne.patch,P=ne.prerelease,D=ne.build;return new k(ee,A,f,P,D)}},k.prototype.compareTo=function(I){return this===I?0:I===void 0?1:e.compareValues(this.major,I.major)||e.compareValues(this.minor,I.minor)||e.compareValues(this.patch,I.patch)||pe(this.prerelease,I.prerelease)},k.prototype.increment=function(I){switch(I){case"major":return new k(this.major+1,0,0);case"minor":return new k(this.major,this.minor+1,0);case"patch":return new k(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(I)}},k.prototype.toString=function(){var I="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(I+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(I+="+".concat(this.build.join("."))),I},k.zero=new k(0,0,0),k}();e.Version=N;function Q(k){var I=a.exec(k);if(!!I){var ne=I[1],ee=I[2],A=ee===void 0?"0":ee,f=I[3],P=f===void 0?"0":f,D=I[4],l=D===void 0?"":D,_=I[5],J=_===void 0?"":_;if(!(l&&!O.test(l))&&!(J&&!L.test(J)))return{major:parseInt(ne,10),minor:parseInt(A,10),patch:parseInt(P,10),prerelease:l,build:J}}}function pe(k,I){if(k===I)return 0;if(k.length===0)return I.length===0?0:1;if(I.length===0)return-1;for(var ne=Math.min(k.length,I.length),ee=0;ee<ne;ee++){var A=k[ee],f=I[ee];if(A!==f){var P=W.test(A),D=W.test(f);if(P||D){if(P!==D)return P?-1:1;var l=e.compareValues(+A,+f);if(l)return l}else{var l=e.compareStringsCaseSensitive(A,f);if(l)return l}}}return e.compareValues(k.length,I.length)}var F=function(){function k(I){this._alternatives=I?e.Debug.checkDefined(C(I),"Invalid range spec."):e.emptyArray}return k.tryParse=function(I){var ne=C(I);if(ne){var ee=new k("");return ee._alternatives=ne,ee}},k.prototype.test=function(I){return typeof I=="string"&&(I=new N(I)),M(I,this._alternatives)},k.prototype.toString=function(){return _e(this._alternatives)},k}();e.VersionRange=F;var g=/\|\|/g,S=/\s+/g,H=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,se=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function C(k){for(var I=[],ne=0,ee=e.trimString(k).split(g);ne<ee.length;ne++){var A=ee[ne];if(!!A){var f=[];A=e.trimString(A);var P=se.exec(A);if(P){if(!E(P[1],P[2],f))return}else for(var D=0,l=A.split(S);D<l.length;D++){var _=l[D],J=p.exec(e.trimString(_));if(!J||!ue(J[1],J[2],f))return}I.push(f)}}return I}function G(k){var I=H.exec(k);if(!!I){var ne=I[1],ee=I[2],A=ee===void 0?"*":ee,f=I[3],P=f===void 0?"*":f,D=I[4],l=I[5],_=new N(B(ne)?0:parseInt(ne,10),B(ne)||B(A)?0:parseInt(A,10),B(ne)||B(A)||B(P)?0:parseInt(P,10),D,l);return{version:_,major:ne,minor:A,patch:P}}}function E(k,I,ne){var ee=G(k);if(!ee)return!1;var A=G(I);return A?(B(ee.major)||ne.push(re(">=",ee.version)),B(A.major)||ne.push(B(A.minor)?re("<",A.version.increment("major")):B(A.patch)?re("<",A.version.increment("minor")):re("<=",A.version)),!0):!1}function ue(k,I,ne){var ee=G(I);if(!ee)return!1;var A=ee.version,f=ee.major,P=ee.minor,D=ee.patch;if(B(f))(k==="<"||k===">")&&ne.push(re("<",N.zero));else switch(k){case"~":ne.push(re(">=",A)),ne.push(re("<",A.increment(B(P)?"major":"minor")));break;case"^":ne.push(re(">=",A)),ne.push(re("<",A.increment(A.major>0||B(P)?"major":A.minor>0||B(D)?"minor":"patch")));break;case"<":case">=":ne.push(re(k,A));break;case"<=":case">":ne.push(B(P)?re(k==="<="?"<":">=",A.increment("major")):B(D)?re(k==="<="?"<":">=",A.increment("minor")):re(k,A));break;case"=":case void 0:B(P)||B(D)?(ne.push(re(">=",A)),ne.push(re("<",A.increment(B(P)?"major":"minor")))):ne.push(re("=",A));break;default:return!1}return!0}function B(k){return k==="*"||k==="x"||k==="X"}function re(k,I){return{operator:k,operand:I}}function M(k,I){if(I.length===0)return!0;for(var ne=0,ee=I;ne<ee.length;ne++){var A=ee[ne];if(x(k,A))return!0}return!1}function x(k,I){for(var ne=0,ee=I;ne<ee.length;ne++){var A=ee[ne];if(!ie(k,A.operator,A.operand))return!1}return!0}function ie(k,I,ne){var ee=k.compareTo(ne);switch(I){case"<":return ee<0;case"<=":return ee<=0;case">":return ee>0;case">=":return ee>=0;case"=":return ee===0;default:return e.Debug.assertNever(I)}}function _e(k){return e.map(k,Y).join(" || ")||"*"}function Y(k){return e.map(k,Z).join(" ")}function Z(k){return"".concat(k.operator).concat(k.operand)}})(Pe||(Pe={}));var Pe;(function(e){function a(pe,F){return typeof pe=="object"&&typeof pe.timeOrigin=="number"&&typeof pe.mark=="function"&&typeof pe.measure=="function"&&typeof pe.now=="function"&&typeof F=="function"}function O(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&a(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function L(){}var W=O()||void 0,N=W==null?void 0:W.performance;function Q(){return W}e.tryGetNativePerformanceHooks=Q,e.timestamp=N?function(){return N.now()}:Date.now?Date.now:function(){return+new Date}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W;function N(M,x,ie,_e){return M?Q(x,ie,_e):O.nullTimer}O.createTimerIf=N;function Q(M,x,ie){var _e=0;return{enter:Y,exit:Z};function Y(){++_e===1&&se(x)}function Z(){--_e===0?(se(ie),p(M,x,ie)):_e<0&&e.Debug.fail("enter/exit count does not match.")}}O.createTimer=Q,O.nullTimer={enter:e.noop,exit:e.noop};var pe=!1,F=e.timestamp(),g=new e.Map,S=new e.Map,H=new e.Map;function se(M){var x;if(pe){var ie=(x=S.get(M))!==null&&x!==void 0?x:0;S.set(M,ie+1),g.set(M,e.timestamp()),W==null||W.mark(M)}}O.mark=se;function p(M,x,ie){var _e,Y;if(pe){var Z=(_e=ie!==void 0?g.get(ie):void 0)!==null&&_e!==void 0?_e:e.timestamp(),k=(Y=x!==void 0?g.get(x):void 0)!==null&&Y!==void 0?Y:F,I=H.get(M)||0;H.set(M,I+(Z-k)),W==null||W.measure(M,x,ie)}}O.measure=p;function C(M){return S.get(M)||0}O.getCount=C;function G(M){return H.get(M)||0}O.getDuration=G;function E(M){H.forEach(function(x,ie){return M(ie,x)})}O.forEachMeasure=E;function ue(){return pe}O.isEnabled=ue;function B(M){var x;return M===void 0&&(M=e.sys),pe||(pe=!0,L||(L=e.tryGetNativePerformanceHooks()),L&&(F=L.performance.timeOrigin,(L.shouldWriteNativeEvents||((x=M==null?void 0:M.cpuProfilingEnabled)===null||x===void 0?void 0:x.call(M))||(M==null?void 0:M.debugMode))&&(W=L.performance))),!0}O.enable=B;function re(){pe&&(g.clear(),S.clear(),H.clear(),W=void 0,pe=!1)}O.disable=re})(a=e.performance||(e.performance={}))})(Pe||(Pe={}));var Pe;(function(e){var a,O={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},L;try{var W=(a=yl.env.TS_ETW_MODULE_PATH)!==null&&a!==void 0?a:"./node_modules/@microsoft/typescript-etw";L=void 0}catch{L=void 0}e.perfLogger=L&&L.logEvent?L:O})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W=0,N=0,Q,pe=[],F,g=[];function S(Z,k,I){if(e.Debug.assert(!e.tracing,"Tracing already started"),L===void 0)try{L=OT()}catch(P){throw new Error(`tracing requires having fs
|
|
(original error: `.concat(P.message||P,")"))}Q=Z,pe.length=0,F===void 0&&(F=e.combinePaths(k,"legend.json")),L.existsSync(k)||L.mkdirSync(k,{recursive:!0});var ne=Q==="build"?".".concat(yl.pid,"-").concat(++W):Q==="server"?".".concat(yl.pid):"",ee=e.combinePaths(k,"trace".concat(ne,".json")),A=e.combinePaths(k,"types".concat(ne,".json"));g.push({configFilePath:I,tracePath:ee,typesPath:A}),N=L.openSync(ee,"w"),e.tracing=O;var f={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};L.writeSync(N,`[
|
|
`+[Ve({name:"process_name",args:{name:"tsc"}},f),Ve({name:"thread_name",args:{name:"Main"}},f),Ve(Ve({name:"TracingStartedInBrowser"},f),{cat:"disabled-by-default-devtools.timeline"})].map(function(P){return JSON.stringify(P)}).join(`,
|
|
`))}O.startTracing=S;function H(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!pe.length==(Q!=="server")),L.writeSync(N,`
|
|
]
|
|
`),L.closeSync(N),e.tracing=void 0,pe.length?_e(pe):g[g.length-1].typesPath=void 0}O.stopTracing=H;function se(Z){Q!=="server"&&pe.push(Z)}O.recordType=se;var p;(function(Z){Z.Parse="parse",Z.Program="program",Z.Bind="bind",Z.Check="check",Z.CheckTypes="checkTypes",Z.Emit="emit",Z.Session="session"})(p=O.Phase||(O.Phase={}));function C(Z,k,I){x("I",Z,k,I,'"s":"g"')}O.instant=C;var G=[];function E(Z,k,I,ne){ne===void 0&&(ne=!1),ne&&x("B",Z,k,I),G.push({phase:Z,name:k,args:I,time:1e3*e.timestamp(),separateBeginAndEnd:ne})}O.push=E;function ue(){e.Debug.assert(G.length>0),M(G.length-1,1e3*e.timestamp()),G.length--}O.pop=ue;function B(){for(var Z=1e3*e.timestamp(),k=G.length-1;k>=0;k--)M(k,Z);G.length=0}O.popAll=B;var re=1e3*10;function M(Z,k){var I=G[Z],ne=I.phase,ee=I.name,A=I.args,f=I.time,P=I.separateBeginAndEnd;P?x("E",ne,ee,A,void 0,k):re-f%re<=k-f&&x("X",ne,ee,A,'"dur":'.concat(k-f),f)}function x(Z,k,I,ne,ee,A){A===void 0&&(A=1e3*e.timestamp()),!(Q==="server"&&k==="checkTypes")&&(e.performance.mark("beginTracing"),L.writeSync(N,`,
|
|
{"pid":1,"tid":1,"ph":"`.concat(Z,'","cat":"').concat(k,'","ts":').concat(A,',"name":"').concat(I,'"')),ee&&L.writeSync(N,",".concat(ee)),ne&&L.writeSync(N,',"args":'.concat(JSON.stringify(ne))),L.writeSync(N,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function ie(Z){var k=e.getSourceFileOfNode(Z);return k?{path:k.path,start:I(e.getLineAndCharacterOfPosition(k,Z.pos)),end:I(e.getLineAndCharacterOfPosition(k,Z.end))}:void 0;function I(ne){return{line:ne.line+1,character:ne.character+1}}}function _e(Z){var k,I,ne,ee,A,f,P,D,l,_,J,w,j,U,z,y,oe,ve,ce,m,de,ae;e.performance.mark("beginDumpTypes");var V=g[g.length-1].typesPath,le=L.openSync(V,"w"),ke=new e.Map;L.writeSync(le,"[");for(var Ue=Z.length,He=0;He<Ue;He++){var ar=Z[He],gr=ar.objectFlags,me=(k=ar.aliasSymbol)!==null&&k!==void 0?k:ar.symbol,Ge=void 0;if(gr&16|ar.flags&2944)try{Ge=(I=ar.checker)===null||I===void 0?void 0:I.typeToString(ar)}catch{Ge=void 0}var er={};if(ar.flags&8388608){var he=ar;er={indexedAccessObjectType:(ne=he.objectType)===null||ne===void 0?void 0:ne.id,indexedAccessIndexType:(ee=he.indexType)===null||ee===void 0?void 0:ee.id}}var we={};if(gr&4){var ye=ar;we={instantiatedType:(A=ye.target)===null||A===void 0?void 0:A.id,typeArguments:(f=ye.resolvedTypeArguments)===null||f===void 0?void 0:f.map(function(br){return br.id}),referenceLocation:ie(ye.node)}}var Se={};if(ar.flags&16777216){var ge=ar;Se={conditionalCheckType:(P=ge.checkType)===null||P===void 0?void 0:P.id,conditionalExtendsType:(D=ge.extendsType)===null||D===void 0?void 0:D.id,conditionalTrueType:(_=(l=ge.resolvedTrueType)===null||l===void 0?void 0:l.id)!==null&&_!==void 0?_:-1,conditionalFalseType:(w=(J=ge.resolvedFalseType)===null||J===void 0?void 0:J.id)!==null&&w!==void 0?w:-1}}var Fe={};if(ar.flags&33554432){var cr=ar;Fe={substitutionBaseType:(j=cr.baseType)===null||j===void 0?void 0:j.id,substituteType:(U=cr.substitute)===null||U===void 0?void 0:U.id}}var ur={};if(gr&1024){var Ir=ar;ur={reverseMappedSourceType:(z=Ir.source)===null||z===void 0?void 0:z.id,reverseMappedMappedType:(y=Ir.mappedType)===null||y===void 0?void 0:y.id,reverseMappedConstraintType:(oe=Ir.constraintType)===null||oe===void 0?void 0:oe.id}}var dr={};if(gr&256){var Br=ar;dr={evolvingArrayElementType:Br.elementType.id,evolvingArrayFinalType:(ve=Br.finalArrayType)===null||ve===void 0?void 0:ve.id}}var Tr=void 0,n=ar.checker.getRecursionIdentity(ar);n&&(Tr=ke.get(n),Tr||(Tr=ke.size,ke.set(n,Tr)));var Er=Ve(Ve(Ve(Ve(Ve(Ve(Ve({id:ar.id,intrinsicName:ar.intrinsicName,symbolName:(me==null?void 0:me.escapedName)&&e.unescapeLeadingUnderscores(me.escapedName),recursionId:Tr,isTuple:gr&8?!0:void 0,unionTypes:ar.flags&1048576?(ce=ar.types)===null||ce===void 0?void 0:ce.map(function(br){return br.id}):void 0,intersectionTypes:ar.flags&2097152?ar.types.map(function(br){return br.id}):void 0,aliasTypeArguments:(m=ar.aliasTypeArguments)===null||m===void 0?void 0:m.map(function(br){return br.id}),keyofType:ar.flags&4194304?(de=ar.type)===null||de===void 0?void 0:de.id:void 0},er),we),Se),Fe),ur),dr),{destructuringPattern:ie(ar.pattern),firstDeclaration:ie((ae=me==null?void 0:me.declarations)===null||ae===void 0?void 0:ae[0]),flags:e.Debug.formatTypeFlags(ar.flags).split("|"),display:Ge});L.writeSync(le,JSON.stringify(Er)),He<Ue-1&&L.writeSync(le,`,
|
|
`)}L.writeSync(le,`]
|
|
`),L.closeSync(le),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function Y(){!F||L.writeFileSync(F,JSON.stringify(g))}O.dumpLegend=Y})(a||(a={})),e.startTracing=a.startTracing,e.dumpTracingLegend=a.dumpLegend})(Pe||(Pe={}));var Pe;(function(e){var a;(function(n){n[n.Unknown=0]="Unknown",n[n.EndOfFileToken=1]="EndOfFileToken",n[n.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",n[n.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",n[n.NewLineTrivia=4]="NewLineTrivia",n[n.WhitespaceTrivia=5]="WhitespaceTrivia",n[n.ShebangTrivia=6]="ShebangTrivia",n[n.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",n[n.NumericLiteral=8]="NumericLiteral",n[n.BigIntLiteral=9]="BigIntLiteral",n[n.StringLiteral=10]="StringLiteral",n[n.JsxText=11]="JsxText",n[n.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",n[n.RegularExpressionLiteral=13]="RegularExpressionLiteral",n[n.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",n[n.TemplateHead=15]="TemplateHead",n[n.TemplateMiddle=16]="TemplateMiddle",n[n.TemplateTail=17]="TemplateTail",n[n.OpenBraceToken=18]="OpenBraceToken",n[n.CloseBraceToken=19]="CloseBraceToken",n[n.OpenParenToken=20]="OpenParenToken",n[n.CloseParenToken=21]="CloseParenToken",n[n.OpenBracketToken=22]="OpenBracketToken",n[n.CloseBracketToken=23]="CloseBracketToken",n[n.DotToken=24]="DotToken",n[n.DotDotDotToken=25]="DotDotDotToken",n[n.SemicolonToken=26]="SemicolonToken",n[n.CommaToken=27]="CommaToken",n[n.QuestionDotToken=28]="QuestionDotToken",n[n.LessThanToken=29]="LessThanToken",n[n.LessThanSlashToken=30]="LessThanSlashToken",n[n.GreaterThanToken=31]="GreaterThanToken",n[n.LessThanEqualsToken=32]="LessThanEqualsToken",n[n.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",n[n.EqualsEqualsToken=34]="EqualsEqualsToken",n[n.ExclamationEqualsToken=35]="ExclamationEqualsToken",n[n.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",n[n.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",n[n.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",n[n.PlusToken=39]="PlusToken",n[n.MinusToken=40]="MinusToken",n[n.AsteriskToken=41]="AsteriskToken",n[n.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",n[n.SlashToken=43]="SlashToken",n[n.PercentToken=44]="PercentToken",n[n.PlusPlusToken=45]="PlusPlusToken",n[n.MinusMinusToken=46]="MinusMinusToken",n[n.LessThanLessThanToken=47]="LessThanLessThanToken",n[n.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",n[n.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",n[n.AmpersandToken=50]="AmpersandToken",n[n.BarToken=51]="BarToken",n[n.CaretToken=52]="CaretToken",n[n.ExclamationToken=53]="ExclamationToken",n[n.TildeToken=54]="TildeToken",n[n.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",n[n.BarBarToken=56]="BarBarToken",n[n.QuestionToken=57]="QuestionToken",n[n.ColonToken=58]="ColonToken",n[n.AtToken=59]="AtToken",n[n.QuestionQuestionToken=60]="QuestionQuestionToken",n[n.BacktickToken=61]="BacktickToken",n[n.HashToken=62]="HashToken",n[n.EqualsToken=63]="EqualsToken",n[n.PlusEqualsToken=64]="PlusEqualsToken",n[n.MinusEqualsToken=65]="MinusEqualsToken",n[n.AsteriskEqualsToken=66]="AsteriskEqualsToken",n[n.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",n[n.SlashEqualsToken=68]="SlashEqualsToken",n[n.PercentEqualsToken=69]="PercentEqualsToken",n[n.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",n[n.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",n[n.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",n[n.AmpersandEqualsToken=73]="AmpersandEqualsToken",n[n.BarEqualsToken=74]="BarEqualsToken",n[n.BarBarEqualsToken=75]="BarBarEqualsToken",n[n.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",n[n.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",n[n.CaretEqualsToken=78]="CaretEqualsToken",n[n.Identifier=79]="Identifier",n[n.PrivateIdentifier=80]="PrivateIdentifier",n[n.BreakKeyword=81]="BreakKeyword",n[n.CaseKeyword=82]="CaseKeyword",n[n.CatchKeyword=83]="CatchKeyword",n[n.ClassKeyword=84]="ClassKeyword",n[n.ConstKeyword=85]="ConstKeyword",n[n.ContinueKeyword=86]="ContinueKeyword",n[n.DebuggerKeyword=87]="DebuggerKeyword",n[n.DefaultKeyword=88]="DefaultKeyword",n[n.DeleteKeyword=89]="DeleteKeyword",n[n.DoKeyword=90]="DoKeyword",n[n.ElseKeyword=91]="ElseKeyword",n[n.EnumKeyword=92]="EnumKeyword",n[n.ExportKeyword=93]="ExportKeyword",n[n.ExtendsKeyword=94]="ExtendsKeyword",n[n.FalseKeyword=95]="FalseKeyword",n[n.FinallyKeyword=96]="FinallyKeyword",n[n.ForKeyword=97]="ForKeyword",n[n.FunctionKeyword=98]="FunctionKeyword",n[n.IfKeyword=99]="IfKeyword",n[n.ImportKeyword=100]="ImportKeyword",n[n.InKeyword=101]="InKeyword",n[n.InstanceOfKeyword=102]="InstanceOfKeyword",n[n.NewKeyword=103]="NewKeyword",n[n.NullKeyword=104]="NullKeyword",n[n.ReturnKeyword=105]="ReturnKeyword",n[n.SuperKeyword=106]="SuperKeyword",n[n.SwitchKeyword=107]="SwitchKeyword",n[n.ThisKeyword=108]="ThisKeyword",n[n.ThrowKeyword=109]="ThrowKeyword",n[n.TrueKeyword=110]="TrueKeyword",n[n.TryKeyword=111]="TryKeyword",n[n.TypeOfKeyword=112]="TypeOfKeyword",n[n.VarKeyword=113]="VarKeyword",n[n.VoidKeyword=114]="VoidKeyword",n[n.WhileKeyword=115]="WhileKeyword",n[n.WithKeyword=116]="WithKeyword",n[n.ImplementsKeyword=117]="ImplementsKeyword",n[n.InterfaceKeyword=118]="InterfaceKeyword",n[n.LetKeyword=119]="LetKeyword",n[n.PackageKeyword=120]="PackageKeyword",n[n.PrivateKeyword=121]="PrivateKeyword",n[n.ProtectedKeyword=122]="ProtectedKeyword",n[n.PublicKeyword=123]="PublicKeyword",n[n.StaticKeyword=124]="StaticKeyword",n[n.YieldKeyword=125]="YieldKeyword",n[n.AbstractKeyword=126]="AbstractKeyword",n[n.AsKeyword=127]="AsKeyword",n[n.AssertsKeyword=128]="AssertsKeyword",n[n.AssertKeyword=129]="AssertKeyword",n[n.AnyKeyword=130]="AnyKeyword",n[n.AsyncKeyword=131]="AsyncKeyword",n[n.AwaitKeyword=132]="AwaitKeyword",n[n.BooleanKeyword=133]="BooleanKeyword",n[n.ConstructorKeyword=134]="ConstructorKeyword",n[n.DeclareKeyword=135]="DeclareKeyword",n[n.GetKeyword=136]="GetKeyword",n[n.InferKeyword=137]="InferKeyword",n[n.IntrinsicKeyword=138]="IntrinsicKeyword",n[n.IsKeyword=139]="IsKeyword",n[n.KeyOfKeyword=140]="KeyOfKeyword",n[n.ModuleKeyword=141]="ModuleKeyword",n[n.NamespaceKeyword=142]="NamespaceKeyword",n[n.NeverKeyword=143]="NeverKeyword",n[n.ReadonlyKeyword=144]="ReadonlyKeyword",n[n.RequireKeyword=145]="RequireKeyword",n[n.NumberKeyword=146]="NumberKeyword",n[n.ObjectKeyword=147]="ObjectKeyword",n[n.SetKeyword=148]="SetKeyword",n[n.StringKeyword=149]="StringKeyword",n[n.SymbolKeyword=150]="SymbolKeyword",n[n.TypeKeyword=151]="TypeKeyword",n[n.UndefinedKeyword=152]="UndefinedKeyword",n[n.UniqueKeyword=153]="UniqueKeyword",n[n.UnknownKeyword=154]="UnknownKeyword",n[n.FromKeyword=155]="FromKeyword",n[n.GlobalKeyword=156]="GlobalKeyword",n[n.BigIntKeyword=157]="BigIntKeyword",n[n.OverrideKeyword=158]="OverrideKeyword",n[n.OfKeyword=159]="OfKeyword",n[n.QualifiedName=160]="QualifiedName",n[n.ComputedPropertyName=161]="ComputedPropertyName",n[n.TypeParameter=162]="TypeParameter",n[n.Parameter=163]="Parameter",n[n.Decorator=164]="Decorator",n[n.PropertySignature=165]="PropertySignature",n[n.PropertyDeclaration=166]="PropertyDeclaration",n[n.MethodSignature=167]="MethodSignature",n[n.MethodDeclaration=168]="MethodDeclaration",n[n.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",n[n.Constructor=170]="Constructor",n[n.GetAccessor=171]="GetAccessor",n[n.SetAccessor=172]="SetAccessor",n[n.CallSignature=173]="CallSignature",n[n.ConstructSignature=174]="ConstructSignature",n[n.IndexSignature=175]="IndexSignature",n[n.TypePredicate=176]="TypePredicate",n[n.TypeReference=177]="TypeReference",n[n.FunctionType=178]="FunctionType",n[n.ConstructorType=179]="ConstructorType",n[n.TypeQuery=180]="TypeQuery",n[n.TypeLiteral=181]="TypeLiteral",n[n.ArrayType=182]="ArrayType",n[n.TupleType=183]="TupleType",n[n.OptionalType=184]="OptionalType",n[n.RestType=185]="RestType",n[n.UnionType=186]="UnionType",n[n.IntersectionType=187]="IntersectionType",n[n.ConditionalType=188]="ConditionalType",n[n.InferType=189]="InferType",n[n.ParenthesizedType=190]="ParenthesizedType",n[n.ThisType=191]="ThisType",n[n.TypeOperator=192]="TypeOperator",n[n.IndexedAccessType=193]="IndexedAccessType",n[n.MappedType=194]="MappedType",n[n.LiteralType=195]="LiteralType",n[n.NamedTupleMember=196]="NamedTupleMember",n[n.TemplateLiteralType=197]="TemplateLiteralType",n[n.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",n[n.ImportType=199]="ImportType",n[n.ObjectBindingPattern=200]="ObjectBindingPattern",n[n.ArrayBindingPattern=201]="ArrayBindingPattern",n[n.BindingElement=202]="BindingElement",n[n.ArrayLiteralExpression=203]="ArrayLiteralExpression",n[n.ObjectLiteralExpression=204]="ObjectLiteralExpression",n[n.PropertyAccessExpression=205]="PropertyAccessExpression",n[n.ElementAccessExpression=206]="ElementAccessExpression",n[n.CallExpression=207]="CallExpression",n[n.NewExpression=208]="NewExpression",n[n.TaggedTemplateExpression=209]="TaggedTemplateExpression",n[n.TypeAssertionExpression=210]="TypeAssertionExpression",n[n.ParenthesizedExpression=211]="ParenthesizedExpression",n[n.FunctionExpression=212]="FunctionExpression",n[n.ArrowFunction=213]="ArrowFunction",n[n.DeleteExpression=214]="DeleteExpression",n[n.TypeOfExpression=215]="TypeOfExpression",n[n.VoidExpression=216]="VoidExpression",n[n.AwaitExpression=217]="AwaitExpression",n[n.PrefixUnaryExpression=218]="PrefixUnaryExpression",n[n.PostfixUnaryExpression=219]="PostfixUnaryExpression",n[n.BinaryExpression=220]="BinaryExpression",n[n.ConditionalExpression=221]="ConditionalExpression",n[n.TemplateExpression=222]="TemplateExpression",n[n.YieldExpression=223]="YieldExpression",n[n.SpreadElement=224]="SpreadElement",n[n.ClassExpression=225]="ClassExpression",n[n.OmittedExpression=226]="OmittedExpression",n[n.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",n[n.AsExpression=228]="AsExpression",n[n.NonNullExpression=229]="NonNullExpression",n[n.MetaProperty=230]="MetaProperty",n[n.SyntheticExpression=231]="SyntheticExpression",n[n.TemplateSpan=232]="TemplateSpan",n[n.SemicolonClassElement=233]="SemicolonClassElement",n[n.Block=234]="Block",n[n.EmptyStatement=235]="EmptyStatement",n[n.VariableStatement=236]="VariableStatement",n[n.ExpressionStatement=237]="ExpressionStatement",n[n.IfStatement=238]="IfStatement",n[n.DoStatement=239]="DoStatement",n[n.WhileStatement=240]="WhileStatement",n[n.ForStatement=241]="ForStatement",n[n.ForInStatement=242]="ForInStatement",n[n.ForOfStatement=243]="ForOfStatement",n[n.ContinueStatement=244]="ContinueStatement",n[n.BreakStatement=245]="BreakStatement",n[n.ReturnStatement=246]="ReturnStatement",n[n.WithStatement=247]="WithStatement",n[n.SwitchStatement=248]="SwitchStatement",n[n.LabeledStatement=249]="LabeledStatement",n[n.ThrowStatement=250]="ThrowStatement",n[n.TryStatement=251]="TryStatement",n[n.DebuggerStatement=252]="DebuggerStatement",n[n.VariableDeclaration=253]="VariableDeclaration",n[n.VariableDeclarationList=254]="VariableDeclarationList",n[n.FunctionDeclaration=255]="FunctionDeclaration",n[n.ClassDeclaration=256]="ClassDeclaration",n[n.InterfaceDeclaration=257]="InterfaceDeclaration",n[n.TypeAliasDeclaration=258]="TypeAliasDeclaration",n[n.EnumDeclaration=259]="EnumDeclaration",n[n.ModuleDeclaration=260]="ModuleDeclaration",n[n.ModuleBlock=261]="ModuleBlock",n[n.CaseBlock=262]="CaseBlock",n[n.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",n[n.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",n[n.ImportDeclaration=265]="ImportDeclaration",n[n.ImportClause=266]="ImportClause",n[n.NamespaceImport=267]="NamespaceImport",n[n.NamedImports=268]="NamedImports",n[n.ImportSpecifier=269]="ImportSpecifier",n[n.ExportAssignment=270]="ExportAssignment",n[n.ExportDeclaration=271]="ExportDeclaration",n[n.NamedExports=272]="NamedExports",n[n.NamespaceExport=273]="NamespaceExport",n[n.ExportSpecifier=274]="ExportSpecifier",n[n.MissingDeclaration=275]="MissingDeclaration",n[n.ExternalModuleReference=276]="ExternalModuleReference",n[n.JsxElement=277]="JsxElement",n[n.JsxSelfClosingElement=278]="JsxSelfClosingElement",n[n.JsxOpeningElement=279]="JsxOpeningElement",n[n.JsxClosingElement=280]="JsxClosingElement",n[n.JsxFragment=281]="JsxFragment",n[n.JsxOpeningFragment=282]="JsxOpeningFragment",n[n.JsxClosingFragment=283]="JsxClosingFragment",n[n.JsxAttribute=284]="JsxAttribute",n[n.JsxAttributes=285]="JsxAttributes",n[n.JsxSpreadAttribute=286]="JsxSpreadAttribute",n[n.JsxExpression=287]="JsxExpression",n[n.CaseClause=288]="CaseClause",n[n.DefaultClause=289]="DefaultClause",n[n.HeritageClause=290]="HeritageClause",n[n.CatchClause=291]="CatchClause",n[n.AssertClause=292]="AssertClause",n[n.AssertEntry=293]="AssertEntry",n[n.PropertyAssignment=294]="PropertyAssignment",n[n.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",n[n.SpreadAssignment=296]="SpreadAssignment",n[n.EnumMember=297]="EnumMember",n[n.UnparsedPrologue=298]="UnparsedPrologue",n[n.UnparsedPrepend=299]="UnparsedPrepend",n[n.UnparsedText=300]="UnparsedText",n[n.UnparsedInternalText=301]="UnparsedInternalText",n[n.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",n[n.SourceFile=303]="SourceFile",n[n.Bundle=304]="Bundle",n[n.UnparsedSource=305]="UnparsedSource",n[n.InputFiles=306]="InputFiles",n[n.JSDocTypeExpression=307]="JSDocTypeExpression",n[n.JSDocNameReference=308]="JSDocNameReference",n[n.JSDocMemberName=309]="JSDocMemberName",n[n.JSDocAllType=310]="JSDocAllType",n[n.JSDocUnknownType=311]="JSDocUnknownType",n[n.JSDocNullableType=312]="JSDocNullableType",n[n.JSDocNonNullableType=313]="JSDocNonNullableType",n[n.JSDocOptionalType=314]="JSDocOptionalType",n[n.JSDocFunctionType=315]="JSDocFunctionType",n[n.JSDocVariadicType=316]="JSDocVariadicType",n[n.JSDocNamepathType=317]="JSDocNamepathType",n[n.JSDocComment=318]="JSDocComment",n[n.JSDocText=319]="JSDocText",n[n.JSDocTypeLiteral=320]="JSDocTypeLiteral",n[n.JSDocSignature=321]="JSDocSignature",n[n.JSDocLink=322]="JSDocLink",n[n.JSDocLinkCode=323]="JSDocLinkCode",n[n.JSDocLinkPlain=324]="JSDocLinkPlain",n[n.JSDocTag=325]="JSDocTag",n[n.JSDocAugmentsTag=326]="JSDocAugmentsTag",n[n.JSDocImplementsTag=327]="JSDocImplementsTag",n[n.JSDocAuthorTag=328]="JSDocAuthorTag",n[n.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",n[n.JSDocClassTag=330]="JSDocClassTag",n[n.JSDocPublicTag=331]="JSDocPublicTag",n[n.JSDocPrivateTag=332]="JSDocPrivateTag",n[n.JSDocProtectedTag=333]="JSDocProtectedTag",n[n.JSDocReadonlyTag=334]="JSDocReadonlyTag",n[n.JSDocOverrideTag=335]="JSDocOverrideTag",n[n.JSDocCallbackTag=336]="JSDocCallbackTag",n[n.JSDocEnumTag=337]="JSDocEnumTag",n[n.JSDocParameterTag=338]="JSDocParameterTag",n[n.JSDocReturnTag=339]="JSDocReturnTag",n[n.JSDocThisTag=340]="JSDocThisTag",n[n.JSDocTypeTag=341]="JSDocTypeTag",n[n.JSDocTemplateTag=342]="JSDocTemplateTag",n[n.JSDocTypedefTag=343]="JSDocTypedefTag",n[n.JSDocSeeTag=344]="JSDocSeeTag",n[n.JSDocPropertyTag=345]="JSDocPropertyTag",n[n.SyntaxList=346]="SyntaxList",n[n.NotEmittedStatement=347]="NotEmittedStatement",n[n.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",n[n.CommaListExpression=349]="CommaListExpression",n[n.MergeDeclarationMarker=350]="MergeDeclarationMarker",n[n.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",n[n.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",n[n.Count=353]="Count",n[n.FirstAssignment=63]="FirstAssignment",n[n.LastAssignment=78]="LastAssignment",n[n.FirstCompoundAssignment=64]="FirstCompoundAssignment",n[n.LastCompoundAssignment=78]="LastCompoundAssignment",n[n.FirstReservedWord=81]="FirstReservedWord",n[n.LastReservedWord=116]="LastReservedWord",n[n.FirstKeyword=81]="FirstKeyword",n[n.LastKeyword=159]="LastKeyword",n[n.FirstFutureReservedWord=117]="FirstFutureReservedWord",n[n.LastFutureReservedWord=125]="LastFutureReservedWord",n[n.FirstTypeNode=176]="FirstTypeNode",n[n.LastTypeNode=199]="LastTypeNode",n[n.FirstPunctuation=18]="FirstPunctuation",n[n.LastPunctuation=78]="LastPunctuation",n[n.FirstToken=0]="FirstToken",n[n.LastToken=159]="LastToken",n[n.FirstTriviaToken=2]="FirstTriviaToken",n[n.LastTriviaToken=7]="LastTriviaToken",n[n.FirstLiteralToken=8]="FirstLiteralToken",n[n.LastLiteralToken=14]="LastLiteralToken",n[n.FirstTemplateToken=14]="FirstTemplateToken",n[n.LastTemplateToken=17]="LastTemplateToken",n[n.FirstBinaryOperator=29]="FirstBinaryOperator",n[n.LastBinaryOperator=78]="LastBinaryOperator",n[n.FirstStatement=236]="FirstStatement",n[n.LastStatement=252]="LastStatement",n[n.FirstNode=160]="FirstNode",n[n.FirstJSDocNode=307]="FirstJSDocNode",n[n.LastJSDocNode=345]="LastJSDocNode",n[n.FirstJSDocTagNode=325]="FirstJSDocTagNode",n[n.LastJSDocTagNode=345]="LastJSDocTagNode",n[n.FirstContextualKeyword=126]="FirstContextualKeyword",n[n.LastContextualKeyword=159]="LastContextualKeyword"})(a=e.SyntaxKind||(e.SyntaxKind={}));var O;(function(n){n[n.None=0]="None",n[n.Let=1]="Let",n[n.Const=2]="Const",n[n.NestedNamespace=4]="NestedNamespace",n[n.Synthesized=8]="Synthesized",n[n.Namespace=16]="Namespace",n[n.OptionalChain=32]="OptionalChain",n[n.ExportContext=64]="ExportContext",n[n.ContainsThis=128]="ContainsThis",n[n.HasImplicitReturn=256]="HasImplicitReturn",n[n.HasExplicitReturn=512]="HasExplicitReturn",n[n.GlobalAugmentation=1024]="GlobalAugmentation",n[n.HasAsyncFunctions=2048]="HasAsyncFunctions",n[n.DisallowInContext=4096]="DisallowInContext",n[n.YieldContext=8192]="YieldContext",n[n.DecoratorContext=16384]="DecoratorContext",n[n.AwaitContext=32768]="AwaitContext",n[n.ThisNodeHasError=65536]="ThisNodeHasError",n[n.JavaScriptFile=131072]="JavaScriptFile",n[n.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",n[n.HasAggregatedChildData=524288]="HasAggregatedChildData",n[n.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",n[n.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",n[n.JSDoc=4194304]="JSDoc",n[n.Ambient=8388608]="Ambient",n[n.InWithStatement=16777216]="InWithStatement",n[n.JsonFile=33554432]="JsonFile",n[n.TypeCached=67108864]="TypeCached",n[n.Deprecated=134217728]="Deprecated",n[n.BlockScoped=3]="BlockScoped",n[n.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",n[n.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",n[n.ContextFlags=25358336]="ContextFlags",n[n.TypeExcludesFlags=40960]="TypeExcludesFlags",n[n.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(O=e.NodeFlags||(e.NodeFlags={}));var L;(function(n){n[n.None=0]="None",n[n.Export=1]="Export",n[n.Ambient=2]="Ambient",n[n.Public=4]="Public",n[n.Private=8]="Private",n[n.Protected=16]="Protected",n[n.Static=32]="Static",n[n.Readonly=64]="Readonly",n[n.Abstract=128]="Abstract",n[n.Async=256]="Async",n[n.Default=512]="Default",n[n.Const=2048]="Const",n[n.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",n[n.Deprecated=8192]="Deprecated",n[n.Override=16384]="Override",n[n.HasComputedFlags=536870912]="HasComputedFlags",n[n.AccessibilityModifier=28]="AccessibilityModifier",n[n.ParameterPropertyModifier=16476]="ParameterPropertyModifier",n[n.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",n[n.TypeScriptModifier=18654]="TypeScriptModifier",n[n.ExportDefault=513]="ExportDefault",n[n.All=27647]="All"})(L=e.ModifierFlags||(e.ModifierFlags={}));var W;(function(n){n[n.None=0]="None",n[n.IntrinsicNamedElement=1]="IntrinsicNamedElement",n[n.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",n[n.IntrinsicElement=3]="IntrinsicElement"})(W=e.JsxFlags||(e.JsxFlags={}));var N;(function(n){n[n.Succeeded=1]="Succeeded",n[n.Failed=2]="Failed",n[n.Reported=4]="Reported",n[n.ReportsUnmeasurable=8]="ReportsUnmeasurable",n[n.ReportsUnreliable=16]="ReportsUnreliable",n[n.ReportsMask=24]="ReportsMask"})(N=e.RelationComparisonResult||(e.RelationComparisonResult={}));var Q;(function(n){n[n.None=0]="None",n[n.Auto=1]="Auto",n[n.Loop=2]="Loop",n[n.Unique=3]="Unique",n[n.Node=4]="Node",n[n.KindMask=7]="KindMask",n[n.ReservedInNestedScopes=8]="ReservedInNestedScopes",n[n.Optimistic=16]="Optimistic",n[n.FileLevel=32]="FileLevel",n[n.AllowNameSubstitution=64]="AllowNameSubstitution"})(Q=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var pe;(function(n){n[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(pe=e.TokenFlags||(e.TokenFlags={}));var F;(function(n){n[n.Unreachable=1]="Unreachable",n[n.Start=2]="Start",n[n.BranchLabel=4]="BranchLabel",n[n.LoopLabel=8]="LoopLabel",n[n.Assignment=16]="Assignment",n[n.TrueCondition=32]="TrueCondition",n[n.FalseCondition=64]="FalseCondition",n[n.SwitchClause=128]="SwitchClause",n[n.ArrayMutation=256]="ArrayMutation",n[n.Call=512]="Call",n[n.ReduceLabel=1024]="ReduceLabel",n[n.Referenced=2048]="Referenced",n[n.Shared=4096]="Shared",n[n.Label=12]="Label",n[n.Condition=96]="Condition"})(F=e.FlowFlags||(e.FlowFlags={}));var g;(function(n){n[n.ExpectError=0]="ExpectError",n[n.Ignore=1]="Ignore"})(g=e.CommentDirectiveType||(e.CommentDirectiveType={}));var S=function(){function n(){}return n}();e.OperationCanceledException=S;var H;(function(n){n[n.RootFile=0]="RootFile",n[n.SourceFromProjectReference=1]="SourceFromProjectReference",n[n.OutputFromProjectReference=2]="OutputFromProjectReference",n[n.Import=3]="Import",n[n.ReferenceFile=4]="ReferenceFile",n[n.TypeReferenceDirective=5]="TypeReferenceDirective",n[n.LibFile=6]="LibFile",n[n.LibReferenceDirective=7]="LibReferenceDirective",n[n.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(H=e.FileIncludeKind||(e.FileIncludeKind={}));var se;(function(n){n[n.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",n[n.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(se=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var p;(function(n){n[n.Not=0]="Not",n[n.SafeModules=1]="SafeModules",n[n.Completely=2]="Completely"})(p=e.StructureIsReused||(e.StructureIsReused={}));var C;(function(n){n[n.Success=0]="Success",n[n.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",n[n.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",n[n.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",n[n.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",n[n.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(C=e.ExitStatus||(e.ExitStatus={}));var G;(function(n){n[n.Ok=0]="Ok",n[n.NeedsOverride=1]="NeedsOverride",n[n.HasInvalidOverride=2]="HasInvalidOverride"})(G=e.MemberOverrideStatus||(e.MemberOverrideStatus={}));var E;(function(n){n[n.None=0]="None",n[n.Literal=1]="Literal",n[n.Subtype=2]="Subtype"})(E=e.UnionReduction||(e.UnionReduction={}));var ue;(function(n){n[n.None=0]="None",n[n.Signature=1]="Signature",n[n.NoConstraints=2]="NoConstraints",n[n.Completions=4]="Completions",n[n.SkipBindingPatterns=8]="SkipBindingPatterns"})(ue=e.ContextFlags||(e.ContextFlags={}));var B;(function(n){n[n.None=0]="None",n[n.NoTruncation=1]="NoTruncation",n[n.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",n[n.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",n[n.UseStructuralFallback=8]="UseStructuralFallback",n[n.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",n[n.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",n[n.UseFullyQualifiedType=64]="UseFullyQualifiedType",n[n.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",n[n.SuppressAnyReturnType=256]="SuppressAnyReturnType",n[n.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",n[n.MultilineObjectLiterals=1024]="MultilineObjectLiterals",n[n.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",n[n.UseTypeOfFunction=4096]="UseTypeOfFunction",n[n.OmitParameterModifiers=8192]="OmitParameterModifiers",n[n.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",n[n.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",n[n.NoTypeReduction=536870912]="NoTypeReduction",n[n.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",n[n.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",n[n.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",n[n.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",n[n.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",n[n.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",n[n.AllowEmptyTuple=524288]="AllowEmptyTuple",n[n.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",n[n.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",n[n.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",n[n.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",n[n.IgnoreErrors=70221824]="IgnoreErrors",n[n.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",n[n.InTypeAlias=8388608]="InTypeAlias",n[n.InInitialEntityName=16777216]="InInitialEntityName"})(B=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var re;(function(n){n[n.None=0]="None",n[n.NoTruncation=1]="NoTruncation",n[n.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",n[n.UseStructuralFallback=8]="UseStructuralFallback",n[n.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",n[n.UseFullyQualifiedType=64]="UseFullyQualifiedType",n[n.SuppressAnyReturnType=256]="SuppressAnyReturnType",n[n.MultilineObjectLiterals=1024]="MultilineObjectLiterals",n[n.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",n[n.UseTypeOfFunction=4096]="UseTypeOfFunction",n[n.OmitParameterModifiers=8192]="OmitParameterModifiers",n[n.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",n[n.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",n[n.NoTypeReduction=536870912]="NoTypeReduction",n[n.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",n[n.AddUndefined=131072]="AddUndefined",n[n.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",n[n.InArrayType=524288]="InArrayType",n[n.InElementType=2097152]="InElementType",n[n.InFirstTypeArgument=4194304]="InFirstTypeArgument",n[n.InTypeAlias=8388608]="InTypeAlias",n[n.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",n[n.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"})(re=e.TypeFormatFlags||(e.TypeFormatFlags={}));var M;(function(n){n[n.None=0]="None",n[n.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",n[n.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",n[n.AllowAnyNodeKind=4]="AllowAnyNodeKind",n[n.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",n[n.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})(M=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var x;(function(n){n[n.Accessible=0]="Accessible",n[n.NotAccessible=1]="NotAccessible",n[n.CannotBeNamed=2]="CannotBeNamed"})(x=e.SymbolAccessibility||(e.SymbolAccessibility={}));var ie;(function(n){n[n.UnionOrIntersection=0]="UnionOrIntersection",n[n.Spread=1]="Spread"})(ie=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var _e;(function(n){n[n.This=0]="This",n[n.Identifier=1]="Identifier",n[n.AssertsThis=2]="AssertsThis",n[n.AssertsIdentifier=3]="AssertsIdentifier"})(_e=e.TypePredicateKind||(e.TypePredicateKind={}));var Y;(function(n){n[n.Unknown=0]="Unknown",n[n.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",n[n.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",n[n.NumberLikeType=3]="NumberLikeType",n[n.BigIntLikeType=4]="BigIntLikeType",n[n.StringLikeType=5]="StringLikeType",n[n.BooleanType=6]="BooleanType",n[n.ArrayLikeType=7]="ArrayLikeType",n[n.ESSymbolType=8]="ESSymbolType",n[n.Promise=9]="Promise",n[n.TypeWithCallSignature=10]="TypeWithCallSignature",n[n.ObjectType=11]="ObjectType"})(Y=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var Z;(function(n){n[n.None=0]="None",n[n.FunctionScopedVariable=1]="FunctionScopedVariable",n[n.BlockScopedVariable=2]="BlockScopedVariable",n[n.Property=4]="Property",n[n.EnumMember=8]="EnumMember",n[n.Function=16]="Function",n[n.Class=32]="Class",n[n.Interface=64]="Interface",n[n.ConstEnum=128]="ConstEnum",n[n.RegularEnum=256]="RegularEnum",n[n.ValueModule=512]="ValueModule",n[n.NamespaceModule=1024]="NamespaceModule",n[n.TypeLiteral=2048]="TypeLiteral",n[n.ObjectLiteral=4096]="ObjectLiteral",n[n.Method=8192]="Method",n[n.Constructor=16384]="Constructor",n[n.GetAccessor=32768]="GetAccessor",n[n.SetAccessor=65536]="SetAccessor",n[n.Signature=131072]="Signature",n[n.TypeParameter=262144]="TypeParameter",n[n.TypeAlias=524288]="TypeAlias",n[n.ExportValue=1048576]="ExportValue",n[n.Alias=2097152]="Alias",n[n.Prototype=4194304]="Prototype",n[n.ExportStar=8388608]="ExportStar",n[n.Optional=16777216]="Optional",n[n.Transient=33554432]="Transient",n[n.Assignment=67108864]="Assignment",n[n.ModuleExports=134217728]="ModuleExports",n[n.All=67108863]="All",n[n.Enum=384]="Enum",n[n.Variable=3]="Variable",n[n.Value=111551]="Value",n[n.Type=788968]="Type",n[n.Namespace=1920]="Namespace",n[n.Module=1536]="Module",n[n.Accessor=98304]="Accessor",n[n.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",n[n.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",n[n.ParameterExcludes=111551]="ParameterExcludes",n[n.PropertyExcludes=0]="PropertyExcludes",n[n.EnumMemberExcludes=900095]="EnumMemberExcludes",n[n.FunctionExcludes=110991]="FunctionExcludes",n[n.ClassExcludes=899503]="ClassExcludes",n[n.InterfaceExcludes=788872]="InterfaceExcludes",n[n.RegularEnumExcludes=899327]="RegularEnumExcludes",n[n.ConstEnumExcludes=899967]="ConstEnumExcludes",n[n.ValueModuleExcludes=110735]="ValueModuleExcludes",n[n.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",n[n.MethodExcludes=103359]="MethodExcludes",n[n.GetAccessorExcludes=46015]="GetAccessorExcludes",n[n.SetAccessorExcludes=78783]="SetAccessorExcludes",n[n.TypeParameterExcludes=526824]="TypeParameterExcludes",n[n.TypeAliasExcludes=788968]="TypeAliasExcludes",n[n.AliasExcludes=2097152]="AliasExcludes",n[n.ModuleMember=2623475]="ModuleMember",n[n.ExportHasLocal=944]="ExportHasLocal",n[n.BlockScoped=418]="BlockScoped",n[n.PropertyOrAccessor=98308]="PropertyOrAccessor",n[n.ClassMember=106500]="ClassMember",n[n.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",n[n.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",n[n.Classifiable=2885600]="Classifiable",n[n.LateBindingContainer=6256]="LateBindingContainer"})(Z=e.SymbolFlags||(e.SymbolFlags={}));var k;(function(n){n[n.Numeric=0]="Numeric",n[n.Literal=1]="Literal"})(k=e.EnumKind||(e.EnumKind={}));var I;(function(n){n[n.Instantiated=1]="Instantiated",n[n.SyntheticProperty=2]="SyntheticProperty",n[n.SyntheticMethod=4]="SyntheticMethod",n[n.Readonly=8]="Readonly",n[n.ReadPartial=16]="ReadPartial",n[n.WritePartial=32]="WritePartial",n[n.HasNonUniformType=64]="HasNonUniformType",n[n.HasLiteralType=128]="HasLiteralType",n[n.ContainsPublic=256]="ContainsPublic",n[n.ContainsProtected=512]="ContainsProtected",n[n.ContainsPrivate=1024]="ContainsPrivate",n[n.ContainsStatic=2048]="ContainsStatic",n[n.Late=4096]="Late",n[n.ReverseMapped=8192]="ReverseMapped",n[n.OptionalParameter=16384]="OptionalParameter",n[n.RestParameter=32768]="RestParameter",n[n.DeferredType=65536]="DeferredType",n[n.HasNeverType=131072]="HasNeverType",n[n.Mapped=262144]="Mapped",n[n.StripOptional=524288]="StripOptional",n[n.Unresolved=1048576]="Unresolved",n[n.Synthetic=6]="Synthetic",n[n.Discriminant=192]="Discriminant",n[n.Partial=48]="Partial"})(I=e.CheckFlags||(e.CheckFlags={}));var ne;(function(n){n.Call="__call",n.Constructor="__constructor",n.New="__new",n.Index="__index",n.ExportStar="__export",n.Global="__global",n.Missing="__missing",n.Type="__type",n.Object="__object",n.JSXAttributes="__jsxAttributes",n.Class="__class",n.Function="__function",n.Computed="__computed",n.Resolving="__resolving__",n.ExportEquals="export=",n.Default="default",n.This="this"})(ne=e.InternalSymbolName||(e.InternalSymbolName={}));var ee;(function(n){n[n.TypeChecked=1]="TypeChecked",n[n.LexicalThis=2]="LexicalThis",n[n.CaptureThis=4]="CaptureThis",n[n.CaptureNewTarget=8]="CaptureNewTarget",n[n.SuperInstance=256]="SuperInstance",n[n.SuperStatic=512]="SuperStatic",n[n.ContextChecked=1024]="ContextChecked",n[n.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",n[n.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",n[n.CaptureArguments=8192]="CaptureArguments",n[n.EnumValuesComputed=16384]="EnumValuesComputed",n[n.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",n[n.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",n[n.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",n[n.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",n[n.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",n[n.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",n[n.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",n[n.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",n[n.AssignmentsMarked=8388608]="AssignmentsMarked",n[n.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",n[n.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",n[n.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",n[n.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",n[n.InCheckIdentifier=268435456]="InCheckIdentifier"})(ee=e.NodeCheckFlags||(e.NodeCheckFlags={}));var A;(function(n){n[n.Any=1]="Any",n[n.Unknown=2]="Unknown",n[n.String=4]="String",n[n.Number=8]="Number",n[n.Boolean=16]="Boolean",n[n.Enum=32]="Enum",n[n.BigInt=64]="BigInt",n[n.StringLiteral=128]="StringLiteral",n[n.NumberLiteral=256]="NumberLiteral",n[n.BooleanLiteral=512]="BooleanLiteral",n[n.EnumLiteral=1024]="EnumLiteral",n[n.BigIntLiteral=2048]="BigIntLiteral",n[n.ESSymbol=4096]="ESSymbol",n[n.UniqueESSymbol=8192]="UniqueESSymbol",n[n.Void=16384]="Void",n[n.Undefined=32768]="Undefined",n[n.Null=65536]="Null",n[n.Never=131072]="Never",n[n.TypeParameter=262144]="TypeParameter",n[n.Object=524288]="Object",n[n.Union=1048576]="Union",n[n.Intersection=2097152]="Intersection",n[n.Index=4194304]="Index",n[n.IndexedAccess=8388608]="IndexedAccess",n[n.Conditional=16777216]="Conditional",n[n.Substitution=33554432]="Substitution",n[n.NonPrimitive=67108864]="NonPrimitive",n[n.TemplateLiteral=134217728]="TemplateLiteral",n[n.StringMapping=268435456]="StringMapping",n[n.AnyOrUnknown=3]="AnyOrUnknown",n[n.Nullable=98304]="Nullable",n[n.Literal=2944]="Literal",n[n.Unit=109440]="Unit",n[n.StringOrNumberLiteral=384]="StringOrNumberLiteral",n[n.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",n[n.DefinitelyFalsy=117632]="DefinitelyFalsy",n[n.PossiblyFalsy=117724]="PossiblyFalsy",n[n.Intrinsic=67359327]="Intrinsic",n[n.Primitive=131068]="Primitive",n[n.StringLike=402653316]="StringLike",n[n.NumberLike=296]="NumberLike",n[n.BigIntLike=2112]="BigIntLike",n[n.BooleanLike=528]="BooleanLike",n[n.EnumLike=1056]="EnumLike",n[n.ESSymbolLike=12288]="ESSymbolLike",n[n.VoidLike=49152]="VoidLike",n[n.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",n[n.DisjointDomains=469892092]="DisjointDomains",n[n.UnionOrIntersection=3145728]="UnionOrIntersection",n[n.StructuredType=3670016]="StructuredType",n[n.TypeVariable=8650752]="TypeVariable",n[n.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",n[n.InstantiablePrimitive=406847488]="InstantiablePrimitive",n[n.Instantiable=465829888]="Instantiable",n[n.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",n[n.ObjectFlagsType=3899393]="ObjectFlagsType",n[n.Simplifiable=25165824]="Simplifiable",n[n.Singleton=67358815]="Singleton",n[n.Narrowable=536624127]="Narrowable",n[n.IncludesMask=205258751]="IncludesMask",n[n.IncludesMissingType=262144]="IncludesMissingType",n[n.IncludesNonWideningType=4194304]="IncludesNonWideningType",n[n.IncludesWildcard=8388608]="IncludesWildcard",n[n.IncludesEmptyObject=16777216]="IncludesEmptyObject",n[n.IncludesInstantiable=33554432]="IncludesInstantiable",n[n.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"})(A=e.TypeFlags||(e.TypeFlags={}));var f;(function(n){n[n.Class=1]="Class",n[n.Interface=2]="Interface",n[n.Reference=4]="Reference",n[n.Tuple=8]="Tuple",n[n.Anonymous=16]="Anonymous",n[n.Mapped=32]="Mapped",n[n.Instantiated=64]="Instantiated",n[n.ObjectLiteral=128]="ObjectLiteral",n[n.EvolvingArray=256]="EvolvingArray",n[n.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",n[n.ReverseMapped=1024]="ReverseMapped",n[n.JsxAttributes=2048]="JsxAttributes",n[n.MarkerType=4096]="MarkerType",n[n.JSLiteral=8192]="JSLiteral",n[n.FreshLiteral=16384]="FreshLiteral",n[n.ArrayLiteral=32768]="ArrayLiteral",n[n.PrimitiveUnion=65536]="PrimitiveUnion",n[n.ContainsWideningType=131072]="ContainsWideningType",n[n.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",n[n.NonInferrableType=524288]="NonInferrableType",n[n.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",n[n.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",n[n.ClassOrInterface=3]="ClassOrInterface",n[n.RequiresWidening=393216]="RequiresWidening",n[n.PropagatingFlags=917504]="PropagatingFlags",n[n.ObjectTypeKindMask=1343]="ObjectTypeKindMask",n[n.ContainsSpread=4194304]="ContainsSpread",n[n.ObjectRestType=8388608]="ObjectRestType",n[n.IsClassInstanceClone=16777216]="IsClassInstanceClone",n[n.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",n[n.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",n[n.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",n[n.IsGenericObjectType=8388608]="IsGenericObjectType",n[n.IsGenericIndexType=16777216]="IsGenericIndexType",n[n.IsGenericType=25165824]="IsGenericType",n[n.ContainsIntersections=33554432]="ContainsIntersections",n[n.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",n[n.IsNeverIntersection=67108864]="IsNeverIntersection"})(f=e.ObjectFlags||(e.ObjectFlags={}));var P;(function(n){n[n.Invariant=0]="Invariant",n[n.Covariant=1]="Covariant",n[n.Contravariant=2]="Contravariant",n[n.Bivariant=3]="Bivariant",n[n.Independent=4]="Independent",n[n.VarianceMask=7]="VarianceMask",n[n.Unmeasurable=8]="Unmeasurable",n[n.Unreliable=16]="Unreliable",n[n.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(P=e.VarianceFlags||(e.VarianceFlags={}));var D;(function(n){n[n.Required=1]="Required",n[n.Optional=2]="Optional",n[n.Rest=4]="Rest",n[n.Variadic=8]="Variadic",n[n.Fixed=3]="Fixed",n[n.Variable=12]="Variable",n[n.NonRequired=14]="NonRequired",n[n.NonRest=11]="NonRest"})(D=e.ElementFlags||(e.ElementFlags={}));var l;(function(n){n[n.None=0]="None",n[n.IncludeUndefined=1]="IncludeUndefined",n[n.NoIndexSignatures=2]="NoIndexSignatures",n[n.Writing=4]="Writing",n[n.CacheSymbol=8]="CacheSymbol",n[n.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",n[n.ExpressionPosition=32]="ExpressionPosition",n[n.ReportDeprecated=64]="ReportDeprecated",n[n.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",n[n.Contextual=256]="Contextual",n[n.Persistent=1]="Persistent"})(l=e.AccessFlags||(e.AccessFlags={}));var _;(function(n){n[n.Component=0]="Component",n[n.Function=1]="Function",n[n.Mixed=2]="Mixed"})(_=e.JsxReferenceKind||(e.JsxReferenceKind={}));var J;(function(n){n[n.Call=0]="Call",n[n.Construct=1]="Construct"})(J=e.SignatureKind||(e.SignatureKind={}));var w;(function(n){n[n.None=0]="None",n[n.HasRestParameter=1]="HasRestParameter",n[n.HasLiteralTypes=2]="HasLiteralTypes",n[n.Abstract=4]="Abstract",n[n.IsInnerCallChain=8]="IsInnerCallChain",n[n.IsOuterCallChain=16]="IsOuterCallChain",n[n.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",n[n.PropagatingFlags=39]="PropagatingFlags",n[n.CallChainFlags=24]="CallChainFlags"})(w=e.SignatureFlags||(e.SignatureFlags={}));var j;(function(n){n[n.String=0]="String",n[n.Number=1]="Number"})(j=e.IndexKind||(e.IndexKind={}));var U;(function(n){n[n.Simple=0]="Simple",n[n.Array=1]="Array",n[n.Function=2]="Function",n[n.Composite=3]="Composite",n[n.Merged=4]="Merged"})(U=e.TypeMapKind||(e.TypeMapKind={}));var z;(function(n){n[n.NakedTypeVariable=1]="NakedTypeVariable",n[n.SpeculativeTuple=2]="SpeculativeTuple",n[n.SubstituteSource=4]="SubstituteSource",n[n.HomomorphicMappedType=8]="HomomorphicMappedType",n[n.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",n[n.MappedTypeConstraint=32]="MappedTypeConstraint",n[n.ContravariantConditional=64]="ContravariantConditional",n[n.ReturnType=128]="ReturnType",n[n.LiteralKeyof=256]="LiteralKeyof",n[n.NoConstraints=512]="NoConstraints",n[n.AlwaysStrict=1024]="AlwaysStrict",n[n.MaxValue=2048]="MaxValue",n[n.PriorityImpliesCombination=416]="PriorityImpliesCombination",n[n.Circularity=-1]="Circularity"})(z=e.InferencePriority||(e.InferencePriority={}));var y;(function(n){n[n.None=0]="None",n[n.NoDefault=1]="NoDefault",n[n.AnyDefault=2]="AnyDefault",n[n.SkippedGenericFunction=4]="SkippedGenericFunction"})(y=e.InferenceFlags||(e.InferenceFlags={}));var oe;(function(n){n[n.False=0]="False",n[n.Unknown=1]="Unknown",n[n.Maybe=3]="Maybe",n[n.True=-1]="True"})(oe=e.Ternary||(e.Ternary={}));var ve;(function(n){n[n.None=0]="None",n[n.ExportsProperty=1]="ExportsProperty",n[n.ModuleExports=2]="ModuleExports",n[n.PrototypeProperty=3]="PrototypeProperty",n[n.ThisProperty=4]="ThisProperty",n[n.Property=5]="Property",n[n.Prototype=6]="Prototype",n[n.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",n[n.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",n[n.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(ve=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var ce;(function(n){n[n.Warning=0]="Warning",n[n.Error=1]="Error",n[n.Suggestion=2]="Suggestion",n[n.Message=3]="Message"})(ce=e.DiagnosticCategory||(e.DiagnosticCategory={}));function m(n,Er){Er===void 0&&(Er=!0);var br=ce[n.category];return Er?br.toLowerCase():br}e.diagnosticCategoryName=m;var de;(function(n){n[n.Classic=1]="Classic",n[n.NodeJs=2]="NodeJs",n[n.Node12=3]="Node12",n[n.NodeNext=99]="NodeNext"})(de=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var ae;(function(n){n[n.FixedPollingInterval=0]="FixedPollingInterval",n[n.PriorityPollingInterval=1]="PriorityPollingInterval",n[n.DynamicPriorityPolling=2]="DynamicPriorityPolling",n[n.FixedChunkSizePolling=3]="FixedChunkSizePolling",n[n.UseFsEvents=4]="UseFsEvents",n[n.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(ae=e.WatchFileKind||(e.WatchFileKind={}));var V;(function(n){n[n.UseFsEvents=0]="UseFsEvents",n[n.FixedPollingInterval=1]="FixedPollingInterval",n[n.DynamicPriorityPolling=2]="DynamicPriorityPolling",n[n.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(V=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var le;(function(n){n[n.FixedInterval=0]="FixedInterval",n[n.PriorityInterval=1]="PriorityInterval",n[n.DynamicPriority=2]="DynamicPriority",n[n.FixedChunkSize=3]="FixedChunkSize"})(le=e.PollingWatchKind||(e.PollingWatchKind={}));var ke;(function(n){n[n.None=0]="None",n[n.CommonJS=1]="CommonJS",n[n.AMD=2]="AMD",n[n.UMD=3]="UMD",n[n.System=4]="System",n[n.ES2015=5]="ES2015",n[n.ES2020=6]="ES2020",n[n.ES2022=7]="ES2022",n[n.ESNext=99]="ESNext",n[n.Node12=100]="Node12",n[n.NodeNext=199]="NodeNext"})(ke=e.ModuleKind||(e.ModuleKind={}));var Ue;(function(n){n[n.None=0]="None",n[n.Preserve=1]="Preserve",n[n.React=2]="React",n[n.ReactNative=3]="ReactNative",n[n.ReactJSX=4]="ReactJSX",n[n.ReactJSXDev=5]="ReactJSXDev"})(Ue=e.JsxEmit||(e.JsxEmit={}));var He;(function(n){n[n.Remove=0]="Remove",n[n.Preserve=1]="Preserve",n[n.Error=2]="Error"})(He=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var ar;(function(n){n[n.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",n[n.LineFeed=1]="LineFeed"})(ar=e.NewLineKind||(e.NewLineKind={}));var gr;(function(n){n[n.Unknown=0]="Unknown",n[n.JS=1]="JS",n[n.JSX=2]="JSX",n[n.TS=3]="TS",n[n.TSX=4]="TSX",n[n.External=5]="External",n[n.JSON=6]="JSON",n[n.Deferred=7]="Deferred"})(gr=e.ScriptKind||(e.ScriptKind={}));var me;(function(n){n[n.ES3=0]="ES3",n[n.ES5=1]="ES5",n[n.ES2015=2]="ES2015",n[n.ES2016=3]="ES2016",n[n.ES2017=4]="ES2017",n[n.ES2018=5]="ES2018",n[n.ES2019=6]="ES2019",n[n.ES2020=7]="ES2020",n[n.ES2021=8]="ES2021",n[n.ES2022=9]="ES2022",n[n.ESNext=99]="ESNext",n[n.JSON=100]="JSON",n[n.Latest=99]="Latest"})(me=e.ScriptTarget||(e.ScriptTarget={}));var Ge;(function(n){n[n.Standard=0]="Standard",n[n.JSX=1]="JSX"})(Ge=e.LanguageVariant||(e.LanguageVariant={}));var er;(function(n){n[n.None=0]="None",n[n.Recursive=1]="Recursive"})(er=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var he;(function(n){n[n.nullCharacter=0]="nullCharacter",n[n.maxAsciiCharacter=127]="maxAsciiCharacter",n[n.lineFeed=10]="lineFeed",n[n.carriageReturn=13]="carriageReturn",n[n.lineSeparator=8232]="lineSeparator",n[n.paragraphSeparator=8233]="paragraphSeparator",n[n.nextLine=133]="nextLine",n[n.space=32]="space",n[n.nonBreakingSpace=160]="nonBreakingSpace",n[n.enQuad=8192]="enQuad",n[n.emQuad=8193]="emQuad",n[n.enSpace=8194]="enSpace",n[n.emSpace=8195]="emSpace",n[n.threePerEmSpace=8196]="threePerEmSpace",n[n.fourPerEmSpace=8197]="fourPerEmSpace",n[n.sixPerEmSpace=8198]="sixPerEmSpace",n[n.figureSpace=8199]="figureSpace",n[n.punctuationSpace=8200]="punctuationSpace",n[n.thinSpace=8201]="thinSpace",n[n.hairSpace=8202]="hairSpace",n[n.zeroWidthSpace=8203]="zeroWidthSpace",n[n.narrowNoBreakSpace=8239]="narrowNoBreakSpace",n[n.ideographicSpace=12288]="ideographicSpace",n[n.mathematicalSpace=8287]="mathematicalSpace",n[n.ogham=5760]="ogham",n[n._=95]="_",n[n.$=36]="$",n[n._0=48]="_0",n[n._1=49]="_1",n[n._2=50]="_2",n[n._3=51]="_3",n[n._4=52]="_4",n[n._5=53]="_5",n[n._6=54]="_6",n[n._7=55]="_7",n[n._8=56]="_8",n[n._9=57]="_9",n[n.a=97]="a",n[n.b=98]="b",n[n.c=99]="c",n[n.d=100]="d",n[n.e=101]="e",n[n.f=102]="f",n[n.g=103]="g",n[n.h=104]="h",n[n.i=105]="i",n[n.j=106]="j",n[n.k=107]="k",n[n.l=108]="l",n[n.m=109]="m",n[n.n=110]="n",n[n.o=111]="o",n[n.p=112]="p",n[n.q=113]="q",n[n.r=114]="r",n[n.s=115]="s",n[n.t=116]="t",n[n.u=117]="u",n[n.v=118]="v",n[n.w=119]="w",n[n.x=120]="x",n[n.y=121]="y",n[n.z=122]="z",n[n.A=65]="A",n[n.B=66]="B",n[n.C=67]="C",n[n.D=68]="D",n[n.E=69]="E",n[n.F=70]="F",n[n.G=71]="G",n[n.H=72]="H",n[n.I=73]="I",n[n.J=74]="J",n[n.K=75]="K",n[n.L=76]="L",n[n.M=77]="M",n[n.N=78]="N",n[n.O=79]="O",n[n.P=80]="P",n[n.Q=81]="Q",n[n.R=82]="R",n[n.S=83]="S",n[n.T=84]="T",n[n.U=85]="U",n[n.V=86]="V",n[n.W=87]="W",n[n.X=88]="X",n[n.Y=89]="Y",n[n.Z=90]="Z",n[n.ampersand=38]="ampersand",n[n.asterisk=42]="asterisk",n[n.at=64]="at",n[n.backslash=92]="backslash",n[n.backtick=96]="backtick",n[n.bar=124]="bar",n[n.caret=94]="caret",n[n.closeBrace=125]="closeBrace",n[n.closeBracket=93]="closeBracket",n[n.closeParen=41]="closeParen",n[n.colon=58]="colon",n[n.comma=44]="comma",n[n.dot=46]="dot",n[n.doubleQuote=34]="doubleQuote",n[n.equals=61]="equals",n[n.exclamation=33]="exclamation",n[n.greaterThan=62]="greaterThan",n[n.hash=35]="hash",n[n.lessThan=60]="lessThan",n[n.minus=45]="minus",n[n.openBrace=123]="openBrace",n[n.openBracket=91]="openBracket",n[n.openParen=40]="openParen",n[n.percent=37]="percent",n[n.plus=43]="plus",n[n.question=63]="question",n[n.semicolon=59]="semicolon",n[n.singleQuote=39]="singleQuote",n[n.slash=47]="slash",n[n.tilde=126]="tilde",n[n.backspace=8]="backspace",n[n.formFeed=12]="formFeed",n[n.byteOrderMark=65279]="byteOrderMark",n[n.tab=9]="tab",n[n.verticalTab=11]="verticalTab"})(he=e.CharacterCodes||(e.CharacterCodes={}));var we;(function(n){n.Ts=".ts",n.Tsx=".tsx",n.Dts=".d.ts",n.Js=".js",n.Jsx=".jsx",n.Json=".json",n.TsBuildInfo=".tsbuildinfo",n.Mjs=".mjs",n.Mts=".mts",n.Dmts=".d.mts",n.Cjs=".cjs",n.Cts=".cts",n.Dcts=".d.cts"})(we=e.Extension||(e.Extension={}));var ye;(function(n){n[n.None=0]="None",n[n.ContainsTypeScript=1]="ContainsTypeScript",n[n.ContainsJsx=2]="ContainsJsx",n[n.ContainsESNext=4]="ContainsESNext",n[n.ContainsES2022=8]="ContainsES2022",n[n.ContainsES2021=16]="ContainsES2021",n[n.ContainsES2020=32]="ContainsES2020",n[n.ContainsES2019=64]="ContainsES2019",n[n.ContainsES2018=128]="ContainsES2018",n[n.ContainsES2017=256]="ContainsES2017",n[n.ContainsES2016=512]="ContainsES2016",n[n.ContainsES2015=1024]="ContainsES2015",n[n.ContainsGenerator=2048]="ContainsGenerator",n[n.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",n[n.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",n[n.ContainsLexicalThis=8192]="ContainsLexicalThis",n[n.ContainsRestOrSpread=16384]="ContainsRestOrSpread",n[n.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",n[n.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",n[n.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",n[n.ContainsBindingPattern=262144]="ContainsBindingPattern",n[n.ContainsYield=524288]="ContainsYield",n[n.ContainsAwait=1048576]="ContainsAwait",n[n.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",n[n.ContainsDynamicImport=4194304]="ContainsDynamicImport",n[n.ContainsClassFields=8388608]="ContainsClassFields",n[n.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",n[n.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",n[n.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",n[n.HasComputedFlags=536870912]="HasComputedFlags",n[n.AssertTypeScript=1]="AssertTypeScript",n[n.AssertJsx=2]="AssertJsx",n[n.AssertESNext=4]="AssertESNext",n[n.AssertES2022=8]="AssertES2022",n[n.AssertES2021=16]="AssertES2021",n[n.AssertES2020=32]="AssertES2020",n[n.AssertES2019=64]="AssertES2019",n[n.AssertES2018=128]="AssertES2018",n[n.AssertES2017=256]="AssertES2017",n[n.AssertES2016=512]="AssertES2016",n[n.AssertES2015=1024]="AssertES2015",n[n.AssertGenerator=2048]="AssertGenerator",n[n.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",n[n.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",n[n.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",n[n.NodeExcludes=536870912]="NodeExcludes",n[n.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",n[n.FunctionExcludes=591310848]="FunctionExcludes",n[n.ConstructorExcludes=591306752]="ConstructorExcludes",n[n.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",n[n.PropertyExcludes=570433536]="PropertyExcludes",n[n.ClassExcludes=536940544]="ClassExcludes",n[n.ModuleExcludes=589443072]="ModuleExcludes",n[n.TypeExcludes=-2]="TypeExcludes",n[n.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",n[n.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",n[n.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",n[n.ParameterExcludes=536870912]="ParameterExcludes",n[n.CatchClauseExcludes=536903680]="CatchClauseExcludes",n[n.BindingPatternExcludes=536887296]="BindingPatternExcludes",n[n.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",n[n.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"})(ye=e.TransformFlags||(e.TransformFlags={}));var Se;(function(n){n[n.TabStop=0]="TabStop",n[n.Placeholder=1]="Placeholder",n[n.Choice=2]="Choice",n[n.Variable=3]="Variable"})(Se=e.SnippetKind||(e.SnippetKind={}));var ge;(function(n){n[n.None=0]="None",n[n.SingleLine=1]="SingleLine",n[n.AdviseOnEmitNode=2]="AdviseOnEmitNode",n[n.NoSubstitution=4]="NoSubstitution",n[n.CapturesThis=8]="CapturesThis",n[n.NoLeadingSourceMap=16]="NoLeadingSourceMap",n[n.NoTrailingSourceMap=32]="NoTrailingSourceMap",n[n.NoSourceMap=48]="NoSourceMap",n[n.NoNestedSourceMaps=64]="NoNestedSourceMaps",n[n.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",n[n.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",n[n.NoTokenSourceMaps=384]="NoTokenSourceMaps",n[n.NoLeadingComments=512]="NoLeadingComments",n[n.NoTrailingComments=1024]="NoTrailingComments",n[n.NoComments=1536]="NoComments",n[n.NoNestedComments=2048]="NoNestedComments",n[n.HelperName=4096]="HelperName",n[n.ExportName=8192]="ExportName",n[n.LocalName=16384]="LocalName",n[n.InternalName=32768]="InternalName",n[n.Indented=65536]="Indented",n[n.NoIndentation=131072]="NoIndentation",n[n.AsyncFunctionBody=262144]="AsyncFunctionBody",n[n.ReuseTempVariableScope=524288]="ReuseTempVariableScope",n[n.CustomPrologue=1048576]="CustomPrologue",n[n.NoHoisting=2097152]="NoHoisting",n[n.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",n[n.Iterator=8388608]="Iterator",n[n.NoAsciiEscaping=16777216]="NoAsciiEscaping",n[n.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",n[n.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",n[n.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",n[n.Immutable=268435456]="Immutable",n[n.IndirectCall=536870912]="IndirectCall"})(ge=e.EmitFlags||(e.EmitFlags={}));var Fe;(function(n){n[n.Extends=1]="Extends",n[n.Assign=2]="Assign",n[n.Rest=4]="Rest",n[n.Decorate=8]="Decorate",n[n.Metadata=16]="Metadata",n[n.Param=32]="Param",n[n.Awaiter=64]="Awaiter",n[n.Generator=128]="Generator",n[n.Values=256]="Values",n[n.Read=512]="Read",n[n.SpreadArray=1024]="SpreadArray",n[n.Await=2048]="Await",n[n.AsyncGenerator=4096]="AsyncGenerator",n[n.AsyncDelegator=8192]="AsyncDelegator",n[n.AsyncValues=16384]="AsyncValues",n[n.ExportStar=32768]="ExportStar",n[n.ImportStar=65536]="ImportStar",n[n.ImportDefault=131072]="ImportDefault",n[n.MakeTemplateObject=262144]="MakeTemplateObject",n[n.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",n[n.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",n[n.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",n[n.CreateBinding=4194304]="CreateBinding",n[n.FirstEmitHelper=1]="FirstEmitHelper",n[n.LastEmitHelper=4194304]="LastEmitHelper",n[n.ForOfIncludes=256]="ForOfIncludes",n[n.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",n[n.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",n[n.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",n[n.SpreadIncludes=1536]="SpreadIncludes"})(Fe=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var cr;(function(n){n[n.SourceFile=0]="SourceFile",n[n.Expression=1]="Expression",n[n.IdentifierName=2]="IdentifierName",n[n.MappedTypeParameter=3]="MappedTypeParameter",n[n.Unspecified=4]="Unspecified",n[n.EmbeddedStatement=5]="EmbeddedStatement",n[n.JsxAttributeValue=6]="JsxAttributeValue"})(cr=e.EmitHint||(e.EmitHint={}));var ur;(function(n){n[n.Parentheses=1]="Parentheses",n[n.TypeAssertions=2]="TypeAssertions",n[n.NonNullAssertions=4]="NonNullAssertions",n[n.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",n[n.Assertions=6]="Assertions",n[n.All=15]="All",n[n.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"})(ur=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var Ir;(function(n){n[n.None=0]="None",n[n.InParameters=1]="InParameters",n[n.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(Ir=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var dr;(function(n){n.Prologue="prologue",n.EmitHelpers="emitHelpers",n.NoDefaultLib="no-default-lib",n.Reference="reference",n.Type="type",n.Lib="lib",n.Prepend="prepend",n.Text="text",n.Internal="internal"})(dr=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var Br;(function(n){n[n.None=0]="None",n[n.SingleLine=0]="SingleLine",n[n.MultiLine=1]="MultiLine",n[n.PreserveLines=2]="PreserveLines",n[n.LinesMask=3]="LinesMask",n[n.NotDelimited=0]="NotDelimited",n[n.BarDelimited=4]="BarDelimited",n[n.AmpersandDelimited=8]="AmpersandDelimited",n[n.CommaDelimited=16]="CommaDelimited",n[n.AsteriskDelimited=32]="AsteriskDelimited",n[n.DelimitersMask=60]="DelimitersMask",n[n.AllowTrailingComma=64]="AllowTrailingComma",n[n.Indented=128]="Indented",n[n.SpaceBetweenBraces=256]="SpaceBetweenBraces",n[n.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",n[n.Braces=1024]="Braces",n[n.Parenthesis=2048]="Parenthesis",n[n.AngleBrackets=4096]="AngleBrackets",n[n.SquareBrackets=8192]="SquareBrackets",n[n.BracketsMask=15360]="BracketsMask",n[n.OptionalIfUndefined=16384]="OptionalIfUndefined",n[n.OptionalIfEmpty=32768]="OptionalIfEmpty",n[n.Optional=49152]="Optional",n[n.PreferNewLine=65536]="PreferNewLine",n[n.NoTrailingNewLine=131072]="NoTrailingNewLine",n[n.NoInterveningComments=262144]="NoInterveningComments",n[n.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",n[n.SingleElement=1048576]="SingleElement",n[n.SpaceAfterList=2097152]="SpaceAfterList",n[n.Modifiers=262656]="Modifiers",n[n.HeritageClauses=512]="HeritageClauses",n[n.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",n[n.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",n[n.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",n[n.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",n[n.UnionTypeConstituents=516]="UnionTypeConstituents",n[n.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",n[n.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",n[n.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",n[n.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",n[n.ImportClauseEntries=526226]="ImportClauseEntries",n[n.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",n[n.CommaListElements=528]="CommaListElements",n[n.CallExpressionArguments=2576]="CallExpressionArguments",n[n.NewExpressionArguments=18960]="NewExpressionArguments",n[n.TemplateExpressionSpans=262144]="TemplateExpressionSpans",n[n.SingleLineBlockStatements=768]="SingleLineBlockStatements",n[n.MultiLineBlockStatements=129]="MultiLineBlockStatements",n[n.VariableDeclarationList=528]="VariableDeclarationList",n[n.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",n[n.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",n[n.ClassHeritageClauses=0]="ClassHeritageClauses",n[n.ClassMembers=129]="ClassMembers",n[n.InterfaceMembers=129]="InterfaceMembers",n[n.EnumMembers=145]="EnumMembers",n[n.CaseBlockClauses=129]="CaseBlockClauses",n[n.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",n[n.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",n[n.JsxElementAttributes=262656]="JsxElementAttributes",n[n.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",n[n.HeritageClauseTypes=528]="HeritageClauseTypes",n[n.SourceFileStatements=131073]="SourceFileStatements",n[n.Decorators=2146305]="Decorators",n[n.TypeArguments=53776]="TypeArguments",n[n.TypeParameters=53776]="TypeParameters",n[n.Parameters=2576]="Parameters",n[n.IndexSignatureParameters=8848]="IndexSignatureParameters",n[n.JSDocComment=33]="JSDocComment"})(Br=e.ListFormat||(e.ListFormat={}));var Tr;(function(n){n[n.None=0]="None",n[n.TripleSlashXML=1]="TripleSlashXML",n[n.SingleLine=2]="SingleLine",n[n.MultiLine=4]="MultiLine",n[n.All=7]="All",n[n.Default=7]="Default"})(Tr=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}})(Pe||(Pe={}));var Pe;(function(e){function a(A){for(var f=5381,P=0;P<A.length;P++)f=(f<<5)+f+A.charCodeAt(P);return f.toString()}e.generateDjb2Hash=a;function O(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=O;var L;(function(A){A[A.Created=0]="Created",A[A.Changed=1]="Changed",A[A.Deleted=2]="Deleted"})(L=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var W;(function(A){A[A.High=2e3]="High",A[A.Medium=500]="Medium",A[A.Low=250]="Low"})(W=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function N(A,f){return A.getModifiedTime(f)||e.missingFileModifiedTime}e.getModifiedTime=N;function Q(A){var f;return f={},f[W.Low]=A.Low,f[W.Medium]=A.Medium,f[W.High]=A.High,f}var pe={Low:32,Medium:64,High:256},F=Q(pe);e.unchangedPollThresholds=Q(pe);function g(A){if(!A.getEnvironmentVariable)return;var f=l("TSC_WATCH_POLLINGINTERVAL",W);F=_("TSC_WATCH_POLLINGCHUNKSIZE",pe)||F,e.unchangedPollThresholds=_("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",pe)||e.unchangedPollThresholds;function P(J,w){return A.getEnvironmentVariable("".concat(J,"_").concat(w.toUpperCase()))}function D(J){var w;return j("Low"),j("Medium"),j("High"),w;function j(U){var z=P(J,U);z&&((w||(w={}))[U]=Number(z))}}function l(J,w){var j=D(J);if(j)return U("Low"),U("Medium"),U("High"),!0;return!1;function U(z){w[z]=j[z]||w[z]}}function _(J,w){var j=D(J);return(f||j)&&Q(j?Ve(Ve({},w),j):w)}}e.setCustomPollingValues=g;function S(A,f,P,D,l){for(var _=P,J=f.length;D&&J;U(),J--){var w=f[P];if(w){if(w.isClosed){f[P]=void 0;continue}}else continue;D--;var j=G(w,N(A,w.fileName));if(w.isClosed){f[P]=void 0;continue}l==null||l(w,P,j),f[P]&&(_<P&&(f[_]=w,f[P]=void 0),_++)}return P;function U(){P++,P===f.length&&(_<P&&(f.length=_),P=0,_=0)}}function H(A){var f=[],P=[],D=w(W.Low),l=w(W.Medium),_=w(W.High);return J;function J(de,ae,V){var le={fileName:de,callback:ae,unchangedPolls:0,mtime:N(A,de)};return f.push(le),oe(le,V),{close:function(){le.isClosed=!0,e.unorderedRemoveItem(f,le)}}}function w(de){var ae=[];return ae.pollingInterval=de,ae.pollIndex=0,ae.pollScheduled=!1,ae}function j(de){de.pollIndex=z(de,de.pollingInterval,de.pollIndex,F[de.pollingInterval]),de.length?m(de.pollingInterval):(e.Debug.assert(de.pollIndex===0),de.pollScheduled=!1)}function U(de){z(P,W.Low,0,P.length),j(de),!de.pollScheduled&&P.length&&m(W.Low)}function z(de,ae,V,le){return S(A,de,V,le,ke);function ke(Ue,He,ar){ar?(Ue.unchangedPolls=0,de!==P&&(de[He]=void 0,ve(Ue))):Ue.unchangedPolls!==e.unchangedPollThresholds[ae]?Ue.unchangedPolls++:de===P?(Ue.unchangedPolls=1,de[He]=void 0,oe(Ue,W.Low)):ae!==W.High&&(Ue.unchangedPolls++,de[He]=void 0,oe(Ue,ae===W.Low?W.Medium:W.High))}}function y(de){switch(de){case W.Low:return D;case W.Medium:return l;case W.High:return _}}function oe(de,ae){y(ae).push(de),ce(ae)}function ve(de){P.push(de),ce(W.Low)}function ce(de){y(de).pollScheduled||m(de)}function m(de){y(de).pollScheduled=A.setTimeout(de===W.Low?U:j,de,y(de))}}e.createDynamicPriorityPollingWatchFile=H;function se(A,f){var P=e.createMultiMap(),D=new e.Map,l=e.createGetCanonicalFileName(f);return _;function _(w,j,U,z){var y=l(w);P.add(y,j);var oe=e.getDirectoryPath(y)||".",ve=D.get(oe)||J(e.getDirectoryPath(w)||".",oe,z);return ve.referenceCount++,{close:function(){ve.referenceCount===1?(ve.close(),D.delete(oe)):ve.referenceCount--,P.remove(y,j)}}}function J(w,j,U){var z=A(w,1,function(y,oe){if(!!e.isString(oe)){var ve=e.getNormalizedAbsolutePath(oe,w),ce=ve&&P.get(l(ve));if(ce)for(var m=0,de=ce;m<de.length;m++){var ae=de[m];ae(ve,L.Changed)}}},!1,W.Medium,U);return z.referenceCount=0,D.set(j,z),z}}function p(A){var f=[],P=0,D;return l;function l(w,j){var U={fileName:w,callback:j,mtime:N(A,w)};return f.push(U),J(),{close:function(){U.isClosed=!0,e.unorderedRemoveItem(f,U)}}}function _(){D=void 0,P=S(A,f,P,F[W.Low]),J()}function J(){!f.length||D||(D=A.setTimeout(_,W.High))}}function C(A,f){var P=new e.Map,D=e.createMultiMap(),l=e.createGetCanonicalFileName(f);return function(_,J,w,j){var U=l(_),z=P.get(U);return z?z.refCount++:P.set(U,{watcher:A(_,function(y,oe){return e.forEach(D.get(U),function(ve){return ve(y,oe)})},w,j),refCount:1}),D.add(U,J),{close:function(){var y=e.Debug.checkDefined(P.get(U));D.remove(U,J),y.refCount--,!y.refCount&&(P.delete(U),e.closeFileWatcherOf(y))}}}}e.createSingleFileWatcherPerName=C;function G(A,f){var P=A.mtime.getTime(),D=f.getTime();return P!==D?(A.mtime=f,A.callback(A.fileName,E(P,D)),!0):!1}e.onWatchedFileStat=G;function E(A,f){return A===0?L.Created:f===0?L.Deleted:L.Changed}e.getFileWatcherEventKind=E,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var ue=e.noop;function B(A){return ue(A)}e.sysLog=B;function re(A){ue=A}e.setSysLog=re;function M(A){var f=A.watchDirectory,P=A.useCaseSensitiveFileNames,D=A.getCurrentDirectory,l=A.getAccessibleSortedChildDirectories,_=A.directoryExists,J=A.realpath,w=A.setTimeout,j=A.clearTimeout,U=new e.Map,z=e.createMultiMap(),y=new e.Map,oe,ve=e.getStringComparer(!P),ce=e.createGetCanonicalFileName(P);return function(gr,me,Ge,er){return Ge?m(gr,er,me):f(gr,me,Ge,er)};function m(gr,me,Ge){var er=ce(gr),he=U.get(er);he?he.refCount++:(he={watcher:f(gr,function(ye){He(ye,me)||(me!=null&&me.synchronousWatchDirectory?(de(er,ye),Ue(gr,er,me)):ae(gr,er,ye,me))},!1,me),refCount:1,childWatches:e.emptyArray},U.set(er,he),Ue(gr,er,me));var we=Ge&&{dirName:gr,callback:Ge};return we&&z.add(er,we),{dirName:gr,close:function(){var ye=e.Debug.checkDefined(U.get(er));we&&z.remove(er,we),ye.refCount--,!ye.refCount&&(U.delete(er),e.closeFileWatcherOf(ye),ye.childWatches.forEach(e.closeFileWatcher))}}}function de(gr,me,Ge){var er,he;e.isString(me)?er=me:he=me,z.forEach(function(we,ye){var Se;if(!(he&&he.get(ye)===!0)&&(ye===gr||e.startsWith(gr,ye)&&gr[ye.length]===e.directorySeparator))if(he)if(Ge){var ge=he.get(ye);ge?(Se=ge).push.apply(Se,Ge):he.set(ye,Ge.slice())}else he.set(ye,!0);else we.forEach(function(Fe){var cr=Fe.callback;return cr(er)})})}function ae(gr,me,Ge,er){var he=U.get(me);if(he&&_(gr)){V(gr,me,Ge,er);return}de(me,Ge),ke(he)}function V(gr,me,Ge,er){var he=y.get(me);he?he.fileNames.push(Ge):y.set(me,{dirName:gr,options:er,fileNames:[Ge]}),oe&&(j(oe),oe=void 0),oe=w(le,1e3)}function le(){oe=void 0,B("sysLog:: onTimerToUpdateChildWatches:: ".concat(y.size));for(var gr=e.timestamp(),me=new e.Map;!oe&&y.size;){var Ge=y.entries().next();e.Debug.assert(!Ge.done);var er=Ge.value,he=er[0],we=er[1],ye=we.dirName,Se=we.options,ge=we.fileNames;y.delete(he);var Fe=Ue(ye,he,Se);de(he,me,Fe?void 0:ge)}B("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-gr,"ms:: ").concat(y.size)),z.forEach(function(ur,Ir){var dr=me.get(Ir);dr&&ur.forEach(function(Br){var Tr=Br.callback,n=Br.dirName;e.isArray(dr)?dr.forEach(Tr):Tr(n)})});var cr=e.timestamp()-gr;B("sysLog:: Elapsed:: ".concat(cr,"ms:: onTimerToUpdateChildWatches:: ").concat(y.size," ").concat(oe))}function ke(gr){if(!!gr){var me=gr.childWatches;gr.childWatches=e.emptyArray;for(var Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];he.close(),ke(U.get(ce(he.dirName)))}}}function Ue(gr,me,Ge){var er=U.get(me);if(!er)return!1;var he,we=e.enumerateInsertsAndDeletes(_(gr)?e.mapDefined(l(gr),function(ge){var Fe=e.getNormalizedAbsolutePath(ge,gr);return!He(Fe,Ge)&&ve(Fe,e.normalizePath(J(Fe)))===0?Fe:void 0}):e.emptyArray,er.childWatches,function(ge,Fe){return ve(ge,Fe.dirName)},ye,e.closeFileWatcher,Se);return er.childWatches=he||e.emptyArray,we;function ye(ge){var Fe=m(ge,Ge);Se(Fe)}function Se(ge){(he||(he=[])).push(ge)}}function He(gr,me){return e.some(e.ignoredPaths,function(Ge){return ar(gr,Ge)})||Y(gr,me,P,D)}function ar(gr,me){return e.stringContains(gr,me)?!0:P?!1:e.stringContains(ce(gr),me)}}e.createDirectoryWatcherSupportingRecursive=M;var x;(function(A){A[A.File=0]="File",A[A.Directory=1]="Directory"})(x=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function ie(A){return function(f,P){return A(P===L.Changed?"change":"rename","")}}e.createFileWatcherCallback=ie;function _e(A,f,P){return function(D){D==="rename"?f(A,P(A)?L.Created:L.Deleted):f(A,L.Changed)}}function Y(A,f,P,D){return((f==null?void 0:f.excludeDirectories)||(f==null?void 0:f.excludeFiles))&&(e.matchesExclude(A,f==null?void 0:f.excludeFiles,P,D())||e.matchesExclude(A,f==null?void 0:f.excludeDirectories,P,D()))}function Z(A,f,P,D,l){return function(_,J){if(_==="rename"){var w=J?e.normalizePath(e.combinePaths(A,J)):A;(!J||!Y(w,P,D,l))&&f(w)}}}function k(A){var f=A.pollingWatchFile,P=A.getModifiedTime,D=A.setTimeout,l=A.clearTimeout,_=A.fsWatch,J=A.fileExists,w=A.useCaseSensitiveFileNames,j=A.getCurrentDirectory,U=A.fsSupportsRecursiveFsWatch,z=A.directoryExists,y=A.getAccessibleSortedChildDirectories,oe=A.realpath,ve=A.tscWatchFile,ce=A.useNonPollingWatchers,m=A.tscWatchDirectory,de=A.defaultWatchFileKind,ae,V,le,ke;return{watchFile:Ue,watchDirectory:Ge};function Ue(we,ye,Se,ge){ge=gr(ge,ce);var Fe=e.Debug.checkDefined(ge.watchFile);switch(Fe){case e.WatchFileKind.FixedPollingInterval:return f(we,ye,W.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return f(we,ye,Se,void 0);case e.WatchFileKind.DynamicPriorityPolling:return He()(we,ye,Se,void 0);case e.WatchFileKind.FixedChunkSizePolling:return ar()(we,ye,void 0,void 0);case e.WatchFileKind.UseFsEvents:return _(we,0,_e(we,ye,J),!1,Se,e.getFallbackOptions(ge));case e.WatchFileKind.UseFsEventsOnParentDirectory:return le||(le=se(_,w)),le(we,ye,Se,e.getFallbackOptions(ge));default:e.Debug.assertNever(Fe)}}function He(){return ae||(ae=H({getModifiedTime:P,setTimeout:D}))}function ar(){return V||(V=p({getModifiedTime:P,setTimeout:D}))}function gr(we,ye){if(we&&we.watchFile!==void 0)return we;switch(ve){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return me(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,we);case"UseFsEventsWithFallbackDynamicPolling":return me(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,we);case"UseFsEventsOnParentDirectory":ye=!0;default:return ye?me(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,we):{watchFile:(de==null?void 0:de())||e.WatchFileKind.FixedPollingInterval}}}function me(we,ye,Se){var ge=Se==null?void 0:Se.fallbackPolling;return{watchFile:we,fallbackPolling:ge===void 0?ye:ge}}function Ge(we,ye,Se,ge){return U?_(we,1,Z(we,ye,ge,w,j),Se,W.Medium,e.getFallbackOptions(ge)):(ke||(ke=M({useCaseSensitiveFileNames:w,getCurrentDirectory:j,directoryExists:z,getAccessibleSortedChildDirectories:y,watchDirectory:er,realpath:oe,setTimeout:D,clearTimeout:l})),ke(we,ye,Se,ge))}function er(we,ye,Se,ge){e.Debug.assert(!Se);var Fe=he(ge),cr=e.Debug.checkDefined(Fe.watchDirectory);switch(cr){case e.WatchDirectoryKind.FixedPollingInterval:return f(we,function(){return ye(we)},W.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return He()(we,function(){return ye(we)},W.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return ar()(we,function(){return ye(we)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return _(we,1,Z(we,ye,ge,w,j),Se,W.Medium,e.getFallbackOptions(Fe));default:e.Debug.assertNever(cr)}}function he(we){if(we&&we.watchDirectory!==void 0)return we;switch(m){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var ye=we==null?void 0:we.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:ye!==void 0?ye:void 0}}}}e.createSystemWatchFunctions=k;function I(A){var f=A.writeFile;A.writeFile=function(P,D,l){return e.writeFileEnsuringDirectories(P,D,!!l,function(_,J,w){return f.call(A,_,J,w)},function(_){return A.createDirectory(_)},function(_){return A.directoryExists(_)})}}e.patchWriteFileEnsuringDirectory=I;function ne(){if(!(typeof yl>"u")){var A=yl.version;if(!!A){var f=A.indexOf(".");if(f!==-1)return parseInt(A.substring(1,f))}}}e.getNodeMajorVersion=ne,e.sys=void 0;function ee(A){e.sys=void 0}e.setSys=ee,e.sys&&e.sys.getEnvironmentVariable&&(g(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(Pe||(Pe={}));var Pe;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var a="://",O=/\\/g;function L(me){return me===47||me===92}e.isAnyDirectorySeparator=L;function W(me){return E(me)<0}e.isUrl=W;function N(me){return E(me)>0}e.isRootedDiskPath=N;function Q(me){var Ge=E(me);return Ge>0&&Ge===me.length}e.isDiskPathRoot=Q;function pe(me){return E(me)!==0}e.pathIsAbsolute=pe;function F(me){return/^\.\.?($|[\\/])/.test(me)}e.pathIsRelative=F;function g(me){return!pe(me)&&!F(me)}e.pathIsBareSpecifier=g;function S(me){return e.stringContains(re(me),".")}e.hasExtension=S;function H(me,Ge){return me.length>Ge.length&&e.endsWith(me,Ge)}e.fileExtensionIs=H;function se(me,Ge){for(var er=0,he=Ge;er<he.length;er++){var we=he[er];if(H(me,we))return!0}return!1}e.fileExtensionIsOneOf=se;function p(me){return me.length>0&&L(me.charCodeAt(me.length-1))}e.hasTrailingDirectorySeparator=p;function C(me){return me>=97&&me<=122||me>=65&&me<=90}function G(me,Ge){var er=me.charCodeAt(Ge);if(er===58)return Ge+1;if(er===37&&me.charCodeAt(Ge+1)===51){var he=me.charCodeAt(Ge+2);if(he===97||he===65)return Ge+3}return-1}function E(me){if(!me)return 0;var Ge=me.charCodeAt(0);if(Ge===47||Ge===92){if(me.charCodeAt(1)!==Ge)return 1;var er=me.indexOf(Ge===47?e.directorySeparator:e.altDirectorySeparator,2);return er<0?me.length:er+1}if(C(Ge)&&me.charCodeAt(1)===58){var he=me.charCodeAt(2);if(he===47||he===92)return 3;if(me.length===2)return 2}var we=me.indexOf(a);if(we!==-1){var ye=we+a.length,Se=me.indexOf(e.directorySeparator,ye);if(Se!==-1){var ge=me.slice(0,we),Fe=me.slice(ye,Se);if(ge==="file"&&(Fe===""||Fe==="localhost")&&C(me.charCodeAt(Se+1))){var cr=G(me,Se+2);if(cr!==-1){if(me.charCodeAt(cr)===47)return~(cr+1);if(cr===me.length)return~cr}}return~(Se+1)}return~me.length}return 0}function ue(me){var Ge=E(me);return Ge<0?~Ge:Ge}e.getRootLength=ue;function B(me){me=k(me);var Ge=ue(me);return Ge===me.length?me:(me=w(me),me.slice(0,Math.max(Ge,me.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=B;function re(me,Ge,er){me=k(me);var he=ue(me);if(he===me.length)return"";me=w(me);var we=me.slice(Math.max(ue(me),me.lastIndexOf(e.directorySeparator)+1)),ye=Ge!==void 0&&er!==void 0?ie(we,Ge,er):void 0;return ye?we.slice(0,we.length-ye.length):we}e.getBaseFileName=re;function M(me,Ge,er){if(e.startsWith(Ge,".")||(Ge="."+Ge),me.length>=Ge.length&&me.charCodeAt(me.length-Ge.length)===46){var he=me.slice(me.length-Ge.length);if(er(he,Ge))return he}}function x(me,Ge,er){if(typeof Ge=="string")return M(me,Ge,er)||"";for(var he=0,we=Ge;he<we.length;he++){var ye=we[he],Se=M(me,ye,er);if(Se)return Se}return""}function ie(me,Ge,er){if(Ge)return x(w(me),Ge,er?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var he=re(me),we=he.lastIndexOf(".");return we>=0?he.substring(we):""}e.getAnyExtensionFromPath=ie;function _e(me,Ge){var er=me.substring(0,Ge),he=me.substring(Ge).split(e.directorySeparator);return he.length&&!e.lastOrUndefined(he)&&he.pop(),qe([er],he,!0)}function Y(me,Ge){return Ge===void 0&&(Ge=""),me=ne(Ge,me),_e(me,ue(me))}e.getPathComponents=Y;function Z(me){if(me.length===0)return"";var Ge=me[0]&&j(me[0]);return Ge+me.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=Z;function k(me){var Ge=me.indexOf("\\");return Ge===-1?me:(O.lastIndex=Ge,me.replace(O,e.directorySeparator))}e.normalizeSlashes=k;function I(me){if(!e.some(me))return[];for(var Ge=[me[0]],er=1;er<me.length;er++){var he=me[er];if(!!he&&he!=="."){if(he===".."){if(Ge.length>1){if(Ge[Ge.length-1]!==".."){Ge.pop();continue}}else if(Ge[0])continue}Ge.push(he)}}return Ge}e.reducePathComponents=I;function ne(me){for(var Ge=[],er=1;er<arguments.length;er++)Ge[er-1]=arguments[er];me&&(me=k(me));for(var he=0,we=Ge;he<we.length;he++){var ye=we[he];!ye||(ye=k(ye),!me||ue(ye)!==0?me=ye:me=j(me)+ye)}return me}e.combinePaths=ne;function ee(me){for(var Ge=[],er=1;er<arguments.length;er++)Ge[er-1]=arguments[er];return P(e.some(Ge)?ne.apply(void 0,qe([me],Ge,!1)):k(me))}e.resolvePath=ee;function A(me,Ge){return I(Y(me,Ge))}e.getNormalizedPathComponents=A;function f(me,Ge){return Z(A(me,Ge))}e.getNormalizedAbsolutePath=f;function P(me){if(me=k(me),!y.test(me))return me;var Ge=me.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(Ge!==me&&(me=Ge,!y.test(me)))return me;var er=Z(I(Y(me)));return er&&p(me)?j(er):er}e.normalizePath=P;function D(me){return me.length===0?"":me.slice(1).join(e.directorySeparator)}function l(me,Ge){return D(A(me,Ge))}e.getNormalizedAbsolutePathWithoutRoot=l;function _(me,Ge,er){var he=N(me)?P(me):f(me,Ge);return er(he)}e.toPath=_;function J(me){me=k(me);var Ge=I(Y(me)),er=Ge[0],he=Ge.slice(1);if(he.length){var we=er+he.join(e.directorySeparator);return{path:p(me)?j(we):we,parts:he}}else return{path:er,parts:he}}e.normalizePathAndParts=J;function w(me){return p(me)?me.substr(0,me.length-1):me}e.removeTrailingDirectorySeparator=w;function j(me){return p(me)?me:me+e.directorySeparator}e.ensureTrailingDirectorySeparator=j;function U(me){return!pe(me)&&!F(me)?"./"+me:me}e.ensurePathIsNonModuleName=U;function z(me,Ge,er,he){var we=er!==void 0&&he!==void 0?ie(me,er,he):ie(me);return we?me.slice(0,me.length-we.length)+(e.startsWith(Ge,".")?Ge:"."+Ge):me}e.changeAnyExtension=z;var y=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function oe(me,Ge,er){if(me===Ge)return 0;if(me===void 0)return-1;if(Ge===void 0)return 1;var he=me.substring(0,ue(me)),we=Ge.substring(0,ue(Ge)),ye=e.compareStringsCaseInsensitive(he,we);if(ye!==0)return ye;var Se=me.substring(he.length),ge=Ge.substring(we.length);if(!y.test(Se)&&!y.test(ge))return er(Se,ge);for(var Fe=I(Y(me)),cr=I(Y(Ge)),ur=Math.min(Fe.length,cr.length),Ir=1;Ir<ur;Ir++){var dr=er(Fe[Ir],cr[Ir]);if(dr!==0)return dr}return e.compareValues(Fe.length,cr.length)}function ve(me,Ge){return oe(me,Ge,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=ve;function ce(me,Ge){return oe(me,Ge,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=ce;function m(me,Ge,er,he){return typeof er=="string"?(me=ne(er,me),Ge=ne(er,Ge)):typeof er=="boolean"&&(he=er),oe(me,Ge,e.getStringComparer(he))}e.comparePaths=m;function de(me,Ge,er,he){if(typeof er=="string"?(me=ne(er,me),Ge=ne(er,Ge)):typeof er=="boolean"&&(he=er),me===void 0||Ge===void 0)return!1;if(me===Ge)return!0;var we=I(Y(me)),ye=I(Y(Ge));if(ye.length<we.length)return!1;for(var Se=he?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ge=0;ge<we.length;ge++){var Fe=ge===0?e.equateStringsCaseInsensitive:Se;if(!Fe(we[ge],ye[ge]))return!1}return!0}e.containsPath=de;function ae(me,Ge,er){var he=er(me),we=er(Ge);return e.startsWith(he,we+"/")||e.startsWith(he,we+"\\")}e.startsWithDirectory=ae;function V(me,Ge,er,he){var we=I(Y(me)),ye=I(Y(Ge)),Se;for(Se=0;Se<we.length&&Se<ye.length;Se++){var ge=he(we[Se]),Fe=he(ye[Se]),cr=Se===0?e.equateStringsCaseInsensitive:er;if(!cr(ge,Fe))break}if(Se===0)return ye;for(var ur=ye.slice(Se),Ir=[];Se<we.length;Se++)Ir.push("..");return qe(qe([""],Ir,!0),ur,!0)}e.getPathComponentsRelativeTo=V;function le(me,Ge,er){e.Debug.assert(ue(me)>0==ue(Ge)>0,"Paths must either both be absolute or both be relative");var he=typeof er=="function"?er:e.identity,we=typeof er=="boolean"?er:!1,ye=V(me,Ge,we?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,he);return Z(ye)}e.getRelativePathFromDirectory=le;function ke(me,Ge,er){return N(me)?He(Ge,me,Ge,er,!1):me}e.convertToRelativePath=ke;function Ue(me,Ge,er){return U(le(B(me),Ge,er))}e.getRelativePathFromFile=Ue;function He(me,Ge,er,he,we){var ye=V(ee(er,me),ee(er,Ge),e.equateStringsCaseSensitive,he),Se=ye[0];if(we&&N(Se)){var ge=Se.charAt(0)===e.directorySeparator?"file://":"file:///";ye[0]=ge+Se}return Z(ye)}e.getRelativePathToDirectoryOrUrl=He;function ar(me,Ge){for(;;){var er=Ge(me);if(er!==void 0)return er;var he=B(me);if(he===me)return;me=he}}e.forEachAncestorDirectory=ar;function gr(me){return e.endsWith(me,"/node_modules")}e.isNodeModulesDirectory=gr})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W,N,Q,pe,F){return{code:O,category:L,key:W,message:N,reportsUnnecessary:Q,elidedInCompatabilityPyramid:pe,reportsDeprecated:F}}e.Diagnostics={Unterminated_string_literal:a(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:a(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:a(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:a(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:a(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:a(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:a(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:a(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:a(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:a(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:a(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:a(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:a(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:a(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:a(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:a(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:a(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:a(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:a(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:a(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:a(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:a(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:a(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:a(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:a(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:a(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:a(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:a(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:a(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:a(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:a(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:a(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:a(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:a(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:a(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:a(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:a(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:a(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:a(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:a(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:a(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:a(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:a(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:a(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:a(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:a(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:a(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:a(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:a(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:a(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:a(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:a(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:a(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:a(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:a(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:a(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:a(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:a(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:a(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:a(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:a(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:a(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:a(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:a(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:a(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:a(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:a(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:a(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:a(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:a(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:a(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:a(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:a(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:a(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:a(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:a(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:a(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:a(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:a(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:a(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:a(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:a(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:a(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:a(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:a(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:a(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:a(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:a(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:a(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:a(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:a(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:a(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:a(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:a(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:a(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:a(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:a(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:a(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:a(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:a(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:a(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:a(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:a(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:a(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:a(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:a(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:a(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:a(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:a(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:a(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:a(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:a(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:a(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:a(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:a(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:a(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:a(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:a(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:a(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:a(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:a(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:a(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:a(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:a(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:a(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:a(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:a(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:a(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:a(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:a(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:a(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:a(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:a(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:a(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:a(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:a(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:a(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:a(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:a(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:a(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:a(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:a(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:a(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:a(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:a(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:a(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:a(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:a(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:a(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:a(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:a(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:a(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:a(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:a(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:a(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:a(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:a(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:a(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:a(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:a(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:a(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:a(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:a(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:a(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:a(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:a(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:a(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:a(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:a(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:a(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:a(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:a(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:a(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:a(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:a(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:a(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:a(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:a(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:a(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:a(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:a(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:a(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:a(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:a(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:a(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:a(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:a(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:a(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:a(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:a(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:a(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:a(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:a(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:a(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:a(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:a(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:a(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:a(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:a(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:a(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:a(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:a(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:a(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:a(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:a(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:a(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:a(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:a(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:a(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:a(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:a(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:a(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:a(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),with_statements_are_not_allowed_in_an_async_function_block:a(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:a(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:a(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:a(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:a(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:a(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:a(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:a(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:a(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:a(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext:a(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext:a(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:a(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:a(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:a(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:a(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:a(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:a(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:a(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:a(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:a(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:a(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:a(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:a(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:a(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:a(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:a(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:a(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:a(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:a(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:a(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:a(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:a(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:a(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:a(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:a(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:a(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:a(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:a(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:a(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:a(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:a(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:a(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:a(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:a(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:a(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:a(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:a(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:a(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:a(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:a(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:a(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:a(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:a(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:a(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:a(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:a(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:a(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:a(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:a(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:a(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:a(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:a(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:a(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:a(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:a(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:a(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:a(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:a(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:a(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:a(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:a(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:a(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:a(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:a(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:a(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:a(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:a(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:a(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:a(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:a(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:a(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:a(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:a(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:a(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:a(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:a(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:a(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:a(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:a(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:a(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:a(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:a(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:a(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:a(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:a(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:a(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:a(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:a(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:a(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:a(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:a(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:a(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:a(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:a(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:a(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:a(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:a(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:a(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:a(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:a(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:a(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:a(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:a(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:a(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:a(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:a(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:a(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:a(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:a(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:a(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:a(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:a(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:a(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:a(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:a(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:a(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),catch_or_finally_expected:a(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:a(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),The_types_of_0_are_incompatible_between_these_types:a(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:a(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:a(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:a(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:a(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:a(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:a(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),Duplicate_identifier_0:a(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:a(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:a(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:a(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:a(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:a(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:a(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:a(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:a(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:a(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:a(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:a(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:a(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:a(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:a(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:a(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:a(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:a(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:a(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:a(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:a(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:a(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:a(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:a(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:a(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:a(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:a(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:a(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:a(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:a(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:a(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:a(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:a(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:a(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:a(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:a(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:a(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:a(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:a(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:a(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:a(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:a(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:a(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:a(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:a(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:a(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:a(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:a(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:a(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:a(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:a(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:a(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:a(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:a(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:a(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:a(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:a(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:a(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:a(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:a(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:a(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:a(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:a(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:a(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:a(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:a(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:a(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:a(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:a(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:a(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:a(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:a(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:a(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:a(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:a(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:a(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:a(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:a(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:a(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:a(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:a(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:a(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:a(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:a(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:a(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:a(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:a(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:a(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:a(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:a(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:a(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:a(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:a(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:a(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:a(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:a(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:a(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:a(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:a(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:a(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:a(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:a(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:a(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:a(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:a(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:a(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:a(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:a(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:a(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:a(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:a(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:a(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:a(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:a(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:a(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:a(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:a(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:a(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:a(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:a(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:a(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:a(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:a(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:a(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:a(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:a(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:a(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:a(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:a(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:a(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:a(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:a(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:a(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:a(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:a(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:a(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:a(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:a(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:a(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:a(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:a(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:a(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:a(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:a(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:a(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:a(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:a(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:a(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:a(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:a(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:a(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:a(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:a(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:a(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:a(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:a(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:a(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:a(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:a(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:a(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:a(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:a(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:a(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:a(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:a(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:a(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:a(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:a(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:a(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:a(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:a(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:a(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:a(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:a(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:a(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:a(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:a(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:a(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:a(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:a(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:a(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:a(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:a(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:a(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:a(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:a(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:a(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:a(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:a(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:a(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:a(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:a(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:a(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:a(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:a(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:a(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:a(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:a(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:a(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:a(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:a(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:a(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:a(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:a(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:a(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:a(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:a(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:a(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:a(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:a(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:a(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:a(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:a(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:a(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:a(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:a(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:a(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:a(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:a(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:a(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:a(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:a(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:a(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:a(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:a(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:a(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:a(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:a(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:a(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:a(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:a(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:a(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:a(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:a(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:a(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:a(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:a(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:a(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:a(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:a(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:a(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:a(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:a(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:a(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:a(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:a(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:a(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:a(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:a(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:a(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:a(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:a(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:a(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:a(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:a(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:a(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:a(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:a(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:a(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:a(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:a(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:a(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:a(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:a(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:a(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:a(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:a(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:a(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:a(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:a(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:a(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:a(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:a(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:a(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:a(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:a(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:a(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:a(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:a(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:a(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:a(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:a(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:a(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:a(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:a(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:a(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:a(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:a(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:a(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:a(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:a(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:a(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:a(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:a(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:a(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:a(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:a(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:a(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:a(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:a(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:a(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:a(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:a(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:a(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:a(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:a(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:a(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:a(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:a(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:a(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:a(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:a(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:a(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:a(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:a(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:a(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:a(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:a(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:a(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:a(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:a(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:a(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:a(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:a(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:a(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:a(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:a(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:a(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:a(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:a(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:a(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:a(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:a(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:a(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:a(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:a(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:a(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:a(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:a(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:a(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:a(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:a(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:a(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:a(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:a(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:a(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:a(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:a(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:a(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:a(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:a(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:a(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:a(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:a(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:a(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:a(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:a(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:a(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:a(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:a(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:a(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:a(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:a(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:a(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:a(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:a(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:a(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:a(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:a(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:a(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:a(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:a(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:a(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:a(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:a(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:a(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:a(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:a(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:a(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:a(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:a(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:a(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:a(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:a(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:a(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:a(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:a(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:a(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:a(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:a(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:a(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:a(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:a(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:a(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:a(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:a(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:a(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:a(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:a(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:a(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:a(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:a(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:a(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:a(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:a(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:a(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:a(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:a(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:a(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:a(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:a(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:a(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:a(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:a(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:a(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:a(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:a(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:a(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:a(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:a(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:a(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:a(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:a(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:a(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:a(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:a(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:a(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:a(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:a(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:a(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:a(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:a(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:a(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:a(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:a(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:a(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:a(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:a(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:a(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:a(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:a(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:a(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:a(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:a(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:a(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:a(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Initializer_for_property_0:a(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:a(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:a(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:a(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:a(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:a(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:a(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:a(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:a(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:a(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:a(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:a(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:a(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:a(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:a(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:a(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:a(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),Import_declaration_0_is_using_private_name_1:a(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:a(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:a(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:a(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:a(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:a(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:a(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:a(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:a(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:a(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:a(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:a(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:a(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:a(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:a(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:a(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:a(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:a(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:a(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:a(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:a(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:a(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:a(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:a(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:a(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:a(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:a(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:a(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:a(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:a(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:a(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:a(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:a(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:a(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:a(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:a(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:a(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:a(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:a(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:a(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:a(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:a(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:a(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:a(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:a(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:a(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:a(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:a(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:a(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:a(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:a(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:a(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:a(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:a(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:a(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:a(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:a(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:a(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:a(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:a(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:a(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:a(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:a(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:a(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:a(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:a(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:a(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:a(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:a(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:a(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:a(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:a(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:a(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:a(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:a(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:a(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:a(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:a(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:a(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:a(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:a(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:a(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:a(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:a(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:a(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:a(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:a(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:a(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:a(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:a(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:a(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:a(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:a(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:a(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:a(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:a(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:a(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:a(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:a(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:a(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:a(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:a(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:a(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:a(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:a(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:a(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:a(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:a(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:a(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:a(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:a(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:a(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:a(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:a(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:a(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:a(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:a(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:a(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:a(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:a(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:a(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:a(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:a(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:a(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:a(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:a(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:a(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:a(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:a(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:a(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:a(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:a(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:a(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:a(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:a(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:a(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:a(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:a(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:a(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:a(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:a(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:a(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:a(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:a(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:a(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:a(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:a(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:a(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:a(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:a(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:a(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:a(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:a(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:a(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:a(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:a(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:a(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:a(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:a(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:a(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:a(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:a(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:a(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:a(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:a(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:a(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:a(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:a(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:a(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:a(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:a(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:a(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:a(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:a(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:a(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:a(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:a(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:a(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:a(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:a(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:a(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:a(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:a(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:a(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:a(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:a(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:a(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:a(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:a(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:a(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:a(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:a(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:a(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:a(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:a(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:a(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:a(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:a(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:a(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:a(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:a(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:a(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:a(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:a(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:a(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:a(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:a(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:a(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:a(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:a(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:a(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:a(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:a(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:a(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:a(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:a(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:a(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:a(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:a(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:a(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:a(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:a(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:a(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:a(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:a(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:a(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:a(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:a(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:a(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:a(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:a(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:a(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:a(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:a(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:a(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:a(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:a(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:a(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:a(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:a(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:a(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:a(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:a(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:a(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:a(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:a(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:a(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:a(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:a(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:a(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:a(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:a(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:a(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:a(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:a(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:a(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:a(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:a(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:a(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:a(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:a(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:a(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:a(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:a(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:a(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:a(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:a(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:a(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:a(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:a(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:a(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:a(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:a(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:a(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:a(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:a(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:a(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:a(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:a(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:a(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:a(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:a(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:a(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:a(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:a(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:a(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:a(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:a(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:a(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:a(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:a(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:a(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:a(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:a(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:a(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:a(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:a(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:a(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:a(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:a(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:a(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:a(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:a(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:a(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:a(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:a(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:a(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:a(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:a(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:a(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:a(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:a(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:a(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:a(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:a(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:a(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:a(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:a(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:a(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:a(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:a(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:a(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:a(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:a(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:a(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:a(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:a(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:a(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:a(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:a(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:a(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:a(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:a(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:a(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:a(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:a(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:a(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:a(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:a(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:a(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:a(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:a(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:a(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:a(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:a(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:a(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:a(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:a(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:a(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:a(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:a(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:a(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:a(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:a(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:a(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:a(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:a(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:a(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:a(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:a(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:a(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:a(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:a(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:a(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:a(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:a(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:a(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:a(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:a(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:a(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:a(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:a(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:a(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:a(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:a(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:a(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:a(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:a(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:a(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:a(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:a(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:a(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:a(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:a(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:a(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:a(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:a(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:a(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:a(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:a(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:a(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:a(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:a(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:a(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:a(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:a(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:a(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:a(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:a(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:a(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:a(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:a(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:a(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:a(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:a(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:a(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:a(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:a(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:a(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:a(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:a(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:a(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:a(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:a(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:a(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:a(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:a(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:a(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:a(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:a(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:a(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:a(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:a(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:a(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:a(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:a(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:a(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:a(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:a(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:a(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:a(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:a(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:a(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:a(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:a(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:a(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:a(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:a(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:a(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:a(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:a(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:a(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:a(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:a(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:a(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:a(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:a(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:a(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:a(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:a(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:a(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:a(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:a(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:a(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:a(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:a(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:a(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:a(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:a(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:a(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:a(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:a(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:a(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:a(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:a(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:a(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:a(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:a(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:a(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:a(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:a(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:a(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:a(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:a(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:a(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:a(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:a(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:a(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:a(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:a(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:a(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:a(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:a(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:a(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:a(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:a(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:a(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:a(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:a(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:a(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:a(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:a(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:a(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:a(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:a(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:a(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:a(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:a(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:a(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:a(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:a(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:a(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:a(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:a(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:a(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:a(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:a(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:a(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:a(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:a(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:a(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:a(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:a(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:a(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:a(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:a(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:a(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:a(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:a(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:a(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:a(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:a(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:a(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:a(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:a(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:a(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:a(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:a(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:a(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:a(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:a(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:a(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:a(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:a(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:a(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:a(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:a(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:a(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:a(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:a(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:a(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:a(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:a(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:a(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:a(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:a(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:a(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:a(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:a(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:a(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:a(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:a(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:a(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:a(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:a(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:a(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:a(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:a(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:a(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:a(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:a(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:a(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:a(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:a(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:a(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:a(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:a(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:a(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:a(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:a(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:a(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:a(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:a(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:a(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:a(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:a(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:a(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:a(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:a(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:a(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:a(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:a(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:a(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:a(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:a(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:a(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:a(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:a(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:a(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:a(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:a(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:a(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:a(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:a(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:a(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:a(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:a(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:a(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:a(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:a(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:a(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:a(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:a(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:a(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:a(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:a(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:a(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:a(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:a(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:a(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:a(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:a(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:a(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:a(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:a(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:a(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:a(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:a(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:a(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:a(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:a(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:a(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:a(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:a(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:a(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:a(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:a(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:a(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:a(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:a(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:a(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:a(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:a(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:a(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:a(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:a(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:a(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:a(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:a(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:a(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:a(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:a(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:a(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:a(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:a(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:a(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:a(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:a(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:a(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:a(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:a(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:a(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:a(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:a(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:a(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:a(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:a(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:a(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:a(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:a(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:a(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:a(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:a(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:a(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:a(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:a(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:a(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:a(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:a(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:a(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:a(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:a(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:a(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:a(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:a(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:a(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:a(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:a(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:a(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:a(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:a(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:a(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:a(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:a(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:a(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:a(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:a(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:a(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:a(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:a(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:a(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:a(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:a(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:a(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:a(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:a(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:a(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:a(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:a(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:a(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:a(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:a(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:a(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:a(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:a(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:a(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Convert_function_to_an_ES2015_class:a(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:a(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:a(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:a(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:a(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:a(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:a(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:a(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:a(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:a(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:a(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:a(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:a(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:a(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:a(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:a(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:a(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:a(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:a(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:a(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:a(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:a(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:a(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:a(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:a(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:a(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:a(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:a(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:a(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:a(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:a(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:a(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:a(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:a(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:a(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:a(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:a(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:a(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:a(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:a(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:a(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:a(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:a(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:a(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:a(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:a(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:a(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:a(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:a(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:a(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:a(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:a(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:a(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:a(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:a(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:a(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:a(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:a(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:a(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:a(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:a(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:a(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:a(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:a(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:a(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:a(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:a(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:a(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:a(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:a(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:a(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:a(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:a(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:a(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:a(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:a(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:a(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:a(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:a(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:a(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:a(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:a(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:a(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:a(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:a(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:a(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:a(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:a(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:a(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:a(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:a(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:a(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:a(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:a(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:a(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:a(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:a(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:a(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:a(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:a(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:a(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:a(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:a(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:a(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:a(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:a(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:a(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:a(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:a(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:a(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:a(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:a(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:a(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:a(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:a(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:a(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:a(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:a(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:a(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:a(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:a(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:a(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:a(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:a(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:a(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:a(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:a(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:a(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:a(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:a(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:a(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:a(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:a(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:a(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:a(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:a(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:a(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:a(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:a(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:a(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:a(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:a(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:a(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:a(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:a(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:a(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:a(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:a(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:a(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:a(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:a(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:a(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:a(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:a(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:a(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:a(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:a(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:a(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:a(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:a(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:a(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:a(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:a(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:a(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:a(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:a(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:a(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:a(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:a(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:a(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:a(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:a(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:a(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:a(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:a(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:a(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:a(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:a(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:a(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:a(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:a(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:a(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:a(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:a(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:a(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:a(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:a(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:a(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:a(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:a(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:a(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:a(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:a(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:a(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:a(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:a(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:a(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(Pe||(Pe={}));var Pe;(function(e){var a;function O(ge){return ge>=79}e.tokenIsIdentifierOrKeyword=O;function L(ge){return ge===31||O(ge)}e.tokenIsIdentifierOrKeywordOrGreaterThan=L,e.textToKeywordObj=(a={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85},a.constructor=134,a.debugger=87,a.declare=135,a.default=88,a.delete=89,a.do=90,a.else=91,a.enum=92,a.export=93,a.extends=94,a.false=95,a.finally=96,a.for=97,a.from=155,a.function=98,a.get=136,a.if=99,a.implements=117,a.import=100,a.in=101,a.infer=137,a.instanceof=102,a.interface=118,a.intrinsic=138,a.is=139,a.keyof=140,a.let=119,a.module=141,a.namespace=142,a.never=143,a.new=103,a.null=104,a.number=146,a.object=147,a.package=120,a.private=121,a.protected=122,a.public=123,a.override=158,a.readonly=144,a.require=145,a.global=156,a.return=105,a.set=148,a.static=124,a.string=149,a.super=106,a.switch=107,a.symbol=150,a.this=108,a.throw=109,a.true=110,a.try=111,a.type=151,a.typeof=112,a.undefined=152,a.unique=153,a.unknown=154,a.var=113,a.void=114,a.while=115,a.with=116,a.yield=125,a.async=131,a.await=132,a.of=159,a);var W=new e.Map(e.getEntries(e.textToKeywordObj)),N=new e.Map(e.getEntries(Ve(Ve({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),Q=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],pe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],F=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],g=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],S=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],H=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],se=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function C(ge,Fe){if(ge<Fe[0])return!1;for(var cr=0,ur=Fe.length,Ir;cr+1<ur;){if(Ir=cr+(ur-cr)/2,Ir-=Ir%2,Fe[Ir]<=ge&&ge<=Fe[Ir+1])return!0;ge<Fe[Ir]?ur=Ir:cr=Ir+2}return!1}function G(ge,Fe){return Fe>=2?C(ge,S):Fe===1?C(ge,F):C(ge,Q)}e.isUnicodeIdentifierStart=G;function E(ge,Fe){return Fe>=2?C(ge,H):Fe===1?C(ge,g):C(ge,pe)}function ue(ge){var Fe=[];return ge.forEach(function(cr,ur){Fe[cr]=ur}),Fe}var B=ue(N);function re(ge){return B[ge]}e.tokenToString=re;function M(ge){return N.get(ge)}e.stringToToken=M;function x(ge){for(var Fe=new Array,cr=0,ur=0;cr<ge.length;){var Ir=ge.charCodeAt(cr);switch(cr++,Ir){case 13:ge.charCodeAt(cr)===10&&cr++;case 10:Fe.push(ur),ur=cr;break;default:Ir>127&&f(Ir)&&(Fe.push(ur),ur=cr);break}}return Fe.push(ur),Fe}e.computeLineStarts=x;function ie(ge,Fe,cr,ur){return ge.getPositionOfLineAndCharacter?ge.getPositionOfLineAndCharacter(Fe,cr,ur):_e(Y(ge),Fe,cr,ge.text,ur)}e.getPositionOfLineAndCharacter=ie;function _e(ge,Fe,cr,ur,Ir){(Fe<0||Fe>=ge.length)&&(Ir?Fe=Fe<0?0:Fe>=ge.length?ge.length-1:Fe:e.Debug.fail("Bad line number. Line: ".concat(Fe,", lineStarts.length: ").concat(ge.length," , line map is correct? ").concat(ur!==void 0?e.arraysEqual(ge,x(ur)):"unknown")));var dr=ge[Fe]+cr;return Ir?dr>ge[Fe+1]?ge[Fe+1]:typeof ur=="string"&&dr>ur.length?ur.length:dr:(Fe<ge.length-1?e.Debug.assert(dr<ge[Fe+1]):ur!==void 0&&e.Debug.assert(dr<=ur.length),dr)}e.computePositionOfLineAndCharacter=_e;function Y(ge){return ge.lineMap||(ge.lineMap=x(ge.text))}e.getLineStarts=Y;function Z(ge,Fe){var cr=k(ge,Fe);return{line:cr,character:Fe-ge[cr]}}e.computeLineAndCharacterOfPosition=Z;function k(ge,Fe,cr){var ur=e.binarySearch(ge,Fe,e.identity,e.compareValues,cr);return ur<0&&(ur=~ur-1,e.Debug.assert(ur!==-1,"position cannot precede the beginning of the file")),ur}e.computeLineOfPosition=k;function I(ge,Fe,cr){if(Fe===cr)return 0;var ur=Y(ge),Ir=Math.min(Fe,cr),dr=Ir===cr,Br=dr?Fe:cr,Tr=k(ur,Ir),n=k(ur,Br,Tr);return dr?Tr-n:n-Tr}e.getLinesBetweenPositions=I;function ne(ge,Fe){return Z(Y(ge),Fe)}e.getLineAndCharacterOfPosition=ne;function ee(ge){return A(ge)||f(ge)}e.isWhiteSpaceLike=ee;function A(ge){return ge===32||ge===9||ge===11||ge===12||ge===160||ge===133||ge===5760||ge>=8192&&ge<=8203||ge===8239||ge===8287||ge===12288||ge===65279}e.isWhiteSpaceSingleLine=A;function f(ge){return ge===10||ge===13||ge===8232||ge===8233}e.isLineBreak=f;function P(ge){return ge>=48&&ge<=57}function D(ge){return P(ge)||ge>=65&&ge<=70||ge>=97&&ge<=102}function l(ge){return ge<=1114111}function _(ge){return ge>=48&&ge<=55}e.isOctalDigit=_;function J(ge,Fe){var cr=ge.charCodeAt(Fe);switch(cr){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return Fe===0;default:return cr>127}}e.couldStartTrivia=J;function w(ge,Fe,cr,ur,Ir){if(e.positionIsSynthesized(Fe))return Fe;for(var dr=!1;;){var Br=ge.charCodeAt(Fe);switch(Br){case 13:ge.charCodeAt(Fe+1)===10&&Fe++;case 10:if(Fe++,cr)return Fe;dr=!!Ir;continue;case 9:case 11:case 12:case 32:Fe++;continue;case 47:if(ur)break;if(ge.charCodeAt(Fe+1)===47){for(Fe+=2;Fe<ge.length&&!f(ge.charCodeAt(Fe));)Fe++;dr=!1;continue}if(ge.charCodeAt(Fe+1)===42){for(Fe+=2;Fe<ge.length;){if(ge.charCodeAt(Fe)===42&&ge.charCodeAt(Fe+1)===47){Fe+=2;break}Fe++}dr=!1;continue}break;case 60:case 124:case 61:case 62:if(U(ge,Fe)){Fe=z(ge,Fe),dr=!1;continue}break;case 35:if(Fe===0&&oe(ge,Fe)){Fe=ve(ge,Fe),dr=!1;continue}break;case 42:if(dr){Fe++,dr=!1;continue}break;default:if(Br>127&&ee(Br)){Fe++;continue}break}return Fe}}e.skipTrivia=w;var j=7;function U(ge,Fe){if(e.Debug.assert(Fe>=0),Fe===0||f(ge.charCodeAt(Fe-1))){var cr=ge.charCodeAt(Fe);if(Fe+j<ge.length){for(var ur=0;ur<j;ur++)if(ge.charCodeAt(Fe+ur)!==cr)return!1;return cr===61||ge.charCodeAt(Fe+j)===32}}return!1}function z(ge,Fe,cr){cr&&cr(e.Diagnostics.Merge_conflict_marker_encountered,Fe,j);var ur=ge.charCodeAt(Fe),Ir=ge.length;if(ur===60||ur===62)for(;Fe<Ir&&!f(ge.charCodeAt(Fe));)Fe++;else for(e.Debug.assert(ur===124||ur===61);Fe<Ir;){var dr=ge.charCodeAt(Fe);if((dr===61||dr===62)&&dr!==ur&&U(ge,Fe))break;Fe++}return Fe}var y=/^#!.*/;function oe(ge,Fe){return e.Debug.assert(Fe===0),y.test(ge)}e.isShebangTrivia=oe;function ve(ge,Fe){var cr=y.exec(ge)[0];return Fe=Fe+cr.length,Fe}e.scanShebangTrivia=ve;function ce(ge,Fe,cr,ur,Ir,dr,Br){var Tr,n,Er,br,Pr=!1,Ce=ur,Le=Br;if(cr===0){Ce=!0;var Xe=He(Fe);Xe&&(cr=Xe.length)}e:for(;cr>=0&&cr<Fe.length;){var Cr=Fe.charCodeAt(cr);switch(Cr){case 13:Fe.charCodeAt(cr+1)===10&&cr++;case 10:if(cr++,ur)break e;Ce=!0,Pr&&(br=!0);continue;case 9:case 11:case 12:case 32:cr++;continue;case 47:var Lr=Fe.charCodeAt(cr+1),Jr=!1;if(Lr===47||Lr===42){var Rr=Lr===47?2:3,ci=cr;if(cr+=2,Lr===47)for(;cr<Fe.length;){if(f(Fe.charCodeAt(cr))){Jr=!0;break}cr++}else for(;cr<Fe.length;){if(Fe.charCodeAt(cr)===42&&Fe.charCodeAt(cr+1)===47){cr+=2;break}cr++}if(Ce){if(Pr&&(Le=Ir(Tr,n,Er,br,dr,Le),!ge&&Le))return Le;Tr=ci,n=cr,Er=Rr,br=Jr,Pr=!0}continue}break e;default:if(Cr>127&&ee(Cr)){Pr&&f(Cr)&&(br=!0),cr++;continue}break e}}return Pr&&(Le=Ir(Tr,n,Er,br,dr,Le)),Le}function m(ge,Fe,cr,ur){return ce(!1,ge,Fe,!1,cr,ur)}e.forEachLeadingCommentRange=m;function de(ge,Fe,cr,ur){return ce(!1,ge,Fe,!0,cr,ur)}e.forEachTrailingCommentRange=de;function ae(ge,Fe,cr,ur,Ir){return ce(!0,ge,Fe,!1,cr,ur,Ir)}e.reduceEachLeadingCommentRange=ae;function V(ge,Fe,cr,ur,Ir){return ce(!0,ge,Fe,!0,cr,ur,Ir)}e.reduceEachTrailingCommentRange=V;function le(ge,Fe,cr,ur,Ir,dr){return dr||(dr=[]),dr.push({kind:cr,pos:ge,end:Fe,hasTrailingNewLine:ur}),dr}function ke(ge,Fe){return ae(ge,Fe,le,void 0,void 0)}e.getLeadingCommentRanges=ke;function Ue(ge,Fe){return V(ge,Fe,le,void 0,void 0)}e.getTrailingCommentRanges=Ue;function He(ge){var Fe=y.exec(ge);if(Fe)return Fe[0]}e.getShebang=He;function ar(ge,Fe){return ge>=65&&ge<=90||ge>=97&&ge<=122||ge===36||ge===95||ge>127&&G(ge,Fe)}e.isIdentifierStart=ar;function gr(ge,Fe,cr){return ge>=65&&ge<=90||ge>=97&&ge<=122||ge>=48&&ge<=57||ge===36||ge===95||(cr===1?ge===45||ge===58:!1)||ge>127&&E(ge,Fe)}e.isIdentifierPart=gr;function me(ge,Fe,cr){var ur=er(ge,0);if(!ar(ur,Fe))return!1;for(var Ir=he(ur);Ir<ge.length;Ir+=he(ur))if(!gr(ur=er(ge,Ir),Fe,cr))return!1;return!0}e.isIdentifierText=me;function Ge(ge,Fe,cr,ur,Ir,dr,Br){cr===void 0&&(cr=0);var Tr=ur,n,Er,br,Pr,Ce,Le,Xe,Cr,Lr=0;Rt(Tr,dr,Br);var Jr={getStartPos:function(){return br},getTextPos:function(){return n},getToken:function(){return Ce},getTokenPos:function(){return Pr},getTokenText:function(){return Tr.substring(Pr,n)},getTokenValue:function(){return Le},hasUnicodeEscape:function(){return(Xe&1024)!==0},hasExtendedUnicodeEscape:function(){return(Xe&8)!==0},hasPrecedingLineBreak:function(){return(Xe&1)!==0},hasPrecedingJSDocComment:function(){return(Xe&2)!==0},isIdentifier:function(){return Ce===79||Ce>116},isReservedWord:function(){return Ce>=81&&Ce<=116},isUnterminated:function(){return(Xe&4)!==0},getCommentDirectives:function(){return Cr},getNumericLiteralFlags:function(){return Xe&1008},getTokenFlags:function(){return Xe},reScanGreaterToken:Me,reScanAsteriskEqualsToken:v,reScanSlashToken:xe,reScanTemplateToken:Oe,reScanTemplateHeadOrNoSubstitutionTemplate:Fr,scanJsxIdentifier:Ur,scanJsxAttributeValue:si,reScanJsxAttributeValue:mi,reScanJsxToken:Xr,reScanLessThanToken:Or,reScanHashToken:We,reScanQuestionToken:mr,reScanInvalidIdentifier:hr,scanJsxToken:Nr,scanJsDocToken:Ti,scan:_r,getText:ri,clearCommentDirectives:Gi,setText:Rt,setScriptTarget:xt,setLanguageVariant:ua,setOnError:pa,setTextPos:Vt,setInJSDocType:St,tryScan:zi,lookAhead:Ui,scanRange:ki};return e.Debug.isDebugging&&Object.defineProperty(Jr,"__debugShowCurrentPositionInText",{get:function(){var Ci=Jr.getText();return Ci.slice(0,Jr.getStartPos())+"\u2551"+Ci.slice(Jr.getStartPos())}}),Jr;function Rr(Ci,Hi,Yi){if(Hi===void 0&&(Hi=n),Ir){var yt=n;n=Hi,Ir(Ci,Yi||0),n=yt}}function ci(){for(var Ci=n,Hi=!1,Yi=!1,yt="";;){var gt=Tr.charCodeAt(n);if(gt===95){Xe|=512,Hi?(Hi=!1,Yi=!0,yt+=Tr.substring(Ci,n)):Rr(Yi?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++,Ci=n;continue}if(P(gt)){Hi=!0,Yi=!1,n++;continue}break}return Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),yt+Tr.substring(Ci,n)}function be(){var Ci=n,Hi=ci(),Yi,yt;Tr.charCodeAt(n)===46&&(n++,Yi=ci());var gt=n;if(Tr.charCodeAt(n)===69||Tr.charCodeAt(n)===101){n++,Xe|=16,(Tr.charCodeAt(n)===43||Tr.charCodeAt(n)===45)&&n++;var oa=n,Bt=ci();Bt?(yt=Tr.substring(gt,oa)+Bt,gt=n):Rr(e.Diagnostics.Digit_expected)}var Pi;if(Xe&512?(Pi=Hi,Yi&&(Pi+="."+Yi),yt&&(Pi+=yt)):Pi=Tr.substring(Ci,gt),Yi!==void 0||Xe&16)return or(Ci,Yi===void 0&&!!(Xe&16)),{type:8,value:""+ +Pi};Le=Pi;var Oi=Qe();return or(Ci),{type:Oi,value:Le}}function or(Ci,Hi){if(!!ar(er(Tr,n),ge)){var Yi=n,yt=X().length;yt===1&&Tr[Yi]==="n"?Rr(Hi?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Ci,Yi-Ci+1):(Rr(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Yi,yt),n=Yi)}}function Kr(){for(var Ci=n;_(Tr.charCodeAt(n));)n++;return+Tr.substring(Ci,n)}function ei(Ci,Hi){var Yi=Si(Ci,!1,Hi);return Yi?parseInt(Yi,16):-1}function li(Ci,Hi){return Si(Ci,!0,Hi)}function Si(Ci,Hi,Yi){for(var yt=[],gt=!1,oa=!1;yt.length<Ci||Hi;){var Bt=Tr.charCodeAt(n);if(Yi&&Bt===95){Xe|=512,gt?(gt=!1,oa=!0):Rr(oa?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++;continue}if(gt=Yi,Bt>=65&&Bt<=70)Bt+=97-65;else if(!(Bt>=48&&Bt<=57||Bt>=97&&Bt<=102))break;yt.push(Bt),n++,oa=!1}return yt.length<Ci&&(yt=[]),Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),String.fromCharCode.apply(String,yt)}function qi(Ci){Ci===void 0&&(Ci=!1);var Hi=Tr.charCodeAt(n);n++;for(var Yi="",yt=n;;){if(n>=Er){Yi+=Tr.substring(yt,n),Xe|=4,Rr(e.Diagnostics.Unterminated_string_literal);break}var gt=Tr.charCodeAt(n);if(gt===Hi){Yi+=Tr.substring(yt,n),n++;break}if(gt===92&&!Ci){Yi+=Tr.substring(yt,n),Yi+=bt(),yt=n;continue}if(f(gt)&&!Ci){Yi+=Tr.substring(yt,n),Xe|=4,Rr(e.Diagnostics.Unterminated_string_literal);break}n++}return Yi}function ft(Ci){var Hi=Tr.charCodeAt(n)===96;n++;for(var Yi=n,yt="",gt;;){if(n>=Er){yt+=Tr.substring(Yi,n),Xe|=4,Rr(e.Diagnostics.Unterminated_template_literal),gt=Hi?14:17;break}var oa=Tr.charCodeAt(n);if(oa===96){yt+=Tr.substring(Yi,n),n++,gt=Hi?14:17;break}if(oa===36&&n+1<Er&&Tr.charCodeAt(n+1)===123){yt+=Tr.substring(Yi,n),n+=2,gt=Hi?15:16;break}if(oa===92){yt+=Tr.substring(Yi,n),yt+=bt(Ci),Yi=n;continue}if(oa===13){yt+=Tr.substring(Yi,n),n++,n<Er&&Tr.charCodeAt(n)===10&&n++,yt+=`
|
|
`,Yi=n;continue}n++}return e.Debug.assert(gt!==void 0),Le=yt,gt}function bt(Ci){var Hi=n;if(n++,n>=Er)return Rr(e.Diagnostics.Unexpected_end_of_text),"";var Yi=Tr.charCodeAt(n);switch(n++,Yi){case 48:return Ci&&n<Er&&P(Tr.charCodeAt(n))?(n++,Xe|=2048,Tr.substring(Hi,n)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(Ci){for(var yt=n;yt<n+4;yt++)if(yt<Er&&!D(Tr.charCodeAt(yt))&&Tr.charCodeAt(yt)!==123)return n=yt,Xe|=2048,Tr.substring(Hi,n)}if(n<Er&&Tr.charCodeAt(n)===123){if(n++,Ci&&!D(Tr.charCodeAt(n)))return Xe|=2048,Tr.substring(Hi,n);if(Ci){var gt=n,oa=li(1,!1),Bt=oa?parseInt(oa,16):-1;if(!l(Bt)||Tr.charCodeAt(n)!==125)return Xe|=2048,Tr.substring(Hi,n);n=gt}return Xe|=8,sr()}return Xe|=1024,aa(4);case 120:if(Ci)if(D(Tr.charCodeAt(n))){if(!D(Tr.charCodeAt(n+1)))return n++,Xe|=2048,Tr.substring(Hi,n)}else return Xe|=2048,Tr.substring(Hi,n);return aa(2);case 13:n<Er&&Tr.charCodeAt(n)===10&&n++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Yi)}}function aa(Ci){var Hi=ei(Ci,!1);return Hi>=0?String.fromCharCode(Hi):(Rr(e.Diagnostics.Hexadecimal_digit_expected),"")}function sr(){var Ci=li(1,!1),Hi=Ci?parseInt(Ci,16):-1,Yi=!1;return Hi<0?(Rr(e.Diagnostics.Hexadecimal_digit_expected),Yi=!0):Hi>1114111&&(Rr(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Yi=!0),n>=Er?(Rr(e.Diagnostics.Unexpected_end_of_text),Yi=!0):Tr.charCodeAt(n)===125?n++:(Rr(e.Diagnostics.Unterminated_Unicode_escape_sequence),Yi=!0),Yi?"":Se(Hi)}function Ji(){if(n+5<Er&&Tr.charCodeAt(n+1)===117){var Ci=n;n+=2;var Hi=ei(4,!1);return n=Ci,Hi}return-1}function di(){if(ge>=2&&er(Tr,n+1)===117&&er(Tr,n+2)===123){var Ci=n;n+=3;var Hi=li(1,!1),Yi=Hi?parseInt(Hi,16):-1;return n=Ci,Yi}return-1}function X(){for(var Ci="",Hi=n;n<Er;){var Yi=er(Tr,n);if(gr(Yi,ge))n+=he(Yi);else if(Yi===92){if(Yi=di(),Yi>=0&&gr(Yi,ge)){n+=3,Xe|=8,Ci+=sr(),Hi=n;continue}if(Yi=Ji(),!(Yi>=0&&gr(Yi,ge)))break;Xe|=1024,Ci+=Tr.substring(Hi,n),Ci+=Se(Yi),n+=6,Hi=n}else break}return Ci+=Tr.substring(Hi,n),Ci}function Ye(){var Ci=Le.length;if(Ci>=2&&Ci<=12){var Hi=Le.charCodeAt(0);if(Hi>=97&&Hi<=122){var Yi=W.get(Le);if(Yi!==void 0)return Ce=Yi}}return Ce=79}function Be(Ci){for(var Hi="",Yi=!1,yt=!1;;){var gt=Tr.charCodeAt(n);if(gt===95){Xe|=512,Yi?(Yi=!1,yt=!0):Rr(yt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,n,1),n++;continue}if(Yi=!0,!P(gt)||gt-48>=Ci)break;Hi+=Tr[n],n++,yt=!1}return Tr.charCodeAt(n-1)===95&&Rr(e.Diagnostics.Numeric_separators_are_not_allowed_here,n-1,1),Hi}function Qe(){if(Tr.charCodeAt(n)===110)return Le+="n",Xe&384&&(Le=e.parsePseudoBigInt(Le)+"n"),n++,9;var Ci=Xe&128?parseInt(Le.slice(2),2):Xe&256?parseInt(Le.slice(2),8):+Le;return Le=""+Ci,8}function _r(){var Ci;br=n,Xe=0;for(var Hi=!1;;){if(Pr=n,n>=Er)return Ce=1;var Yi=er(Tr,n);if(Yi===35&&n===0&&oe(Tr,n)){if(n=ve(Tr,n),Fe)continue;return Ce=6}switch(Yi){case 10:case 13:if(Xe|=1,Fe){n++;continue}else return Yi===13&&n+1<Er&&Tr.charCodeAt(n+1)===10?n+=2:n++,Ce=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(Fe){n++;continue}else{for(;n<Er&&A(Tr.charCodeAt(n));)n++;return Ce=5}case 33:return Tr.charCodeAt(n+1)===61?Tr.charCodeAt(n+2)===61?(n+=3,Ce=37):(n+=2,Ce=35):(n++,Ce=53);case 34:case 39:return Le=qi(),Ce=10;case 96:return Ce=ft(!1);case 37:return Tr.charCodeAt(n+1)===61?(n+=2,Ce=69):(n++,Ce=44);case 38:return Tr.charCodeAt(n+1)===38?Tr.charCodeAt(n+2)===61?(n+=3,Ce=76):(n+=2,Ce=55):Tr.charCodeAt(n+1)===61?(n+=2,Ce=73):(n++,Ce=50);case 40:return n++,Ce=20;case 41:return n++,Ce=21;case 42:if(Tr.charCodeAt(n+1)===61)return n+=2,Ce=66;if(Tr.charCodeAt(n+1)===42)return Tr.charCodeAt(n+2)===61?(n+=3,Ce=67):(n+=2,Ce=42);if(n++,Lr&&!Hi&&Xe&1){Hi=!0;continue}return Ce=41;case 43:return Tr.charCodeAt(n+1)===43?(n+=2,Ce=45):Tr.charCodeAt(n+1)===61?(n+=2,Ce=64):(n++,Ce=39);case 44:return n++,Ce=27;case 45:return Tr.charCodeAt(n+1)===45?(n+=2,Ce=46):Tr.charCodeAt(n+1)===61?(n+=2,Ce=65):(n++,Ce=40);case 46:return P(Tr.charCodeAt(n+1))?(Le=be().value,Ce=8):Tr.charCodeAt(n+1)===46&&Tr.charCodeAt(n+2)===46?(n+=3,Ce=25):(n++,Ce=24);case 47:if(Tr.charCodeAt(n+1)===47){for(n+=2;n<Er&&!f(Tr.charCodeAt(n));)n++;if(Cr=ze(Cr,Tr.slice(Pr,n),se,Pr),Fe)continue;return Ce=2}if(Tr.charCodeAt(n+1)===42){n+=2,Tr.charCodeAt(n)===42&&Tr.charCodeAt(n+1)!==47&&(Xe|=2);for(var yt=!1,gt=Pr;n<Er;){var oa=Tr.charCodeAt(n);if(oa===42&&Tr.charCodeAt(n+1)===47){n+=2,yt=!0;break}n++,f(oa)&&(gt=n,Xe|=1)}if(Cr=ze(Cr,Tr.slice(gt,n),p,gt),yt||Rr(e.Diagnostics.Asterisk_Slash_expected),Fe)continue;return yt||(Xe|=4),Ce=3}return Tr.charCodeAt(n+1)===61?(n+=2,Ce=68):(n++,Ce=43);case 48:if(n+2<Er&&(Tr.charCodeAt(n+1)===88||Tr.charCodeAt(n+1)===120))return n+=2,Le=li(1,!0),Le||(Rr(e.Diagnostics.Hexadecimal_digit_expected),Le="0"),Le="0x"+Le,Xe|=64,Ce=Qe();if(n+2<Er&&(Tr.charCodeAt(n+1)===66||Tr.charCodeAt(n+1)===98))return n+=2,Le=Be(2),Le||(Rr(e.Diagnostics.Binary_digit_expected),Le="0"),Le="0b"+Le,Xe|=128,Ce=Qe();if(n+2<Er&&(Tr.charCodeAt(n+1)===79||Tr.charCodeAt(n+1)===111))return n+=2,Le=Be(8),Le||(Rr(e.Diagnostics.Octal_digit_expected),Le="0"),Le="0o"+Le,Xe|=256,Ce=Qe();if(n+1<Er&&_(Tr.charCodeAt(n+1)))return Le=""+Kr(),Xe|=32,Ce=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ci=be(),Ce=Ci.type,Le=Ci.value,Ce;case 58:return n++,Ce=58;case 59:return n++,Ce=26;case 60:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===60?Tr.charCodeAt(n+2)===61?(n+=3,Ce=70):(n+=2,Ce=47):Tr.charCodeAt(n+1)===61?(n+=2,Ce=32):cr===1&&Tr.charCodeAt(n+1)===47&&Tr.charCodeAt(n+2)!==42?(n+=2,Ce=30):(n++,Ce=29);case 61:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===61?Tr.charCodeAt(n+2)===61?(n+=3,Ce=36):(n+=2,Ce=34):Tr.charCodeAt(n+1)===62?(n+=2,Ce=38):(n++,Ce=63);case 62:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return n++,Ce=31;case 63:return Tr.charCodeAt(n+1)===46&&!P(Tr.charCodeAt(n+2))?(n+=2,Ce=28):Tr.charCodeAt(n+1)===63?Tr.charCodeAt(n+2)===61?(n+=3,Ce=77):(n+=2,Ce=60):(n++,Ce=57);case 91:return n++,Ce=22;case 93:return n++,Ce=23;case 94:return Tr.charCodeAt(n+1)===61?(n+=2,Ce=78):(n++,Ce=52);case 123:return n++,Ce=18;case 124:if(U(Tr,n)){if(n=z(Tr,n,Rr),Fe)continue;return Ce=7}return Tr.charCodeAt(n+1)===124?Tr.charCodeAt(n+2)===61?(n+=3,Ce=75):(n+=2,Ce=56):Tr.charCodeAt(n+1)===61?(n+=2,Ce=74):(n++,Ce=51);case 125:return n++,Ce=19;case 126:return n++,Ce=54;case 64:return n++,Ce=59;case 92:var Bt=di();if(Bt>=0&&ar(Bt,ge))return n+=3,Xe|=8,Le=sr()+X(),Ce=Ye();var Pi=Ji();return Pi>=0&&ar(Pi,ge)?(n+=6,Xe|=1024,Le=String.fromCharCode(Pi)+X(),Ce=Ye()):(Rr(e.Diagnostics.Invalid_character),n++,Ce=0);case 35:return n!==0&&Tr[n+1]==="!"?(Rr(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),n++,Ce=0):(ar(er(Tr,n+1),ge)?(n++,Dr(er(Tr,n),ge)):(Le=String.fromCharCode(er(Tr,n)),Rr(e.Diagnostics.Invalid_character,n++,he(Yi))),Ce=80);default:var Oi=Dr(Yi,ge);if(Oi)return Ce=Oi;if(A(Yi)){n+=he(Yi);continue}else if(f(Yi)){Xe|=1,n+=he(Yi);continue}var wi=he(Yi);return Rr(e.Diagnostics.Invalid_character,n,wi),n+=wi,Ce=0}}}function hr(){e.Debug.assert(Ce===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),n=Pr=br,Xe=0;var Ci=er(Tr,n),Hi=Dr(Ci,99);return Hi?Ce=Hi:(n+=he(Ci),Ce)}function Dr(Ci,Hi){var Yi=Ci;if(ar(Yi,Hi)){for(n+=he(Yi);n<Er&&gr(Yi=er(Tr,n),Hi);)n+=he(Yi);return Le=Tr.substring(Pr,n),Yi===92&&(Le+=X()),Ye()}}function Me(){if(Ce===31){if(Tr.charCodeAt(n)===62)return Tr.charCodeAt(n+1)===62?Tr.charCodeAt(n+2)===61?(n+=3,Ce=72):(n+=2,Ce=49):Tr.charCodeAt(n+1)===61?(n+=2,Ce=71):(n++,Ce=48);if(Tr.charCodeAt(n)===61)return n++,Ce=33}return Ce}function v(){return e.Debug.assert(Ce===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),n=Pr+1,Ce=63}function xe(){if(Ce===43||Ce===68){for(var Ci=Pr+1,Hi=!1,Yi=!1;;){if(Ci>=Er){Xe|=4,Rr(e.Diagnostics.Unterminated_regular_expression_literal);break}var yt=Tr.charCodeAt(Ci);if(f(yt)){Xe|=4,Rr(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Hi)Hi=!1;else if(yt===47&&!Yi){Ci++;break}else yt===91?Yi=!0:yt===92?Hi=!0:yt===93&&(Yi=!1);Ci++}for(;Ci<Er&&gr(Tr.charCodeAt(Ci),ge);)Ci++;n=Ci,Le=Tr.substring(Pr,n),Ce=13}return Ce}function ze(Ci,Hi,Yi,yt){var gt=Je(e.trimStringStart(Hi),Yi);return gt===void 0?Ci:e.append(Ci,{range:{pos:yt,end:n},type:gt})}function Je(Ci,Hi){var Yi=Hi.exec(Ci);if(!!Yi)switch(Yi[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Oe(Ci){return e.Debug.assert(Ce===19,"'reScanTemplateToken' should only be called on a '}'"),n=Pr,Ce=ft(Ci)}function Fr(){return n=Pr,Ce=ft(!0)}function Xr(Ci){return Ci===void 0&&(Ci=!0),n=Pr=br,Ce=Nr(Ci)}function Or(){return Ce===47?(n=Pr+1,Ce=29):Ce}function We(){return Ce===80?(n=Pr+1,Ce=62):Ce}function mr(){return e.Debug.assert(Ce===60,"'reScanQuestionToken' should only be called on a '??'"),n=Pr+1,Ce=57}function Nr(Ci){if(Ci===void 0&&(Ci=!0),br=Pr=n,n>=Er)return Ce=1;var Hi=Tr.charCodeAt(n);if(Hi===60)return Tr.charCodeAt(n+1)===47?(n+=2,Ce=30):(n++,Ce=29);if(Hi===123)return n++,Ce=18;for(var Yi=0;n<Er&&(Hi=Tr.charCodeAt(n),Hi!==123);){if(Hi===60){if(U(Tr,n))return n=z(Tr,n,Rr),Ce=7;break}if(Hi===62&&Rr(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,n,1),Hi===125&&Rr(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,n,1),f(Hi)&&Yi===0)Yi=-1;else{if(!Ci&&f(Hi)&&Yi>0)break;ee(Hi)||(Yi=n)}n++}return Le=Tr.substring(br,n),Yi===-1?12:11}function Ur(){if(O(Ce)){for(var Ci=!1;n<Er;){var Hi=Tr.charCodeAt(n);if(Hi===45){Le+="-",n++;continue}else if(Hi===58&&!Ci){Le+=":",n++,Ci=!0,Ce=79;continue}var Yi=n;if(Le+=X(),n===Yi)break}return Le.slice(-1)===":"&&(Le=Le.slice(0,-1),n--),Ye()}return Ce}function si(){switch(br=n,Tr.charCodeAt(n)){case 34:case 39:return Le=qi(!0),Ce=10;default:return _r()}}function mi(){return n=Pr=br,si()}function Ti(){if(br=Pr=n,Xe=0,n>=Er)return Ce=1;var Ci=er(Tr,n);switch(n+=he(Ci),Ci){case 9:case 11:case 12:case 32:for(;n<Er&&A(Tr.charCodeAt(n));)n++;return Ce=5;case 64:return Ce=59;case 13:Tr.charCodeAt(n)===10&&n++;case 10:return Xe|=1,Ce=4;case 42:return Ce=41;case 123:return Ce=18;case 125:return Ce=19;case 91:return Ce=22;case 93:return Ce=23;case 60:return Ce=29;case 62:return Ce=31;case 61:return Ce=63;case 44:return Ce=27;case 46:return Ce=24;case 96:return Ce=61;case 35:return Ce=62;case 92:n--;var Hi=di();if(Hi>=0&&ar(Hi,ge))return n+=3,Xe|=8,Le=sr()+X(),Ce=Ye();var Yi=Ji();return Yi>=0&&ar(Yi,ge)?(n+=6,Xe|=1024,Le=String.fromCharCode(Yi)+X(),Ce=Ye()):(n++,Ce=0)}if(ar(Ci,ge)){for(var yt=Ci;n<Er&&gr(yt=er(Tr,n),ge)||Tr.charCodeAt(n)===45;)n+=he(yt);return Le=Tr.substring(Pr,n),yt===92&&(Le+=X()),Ce=Ye()}else return Ce=0}function hi(Ci,Hi){var Yi=n,yt=br,gt=Pr,oa=Ce,Bt=Le,Pi=Xe,Oi=Ci();return(!Oi||Hi)&&(n=Yi,br=yt,Pr=gt,Ce=oa,Le=Bt,Xe=Pi),Oi}function ki(Ci,Hi,Yi){var yt=Er,gt=n,oa=br,Bt=Pr,Pi=Ce,Oi=Le,wi=Xe,Qr=Cr;Rt(Tr,Ci,Hi);var Ct=Yi();return Er=yt,n=gt,br=oa,Pr=Bt,Ce=Pi,Le=Oi,Xe=wi,Cr=Qr,Ct}function Ui(Ci){return hi(Ci,!0)}function zi(Ci){return hi(Ci,!1)}function ri(){return Tr}function Gi(){Cr=void 0}function Rt(Ci,Hi,Yi){Tr=Ci||"",Er=Yi===void 0?Tr.length:Hi+Yi,Vt(Hi||0)}function pa(Ci){Ir=Ci}function xt(Ci){ge=Ci}function ua(Ci){cr=Ci}function Vt(Ci){e.Debug.assert(Ci>=0),n=Ci,br=Ci,Pr=Ci,Ce=0,Le=void 0,Xe=0}function St(Ci){Lr+=Ci?1:-1}}e.createScanner=Ge;var er=String.prototype.codePointAt?function(ge,Fe){return ge.codePointAt(Fe)}:function(Fe,cr){var ur=Fe.length;if(!(cr<0||cr>=ur)){var Ir=Fe.charCodeAt(cr);if(Ir>=55296&&Ir<=56319&&ur>cr+1){var dr=Fe.charCodeAt(cr+1);if(dr>=56320&&dr<=57343)return(Ir-55296)*1024+dr-56320+65536}return Ir}};function he(ge){return ge>=65536?2:1}function we(ge){if(e.Debug.assert(0<=ge&&ge<=1114111),ge<=65535)return String.fromCharCode(ge);var Fe=Math.floor((ge-65536)/1024)+55296,cr=(ge-65536)%1024+56320;return String.fromCharCode(Fe,cr)}var ye=String.fromCodePoint?function(ge){return String.fromCodePoint(ge)}:we;function Se(ge){return ye(ge)}e.utf16EncodeAsString=Se})(Pe||(Pe={}));var Pe;(function(e){function a(je){return e.pathIsRelative(je)||e.isRootedDiskPath(je)}e.isExternalModuleNameRelative=a;function O(je){return e.sortAndDeduplicate(je,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=O;function L(je){switch(e.getEmitScriptTarget(je)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=L;function W(je){return je.start+je.length}e.textSpanEnd=W;function N(je){return je.length===0}e.textSpanIsEmpty=N;function Q(je,ti){return ti>=je.start&&ti<W(je)}e.textSpanContainsPosition=Q;function pe(je,ti){return ti>=je.pos&&ti<=je.end}e.textRangeContainsPositionInclusive=pe;function F(je,ti){return ti.start>=je.start&&W(ti)<=W(je)}e.textSpanContainsTextSpan=F;function g(je,ti){return S(je,ti)!==void 0}e.textSpanOverlapsWith=g;function S(je,ti){var mt=G(je,ti);return mt&&mt.length===0?void 0:mt}e.textSpanOverlap=S;function H(je,ti){return p(je.start,je.length,ti.start,ti.length)}e.textSpanIntersectsWithTextSpan=H;function se(je,ti,mt){return p(je.start,je.length,ti,mt)}e.textSpanIntersectsWith=se;function p(je,ti,mt,Zt){var ln=je+ti,Ba=mt+Zt;return mt<=ln&&Ba>=je}e.decodedTextSpanIntersectsWith=p;function C(je,ti){return ti<=W(je)&&ti>=je.start}e.textSpanIntersectsWithPosition=C;function G(je,ti){var mt=Math.max(je.start,ti.start),Zt=Math.min(W(je),W(ti));return mt<=Zt?ue(mt,Zt):void 0}e.textSpanIntersection=G;function E(je,ti){if(je<0)throw new Error("start < 0");if(ti<0)throw new Error("length < 0");return{start:je,length:ti}}e.createTextSpan=E;function ue(je,ti){return E(je,ti-je)}e.createTextSpanFromBounds=ue;function B(je){return E(je.span.start,je.newLength)}e.textChangeRangeNewSpan=B;function re(je){return N(je.span)&&je.newLength===0}e.textChangeRangeIsUnchanged=re;function M(je,ti){if(ti<0)throw new Error("newLength < 0");return{span:je,newLength:ti}}e.createTextChangeRange=M,e.unchangedTextChangeRange=M(E(0,0),0);function x(je){if(je.length===0)return e.unchangedTextChangeRange;if(je.length===1)return je[0];for(var ti=je[0],mt=ti.span.start,Zt=W(ti.span),ln=mt+ti.newLength,Ba=1;Ba<je.length;Ba++){var Oo=je[Ba],jr=mt,is=Zt,hc=ln,nc=Oo.span.start,ns=W(Oo.span),Xs=nc+Oo.newLength;mt=Math.min(jr,nc),Zt=Math.max(is,is+(ns-hc)),ln=Math.max(Xs,Xs+(hc-ns))}return M(ue(mt,Zt),ln-mt)}e.collapseTextChangeRangesAcrossMultipleVersions=x;function ie(je){if(je&&je.kind===162){for(var ti=je;ti;ti=ti.parent)if(Vt(ti)||Bt(ti)||ti.kind===257)return ti}}e.getTypeParameterOwner=ie;function _e(je,ti){return e.hasSyntacticModifier(je,16476)&&ti.kind===170}e.isParameterPropertyDeclaration=_e;function Y(je){return Xa(je)?e.every(je.elements,Z):!1}e.isEmptyBindingPattern=Y;function Z(je){return e.isOmittedExpression(je)?!0:Y(je.name)}e.isEmptyBindingElement=Z;function k(je){for(var ti=je.parent;e.isBindingElement(ti.parent);)ti=ti.parent.parent;return ti.parent}e.walkUpBindingElementsAndPatterns=k;function I(je,ti){e.isBindingElement(je)&&(je=k(je));var mt=ti(je);return je.kind===253&&(je=je.parent),je&&je.kind===254&&(mt|=ti(je),je=je.parent),je&&je.kind===236&&(mt|=ti(je)),mt}function ne(je){return I(je,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=ne;function ee(je){return I(je,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=ee;function A(je){return I(je,function(ti){return ti.flags})}e.getCombinedNodeFlags=A,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function f(je,ti,mt){var Zt=je.toLowerCase(),ln=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Zt);if(!ln){mt&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var Ba=ln[1],Oo=ln[3];e.contains(e.supportedLocaleDirectories,Zt)&&!jr(Ba,Oo,mt)&&jr(Ba,void 0,mt),e.setUILocale(je);function jr(is,hc,nc){var ns=e.normalizePath(ti.getExecutingFilePath()),Xs=e.getDirectoryPath(ns),rc=e.combinePaths(Xs,is);if(hc&&(rc=rc+"-"+hc),rc=ti.resolvePath(e.combinePaths(rc,"diagnosticMessages.generated.json")),!ti.fileExists(rc))return!1;var uu="";try{uu=ti.readFile(rc)}catch{return nc&&nc.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,rc)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(uu))}catch{return nc&&nc.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,rc)),!1}return!0}}e.validateLocaleAndSetLanguage=f;function P(je,ti){if(je)for(;je.original!==void 0;)je=je.original;return!ti||ti(je)?je:void 0}e.getOriginalNode=P;function D(je,ti){for(;je;){var mt=ti(je);if(mt==="quit")return;if(mt)return je;je=je.parent}}e.findAncestor=D;function l(je){return(je.flags&8)===0}e.isParseTreeNode=l;function _(je,ti){if(je===void 0||l(je))return je;for(je=je.original;je;){if(l(je))return!ti||ti(je)?je:void 0;je=je.original}}e.getParseTreeNode=_;function J(je){return je.length>=2&&je.charCodeAt(0)===95&&je.charCodeAt(1)===95?"_"+je:je}e.escapeLeadingUnderscores=J;function w(je){var ti=je;return ti.length>=3&&ti.charCodeAt(0)===95&&ti.charCodeAt(1)===95&&ti.charCodeAt(2)===95?ti.substr(1):ti}e.unescapeLeadingUnderscores=w;function j(je){return w(je.escapedText)}e.idText=j;function U(je){return je.valueDeclaration&&ki(je.valueDeclaration)?j(je.valueDeclaration.name):w(je.escapedName)}e.symbolName=U;function z(je){var ti=je.parent.parent;if(!!ti){if(Ei(ti))return y(ti);switch(ti.kind){case 236:if(ti.declarationList&&ti.declarationList.declarations[0])return y(ti.declarationList.declarations[0]);break;case 237:var mt=ti.expression;switch(mt.kind===220&&mt.operatorToken.kind===63&&(mt=mt.left),mt.kind){case 205:return mt.name;case 206:var Zt=mt.argumentExpression;if(e.isIdentifier(Zt))return Zt}break;case 211:return y(ti.expression);case 249:{if(Ei(ti.statement)||pn(ti.statement))return y(ti.statement);break}}}}function y(je){var ti=de(je);return ti&&e.isIdentifier(ti)?ti:void 0}function oe(je,ti){return!!(ce(je)&&e.isIdentifier(je.name)&&j(je.name)===j(ti)||e.isVariableStatement(je)&&e.some(je.declarationList.declarations,function(mt){return oe(mt,ti)}))}e.nodeHasName=oe;function ve(je){return je.name||z(je)}e.getNameOfJSDocTypedef=ve;function ce(je){return!!je.name}e.isNamedDeclaration=ce;function m(je){switch(je.kind){case 79:return je;case 345:case 338:{var ti=je.name;if(ti.kind===160)return ti.right;break}case 207:case 220:{var mt=je;switch(e.getAssignmentDeclarationKind(mt)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(mt.left);case 7:case 8:case 9:return mt.arguments[1];default:return}}case 343:return ve(je);case 337:return z(je);case 270:{var Zt=je.expression;return e.isIdentifier(Zt)?Zt:void 0}case 206:var ln=je;if(e.isBindableStaticElementAccessExpression(ln))return ln.argumentExpression}return je.name}e.getNonAssignedNameOfDeclaration=m;function de(je){if(je!==void 0)return m(je)||(e.isFunctionExpression(je)||e.isArrowFunction(je)||e.isClassExpression(je)?ae(je):void 0)}e.getNameOfDeclaration=de;function ae(je){if(je.parent){if(e.isPropertyAssignment(je.parent)||e.isBindingElement(je.parent))return je.parent.name;if(e.isBinaryExpression(je.parent)&&je===je.parent.right){if(e.isIdentifier(je.parent.left))return je.parent.left;if(e.isAccessExpression(je.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(je.parent.left)}else if(e.isVariableDeclaration(je.parent)&&e.isIdentifier(je.parent.name))return je.parent.name}else return}e.getAssignedName=ae;function V(je,ti){if(je.name)if(e.isIdentifier(je.name)){var mt=je.name.escapedText;return Xe(je.parent,ti).filter(function(Ba){return e.isJSDocParameterTag(Ba)&&e.isIdentifier(Ba.name)&&Ba.name.escapedText===mt})}else{var Zt=je.parent.parameters.indexOf(je);e.Debug.assert(Zt>-1,"Parameters should always be in their parents' parameter list");var ln=Xe(je.parent,ti).filter(e.isJSDocParameterTag);if(Zt<ln.length)return[ln[Zt]]}return e.emptyArray}function le(je){return V(je,!1)}e.getJSDocParameterTags=le;function ke(je){return V(je,!0)}e.getJSDocParameterTagsNoCache=ke;function Ue(je,ti){var mt=je.name.escapedText;return Xe(je.parent,ti).filter(function(Zt){return e.isJSDocTemplateTag(Zt)&&Zt.typeParameters.some(function(ln){return ln.name.escapedText===mt})})}function He(je){return Ue(je,!1)}e.getJSDocTypeParameterTags=He;function ar(je){return Ue(je,!0)}e.getJSDocTypeParameterTagsNoCache=ar;function gr(je){return!!Jr(je,e.isJSDocParameterTag)}e.hasJSDocParameterTags=gr;function me(je){return Jr(je,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=me;function Ge(je){return Rr(je,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=Ge;function er(je){return Jr(je,e.isJSDocClassTag)}e.getJSDocClassTag=er;function he(je){return Jr(je,e.isJSDocPublicTag)}e.getJSDocPublicTag=he;function we(je){return Jr(je,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=we;function ye(je){return Jr(je,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=ye;function Se(je){return Jr(je,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=Se;function ge(je){return Jr(je,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=ge;function Fe(je){return Jr(je,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Fe;function cr(je){return Jr(je,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=cr;function ur(je){return Jr(je,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=ur;function Ir(je){return Jr(je,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=Ir;function dr(je){return Jr(je,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=dr;function Br(je){return Jr(je,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=Br;function Tr(je){return Jr(je,e.isJSDocEnumTag)}e.getJSDocEnumTag=Tr;function n(je){return Jr(je,e.isJSDocThisTag)}e.getJSDocThisTag=n;function Er(je){return Jr(je,e.isJSDocReturnTag)}e.getJSDocReturnTag=Er;function br(je){return Jr(je,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=br;function Pr(je){var ti=Jr(je,e.isJSDocTypeTag);if(ti&&ti.typeExpression&&ti.typeExpression.type)return ti}e.getJSDocTypeTag=Pr;function Ce(je){var ti=Jr(je,e.isJSDocTypeTag);return!ti&&e.isParameter(je)&&(ti=e.find(le(je),function(mt){return!!mt.typeExpression})),ti&&ti.typeExpression&&ti.typeExpression.type}e.getJSDocType=Ce;function Le(je){var ti=Er(je);if(ti&&ti.typeExpression)return ti.typeExpression.type;var mt=Pr(je);if(mt&&mt.typeExpression){var Zt=mt.typeExpression.type;if(e.isTypeLiteralNode(Zt)){var ln=e.find(Zt.members,e.isCallSignatureDeclaration);return ln&&ln.type}if(e.isFunctionTypeNode(Zt)||e.isJSDocFunctionType(Zt))return Zt.type}}e.getJSDocReturnType=Le;function Xe(je,ti){var mt=je.jsDocCache;if(mt===void 0||ti){var Zt=e.getJSDocCommentsAndTags(je,ti);e.Debug.assert(Zt.length<2||Zt[0]!==Zt[1]),mt=e.flatMap(Zt,function(ln){return e.isJSDoc(ln)?ln.tags:ln}),ti||(je.jsDocCache=mt)}return mt}function Cr(je){return Xe(je,!1)}e.getJSDocTags=Cr;function Lr(je){return Xe(je,!0)}e.getJSDocTagsNoCache=Lr;function Jr(je,ti,mt){return e.find(Xe(je,mt),ti)}function Rr(je,ti){return Cr(je).filter(ti)}e.getAllJSDocTags=Rr;function ci(je,ti){return Cr(je).filter(function(mt){return mt.kind===ti})}e.getAllJSDocTagsOfKind=ci;function be(je){return typeof je=="string"?je:je==null?void 0:je.map(function(ti){return ti.kind===319?ti.text:or(ti)}).join("")}e.getTextOfJSDocComment=be;function or(je){var ti=je.kind===322?"link":je.kind===323?"linkcode":"linkplain",mt=je.name?e.entityNameToString(je.name):"",Zt=je.name&&je.text.startsWith("://")?"":" ";return"{@".concat(ti," ").concat(mt).concat(Zt).concat(je.text,"}")}function Kr(je){if(e.isJSDocSignature(je))return e.emptyArray;if(e.isJSDocTypeAlias(je))return e.Debug.assert(je.parent.kind===318),e.flatMap(je.parent.tags,function(Zt){return e.isJSDocTemplateTag(Zt)?Zt.typeParameters:void 0});if(je.typeParameters)return je.typeParameters;if(e.isInJSFile(je)){var ti=e.getJSDocTypeParameterDeclarations(je);if(ti.length)return ti;var mt=Ce(je);if(mt&&e.isFunctionTypeNode(mt)&&mt.typeParameters)return mt.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Kr;function ei(je){return je.constraint?je.constraint:e.isJSDocTemplateTag(je.parent)&&je===je.parent.typeParameters[0]?je.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=ei;function li(je){return je.kind===79||je.kind===80}e.isMemberName=li;function Si(je){return je.kind===172||je.kind===171}e.isGetOrSetAccessorDeclaration=Si;function qi(je){return e.isPropertyAccessExpression(je)&&!!(je.flags&32)}e.isPropertyAccessChain=qi;function ft(je){return e.isElementAccessExpression(je)&&!!(je.flags&32)}e.isElementAccessChain=ft;function bt(je){return e.isCallExpression(je)&&!!(je.flags&32)}e.isCallChain=bt;function aa(je){var ti=je.kind;return!!(je.flags&32)&&(ti===205||ti===206||ti===207||ti===229)}e.isOptionalChain=aa;function sr(je){return aa(je)&&!e.isNonNullExpression(je)&&!!je.questionDotToken}e.isOptionalChainRoot=sr;function Ji(je){return sr(je.parent)&&je.parent.expression===je}e.isExpressionOfOptionalChainRoot=Ji;function di(je){return!aa(je.parent)||sr(je.parent)||je!==je.parent.expression}e.isOutermostOptionalChain=di;function X(je){return je.kind===220&&je.operatorToken.kind===60}e.isNullishCoalesce=X;function Ye(je){return e.isTypeReferenceNode(je)&&e.isIdentifier(je.typeName)&&je.typeName.escapedText==="const"&&!je.typeArguments}e.isConstTypeReference=Ye;function Be(je){return e.skipOuterExpressions(je,8)}e.skipPartiallyEmittedExpressions=Be;function Qe(je){return e.isNonNullExpression(je)&&!!(je.flags&32)}e.isNonNullChain=Qe;function _r(je){return je.kind===245||je.kind===244}e.isBreakOrContinueStatement=_r;function hr(je){return je.kind===273||je.kind===272}e.isNamedExportBindings=hr;function Dr(je){switch(je.kind){case 300:case 301:return!0;default:return!1}}e.isUnparsedTextLike=Dr;function Me(je){return Dr(je)||je.kind===298||je.kind===302}e.isUnparsedNode=Me;function v(je){return je.kind===345||je.kind===338}e.isJSDocPropertyLikeTag=v;function xe(je){return ze(je.kind)}e.isNode=xe;function ze(je){return je>=160}e.isNodeKind=ze;function Je(je){return je>=0&&je<=159}e.isTokenKind=Je;function Oe(je){return Je(je.kind)}e.isToken=Oe;function Fr(je){return je.hasOwnProperty("pos")&&je.hasOwnProperty("end")}e.isNodeArray=Fr;function Xr(je){return 8<=je&&je<=14}e.isLiteralKind=Xr;function Or(je){return Xr(je.kind)}e.isLiteralExpression=Or;function We(je){return 14<=je&&je<=17}e.isTemplateLiteralKind=We;function mr(je){return We(je.kind)}e.isTemplateLiteralToken=mr;function Nr(je){var ti=je.kind;return ti===16||ti===17}e.isTemplateMiddleOrTemplateTail=Nr;function Ur(je){return e.isImportSpecifier(je)||e.isExportSpecifier(je)}e.isImportOrExportSpecifier=Ur;function si(je){switch(je.kind){case 269:case 274:return je.isTypeOnly||je.parent.parent.isTypeOnly;case 267:return je.parent.isTypeOnly;case 266:case 264:return je.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=si;function mi(je){return e.isStringLiteral(je)||e.isIdentifier(je)}e.isAssertionKey=mi;function Ti(je){return je.kind===10||We(je.kind)}e.isStringTextContainingNode=Ti;function hi(je){return e.isIdentifier(je)&&(je.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=hi;function ki(je){return(e.isPropertyDeclaration(je)||Oi(je))&&e.isPrivateIdentifier(je.name)}e.isPrivateIdentifierClassElementDeclaration=ki;function Ui(je){return e.isPropertyAccessExpression(je)&&e.isPrivateIdentifier(je.name)}e.isPrivateIdentifierPropertyAccessExpression=Ui;function zi(je){switch(je){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}e.isModifierKind=zi;function ri(je){return!!(e.modifierToFlag(je)&16476)}e.isParameterPropertyModifier=ri;function Gi(je){return ri(je)||je===124||je===158}e.isClassMemberModifier=Gi;function Rt(je){return zi(je.kind)}e.isModifier=Rt;function pa(je){var ti=je.kind;return ti===160||ti===79}e.isEntityName=pa;function xt(je){var ti=je.kind;return ti===79||ti===80||ti===10||ti===8||ti===161}e.isPropertyName=xt;function ua(je){var ti=je.kind;return ti===79||ti===200||ti===201}e.isBindingName=ua;function Vt(je){return!!je&&yt(je.kind)}e.isFunctionLike=Vt;function St(je){return!!je&&(yt(je.kind)||e.isClassStaticBlockDeclaration(je))}e.isFunctionLikeOrClassStaticBlockDeclaration=St;function Ci(je){return je&&Yi(je.kind)}e.isFunctionLikeDeclaration=Ci;function Hi(je){return je.kind===110||je.kind===95}e.isBooleanLiteral=Hi;function Yi(je){switch(je){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function yt(je){switch(je){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return Yi(je)}}e.isFunctionLikeKind=yt;function gt(je){return e.isSourceFile(je)||e.isModuleBlock(je)||e.isBlock(je)&&Vt(je.parent)}e.isFunctionOrModuleBlock=gt;function oa(je){var ti=je.kind;return ti===170||ti===166||ti===168||ti===171||ti===172||ti===175||ti===169||ti===233}e.isClassElement=oa;function Bt(je){return je&&(je.kind===256||je.kind===225)}e.isClassLike=Bt;function Pi(je){return je&&(je.kind===171||je.kind===172)}e.isAccessor=Pi;function Oi(je){switch(je.kind){case 168:case 171:case 172:return!0;default:return!1}}e.isMethodOrAccessor=Oi;function wi(je){var ti=je.kind;return ti===174||ti===173||ti===165||ti===167||ti===175}e.isTypeElement=wi;function Qr(je){return wi(je)||oa(je)}e.isClassOrTypeElement=Qr;function Ct(je){var ti=je.kind;return ti===294||ti===295||ti===296||ti===168||ti===171||ti===172}e.isObjectLiteralElementLike=Ct;function tt(je){return e.isTypeNodeKind(je.kind)}e.isTypeNode=tt;function ta(je){switch(je.kind){case 178:case 179:return!0}return!1}e.isFunctionOrConstructorTypeNode=ta;function Xa(je){if(je){var ti=je.kind;return ti===201||ti===200}return!1}e.isBindingPattern=Xa;function on(je){var ti=je.kind;return ti===203||ti===204}e.isAssignmentPattern=on;function qr(je){var ti=je.kind;return ti===202||ti===226}e.isArrayBindingElement=qr;function bn(je){switch(je.kind){case 253:case 163:case 202:return!0}return!1}e.isDeclarationBindingElement=bn;function Rn(je){return Sn(je)||Zn(je)}e.isBindingOrAssignmentPattern=Rn;function Sn(je){switch(je.kind){case 200:case 204:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Sn;function zn(je){switch(je.kind){case 202:case 294:case 295:case 296:return!0}return!1}e.isObjectBindingOrAssignmentElement=zn;function Zn(je){switch(je.kind){case 201:case 203:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Zn;function ho(je){var ti=je.kind;return ti===205||ti===160||ti===199}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=ho;function Vo(je){var ti=je.kind;return ti===205||ti===160}e.isPropertyAccessOrQualifiedName=Vo;function Cn(je){switch(je.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}}e.isCallLikeExpression=Cn;function go(je){return je.kind===207||je.kind===208}e.isCallOrNewExpression=go;function ro(je){var ti=je.kind;return ti===222||ti===14}e.isTemplateLiteral=ro;function Ko(je){return rs(Be(je).kind)}e.isLeftHandSideExpression=Ko;function rs(je){switch(je){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function rn(je){return Do(Be(je).kind)}e.isUnaryExpression=rn;function Do(je){switch(je){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return rs(je)}}function io(je){switch(je.kind){case 219:return!0;case 218:return je.operator===45||je.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=io;function pn(je){return Qn(Be(je).kind)}e.isExpression=pn;function Qn(je){switch(je){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return Do(je)}}function wo(je){var ti=je.kind;return ti===210||ti===228}e.isAssertionExpression=wo;function xo(je){return e.isNotEmittedStatement(je)||e.isPartiallyEmittedExpression(je)}e.isNotEmittedOrPartiallyEmittedNode=xo;function ds(je,ti){switch(je.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return ti&&ds(je.statement,ti)}return!1}e.isIterationStatement=ds;function No(je){return e.isExportAssignment(je)||e.isExportDeclaration(je)}e.isScopeMarker=No;function Ts(je){return e.some(je,No)}e.hasScopeMarker=Ts;function Ms(je){return!e.isAnyImportOrReExport(je)&&!e.isExportAssignment(je)&&!e.hasSyntacticModifier(je,1)&&!e.isAmbientModule(je)}e.needsScopeMarker=Ms;function xr(je){return e.isAnyImportOrReExport(je)||e.isExportAssignment(je)||e.hasSyntacticModifier(je,1)}e.isExternalModuleIndicator=xr;function bi(je){return je.kind===242||je.kind===243}e.isForInOrOfStatement=bi;function ut(je){return e.isBlock(je)||pn(je)}e.isConciseBody=ut;function Ht(je){return e.isBlock(je)}e.isFunctionBody=Ht;function Ka(je){return e.isVariableDeclarationList(je)||pn(je)}e.isForInitializer=Ka;function an(je){var ti=je.kind;return ti===261||ti===260||ti===79}e.isModuleBody=an;function Ke(je){var ti=je.kind;return ti===261||ti===260}e.isNamespaceBody=Ke;function h(je){var ti=je.kind;return ti===79||ti===260}e.isJSDocNamespaceBody=h;function Ee(je){var ti=je.kind;return ti===268||ti===267}e.isNamedImportBindings=Ee;function Re(je){return je.kind===260||je.kind===259}e.isModuleOrEnumDeclaration=Re;function nr(je){return je===213||je===202||je===256||je===225||je===169||je===170||je===259||je===297||je===274||je===255||je===212||je===171||je===266||je===264||je===269||je===257||je===284||je===168||je===167||je===260||je===263||je===267||je===273||je===163||je===294||je===166||je===165||je===172||je===295||je===258||je===162||je===253||je===343||je===336||je===345}function Gr(je){return je===255||je===275||je===256||je===257||je===258||je===259||je===260||je===265||je===264||je===271||je===270||je===263}function _i(je){return je===245||je===244||je===252||je===239||je===237||je===235||je===242||je===243||je===241||je===238||je===249||je===246||je===248||je===250||je===251||je===236||je===240||je===247||je===347||je===351||je===350}function Ei(je){return je.kind===162?je.parent&&je.parent.kind!==342||e.isInJSFile(je):nr(je.kind)}e.isDeclaration=Ei;function Ki(je){return Gr(je.kind)}e.isDeclarationStatement=Ki;function Nt(je){return _i(je.kind)}e.isStatementButNotDeclaration=Nt;function ca(je){var ti=je.kind;return _i(ti)||Gr(ti)||Fa(je)}e.isStatement=ca;function Fa(je){return je.kind!==234||je.parent!==void 0&&(je.parent.kind===251||je.parent.kind===291)?!1:!e.isFunctionBlock(je)}function Ta(je){var ti=je.kind;return _i(ti)||Gr(ti)||ti===234}e.isStatementOrBlock=Ta;function In(je){var ti=je.kind;return ti===276||ti===160||ti===79}e.isModuleReference=In;function so(je){var ti=je.kind;return ti===108||ti===79||ti===205}e.isJsxTagNameExpression=so;function as(je){var ti=je.kind;return ti===277||ti===287||ti===278||ti===11||ti===281}e.isJsxChild=as;function Ho(je){var ti=je.kind;return ti===284||ti===286}e.isJsxAttributeLike=Ho;function Ds(je){var ti=je.kind;return ti===10||ti===287}e.isStringLiteralOrJsxExpression=Ds;function Os(je){var ti=je.kind;return ti===279||ti===278}e.isJsxOpeningLikeElement=Os;function mc(je){var ti=je.kind;return ti===288||ti===289}e.isCaseOrDefaultClause=mc;function Hs(je){return je.kind>=307&&je.kind<=345}e.isJSDocNode=Hs;function Mi(je){return je.kind===318||je.kind===317||je.kind===319||et(je)||$t(je)||e.isJSDocTypeLiteral(je)||e.isJSDocSignature(je)}e.isJSDocCommentContainingNode=Mi;function $t(je){return je.kind>=325&&je.kind<=345}e.isJSDocTag=$t;function ga(je){return je.kind===172}e.isSetAccessor=ga;function xn(je){return je.kind===171}e.isGetAccessor=xn;function yn(je){var ti=je.jsDoc;return!!ti&&ti.length>0}e.hasJSDocNodes=yn;function An(je){return!!je.type}e.hasType=An;function Pa(je){return!!je.initializer}e.hasInitializer=Pa;function Mn(je){switch(je.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}}e.hasOnlyExpressionInitializer=Mn;function ao(je){return je.kind===284||je.kind===286||Ct(je)}e.isObjectLiteralElement=ao;function co(je){return je.kind===177||je.kind===227}e.isTypeReferenceType=co;var De=1073741823;function zr(je){for(var ti=De,mt=0,Zt=je;mt<Zt.length;mt++){var ln=Zt[mt];if(!!ln.length){for(var Ba=0;Ba<ln.length&&Ba<ti&&e.isWhiteSpaceLike(ln.charCodeAt(Ba));Ba++);if(Ba<ti&&(ti=Ba),ti===0)return 0}}return ti===De?void 0:ti}e.guessIndentation=zr;function xi(je){return je.kind===10||je.kind===14}e.isStringLiteralLike=xi;function et(je){return je.kind===322||je.kind===323||je.kind===324}e.isJSDocLinkLike=et})(Pe||(Pe={}));var Pe;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function a(c,$){var pr=c.declarations;if(pr)for(var Yr=0,ji=pr;Yr<ji.length;Yr++){var wt=ji[Yr];if(wt.kind===$)return wt}}e.getDeclarationOfKind=a;function O(c,$){return e.filter(c.declarations||e.emptyArray,function(pr){return pr.kind===$})}e.getDeclarationsOfKind=O;function L(c){var $=new e.Map;if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];$.set(ji.escapedName,ji)}return $}e.createSymbolTable=L;function W(c){return(c.flags&33554432)!==0}e.isTransientSymbol=W;var N=Q();function Q(){var c="",$=function(pr){return c+=pr};return{getText:function(){return c},write:$,rawWrite:$,writeKeyword:$,writeOperator:$,writePunctuation:$,writeSpace:$,writeStringLiteral:$,writeLiteral:$,writeParameter:$,writeProperty:$,writeSymbol:function(pr,Yr){return $(pr)},writeTrailingSemicolon:$,writeComment:$,getTextPos:function(){return c.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!c.length&&e.isWhiteSpaceLike(c.charCodeAt(c.length-1))},writeLine:function(){return c+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return c=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function pe(c,$){return c.configFilePath!==$.configFilePath||F(c,$)}e.changesAffectModuleResolution=pe;function F(c,$){return S(c,$,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=F;function g(c,$){return S(c,$,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=g;function S(c,$,pr){return c!==$&&pr.some(function(Yr){return!Rg(Qd(c,Yr),Qd($,Yr))})}e.optionsHaveChanges=S;function H(c,$){for(;;){var pr=$(c);if(pr==="quit")return;if(pr!==void 0)return pr;if(e.isSourceFile(c))return;c=c.parent}}e.forEachAncestor=H;function se(c,$){for(var pr=c.entries(),Yr=pr.next();!Yr.done;Yr=pr.next()){var ji=Yr.value,wt=ji[0],Lt=ji[1],Ea=$(Lt,wt);if(Ea)return Ea}}e.forEachEntry=se;function p(c,$){for(var pr=c.keys(),Yr=pr.next();!Yr.done;Yr=pr.next()){var ji=$(Yr.value);if(ji)return ji}}e.forEachKey=p;function C(c,$){c.forEach(function(pr,Yr){$.set(Yr,pr)})}e.copyEntries=C;function G(c){var $=N.getText();try{return c(N),N.getText()}finally{N.clear(),N.writeKeyword($)}}e.usingSingleLineStringWriter=G;function E(c){return c.end-c.pos}e.getFullWidth=E;function ue(c,$,pr){return c&&c.resolvedModules&&c.resolvedModules.get($,pr)}e.getResolvedModule=ue;function B(c,$,pr,Yr){c.resolvedModules||(c.resolvedModules=e.createModeAwareCache()),c.resolvedModules.set($,Yr,pr)}e.setResolvedModule=B;function re(c,$,pr){c.resolvedTypeReferenceDirectiveNames||(c.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),c.resolvedTypeReferenceDirectiveNames.set($,void 0,pr)}e.setResolvedTypeReferenceDirective=re;function M(c,$){return c.path===$.path&&!c.prepend==!$.prepend&&!c.circular==!$.circular}e.projectReferenceIsEqualTo=M;function x(c,$){return c.isExternalLibraryImport===$.isExternalLibraryImport&&c.extension===$.extension&&c.resolvedFileName===$.resolvedFileName&&c.originalPath===$.originalPath&&ie(c.packageId,$.packageId)}e.moduleResolutionIsEqualTo=x;function ie(c,$){return c===$||!!c&&!!$&&c.name===$.name&&c.subModuleName===$.subModuleName&&c.version===$.version}function _e(c){var $=c.name,pr=c.subModuleName;return pr?"".concat($,"/").concat(pr):$}e.packageIdToPackageName=_e;function Y(c){return"".concat(_e(c),"@").concat(c.version)}e.packageIdToString=Y;function Z(c,$){return c.resolvedFileName===$.resolvedFileName&&c.primary===$.primary&&c.originalPath===$.originalPath}e.typeDirectiveIsEqualTo=Z;function k(c,$,pr,Yr,ji){e.Debug.assert(c.length===$.length);for(var wt=0;wt<c.length;wt++){var Lt=$[wt],Ea=pr&&pr.get(c[wt],Yr&&e.getModeForResolutionAtIndex(Yr,wt)),vn=Ea?!Lt||!ji(Ea,Lt):Lt;if(vn)return!0}return!1}e.hasChangesInResolutions=k;function I(c){return ne(c),(c.flags&262144)!==0}e.containsParseError=I;function ne(c){if(!(c.flags&524288)){var $=(c.flags&65536)!==0||e.forEachChild(c,I);$&&(c.flags|=262144),c.flags|=524288}}function ee(c){for(;c&&c.kind!==303;)c=c.parent;return c}e.getSourceFileOfNode=ee;function A(c){return ee(c.valueDeclaration||Cr(c))}e.getSourceFileOfModule=A;function f(c,$){return!!c&&(c.scriptKind===1||c.scriptKind===2)&&!c.checkJsDirective&&$===void 0}e.isPlainJsFile=f;function P(c){switch(c.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1}e.isStatementWithLocals=P;function D(c,$){return e.Debug.assert(c>=0),e.getLineStarts($)[c]}e.getStartPositionOfLine=D;function l(c){var $=ee(c),pr=e.getLineAndCharacterOfPosition($,c.pos);return"".concat($.fileName,"(").concat(pr.line+1,",").concat(pr.character+1,")")}e.nodePosToString=l;function _(c,$){e.Debug.assert(c>=0);var pr=e.getLineStarts($),Yr=c,ji=$.text;if(Yr+1===pr.length)return ji.length-1;var wt=pr[Yr],Lt=pr[Yr+1]-1;for(e.Debug.assert(e.isLineBreak(ji.charCodeAt(Lt)));wt<=Lt&&e.isLineBreak(ji.charCodeAt(Lt));)Lt--;return Lt}e.getEndLinePosition=_;function J(c,$,pr){return!(pr&&pr($))&&!c.identifiers.has($)}e.isFileLevelUniqueName=J;function w(c){return c===void 0?!0:c.pos===c.end&&c.pos>=0&&c.kind!==1}e.nodeIsMissing=w;function j(c){return!w(c)}e.nodeIsPresent=j;function U(c,$,pr){if($===void 0||$.length===0)return c;for(var Yr=0;Yr<c.length&&pr(c[Yr]);++Yr);return c.splice.apply(c,qe([Yr,0],$,!1)),c}function z(c,$,pr){if($===void 0)return c;for(var Yr=0;Yr<c.length&&pr(c[Yr]);++Yr);return c.splice(Yr,0,$),c}function y(c){return Ti(c)||!!(he(c)&1048576)}function oe(c,$){return U(c,$,Ti)}e.insertStatementsAfterStandardPrologue=oe;function ve(c,$){return U(c,$,y)}e.insertStatementsAfterCustomPrologue=ve;function ce(c,$){return z(c,$,Ti)}e.insertStatementAfterStandardPrologue=ce;function m(c,$){return z(c,$,y)}e.insertStatementAfterCustomPrologue=m;function de(c,$,pr){if(c.charCodeAt($+1)===47&&$+2<pr&&c.charCodeAt($+2)===47){var Yr=c.substring($,pr);return!!(e.fullTripleSlashReferencePathRegEx.test(Yr)||e.fullTripleSlashAMDReferencePathRegEx.test(Yr)||Rt.test(Yr)||pa.test(Yr))}return!1}e.isRecognizedTripleSlashComment=de;function ae(c,$){return c.charCodeAt($+1)===42&&c.charCodeAt($+2)===33}e.isPinnedComment=ae;function V(c,$){var pr=new e.Map($.map(function(Lt){return["".concat(e.getLineAndCharacterOfPosition(c,Lt.range.end).line),Lt]})),Yr=new e.Map;return{getUnusedExpectations:ji,markUsed:wt};function ji(){return e.arrayFrom(pr.entries()).filter(function(Lt){var Ea=Lt[0],vn=Lt[1];return vn.type===0&&!Yr.get(Ea)}).map(function(Lt){var Ea=Lt[0],vn=Lt[1];return vn})}function wt(Lt){return pr.has("".concat(Lt))?(Yr.set("".concat(Lt),!0),!0):!1}}e.createCommentDirectivesMap=V;function le(c,$,pr){return w(c)?c.pos:e.isJSDocNode(c)||c.kind===11?e.skipTrivia(($||ee(c)).text,c.pos,!1,!0):pr&&e.hasJSDocNodes(c)?le(c.jsDoc[0],$):c.kind===346&&c._children.length>0?le(c._children[0],$,pr):e.skipTrivia(($||ee(c)).text,c.pos,!1,!1,Nt(c))}e.getTokenPosOfNode=le;function ke(c,$){return w(c)||!c.decorators?le(c,$):e.skipTrivia(($||ee(c)).text,c.decorators.end)}e.getNonDecoratorTokenPosOfNode=ke;function Ue(c,$,pr){return pr===void 0&&(pr=!1),gr(c.text,$,pr)}e.getSourceTextOfNodeFromSourceFile=Ue;function He(c){return!!e.findAncestor(c,e.isJSDocTypeExpression)}function ar(c){return!!(e.isExportDeclaration(c)&&c.exportClause&&e.isNamespaceExport(c.exportClause)&&c.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=ar;function gr(c,$,pr){if(pr===void 0&&(pr=!1),w($))return"";var Yr=c.substring(pr?$.pos:e.skipTrivia(c,$.pos),$.end);return He($)&&(Yr=Yr.split(/\r\n|\n|\r/).map(function(ji){return e.trimStringStart(ji.replace(/^\s*\*/,""))}).join(`
|
|
`)),Yr}e.getTextOfNodeFromSourceText=gr;function me(c,$){return $===void 0&&($=!1),Ue(ee(c),c,$)}e.getTextOfNode=me;function Ge(c){return c.pos}function er(c,$){return e.binarySearch(c,$,Ge,e.compareValues)}e.indexOfNode=er;function he(c){var $=c.emitNode;return $&&$.flags||0}e.getEmitFlags=he;function we(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}}e.getScriptTargetFeatures=we;var ye;(function(c){c[c.None=0]="None",c[c.NeverAsciiEscape=1]="NeverAsciiEscape",c[c.JsxAttributeEscape=2]="JsxAttributeEscape",c[c.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",c[c.AllowNumericSeparator=8]="AllowNumericSeparator"})(ye=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function Se(c,$,pr){var Yr;if(ge(c,pr))return Ue($,c);switch(c.kind){case 10:{var ji=pr&2?pu:pr&1||he(c)&16777216?Jc:nf;return c.singleQuote?"'"+ji(c.text,39)+"'":'"'+ji(c.text,34)+'"'}case 14:case 15:case 16:case 17:{var ji=pr&1||he(c)&16777216?Jc:nf,wt=(Yr=c.rawText)!==null&&Yr!==void 0?Yr:R_(ji(c.text,96));switch(c.kind){case 14:return"`"+wt+"`";case 15:return"`"+wt+"${";case 16:return"}"+wt+"${";case 17:return"}"+wt+"`"}break}case 8:case 9:return c.text;case 13:return pr&4&&c.isUnterminated?c.text+(c.text.charCodeAt(c.text.length-1)===92?" /":"/"):c.text}return e.Debug.fail("Literal kind '".concat(c.kind,"' not accounted for."))}e.getLiteralText=Se;function ge(c,$){return mp(c)||!c.parent||$&4&&c.isUnterminated?!1:e.isNumericLiteral(c)&&c.numericLiteralFlags&512?!!($&8):!e.isBigIntLiteral(c)}function Fe(c){return e.isString(c)?'"'+nf(c)+'"':""+c}e.getTextOfConstantValue=Fe;function cr(c){return e.getBaseFileName(c).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=cr;function ur(c){return(e.getCombinedNodeFlags(c)&3)!==0||Ir(c)}e.isBlockOrCatchScoped=ur;function Ir(c){var $=a_(c);return $.kind===253&&$.parent.kind===291}e.isCatchClauseVariableDeclarationOrBindingElement=Ir;function dr(c){return e.isModuleDeclaration(c)&&(c.name.kind===10||Ce(c))}e.isAmbientModule=dr;function Br(c){return e.isModuleDeclaration(c)&&c.name.kind===10}e.isModuleWithStringLiteralName=Br;function Tr(c){return e.isModuleDeclaration(c)&&e.isStringLiteral(c.name)}e.isNonGlobalAmbientModule=Tr;function n(c){return e.isModuleDeclaration(c)||e.isIdentifier(c)}e.isEffectiveModuleDeclaration=n;function Er(c){return br(c.valueDeclaration)}e.isShorthandAmbientModuleSymbol=Er;function br(c){return!!c&&c.kind===260&&!c.body}function Pr(c){return c.kind===303||c.kind===260||e.isFunctionLikeOrClassStaticBlockDeclaration(c)}e.isBlockScopedContainerTopLevel=Pr;function Ce(c){return!!(c.flags&1024)}e.isGlobalScopeAugmentation=Ce;function Le(c){return dr(c)&&Xe(c)}e.isExternalModuleAugmentation=Le;function Xe(c){switch(c.parent.kind){case 303:return e.isExternalModule(c.parent);case 261:return dr(c.parent.parent)&&e.isSourceFile(c.parent.parent.parent)&&!e.isExternalModule(c.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=Xe;function Cr(c){var $;return($=c.declarations)===null||$===void 0?void 0:$.find(function(pr){return!Le(pr)&&!(e.isModuleDeclaration(pr)&&Ce(pr))})}e.getNonAugmentationDeclaration=Cr;function Lr(c){return c===e.ModuleKind.CommonJS||c===e.ModuleKind.Node12||c===e.ModuleKind.NodeNext}function Jr(c,$){return e.isExternalModule(c)||$.isolatedModules||Lr(_t($))&&!!c.commonJsModuleIndicator}e.isEffectiveExternalModule=Jr;function Rr(c,$){switch(c.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return c.isDeclarationFile?!1:Pl($,"alwaysStrict")||e.startsWithUseStrict(c.statements)?!0:e.isExternalModule(c)||$.isolatedModules?_t($)>=e.ModuleKind.ES2015?!0:!$.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=Rr;function ci(c,$){switch(c.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration($)}return!1}e.isBlockScope=ci;function be(c){switch(c.kind){case 336:case 343:case 321:return!0;default:return e.assertType(c),or(c)}}e.isDeclarationWithTypeParameters=be;function or(c){switch(c.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(c),!1}}e.isDeclarationWithTypeParameterChildren=or;function Kr(c){switch(c.kind){case 265:case 264:return!0;default:return!1}}e.isAnyImportSyntax=Kr;function ei(c){switch(c.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=ei;function li(c){return Si(c)||e.isModuleDeclaration(c)||e.isImportTypeNode(c)||Ur(c)}e.hasPossibleExternalModuleReference=li;function Si(c){return Kr(c)||e.isExportDeclaration(c)}e.isAnyImportOrReExport=Si;function qi(c){return e.findAncestor(c.parent,function($){return ci($,$.parent)})}e.getEnclosingBlockScopeContainer=qi;function ft(c,$){for(var pr=qi(c);pr;)$(pr),pr=qi(pr)}e.forEachEnclosingBlockScopeContainer=ft;function bt(c){return!c||E(c)===0?"(Missing)":me(c)}e.declarationNameToString=bt;function aa(c){return c.declaration?bt(c.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=aa;function sr(c){return c.kind===161&&!el(c.expression)}e.isComputedNonLiteralName=sr;function Ji(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(c.text);case 161:return el(c.expression)?e.escapeLeadingUnderscores(c.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(c)}}e.getTextOfPropertyName=Ji;function di(c){switch(c.kind){case 108:return"this";case 80:case 79:return E(c)===0?e.idText(c):me(c);case 160:return di(c.left)+"."+di(c.right);case 205:return e.isIdentifier(c.name)||e.isPrivateIdentifier(c.name)?di(c.expression)+"."+di(c.name):e.Debug.assertNever(c.name);case 309:return di(c.left)+di(c.right);default:return e.Debug.assertNever(c)}}e.entityNameToString=di;function X(c,$,pr,Yr,ji,wt){var Lt=ee(c);return Be(Lt,c,$,pr,Yr,ji,wt)}e.createDiagnosticForNode=X;function Ye(c,$,pr,Yr,ji,wt,Lt){var Ea=e.skipTrivia(c.text,$.pos);return od(c,Ea,$.end-Ea,pr,Yr,ji,wt,Lt)}e.createDiagnosticForNodeArray=Ye;function Be(c,$,pr,Yr,ji,wt,Lt){var Ea=Je(c,$);return od(c,Ea.start,Ea.length,pr,Yr,ji,wt,Lt)}e.createDiagnosticForNodeInSourceFile=Be;function Qe(c,$,pr){var Yr=ee(c),ji=Je(Yr,c);return hr(Yr,ji.start,ji.length,$,pr)}e.createDiagnosticForNodeFromMessageChain=Qe;function _r(c,$,pr){e.Debug.assertGreaterThanOrEqual($,0),e.Debug.assertGreaterThanOrEqual(pr,0),c&&(e.Debug.assertLessThanOrEqual($,c.text.length),e.Debug.assertLessThanOrEqual($+pr,c.text.length))}function hr(c,$,pr,Yr,ji){return _r(c,$,pr),{file:c,start:$,length:pr,code:Yr.code,category:Yr.category,messageText:Yr.next?Yr:Yr.messageText,relatedInformation:ji}}e.createFileDiagnosticFromMessageChain=hr;function Dr(c,$,pr){return{file:c,start:0,length:0,code:$.code,category:$.category,messageText:$.next?$:$.messageText,relatedInformation:pr}}e.createDiagnosticForFileFromMessageChain=Dr;function Me(c){return typeof c.messageText=="string"?{code:c.code,category:c.category,messageText:c.messageText,next:c.next}:c.messageText}e.createDiagnosticMessageChainFromDiagnostic=Me;function v(c,$,pr){return{file:c,start:$.pos,length:$.end-$.pos,code:pr.code,category:pr.category,messageText:pr.message}}e.createDiagnosticForRange=v;function xe(c,$){var pr=e.createScanner(c.languageVersion,!0,c.languageVariant,c.text,void 0,$);pr.scan();var Yr=pr.getTokenPos();return e.createTextSpanFromBounds(Yr,pr.getTextPos())}e.getSpanOfTokenAtPosition=xe;function ze(c,$){var pr=e.skipTrivia(c.text,$.pos);if($.body&&$.body.kind===234){var Yr=e.getLineAndCharacterOfPosition(c,$.body.pos).line,ji=e.getLineAndCharacterOfPosition(c,$.body.end).line;if(Yr<ji)return e.createTextSpan(pr,_(Yr,c)-pr+1)}return e.createTextSpanFromBounds(pr,$.end)}function Je(c,$){var pr=$;switch($.kind){case 303:var Yr=e.skipTrivia(c.text,0,!1);return Yr===c.text.length?e.createTextSpan(0,0):xe(c,Yr);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:pr=$.name;break;case 213:return ze(c,$);case 288:case 289:var ji=e.skipTrivia(c.text,$.pos),wt=$.statements.length>0?$.statements[0].pos:$.end;return e.createTextSpanFromBounds(ji,wt)}if(pr===void 0)return xe(c,$.pos);e.Debug.assert(!e.isJSDoc(pr));var Lt=w(pr),Ea=Lt||e.isJsxText($)?pr.pos:e.skipTrivia(c.text,pr.pos);return Lt?(e.Debug.assert(Ea===pr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ea===pr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(Ea>=pr.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(Ea<=pr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(Ea,pr.end)}e.getErrorSpanForNode=Je;function Oe(c){return(c.externalModuleIndicator||c.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Oe;function Fr(c){return c.scriptKind===6}e.isJsonSourceFile=Fr;function Xr(c){return!!(e.getCombinedModifierFlags(c)&2048)}e.isEnumConst=Xr;function Or(c){return!!(e.getCombinedModifierFlags(c)&64&&!e.isParameterPropertyDeclaration(c,c.parent))}e.isDeclarationReadonly=Or;function We(c){return!!(e.getCombinedNodeFlags(c)&2)}e.isVarConst=We;function mr(c){return!!(e.getCombinedNodeFlags(c)&1)}e.isLet=mr;function Nr(c){return c.kind===207&&c.expression.kind===106}e.isSuperCall=Nr;function Ur(c){return c.kind===207&&c.expression.kind===100}e.isImportCall=Ur;function si(c){return e.isMetaProperty(c)&&c.keywordToken===100&&c.name.escapedText==="meta"}e.isImportMeta=si;function mi(c){return e.isImportTypeNode(c)&&e.isLiteralTypeNode(c.argument)&&e.isStringLiteral(c.argument.literal)}e.isLiteralImportTypeNode=mi;function Ti(c){return c.kind===237&&c.expression.kind===10}e.isPrologueDirective=Ti;function hi(c){return!!(he(c)&1048576)}e.isCustomPrologue=hi;function ki(c){return hi(c)&&e.isFunctionDeclaration(c)}e.isHoistedFunction=ki;function Ui(c){return e.isIdentifier(c.name)&&!c.initializer}function zi(c){return hi(c)&&e.isVariableStatement(c)&&e.every(c.declarationList.declarations,Ui)}e.isHoistedVariableStatement=zi;function ri(c,$){return c.kind!==11?e.getLeadingCommentRanges($.text,c.pos):void 0}e.getLeadingCommentRangesOfNode=ri;function Gi(c,$){var pr=c.kind===163||c.kind===162||c.kind===212||c.kind===213||c.kind===211||c.kind===253||c.kind===274?e.concatenate(e.getTrailingCommentRanges($,c.pos),e.getLeadingCommentRanges($,c.pos)):e.getLeadingCommentRanges($,c.pos);return e.filter(pr,function(Yr){return $.charCodeAt(Yr.pos+1)===42&&$.charCodeAt(Yr.pos+2)===42&&$.charCodeAt(Yr.pos+3)!==47})}e.getJSDocCommentRanges=Gi,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Rt=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var pa=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function xt(c){if(176<=c.kind&&c.kind<=199)return!0;switch(c.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return c.parent.kind!==216;case 227:return!nl(c);case 162:return c.parent.kind===194||c.parent.kind===189;case 79:(c.parent.kind===160&&c.parent.right===c||c.parent.kind===205&&c.parent.name===c)&&(c=c.parent),e.Debug.assert(c.kind===79||c.kind===160||c.kind===205,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:{var $=c.parent;if($.kind===180)return!1;if($.kind===199)return!$.isTypeOf;if(176<=$.kind&&$.kind<=199)return!0;switch($.kind){case 227:return!nl($);case 162:return c===$.constraint;case 342:return c===$.constraint;case 166:case 165:case 163:case 253:return c===$.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return c===$.type;case 173:case 174:case 175:return c===$.type;case 210:return c===$.type;case 207:case 208:return e.contains($.typeArguments,c);case 209:return!1}}}return!1}e.isPartOfTypeNode=xt;function ua(c,$){for(;c;){if(c.kind===$)return!0;c=c.parent}return!1}e.isChildOfNodeWithKind=ua;function Vt(c,$){return pr(c);function pr(Yr){switch(Yr.kind){case 246:return $(Yr);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(Yr,pr)}}}e.forEachReturnStatement=Vt;function St(c,$){return pr(c);function pr(Yr){switch(Yr.kind){case 223:$(Yr);var ji=Yr.expression;ji&&pr(ji);return;case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(Yr)){if(Yr.name&&Yr.name.kind===161){pr(Yr.name.expression);return}}else xt(Yr)||e.forEachChild(Yr,pr)}}}e.forEachYieldExpression=St;function Ci(c){return c&&c.kind===182?c.elementType:c&&c.kind===177?e.singleOrUndefined(c.typeArguments):void 0}e.getRestParameterElementType=Ci;function Hi(c){switch(c.kind){case 257:case 256:case 225:case 181:return c.members;case 204:return c.properties}}e.getMembersOfDeclaration=Hi;function Yi(c){if(c)switch(c.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}e.isVariableLike=Yi;function yt(c){return Yi(c)||e.isAccessor(c)}e.isVariableLikeOrAccessor=yt;function gt(c){return c.parent.kind===254&&c.parent.parent.kind===236}e.isVariableDeclarationInVariableStatement=gt;function oa(c){return e.isVariableDeclaration(c)?We(c)&&e.isIdentifier(c.name)&>(c):e.isPropertyDeclaration(c)?pf(c)&&ss(c):e.isPropertySignature(c)&&pf(c)}e.isValidESSymbolDeclaration=oa;function Bt(c){switch(c.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1}e.introducesArgumentsExoticObject=Bt;function Pi(c,$){for(;;){if($&&$(c),c.statement.kind!==249)return c.statement;c=c.statement}}e.unwrapInnermostStatementOfLabel=Pi;function Oi(c){return c&&c.kind===234&&e.isFunctionLike(c.parent)}e.isFunctionBlock=Oi;function wi(c){return c&&c.kind===168&&c.parent.kind===204}e.isObjectLiteralMethod=wi;function Qr(c){return(c.kind===168||c.kind===171||c.kind===172)&&(c.parent.kind===204||c.parent.kind===225)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=Qr;function Ct(c){return c&&c.kind===1}e.isIdentifierTypePredicate=Ct;function tt(c){return c&&c.kind===0}e.isThisTypePredicate=tt;function ta(c,$,pr){return c.properties.filter(function(Yr){if(Yr.kind===294){var ji=Ji(Yr.name);return $===ji||!!pr&&pr===ji}return!1})}e.getPropertyAssignment=ta;function Xa(c,$,pr){return e.firstDefined(ta(c,$),function(Yr){return e.isArrayLiteralExpression(Yr.initializer)?e.find(Yr.initializer.elements,function(ji){return e.isStringLiteral(ji)&&ji.text===pr}):void 0})}e.getPropertyArrayElementValue=Xa;function on(c){if(c&&c.statements.length){var $=c.statements[0].expression;return e.tryCast($,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=on;function qr(c,$,pr){return e.firstDefined(bn(c,$),function(Yr){return e.isArrayLiteralExpression(Yr.initializer)?e.find(Yr.initializer.elements,function(ji){return e.isStringLiteral(ji)&&ji.text===pr}):void 0})}e.getTsConfigPropArrayElementValue=qr;function bn(c,$){var pr=on(c);return pr?ta(pr,$):e.emptyArray}e.getTsConfigPropArray=bn;function Rn(c){return e.findAncestor(c.parent,e.isFunctionLike)}e.getContainingFunction=Rn;function Sn(c){return e.findAncestor(c.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=Sn;function zn(c){return e.findAncestor(c.parent,e.isClassLike)}e.getContainingClass=zn;function Zn(c){return e.findAncestor(c.parent,function($){return e.isClassLike($)||e.isFunctionLike($)?"quit":e.isClassStaticBlockDeclaration($)})}e.getContainingClassStaticBlock=Zn;function ho(c){return e.findAncestor(c.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=ho;function Vo(c,$){for(e.Debug.assert(c.kind!==303);;){if(c=c.parent,!c)return e.Debug.fail();switch(c.kind){case 161:if(e.isClassLike(c.parent.parent))return c;c=c.parent;break;case 164:c.parent.kind===163&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break;case 213:if(!$)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return c}}}e.getThisContainer=Vo;function Cn(c){switch(c.kind){case 213:case 255:case 212:case 166:return!0;case 234:switch(c.parent.kind){case 170:case 168:case 171:case 172:return!0;default:return!1}default:return!1}}e.isThisContainerOrFunctionBlock=Cn;function go(c){e.isIdentifier(c)&&(e.isClassDeclaration(c.parent)||e.isFunctionDeclaration(c.parent))&&c.parent.name===c&&(c=c.parent);var $=Vo(c,!0);return e.isSourceFile($)}e.isInTopLevelContext=go;function ro(c){var $=Vo(c,!1);if($)switch($.kind){case 170:case 255:case 212:return $}}e.getNewTargetContainer=ro;function Ko(c,$){for(;;){if(c=c.parent,!c)return c;switch(c.kind){case 161:c=c.parent;break;case 255:case 212:case 213:if(!$)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return c;case 164:c.parent.kind===163&&e.isClassElement(c.parent.parent)?c=c.parent.parent:e.isClassElement(c.parent)&&(c=c.parent);break}}}e.getSuperContainer=Ko;function rs(c){if(c.kind===212||c.kind===213){for(var $=c,pr=c.parent;pr.kind===211;)$=pr,pr=pr.parent;if(pr.kind===207&&pr.expression===$)return pr}}e.getImmediatelyInvokedFunctionExpression=rs;function rn(c){return c.kind===106||Do(c)}e.isSuperOrSuperProperty=rn;function Do(c){var $=c.kind;return($===205||$===206)&&c.expression.kind===106}e.isSuperProperty=Do;function io(c){var $=c.kind;return($===205||$===206)&&c.expression.kind===108}e.isThisProperty=io;function pn(c){var $;return!!c&&e.isVariableDeclaration(c)&&(($=c.initializer)===null||$===void 0?void 0:$.kind)===108}e.isThisInitializedDeclaration=pn;function Qn(c){return!!c&&(e.isShorthandPropertyAssignment(c)||e.isPropertyAssignment(c))&&e.isBinaryExpression(c.parent.parent)&&c.parent.parent.operatorToken.kind===63&&c.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Qn;function wo(c){switch(c.kind){case 177:return c.typeName;case 227:return Ga(c.expression)?c.expression:void 0;case 79:case 160:return c}}e.getEntityNameFromTypeNode=wo;function xo(c){switch(c.kind){case 209:return c.tag;case 279:case 278:return c.tagName;default:return c.expression}}e.getInvokedExpression=xo;function ds(c,$,pr){if(e.isNamedDeclaration(c)&&e.isPrivateIdentifier(c.name))return!1;switch(c.kind){case 256:return!0;case 166:return $.kind===256;case 171:case 172:case 168:return c.body!==void 0&&$.kind===256;case 163:return $.body!==void 0&&($.kind===170||$.kind===168||$.kind===172)&&pr.kind===256}return!1}e.nodeCanBeDecorated=ds;function No(c,$,pr){return c.decorators!==void 0&&ds(c,$,pr)}e.nodeIsDecorated=No;function Ts(c,$,pr){return No(c,$,pr)||Ms(c,$)}e.nodeOrChildIsDecorated=Ts;function Ms(c,$){switch(c.kind){case 256:return e.some(c.members,function(pr){return Ts(pr,c,$)});case 168:case 172:case 170:return e.some(c.parameters,function(pr){return No(pr,c,$)});default:return!1}}e.childIsDecorated=Ms;function xr(c){if(No(c))return!0;var $=J_(c);return!!$&&Ms($,c)}e.classOrConstructorParameterIsDecorated=xr;function bi(c){var $=c.parent;return $.kind===279||$.kind===278||$.kind===280?$.tagName===c:!1}e.isJSXTagName=bi;function ut(c){switch(c.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;c.parent.kind===160;)c=c.parent;return c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c);case 309:for(;e.isJSDocMemberName(c.parent);)c=c.parent;return c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c);case 80:return e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===101;case 79:if(c.parent.kind===180||e.isJSDocLinkLike(c.parent)||e.isJSDocNameReference(c.parent)||e.isJSDocMemberName(c.parent)||bi(c))return!0;case 8:case 9:case 10:case 14:case 108:return Ht(c);default:return!1}}e.isExpressionNode=ut;function Ht(c){var $=c.parent;switch($.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return $.initializer===c;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return $.expression===c;case 241:var pr=$;return pr.initializer===c&&pr.initializer.kind!==254||pr.condition===c||pr.incrementor===c;case 242:case 243:var Yr=$;return Yr.initializer===c&&Yr.initializer.kind!==254||Yr.expression===c;case 210:case 228:return c===$.expression;case 232:return c===$.expression;case 161:return c===$.expression;case 164:case 287:case 286:case 296:return!0;case 227:return $.expression===c&&nl($);case 295:return $.objectAssignmentInitializer===c;default:return ut($)}}e.isInExpressionContext=Ht;function Ka(c){for(;c.kind===160||c.kind===79;)c=c.parent;return c.kind===180}e.isPartOfTypeQuery=Ka;function an(c){return e.isNamespaceExport(c)&&!!c.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=an;function Ke(c){return c.kind===264&&c.moduleReference.kind===276}e.isExternalModuleImportEqualsDeclaration=Ke;function h(c){return e.Debug.assert(Ke(c)),c.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=h;function Ee(c){return In(c)&&dt(c.initializer).arguments[0]}e.getExternalModuleRequireArgument=Ee;function Re(c){return c.kind===264&&c.moduleReference.kind!==276}e.isInternalModuleImportEqualsDeclaration=Re;function nr(c){return _i(c)}e.isSourceFileJS=nr;function Gr(c){return!_i(c)}e.isSourceFileNotJS=Gr;function _i(c){return!!c&&!!(c.flags&131072)}e.isInJSFile=_i;function Ei(c){return!!c&&!!(c.flags&33554432)}e.isInJsonFile=Ei;function Ki(c){return!Fr(c)}e.isSourceFileNotJson=Ki;function Nt(c){return!!c&&!!(c.flags&4194304)}e.isInJSDoc=Nt;function ca(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)&&c.typeName.escapedText==="Object"&&c.typeArguments&&c.typeArguments.length===2&&(c.typeArguments[0].kind===149||c.typeArguments[0].kind===146)}e.isJSDocIndexSignature=ca;function Fa(c,$){if(c.kind!==207)return!1;var pr=c,Yr=pr.expression,ji=pr.arguments;if(Yr.kind!==79||Yr.escapedText!=="require"||ji.length!==1)return!1;var wt=ji[0];return!$||e.isStringLiteralLike(wt)}e.isRequireCall=Fa;function Ta(c){return so(c,!1)}e.isVariableDeclarationInitializedToRequire=Ta;function In(c){return so(c,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=In;function so(c,$){return c.kind===202&&(c=c.parent.parent),e.isVariableDeclaration(c)&&!!c.initializer&&Fa($?dt(c.initializer):c.initializer,!0)}function as(c){return e.isVariableStatement(c)&&c.declarationList.declarations.length>0&&e.every(c.declarationList.declarations,function($){return Ta($)})}e.isRequireVariableStatement=as;function Ho(c){return c===39||c===34}e.isSingleOrDoubleQuote=Ho;function Ds(c,$){return Ue($,c).charCodeAt(0)===34}e.isStringDoubleQuoted=Ds;function Os(c){return e.isBinaryExpression(c)||Ae(c)||e.isIdentifier(c)||e.isCallExpression(c)}e.isAssignmentDeclaration=Os;function mc(c){return _i(c)&&c.initializer&&e.isBinaryExpression(c.initializer)&&(c.initializer.operatorToken.kind===56||c.initializer.operatorToken.kind===60)&&c.name&&Ga(c.name)&&Pa(c.name,c.initializer.left)?c.initializer.right:c.initializer}e.getEffectiveInitializer=mc;function Hs(c){var $=mc(c);return $&&ga($,ol(c.name))}e.getDeclaredExpandoInitializer=Hs;function Mi(c,$){return e.forEach(c.properties,function(pr){return e.isPropertyAssignment(pr)&&e.isIdentifier(pr.name)&&pr.name.escapedText==="value"&&pr.initializer&&ga(pr.initializer,$)})}function $t(c){if(c&&c.parent&&e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63){var $=ol(c.parent.left);return ga(c.parent.right,$)||xn(c.parent.left,c.parent.right,$)}if(c&&e.isCallExpression(c)&&xi(c)){var pr=Mi(c.arguments[2],c.arguments[1].text==="prototype");if(pr)return pr}}e.getAssignedExpandoInitializer=$t;function ga(c,$){if(e.isCallExpression(c)){var pr=Vn(c.expression);return pr.kind===212||pr.kind===213?c:void 0}if(c.kind===212||c.kind===225||c.kind===213||e.isObjectLiteralExpression(c)&&(c.properties.length===0||$))return c}e.getExpandoInitializer=ga;function xn(c,$,pr){var Yr=e.isBinaryExpression($)&&($.operatorToken.kind===56||$.operatorToken.kind===60)&&ga($.right,pr);if(Yr&&Pa(c,$.left))return Yr}function yn(c){var $=e.isVariableDeclaration(c.parent)?c.parent.name:e.isBinaryExpression(c.parent)&&c.parent.operatorToken.kind===63?c.parent.left:void 0;return $&&ga(c.right,ol($))&&Ga($)&&Pa($,c.left)}e.isDefaultedExpandoInitializer=yn;function An(c){if(e.isBinaryExpression(c.parent)){var $=(c.parent.operatorToken.kind===56||c.parent.operatorToken.kind===60)&&e.isBinaryExpression(c.parent.parent)?c.parent.parent:c.parent;if($.operatorToken.kind===63&&e.isIdentifier($.left))return $.left}else if(e.isVariableDeclaration(c.parent))return c.parent.name}e.getNameOfExpando=An;function Pa(c,$){if(F_(c)&&F_($))return Ff(c)===Ff($);if(e.isIdentifier(c)&&et($)&&($.expression.kind===108||e.isIdentifier($.expression)&&($.expression.escapedText==="window"||$.expression.escapedText==="self"||$.expression.escapedText==="global"))){var pr=ln($);return e.isPrivateIdentifier(pr)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Pa(c,pr)}return et(c)&&et($)?is(c)===is($)&&Pa(c.expression,$.expression):!1}e.isSameEntityName=Pa;function Mn(c){for(;qf(c,!0);)c=c.right;return c}e.getRightMostAssignedExpression=Mn;function ao(c){return e.isIdentifier(c)&&c.escapedText==="exports"}e.isExportsIdentifier=ao;function co(c){return e.isIdentifier(c)&&c.escapedText==="module"}e.isModuleIdentifier=co;function De(c){return(e.isPropertyAccessExpression(c)||je(c))&&co(c.expression)&&is(c)==="exports"}e.isModuleExportsAccessExpression=De;function zr(c){var $=Ba(c);return $===5||_i(c)?$:0}e.getAssignmentDeclarationKind=zr;function xi(c){return e.length(c.arguments)===3&&e.isPropertyAccessExpression(c.expression)&&e.isIdentifier(c.expression.expression)&&e.idText(c.expression.expression)==="Object"&&e.idText(c.expression.name)==="defineProperty"&&el(c.arguments[1])&&Zt(c.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=xi;function et(c){return e.isPropertyAccessExpression(c)||je(c)}e.isLiteralLikeAccess=et;function je(c){return e.isElementAccessExpression(c)&&el(c.argumentExpression)}e.isLiteralLikeElementAccess=je;function ti(c,$){return e.isPropertyAccessExpression(c)&&(!$&&c.expression.kind===108||e.isIdentifier(c.name)&&Zt(c.expression,!0))||mt(c,$)}e.isBindableStaticAccessExpression=ti;function mt(c,$){return je(c)&&(!$&&c.expression.kind===108||Ga(c.expression)||ti(c.expression,!0))}e.isBindableStaticElementAccessExpression=mt;function Zt(c,$){return Ga(c)||ti(c,$)}e.isBindableStaticNameExpression=Zt;function ln(c){return e.isPropertyAccessExpression(c)?c.name:c.argumentExpression}e.getNameOrArgument=ln;function Ba(c){if(e.isCallExpression(c)){if(!xi(c))return 0;var $=c.arguments[0];return ao($)||De($)?8:ti($)&&is($)==="prototype"?9:7}return c.operatorToken.kind!==63||!Ae(c.left)||Oo(Mn(c))?0:Zt(c.left.expression,!0)&&is(c.left)==="prototype"&&e.isObjectLiteralExpression(nc(c))?6:hc(c.left)}function Oo(c){return e.isVoidExpression(c)&&e.isNumericLiteral(c.expression)&&c.expression.text==="0"}function jr(c){if(e.isPropertyAccessExpression(c))return c.name;var $=Vn(c.argumentExpression);return e.isNumericLiteral($)||e.isStringLiteralLike($)?$:c}e.getElementOrPropertyAccessArgumentExpressionOrName=jr;function is(c){var $=jr(c);if($){if(e.isIdentifier($))return $.escapedText;if(e.isStringLiteralLike($)||e.isNumericLiteral($))return e.escapeLeadingUnderscores($.text)}}e.getElementOrPropertyAccessName=is;function hc(c){if(c.expression.kind===108)return 4;if(De(c))return 2;if(Zt(c.expression,!0)){if(ol(c.expression))return 3;for(var $=c;!e.isIdentifier($.expression);)$=$.expression;var pr=$.expression;if((pr.escapedText==="exports"||pr.escapedText==="module"&&is($)==="exports")&&ti(c))return 1;if(Zt(c,!0)||e.isElementAccessExpression(c)&&t_(c))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=hc;function nc(c){for(;e.isBinaryExpression(c.right);)c=c.right;return c.right}e.getInitializerOfBinaryExpression=nc;function ns(c){return e.isBinaryExpression(c)&&zr(c)===3}e.isPrototypePropertyAssignment=ns;function Xs(c){return _i(c)&&c.parent&&c.parent.kind===237&&(!e.isElementAccessExpression(c)||je(c))&&!!e.getJSDocTypeTag(c.parent)}e.isSpecialPropertyDeclaration=Xs;function rc(c,$){var pr=c.valueDeclaration;(!pr||!($.flags&8388608&&!(pr.flags&8388608))&&Os(pr)&&!Os($)||pr.kind!==$.kind&&n(pr))&&(c.valueDeclaration=$)}e.setValueDeclaration=rc;function uu(c){if(!c||!c.valueDeclaration)return!1;var $=c.valueDeclaration;return $.kind===255||e.isVariableDeclaration($)&&$.initializer&&e.isFunctionLike($.initializer)}e.isFunctionSymbol=uu;function Bc(c){var $,pr,Yr;switch(c.kind){case 253:return c.initializer.arguments[0].text;case 265:return($=e.tryCast(c.moduleSpecifier,e.isStringLiteralLike))===null||$===void 0?void 0:$.text;case 264:return(Yr=e.tryCast((pr=e.tryCast(c.moduleReference,e.isExternalModuleReference))===null||pr===void 0?void 0:pr.expression,e.isStringLiteralLike))===null||Yr===void 0?void 0:Yr.text;default:e.Debug.assertNever(c)}}e.tryGetModuleSpecifierFromDeclaration=Bc;function Qu(c){return uo(c)||e.Debug.failBadSyntaxKind(c.parent)}e.importFromModuleSpecifier=Qu;function uo(c){switch(c.parent.kind){case 265:case 271:return c.parent;case 276:return c.parent.parent;case 207:return Ur(c.parent)||Fa(c.parent,!1)?c.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(c)),e.tryCast(c.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=uo;function Xc(c){switch(c.kind){case 265:case 271:return c.moduleSpecifier;case 264:return c.moduleReference.kind===276?c.moduleReference.expression:void 0;case 199:return mi(c)?c.argument.literal:void 0;case 207:return c.arguments[0];case 260:return c.name.kind===10?c.name:void 0;default:return e.Debug.assertNever(c)}}e.getExternalModuleName=Xc;function Ru(c){switch(c.kind){case 265:return c.importClause&&e.tryCast(c.importClause.namedBindings,e.isNamespaceImport);case 264:return c;case 271:return c.exportClause&&e.tryCast(c.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(c)}}e.getNamespaceDeclarationNode=Ru;function Dc(c){return c.kind===265&&!!c.importClause&&!!c.importClause.name}e.isDefaultImport=Dc;function Yu(c,$){if(c.name){var pr=$(c);if(pr)return pr}if(c.namedBindings){var pr=e.isNamespaceImport(c.namedBindings)?$(c.namedBindings):e.forEach(c.namedBindings.elements,$);if(pr)return pr}}e.forEachImportClauseDeclaration=Yu;function lu(c){if(c)switch(c.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return c.questionToken!==void 0}return!1}e.hasQuestionToken=lu;function qa(c){var $=e.isJSDocFunctionType(c)?e.firstOrUndefined(c.parameters):void 0,pr=e.tryCast($&&$.name,e.isIdentifier);return!!pr&&pr.escapedText==="new"}e.isJSDocConstructSignature=qa;function Bu(c){return c.kind===343||c.kind===336||c.kind===337}e.isJSDocTypeAlias=Bu;function $u(c){return Bu(c)||e.isTypeAliasDeclaration(c)}e.isTypeAlias=$u;function au(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&c.expression.operatorToken.kind===63?Mn(c.expression):void 0}function Vr(c){return e.isExpressionStatement(c)&&e.isBinaryExpression(c.expression)&&zr(c.expression)!==0&&e.isBinaryExpression(c.expression.right)&&(c.expression.right.operatorToken.kind===56||c.expression.right.operatorToken.kind===60)?c.expression.right.right:void 0}function fi(c){switch(c.kind){case 236:var $=Ni(c);return $&&$.initializer;case 166:return c.initializer;case 294:return c.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=fi;function Ni(c){return e.isVariableStatement(c)?e.firstOrUndefined(c.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=Ni;function rt(c){return e.isModuleDeclaration(c)&&c.body&&c.body.kind===260?c.body:void 0}function Tt(c,$){var pr;Yi(c)&&e.hasInitializer(c)&&e.hasJSDocNodes(c.initializer)&&(pr=e.addRange(pr,Dt(c,e.last(c.initializer.jsDoc))));for(var Yr=c;Yr&&Yr.parent;){if(e.hasJSDocNodes(Yr)&&(pr=e.addRange(pr,Dt(c,e.last(Yr.jsDoc)))),Yr.kind===163){pr=e.addRange(pr,($?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Yr));break}if(Yr.kind===162){pr=e.addRange(pr,($?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Yr));break}Yr=na(Yr)}return pr||e.emptyArray}e.getJSDocCommentsAndTags=Tt;function Dt(c,$){if(e.isJSDoc($)){var pr=e.filter($.tags,function(Yr){return jt(c,Yr)});return $.tags===pr?[$]:pr}return jt(c,$)?[$]:void 0}function jt(c,$){return!e.isJSDocTypeTag($)||!$.parent||!e.isJSDoc($.parent)||!e.isParenthesizedExpression($.parent.parent)||$.parent.parent===c}function na(c){var $=c.parent;if($.kind===294||$.kind===270||$.kind===166||$.kind===237&&c.kind===205||$.kind===246||rt($)||e.isBinaryExpression(c)&&c.operatorToken.kind===63)return $;if($.parent&&(Ni($.parent)===c||e.isBinaryExpression($)&&$.operatorToken.kind===63))return $.parent;if($.parent&&$.parent.parent&&(Ni($.parent.parent)||fi($.parent.parent)===c||Vr($.parent.parent)))return $.parent.parent}e.getNextJSDocCommentLocation=na;function Za(c){if(c.symbol)return c.symbol;if(!!e.isIdentifier(c.name)){var $=c.name.escapedText,pr=ha(c);if(!!pr){var Yr=e.find(pr.parameters,function(ji){return ji.name.kind===79&&ji.name.escapedText===$});return Yr&&Yr.symbol}}}e.getParameterSymbolFromJSDoc=Za;function ya(c){if(e.isJSDoc(c.parent)&&c.parent.tags){var $=e.find(c.parent.tags,Bu);if($)return $}return ha(c)}e.getEffectiveContainerForJSDocTemplateTag=ya;function ha(c){var $=Ja(c);return $&&e.isFunctionLike($)?$:void 0}e.getHostSignatureFromJSDoc=ha;function Ja(c){var $=Eo(c);if($)return Vr($)||au($)||fi($)||Ni($)||rt($)||$}e.getEffectiveJSDocHost=Ja;function Eo(c){var $=Hn(c);if(!!$){var pr=$.parent;if(pr&&pr.jsDoc&&$===e.lastOrUndefined(pr.jsDoc))return pr}}e.getJSDocHost=Eo;function Hn(c){return e.findAncestor(c.parent,e.isJSDoc)}e.getJSDocRoot=Hn;function lo(c){var $=c.name.escapedText,pr=c.parent.parent.parent.typeParameters;return pr&&e.find(pr,function(Yr){return Yr.name.escapedText===$})}e.getTypeParameterFromJsDoc=lo;function Kn(c){var $=e.lastOrUndefined(c.parameters);return!!$&&Te($)}e.hasRestParameter=Kn;function Te(c){var $=e.isJSDocParameterTag(c)?c.typeExpression&&c.typeExpression.type:c.type;return c.dotDotDotToken!==void 0||!!$&&$.kind===316}e.isRestParameter=Te;function vr(c){return!!c.typeArguments}e.hasTypeArguments=vr;var Sr;(function(c){c[c.None=0]="None",c[c.Definite=1]="Definite",c[c.Compound=2]="Compound"})(Sr=e.AssignmentKind||(e.AssignmentKind={}));function Di(c){for(var $=c.parent;;){switch($.kind){case 220:var pr=$.operatorToken.kind;return mf(pr)&&$.left===c?pr===63||Zc(pr)?1:2:0;case 218:case 219:var Yr=$.operator;return Yr===45||Yr===46?2:0;case 242:case 243:return $.initializer===c?1:0;case 211:case 203:case 224:case 229:c=$;break;case 296:c=$.parent;break;case 295:if($.name!==c)return 0;c=$.parent;break;case 294:if($.name===c)return 0;c=$.parent;break;default:return 0}$=c.parent}}e.getAssignmentTargetKind=Di;function nt(c){return Di(c)!==0}e.isAssignmentTarget=nt;function _a(c){switch(c.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=_a;function Na(c){return e.isFunctionExpression(c)||e.isArrowFunction(c)||e.isMethodOrAccessor(c)||e.isFunctionDeclaration(c)||e.isConstructorDeclaration(c)}e.isValueSignatureDeclaration=Na;function wn(c,$){for(;c&&c.kind===$;)c=c.parent;return c}function no(c){return wn(c,190)}e.walkUpParenthesizedTypes=no;function Go(c){return wn(c,211)}e.walkUpParenthesizedExpressions=Go;function vo(c){for(var $;c&&c.kind===190;)$=c,c=c.parent;return[$,c]}e.walkUpParenthesizedTypesAndGetParentAndChild=vo;function Vn(c,$){var pr=$?17:1;return e.skipOuterExpressions(c,pr)}e.skipParentheses=Vn;function to(c){return c.kind!==205&&c.kind!==206?!1:(c=Go(c.parent),c&&c.kind===214)}e.isDeleteTarget=to;function Jo(c,$){for(;c;){if(c===$)return!0;c=c.parent}return!1}e.isNodeDescendantOf=Jo;function Xo(c){return!e.isSourceFile(c)&&!e.isBindingPattern(c)&&e.isDeclaration(c.parent)&&c.parent.name===c}e.isDeclarationName=Xo;function Wr(c){var $=c.parent;switch(c.kind){case 10:case 14:case 8:if(e.isComputedPropertyName($))return $.parent;case 79:if(e.isDeclaration($))return $.name===c?$:void 0;if(e.isQualifiedName($)){var pr=$.parent;return e.isJSDocParameterTag(pr)&&pr.name===$?pr:void 0}else{var Yr=$.parent;return e.isBinaryExpression(Yr)&&zr(Yr)!==0&&(Yr.left.symbol||Yr.symbol)&&e.getNameOfDeclaration(Yr)===c?Yr:void 0}case 80:return e.isDeclaration($)&&$.name===c?$:void 0;default:return}}e.getDeclarationFromName=Wr;function Ws(c){return el(c)&&c.parent.kind===161&&e.isDeclaration(c.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Ws;function nu(c){var $=c.parent;switch($.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return $.name===c;case 160:return $.right===c;case 202:case 269:return $.propertyName===c;case 274:case 284:return!0}return!1}e.isIdentifierName=nu;function Tu(c){return c.kind===264||c.kind===263||c.kind===266&&!!c.name||c.kind===267||c.kind===273||c.kind===269||c.kind===274||c.kind===270&&fu(c)||e.isBinaryExpression(c)&&zr(c)===2&&fu(c)||e.isPropertyAccessExpression(c)&&e.isBinaryExpression(c.parent)&&c.parent.left===c&&c.parent.operatorToken.kind===63&&Qc(c.parent.right)||c.kind===295||c.kind===294&&Qc(c.initializer)}e.isAliasSymbolDeclaration=Tu;function oc(c){switch(c.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return c.parent;case 160:do c=c.parent;while(c.parent.kind===160);return oc(c)}}e.getAliasDeclarationFromName=oc;function Qc(c){return Ga(c)||e.isClassExpression(c)}e.isAliasableExpression=Qc;function fu(c){var $=lp(c);return Qc($)}e.exportAssignmentIsAlias=fu;function lp(c){return e.isExportAssignment(c)?c.expression:c.right}e.getExportAssignmentExpression=lp;function bo(c){return c.kind===295?c.name:c.kind===294?c.initializer:c.parent.right}e.getPropertyAssignmentAliasLikeExpression=bo;function w_(c){var $=i_(c);if($&&_i(c)){var pr=e.getJSDocAugmentsTag(c);if(pr)return pr.class}return $}e.getEffectiveBaseTypeNode=w_;function i_(c){var $=tf(c.heritageClauses,94);return $&&$.types.length>0?$.types[0]:void 0}e.getClassExtendsHeritageElement=i_;function Ls(c){if(_i(c))return e.getJSDocImplementsTags(c).map(function(pr){return pr.class});var $=tf(c.heritageClauses,117);return $==null?void 0:$.types}e.getEffectiveImplementsTypeNodes=Ls;function hl(c){return e.isInterfaceDeclaration(c)?xu(c)||e.emptyArray:e.isClassLike(c)&&e.concatenate(e.singleElementArray(w_(c)),Ls(c))||e.emptyArray}e.getAllSuperTypeNodes=hl;function xu(c){var $=tf(c.heritageClauses,94);return $?$.types:void 0}e.getInterfaceBaseTypeNodes=xu;function tf(c,$){if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];if(ji.token===$)return ji}}e.getHeritageClause=tf;function If(c,$){for(;c;){if(c.kind===$)return c;c=c.parent}}e.getAncestor=If;function Yc(c){return 81<=c&&c<=159}e.isKeyword=Yc;function Vs(c){return 126<=c&&c<=159}e.isContextualKeyword=Vs;function Zu(c){return Yc(c)&&!Vs(c)}e.isNonContextualKeyword=Zu;function Ma(c){return 117<=c&&c<=125}e.isFutureReservedKeyword=Ma;function Da(c){var $=e.stringToToken(c);return $!==void 0&&Zu($)}e.isStringANonContextualKeyword=Da;function Ju(c){var $=e.stringToToken(c);return $!==void 0&&Yc($)}e.isStringAKeyword=Ju;function Pc(c){var $=c.originalKeywordKind;return!!$&&!Vs($)}e.isIdentifierANonContextualKeyword=Pc;function fp(c){return 2<=c&&c<=7}e.isTrivia=fp;var wf;(function(c){c[c.Normal=0]="Normal",c[c.Generator=1]="Generator",c[c.Async=2]="Async",c[c.Invalid=4]="Invalid",c[c.AsyncGenerator=3]="AsyncGenerator"})(wf=e.FunctionFlags||(e.FunctionFlags={}));function Xp(c){if(!c)return 4;var $=0;switch(c.kind){case 255:case 212:case 168:c.asteriskToken&&($|=1);case 213:bs(c,256)&&($|=2);break}return c.body||($|=4),$}e.getFunctionFlags=Xp;function os(c){switch(c.kind){case 255:case 212:case 213:case 168:return c.body!==void 0&&c.asteriskToken===void 0&&bs(c,256)}return!1}e.isAsyncFunction=os;function el(c){return e.isStringLiteralLike(c)||e.isNumericLiteral(c)}e.isStringOrNumericLiteralLike=el;function Of(c){return e.isPrefixUnaryExpression(c)&&(c.operator===39||c.operator===40)&&e.isNumericLiteral(c.operand)}e.isSignedNumericLiteral=Of;function O_(c){var $=e.getNameOfDeclaration(c);return!!$&&t_($)}e.hasDynamicName=O_;function t_(c){if(!(c.kind===161||c.kind===206))return!1;var $=e.isElementAccessExpression(c)?Vn(c.argumentExpression):c.expression;return!el($)&&!Of($)}e.isDynamicName=t_;function Nc(c){switch(c.kind){case 79:case 80:return c.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(c.text);case 161:var $=c.expression;return el($)?e.escapeLeadingUnderscores($.text):Of($)?$.operator===40?e.tokenToString($.operator)+$.operand.text:$.operand.text:void 0;default:return e.Debug.assertNever(c)}}e.getPropertyNameForPropertyNameNode=Nc;function F_(c){switch(c.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=F_;function Ff(c){return e.isMemberName(c)?e.idText(c):c.text}e.getTextOfIdentifierOrLiteral=Ff;function M_(c){return e.isMemberName(c)?c.escapedText:e.escapeLeadingUnderscores(c.text)}e.getEscapedTextOfIdentifierOrLiteral=M_;function _p(c){return"__@".concat(e.getSymbolId(c),"@").concat(c.escapedName)}e.getPropertyNameForUniqueESSymbol=_p;function Qp(c,$){return"__#".concat(e.getSymbolId(c),"@").concat($)}e.getSymbolNameForPrivateIdentifier=Qp;function pp(c){return e.startsWith(c.escapedName,"__@")}e.isKnownSymbol=pp;function dp(c){return e.startsWith(c.escapedName,"__#")}e.isPrivateIdentifierSymbol=dp;function gp(c){return c.kind===79&&c.escapedText==="Symbol"}e.isESSymbolIdentifier=gp;function Yp(c){return c.escapedText==="push"||c.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=Yp;function $p(c){var $=a_(c);return $.kind===163}e.isParameterDeclaration=$p;function a_(c){for(;c.kind===202;)c=c.parent.parent;return c}e.getRootDeclaration=a_;function Cd(c){var $=c.kind;return $===170||$===212||$===255||$===213||$===168||$===171||$===172||$===260||$===303}e.nodeStartsNewLexicalEnvironment=Cd;function mp(c){return cd(c.pos)||cd(c.end)}e.nodeIsSynthesized=mp;function L_(c){return e.getParseTreeNode(c,e.isSourceFile)||c}e.getOriginalSourceFile=L_;var rl;(function(c){c[c.Left=0]="Left",c[c.Right=1]="Right"})(rl=e.Associativity||(e.Associativity={}));function ju(c){var $=Dl(c),pr=c.kind===208&&c.arguments!==void 0;return _u(c.kind,$,pr)}e.getExpressionAssociativity=ju;function _u(c,$,pr){switch(c){case 208:return pr?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch($){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=_u;function Eu(c){var $=Dl(c),pr=c.kind===208&&c.arguments!==void 0;return Wl(c.kind,$,pr)}e.getExpressionPrecedence=Eu;function Dl(c){return c.kind===220?c.operatorToken.kind:c.kind===218||c.kind===219?c.operator:c.kind}e.getOperator=Dl;var Zp;(function(c){c[c.Comma=0]="Comma",c[c.Spread=1]="Spread",c[c.Yield=2]="Yield",c[c.Assignment=3]="Assignment",c[c.Conditional=4]="Conditional",c[c.Coalesce=4]="Coalesce",c[c.LogicalOR=5]="LogicalOR",c[c.LogicalAND=6]="LogicalAND",c[c.BitwiseOR=7]="BitwiseOR",c[c.BitwiseXOR=8]="BitwiseXOR",c[c.BitwiseAND=9]="BitwiseAND",c[c.Equality=10]="Equality",c[c.Relational=11]="Relational",c[c.Shift=12]="Shift",c[c.Additive=13]="Additive",c[c.Multiplicative=14]="Multiplicative",c[c.Exponentiation=15]="Exponentiation",c[c.Unary=16]="Unary",c[c.Update=17]="Update",c[c.LeftHandSide=18]="LeftHandSide",c[c.Member=19]="Member",c[c.Primary=20]="Primary",c[c.Highest=20]="Highest",c[c.Lowest=0]="Lowest",c[c.Invalid=-1]="Invalid"})(Zp=e.OperatorPrecedence||(e.OperatorPrecedence={}));function Wl(c,$,pr){switch(c){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch($){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return ed($)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return pr?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}e.getOperatorPrecedence=Wl;function ed(c){switch(c){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=ed;function n_(c){return e.filter(c,function($){switch($.kind){case 287:return!!$.expression;case 11:return!$.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=n_;function vp(){var c=[],$=[],pr=new e.Map,Yr=!1;return{add:wt,lookup:ji,getGlobalDiagnostics:Lt,getDiagnostics:Ea};function ji(vn){var sn;if(vn.file?sn=pr.get(vn.file.fileName):sn=c,!!sn){var Fo=e.binarySearch(sn,vn,e.identity,ef);if(Fo>=0)return sn[Fo]}}function wt(vn){var sn;vn.file?(sn=pr.get(vn.file.fileName),sn||(sn=[],pr.set(vn.file.fileName,sn),e.insertSorted($,vn.file.fileName,e.compareStringsCaseSensitive))):(Yr&&(Yr=!1,c=c.slice()),sn=c),e.insertSorted(sn,vn,Fd)}function Lt(){return Yr=!0,c}function Ea(vn){if(vn)return pr.get(vn)||[];var sn=e.flatMapToMutable($,function(Fo){return pr.get(Fo)});return c.length&&sn.unshift.apply(sn,c),sn}}e.createDiagnosticCollection=vp;var o_=/\$\{/g;function R_(c){return c.replace(o_,"\\${")}function af(c){return c&&!!(e.isNoSubstitutionTemplateLiteral(c)?c.templateFlags:c.head.templateFlags||e.some(c.templateSpans,function($){return!!$.literal.templateFlags}))}e.hasInvalidEscape=af;var yp=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,B_=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,kd=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Mf=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function hp(c){var $=c.toString(16).toUpperCase(),pr=("0000"+$).slice(-4);return"\\u"+pr}function ic(c,$,pr){if(c.charCodeAt(0)===0){var Yr=pr.charCodeAt($+c.length);return Yr>=48&&Yr<=57?"\\x00":"\\0"}return Mf.get(c)||hp(c.charCodeAt(0))}function Jc(c,$){var pr=$===96?kd:$===39?B_:yp;return c.replace(pr,ic)}e.escapeString=Jc;var Lf=/[^\u0000-\u007F]/g;function nf(c,$){return c=Jc(c,$),Lf.test(c)?c.replace(Lf,function(pr){return hp(pr.charCodeAt(0))}):c}e.escapeNonAsciiString=nf;var s_=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Rf=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,c_=new e.Map(e.getEntries({'"':""","'":"'"}));function Cu(c){var $=c.toString(16).toUpperCase();return"&#x"+$+";"}function Tc(c){return c.charCodeAt(0)===0?"�":c_.get(c)||Cu(c.charCodeAt(0))}function pu(c,$){var pr=$===39?Rf:s_;return c.replace(pr,Tc)}e.escapeJsxAttributeString=pu;function du(c){var $=c.length;return $>=2&&c.charCodeAt(0)===c.charCodeAt($-1)&&bl(c.charCodeAt(0))?c.substring(1,$-1):c}e.stripQuotes=du;function bl(c){return c===39||c===34||c===96}function of(c){var $=c.charCodeAt(0);return $>=97&&$<=122||e.stringContains(c,"-")||e.stringContains(c,":")}e.isIntrinsicJsxName=of;var il=[""," "];function Qo(c){for(var $=il[1],pr=il.length;pr<=c;pr++)il.push(il[pr-1]+$);return il[c]}e.getIndentString=Qo;function zo(){return il[1].length}e.getIndentSize=zo;function Ro(c){var $,pr,Yr,ji,wt,Lt=!1;function Ea(gs){var iu=e.computeLineStarts(gs);iu.length>1?(ji=ji+iu.length-1,wt=$.length-gs.length+e.last(iu),Yr=wt-$.length===0):Yr=!1}function vn(gs){gs&&gs.length&&(Yr&&(gs=Qo(pr)+gs,Yr=!1),$+=gs,Ea(gs))}function sn(gs){gs&&(Lt=!1),vn(gs)}function Fo(gs){gs&&(Lt=!0),vn(gs)}function us(){$="",pr=0,Yr=!0,ji=0,wt=0,Lt=!1}function tn(gs){gs!==void 0&&($+=gs,Ea(gs),Lt=!1)}function Ys(gs){gs&&gs.length&&sn(gs)}function za(gs){(!Yr||gs)&&($+=c,ji++,wt=$.length,Yr=!0,Lt=!1)}function Du(){return Yr?$.length:$.length+c.length}return us(),{write:sn,rawWrite:tn,writeLiteral:Ys,writeLine:za,increaseIndent:function(){pr++},decreaseIndent:function(){pr--},getIndent:function(){return pr},getTextPos:function(){return $.length},getLine:function(){return ji},getColumn:function(){return Yr?pr*zo():$.length-wt},getText:function(){return $},isAtStartOfLine:function(){return Yr},hasTrailingComment:function(){return Lt},hasTrailingWhitespace:function(){return!!$.length&&e.isWhiteSpaceLike($.charCodeAt($.length-1))},clear:us,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:sn,writeOperator:sn,writeParameter:sn,writeProperty:sn,writePunctuation:sn,writeSpace:sn,writeStringLiteral:sn,writeSymbol:function(gs,iu){return sn(gs)},writeTrailingSemicolon:sn,writeComment:Fo,getTextPosWithWriteLine:Du}}e.createTextWriter=Ro;function jc(c){var $=!1;function pr(){$&&(c.writeTrailingSemicolon(";"),$=!1)}return Ve(Ve({},c),{writeTrailingSemicolon:function(){$=!0},writeLiteral:function(Yr){pr(),c.writeLiteral(Yr)},writeStringLiteral:function(Yr){pr(),c.writeStringLiteral(Yr)},writeSymbol:function(Yr,ji){pr(),c.writeSymbol(Yr,ji)},writePunctuation:function(Yr){pr(),c.writePunctuation(Yr)},writeKeyword:function(Yr){pr(),c.writeKeyword(Yr)},writeOperator:function(Yr){pr(),c.writeOperator(Yr)},writeParameter:function(Yr){pr(),c.writeParameter(Yr)},writeSpace:function(Yr){pr(),c.writeSpace(Yr)},writeProperty:function(Yr){pr(),c.writeProperty(Yr)},writeComment:function(Yr){pr(),c.writeComment(Yr)},writeLine:function(){pr(),c.writeLine()},increaseIndent:function(){pr(),c.increaseIndent()},decreaseIndent:function(){pr(),c.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=jc;function Bf(c){return c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Bf;function gu(c){return e.createGetCanonicalFileName(Bf(c))}e.hostGetCanonicalFileName=gu;function Jf(c,$,pr){return $.moduleName||Kt(c,$.fileName,pr&&pr.fileName)}e.getResolvedExternalModuleName=Jf;function jf(c,$){return c.getCanonicalFileName(e.getNormalizedAbsolutePath($,c.getCurrentDirectory()))}function sf(c,$,pr){var Yr=$.getExternalModuleFileFromDeclaration(pr);if(!(!Yr||Yr.isDeclarationFile)){var ji=Xc(pr);if(!(ji&&e.isStringLiteralLike(ji)&&!e.pathIsRelative(ji.text)&&jf(c,Yr.path).indexOf(jf(c,e.ensureTrailingDirectorySeparator(c.getCommonSourceDirectory())))===-1))return Jf(c,Yr)}}e.getExternalModuleNameFromDeclaration=sf;function Kt(c,$,pr){var Yr=function(vn){return c.getCanonicalFileName(vn)},ji=e.toPath(pr?e.getDirectoryPath(pr):c.getCommonSourceDirectory(),c.getCurrentDirectory(),Yr),wt=e.getNormalizedAbsolutePath($,c.getCurrentDirectory()),Lt=e.getRelativePathToDirectoryOrUrl(ji,wt,ji,Yr,!1),Ea=Fg(Lt);return pr?e.ensurePathIsNonModuleName(Ea):Ea}e.getExternalModuleNameFromPath=Kt;function ts(c,$,pr){var Yr=$.getCompilerOptions(),ji;return Yr.outDir?ji=Fg(ko(c,$,Yr.outDir)):ji=Fg(c),ji+pr}e.getOwnEmitOutputFilePath=ts;function mn(c,$){return Sl(c,$.getCompilerOptions(),$.getCurrentDirectory(),$.getCommonSourceDirectory(),function(pr){return $.getCanonicalFileName(pr)})}e.getDeclarationEmitOutputFilePath=mn;function Sl(c,$,pr,Yr,ji){var wt=$.declarationDir||$.outDir,Lt=wt?xc(c,wt,pr,Yr,ji):c,Ea=Ps(Lt);return Fg(Lt)+Ea}e.getDeclarationEmitOutputFilePathWorker=Sl;function Ps(c){return e.fileExtensionIsOneOf(c,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(c,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(c,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Ps;function tl(c){return c.outFile||c.out}e.outFile=tl;function Ut(c,$){var pr,Yr;if(!!c.paths)return(pr=c.baseUrl)!==null&&pr!==void 0?pr:e.Debug.checkDefined(c.pathsBasePath||((Yr=$.getCurrentDirectory)===null||Yr===void 0?void 0:Yr.call($)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=Ut;function Dp(c,$,pr){var Yr=c.getCompilerOptions();if(tl(Yr)){var ji=_t(Yr),wt=Yr.emitDeclarationOnly||ji===e.ModuleKind.AMD||ji===e.ModuleKind.System;return e.filter(c.getSourceFiles(),function(Ea){return(wt||!e.isExternalModule(Ea))&&cf(Ea,c,pr)})}else{var Lt=$===void 0?c.getSourceFiles():[$];return e.filter(Lt,function(Ea){return cf(Ea,c,pr)})}}e.getSourceFilesToEmit=Dp;function cf(c,$,pr){var Yr=$.getCompilerOptions();return!(Yr.noEmitForJsFiles&&nr(c))&&!c.isDeclarationFile&&!$.isSourceFileFromExternalLibrary(c)&&(pr||!(Fr(c)&&$.getResolvedProjectReferenceToRedirect(c.fileName))&&!$.isSourceOfProjectReferenceRedirect(c.fileName))}e.sourceFileMayBeEmitted=cf;function ko(c,$,pr){return xc(c,pr,$.getCurrentDirectory(),$.getCommonSourceDirectory(),function(Yr){return $.getCanonicalFileName(Yr)})}e.getSourceFilePathInNewDir=ko;function xc(c,$,pr,Yr,ji){var wt=e.getNormalizedAbsolutePath(c,pr),Lt=ji(wt).indexOf(ji(Yr))===0;return wt=Lt?wt.substring(Yr.length):wt,e.combinePaths($,wt)}e.getSourceFilePathInNewDirWorker=xc;function ou(c,$,pr,Yr,ji,wt){c.writeFile(pr,Yr,ji,function(Lt){$.add(Em(e.Diagnostics.Could_not_write_file_0_Colon_1,pr,Lt))},wt)}e.writeFile=ou;function uf(c,$,pr){if(c.length>e.getRootLength(c)&&!pr(c)){var Yr=e.getDirectoryPath(c);uf(Yr,$,pr),$(c)}}function bp(c,$,pr,Yr,ji,wt){try{Yr(c,$,pr)}catch{uf(e.getDirectoryPath(e.normalizePath(c)),ji,wt),Yr(c,$,pr)}}e.writeFileEnsuringDirectories=bp;function ql(c,$){var pr=e.getLineStarts(c);return e.computeLineOfPosition(pr,$)}e.getLineOfLocalPosition=ql;function Fs(c,$){return e.computeLineOfPosition(c,$)}e.getLineOfLocalPositionFromLineMap=Fs;function J_(c){return e.find(c.members,function($){return e.isConstructorDeclaration($)&&j($.body)})}e.getFirstConstructorWithBody=J_;function su(c){if(c&&c.parameters.length>0){var $=c.parameters.length===2&&_f(c.parameters[0]);return c.parameters[$?1:0]}}e.getSetAccessorValueParameter=su;function lf(c){var $=su(c);return $&&$.type}e.getSetAccessorTypeAnnotationNode=lf;function ff(c){if(c.parameters.length&&!e.isJSDocSignature(c)){var $=c.parameters[0];if(_f($))return $}}e.getThisParameter=ff;function _f(c){return Vl(c.name)}e.parameterIsThisKeyword=_f;function Vl(c){return!!c&&c.kind===79&&Uf(c)}e.isThisIdentifier=Vl;function j_(c){if(!Vl(c))return!1;for(;e.isQualifiedName(c.parent)&&c.parent.left===c;)c=c.parent;return c.parent.kind===180}e.isThisInTypeQuery=j_;function Uf(c){return c.originalKeywordKind===108}e.identifierIsThisKeyword=Uf;function Sp(c,$){var pr,Yr,ji,wt;return O_($)?(pr=$,$.kind===171?ji=$:$.kind===172?wt=$:e.Debug.fail("Accessor has wrong kind")):e.forEach(c,function(Lt){if(e.isAccessor(Lt)&&zu(Lt)===zu($)){var Ea=Nc(Lt.name),vn=Nc($.name);Ea===vn&&(pr?Yr||(Yr=Lt):pr=Lt,Lt.kind===171&&!ji&&(ji=Lt),Lt.kind===172&&!wt&&(wt=Lt))}}),{firstAccessor:pr,secondAccessor:Yr,getAccessor:ji,setAccessor:wt}}e.getAllAccessorDeclarations=Sp;function Tl(c){if(!(!_i(c)&&e.isFunctionDeclaration(c))){var $=c.type;return $||!_i(c)?$:e.isJSDocPropertyLikeTag(c)?c.typeExpression&&c.typeExpression.type:e.getJSDocType(c)}}e.getEffectiveTypeAnnotationNode=Tl;function Ns(c){return c.type}e.getTypeAnnotationNode=Ns;function al(c){return e.isJSDocSignature(c)?c.type&&c.type.typeExpression&&c.type.typeExpression.type:c.type||(_i(c)?e.getJSDocReturnType(c):void 0)}e.getEffectiveReturnTypeNode=al;function U_(c){return e.flatMap(e.getJSDocTags(c),function($){return Kl($)?$.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=U_;function Kl(c){return e.isJSDocTemplateTag(c)&&!(c.parent.kind===318&&c.parent.tags.some(Bu))}function Wn(c){var $=su(c);return $&&Tl($)}e.getEffectiveSetAccessorTypeAnnotationNode=Wn;function It(c,$,pr,Yr){Rs(c,$,pr.pos,Yr)}e.emitNewLineBeforeLeadingComments=It;function Rs(c,$,pr,Yr){Yr&&Yr.length&&pr!==Yr[0].pos&&Fs(c,pr)!==Fs(c,Yr[0].pos)&&$.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=Rs;function u_(c,$,pr,Yr){pr!==Yr&&Fs(c,pr)!==Fs(c,Yr)&&$.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=u_;function xs(c,$,pr,Yr,ji,wt,Lt,Ea){if(Yr&&Yr.length>0){ji&&pr.writeSpace(" ");for(var vn=!1,sn=0,Fo=Yr;sn<Fo.length;sn++){var us=Fo[sn];vn&&(pr.writeSpace(" "),vn=!1),Ea(c,$,pr,us.pos,us.end,Lt),us.hasTrailingNewLine?pr.writeLine():vn=!0}vn&&wt&&pr.writeSpace(" ")}}e.emitComments=xs;function Tp(c,$,pr,Yr,ji,wt,Lt){var Ea,vn;if(Lt?ji.pos===0&&(Ea=e.filter(e.getLeadingCommentRanges(c,ji.pos),iu)):Ea=e.getLeadingCommentRanges(c,ji.pos),Ea){for(var sn=[],Fo=void 0,us=0,tn=Ea;us<tn.length;us++){var Ys=tn[us];if(Fo){var za=Fs($,Fo.end),Du=Fs($,Ys.pos);if(Du>=za+2)break}sn.push(Ys),Fo=Ys}if(sn.length){var za=Fs($,e.last(sn).end),gs=Fs($,e.skipTrivia(c,ji.pos));gs>=za+2&&(It($,pr,ji,Ea),xs(c,$,pr,sn,!1,!0,wt,Yr),vn={nodePos:ji.pos,detachedCommentEndPos:e.last(sn).end})}}return vn;function iu(X_){return ae(c,X_.pos)}}e.emitDetachedComments=Tp;function mu(c,$,pr,Yr,ji,wt){if(c.charCodeAt(Yr+1)===42)for(var Lt=e.computeLineAndCharacterOfPosition($,Yr),Ea=$.length,vn=void 0,sn=Yr,Fo=Lt.line;sn<ji;Fo++){var us=Fo+1===Ea?c.length+1:$[Fo+1];if(sn!==Yr){vn===void 0&&(vn=Uu(c,$[Lt.line],Yr));var tn=pr.getIndent()*zo(),Ys=tn-vn+Uu(c,sn,us);if(Ys>0){var za=Ys%zo(),Du=Qo((Ys-za)/zo());for(pr.rawWrite(Du);za;)pr.rawWrite(" "),za--}else pr.rawWrite("")}zf(c,ji,pr,wt,sn,us),sn=us}else pr.writeComment(c.substring(Yr,ji))}e.writeCommentRange=mu;function zf(c,$,pr,Yr,ji,wt){var Lt=Math.min($,wt-1),Ea=e.trimString(c.substring(ji,Lt));Ea?(pr.writeComment(Ea),Lt!==$&&pr.writeLine()):pr.rawWrite(Yr)}function Uu(c,$,pr){for(var Yr=0;$<pr&&e.isWhiteSpaceSingleLine(c.charCodeAt($));$++)c.charCodeAt($)===9?Yr+=zo()-Yr%zo():Yr++;return Yr}function $c(c){return Ic(c)!==0}e.hasEffectiveModifiers=$c;function Wf(c){return xl(c)!==0}e.hasSyntacticModifiers=Wf;function Gl(c,$){return!!df(c,$)}e.hasEffectiveModifier=Gl;function bs(c,$){return!!xp(c,$)}e.hasSyntacticModifier=bs;function zu(c){return e.isClassElement(c)&&ss(c)||e.isClassStaticBlockDeclaration(c)}e.isStatic=zu;function ss(c){return bs(c,32)}e.hasStaticModifier=ss;function Uc(c){return Gl(c,16384)}e.hasOverrideModifier=Uc;function Ad(c){return bs(c,128)}e.hasAbstractModifier=Ad;function vu(c){return bs(c,2)}e.hasAmbientModifier=vu;function pf(c){return Gl(c,64)}e.hasEffectiveReadonlyModifier=pf;function df(c,$){return Ic(c)&$}e.getSelectedEffectiveModifierFlags=df;function xp(c,$){return xl(c)&$}e.getSelectedSyntacticModifierFlags=xp;function l_(c,$,pr){return c.kind>=0&&c.kind<=159?0:(c.modifierFlagsCache&536870912||(c.modifierFlagsCache=Xl(c)|536870912),$&&!(c.modifierFlagsCache&4096)&&(pr||_i(c))&&c.parent&&(c.modifierFlagsCache|=gf(c)|4096),c.modifierFlagsCache&-536875009)}function Ic(c){return l_(c,!0)}e.getEffectiveModifierFlags=Ic;function _s(c){return l_(c,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=_s;function xl(c){return l_(c,!1)}e.getSyntacticModifierFlags=xl;function gf(c){var $=0;return!!c.parent&&!e.isParameter(c)&&(_i(c)&&(e.getJSDocPublicTagNoCache(c)&&($|=4),e.getJSDocPrivateTagNoCache(c)&&($|=8),e.getJSDocProtectedTagNoCache(c)&&($|=16),e.getJSDocReadonlyTagNoCache(c)&&($|=64),e.getJSDocOverrideTagNoCache(c)&&($|=16384)),e.getJSDocDeprecatedTagNoCache(c)&&($|=8192)),$}function Hl(c){return Xl(c)|gf(c)}e.getEffectiveModifierFlagsNoCache=Hl;function Xl(c){var $=Ep(c.modifiers);return(c.flags&4||c.kind===79&&c.isInJSDocNamespace)&&($|=1),$}e.getSyntacticModifierFlagsNoCache=Xl;function Ep(c){var $=0;if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];$|=z_(ji.kind)}return $}e.modifiersToFlags=Ep;function z_(c){switch(c){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}e.modifierToFlag=z_;function El(c){return c?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(c)):void 0}e.createModifiers=El;function Cp(c){return c===56||c===55||c===53}e.isLogicalOperator=Cp;function Zc(c){return c===75||c===76||c===77}e.isLogicalOrCoalescingAssignmentOperator=Zc;function kp(c){return Zc(c.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=kp;function mf(c){return c>=63&&c<=78}e.isAssignmentOperator=mf;function Ql(c){var $=f_(c);return $&&!$.isImplements?$.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Ql;function f_(c){return e.isExpressionWithTypeArguments(c)&&e.isHeritageClause(c.parent)&&e.isClassLike(c.parent.parent)?{class:c.parent.parent,isImplements:c.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=f_;function qf(c,$){return e.isBinaryExpression(c)&&($?c.operatorToken.kind===63:mf(c.operatorToken.kind))&&e.isLeftHandSideExpression(c.left)}e.isAssignmentExpression=qf;function Cl(c){return qf(c.parent)&&c.parent.left===c}e.isLeftHandSideOfAssignment=Cl;function W_(c){if(qf(c,!0)){var $=c.left.kind;return $===204||$===203}return!1}e.isDestructuringAssignment=W_;function nl(c){return Ql(c)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=nl;function Ga(c){return c.kind===79||__(c)}e.isEntityNameExpression=Ga;function kl(c){switch(c.kind){case 79:return c;case 160:do c=c.left;while(c.kind!==79);return c;case 205:do c=c.expression;while(c.kind!==79);return c}}e.getFirstIdentifier=kl;function ht(c){return c.kind===79||c.kind===108||c.kind===106||c.kind===230||c.kind===205&&ht(c.expression)||c.kind===211&&ht(c.expression)}e.isDottedName=ht;function __(c){return e.isPropertyAccessExpression(c)&&e.isIdentifier(c.name)&&Ga(c.expression)}e.isPropertyAccessEntityNameExpression=__;function Yl(c){if(e.isPropertyAccessExpression(c)){var $=Yl(c.expression);if($!==void 0)return $+"."+di(c.name)}else if(e.isElementAccessExpression(c)){var $=Yl(c.expression);if($!==void 0&&e.isPropertyName(c.argumentExpression))return $+"."+Nc(c.argumentExpression)}else if(e.isIdentifier(c))return e.unescapeLeadingUnderscores(c.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Yl;function ol(c){return ti(c)&&is(c)==="prototype"}e.isPrototypeAccess=ol;function q_(c){return c.parent.kind===160&&c.parent.right===c||c.parent.kind===205&&c.parent.name===c}e.isRightSideOfQualifiedNameOrPropertyAccess=q_;function rd(c){return e.isQualifiedName(c.parent)&&c.parent.right===c||e.isPropertyAccessExpression(c.parent)&&c.parent.name===c||e.isJSDocMemberName(c.parent)&&c.parent.right===c}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=rd;function Pd(c){return c.kind===204&&c.properties.length===0}e.isEmptyObjectLiteral=Pd;function Al(c){return c.kind===203&&c.elements.length===0}e.isEmptyArrayLiteral=Al;function id(c){if(!(!p_(c)||!c.declarations))for(var $=0,pr=c.declarations;$<pr.length;$++){var Yr=pr[$];if(Yr.localSymbol)return Yr.localSymbol}}e.getLocalSymbolForExportDefault=id;function p_(c){return c&&e.length(c.declarations)>0&&bs(c.declarations[0],512)}function Nd(c){return e.find(Pv,function($){return e.fileExtensionIs(c,$)})}e.tryExtractTSExtension=Nd;function V_(c){for(var $=[],pr=c.length,Yr=0;Yr<pr;Yr++){var ji=c.charCodeAt(Yr);ji<128?$.push(ji):ji<2048?($.push(ji>>6|192),$.push(ji&63|128)):ji<65536?($.push(ji>>12|224),$.push(ji>>6&63|128),$.push(ji&63|128)):ji<131072?($.push(ji>>18|240),$.push(ji>>12&63|128),$.push(ji>>6&63|128),$.push(ji&63|128)):e.Debug.assert(!1,"Unexpected code point")}return $}var yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function d_(c){for(var $="",pr=V_(c),Yr=0,ji=pr.length,wt,Lt,Ea,vn;Yr<ji;)wt=pr[Yr]>>2,Lt=(pr[Yr]&3)<<4|pr[Yr+1]>>4,Ea=(pr[Yr+1]&15)<<2|pr[Yr+2]>>6,vn=pr[Yr+2]&63,Yr+1>=ji?Ea=vn=64:Yr+2>=ji&&(vn=64),$+=yu.charAt(wt)+yu.charAt(Lt)+yu.charAt(Ea)+yu.charAt(vn),Yr+=3;return $}e.convertToBase64=d_;function sl(c){for(var $="",pr=0,Yr=c.length;pr<Yr;){var ji=c[pr];if(ji<128)$+=String.fromCharCode(ji),pr++;else if((ji&192)===192){var wt=ji&63;pr++;for(var Lt=c[pr];(Lt&192)===128;)wt=wt<<6|Lt&63,pr++,Lt=c[pr];$+=String.fromCharCode(wt)}else $+=String.fromCharCode(ji),pr++}return $}function sc(c,$){return c&&c.base64encode?c.base64encode($):d_($)}e.base64encode=sc;function Vf(c,$){if(c&&c.base64decode)return c.base64decode($);for(var pr=$.length,Yr=[],ji=0;ji<pr&&$.charCodeAt(ji)!==yu.charCodeAt(64);){var wt=yu.indexOf($[ji]),Lt=yu.indexOf($[ji+1]),Ea=yu.indexOf($[ji+2]),vn=yu.indexOf($[ji+3]),sn=(wt&63)<<2|Lt>>4&3,Fo=(Lt&15)<<4|Ea>>2&15,us=(Ea&3)<<6|vn&63;Fo===0&&Ea!==0?Yr.push(sn):us===0&&vn!==0?Yr.push(sn,Fo):Yr.push(sn,Fo,us),ji+=4}return sl(Yr)}e.base64decode=Vf;function ku(c,$){try{var pr=$.readFile(c);if(!pr)return{};var Yr=e.parseConfigFileTextToJson(c,pr);return Yr.error?{}:Yr.config}catch{return{}}}e.readJson=ku;function vf(c,$){return!$.directoryExists||$.directoryExists(c)}e.directoryProbablyExists=vf;var td=`\r
|
|
`,eu=`
|
|
`;function b(c,$){switch(c.newLine){case 0:return td;case 1:return eu}return $?$():e.sys?e.sys.newLine:td}e.getNewLineCharacter=b;function rr(c,$){return $===void 0&&($=c),e.Debug.assert($>=c||$===-1),{pos:c,end:$}}e.createRange=rr;function ai(c,$){return rr(c.pos,$)}e.moveRangeEnd=ai;function Wi(c,$){return rr($,c.end)}e.moveRangePos=Wi;function At(c){return c.decorators&&c.decorators.length>0?Wi(c,c.decorators.end):c}e.moveRangePastDecorators=At;function ra(c){return c.modifiers&&c.modifiers.length>0?Wi(c,c.modifiers.end):At(c)}e.moveRangePastModifiers=ra;function La(c){return c.pos===c.end}e.isCollapsedRange=La;function fn(c,$){return rr(c,c+e.tokenToString($).length)}e.createTokenRange=fn;function Bo(c,$){return cc(c,c,$)}e.rangeIsOnSingleLine=Bo;function Yo(c,$,pr){return Qs(Au(c,pr,!1),Au($,pr,!1),pr)}e.rangeStartPositionsAreOnSameLine=Yo;function jo(c,$,pr){return Qs(c.end,$.end,pr)}e.rangeEndPositionsAreOnSameLine=jo;function cc(c,$,pr){return Qs(Au(c,pr,!1),$.end,pr)}e.rangeStartIsOnSameLineAsRangeEnd=cc;function qs(c,$,pr){return Qs(c.end,Au($,pr,!1),pr)}e.rangeEndIsOnSameLineAsRangeStart=qs;function uc(c,$,pr,Yr){var ji=Au($,pr,Yr);return e.getLinesBetweenPositions(pr,c.end,ji)}e.getLinesBetweenRangeEndAndRangeStart=uc;function hu(c,$,pr){return e.getLinesBetweenPositions(pr,c.end,$.end)}e.getLinesBetweenRangeEndPositions=hu;function $l(c,$){return!Qs(c.pos,c.end,$)}e.isNodeArrayMultiLine=$l;function Qs(c,$,pr){return e.getLinesBetweenPositions(pr,c,$)===0}e.positionsAreOnSameLine=Qs;function Au(c,$,pr){return cd(c.pos)?-1:e.skipTrivia($.text,c.pos,!1,pr)}e.getStartPositionOfRange=Au;function Id(c,$,pr,Yr){var ji=e.skipTrivia(pr.text,c,!1,Yr),wt=Ec(ji,$,pr);return e.getLinesBetweenPositions(pr,wt!=null?wt:$,ji)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=Id;function K_(c,$,pr,Yr){var ji=e.skipTrivia(pr.text,c,!1,Yr);return e.getLinesBetweenPositions(pr,c,Math.min($,ji))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=K_;function Ec(c,$,pr){for($===void 0&&($=0);c-- >$;)if(!e.isWhiteSpaceLike(pr.text.charCodeAt(c)))return c}function Zl(c){var $=e.getParseTreeNode(c);if($)switch($.parent.kind){case 259:case 260:return $===$.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Zl;function Ie(c){return e.filter(c.declarations,kr)}e.getInitializedVariables=Ie;function kr(c){return c.initializer!==void 0}function Hr(c){return c.watch&&c.hasOwnProperty("watch")}e.isWatchSet=Hr;function vi(c){c.close()}e.closeFileWatcher=vi;function Li(c){return c.flags&33554432?c.checkFlags:0}e.getCheckFlags=Li;function ot(c,$){if($===void 0&&($=!1),c.valueDeclaration){var pr=$&&c.declarations&&e.find(c.declarations,function(Ea){return Ea.kind===172})||c.valueDeclaration,Yr=e.getCombinedModifierFlags(pr);return c.parent&&c.parent.flags&32?Yr:Yr&-29}if(Li(c)&6){var ji=c.checkFlags,wt=ji&1024?8:ji&256?4:16,Lt=ji&2048?32:0;return wt|Lt}return c.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=ot;function zt(c,$){return c.flags&2097152?$.getAliasedSymbol(c):c}e.skipAlias=zt;function la(c){return c.exportSymbol?c.exportSymbol.flags|c.flags:c.flags}e.getCombinedLocalAndExportSymbolFlags=la;function ja(c){return $o(c)===1}e.isWriteOnlyAccess=ja;function Oa(c){return $o(c)!==0}e.isWriteAccess=Oa;var eo;(function(c){c[c.Read=0]="Read",c[c.Write=1]="Write",c[c.ReadWrite=2]="ReadWrite"})(eo||(eo={}));function $o(c){var $=c.parent;if(!$)return 0;switch($.kind){case 211:return $o($);case 219:case 218:var pr=$.operator;return pr===45||pr===46?Ea():0;case 220:var Yr=$,ji=Yr.left,wt=Yr.operatorToken;return ji===c&&mf(wt.kind)?wt.kind===63?1:Ea():0;case 205:return $.name!==c?0:$o($);case 294:{var Lt=$o($.parent);return c===$.name?fo(Lt):Lt}case 295:return c===$.objectAssignmentInitializer?0:$o($.parent);case 203:return $o($);default:return 0}function Ea(){return $.parent&&Go($.parent).kind===237?1:2}}function fo(c){switch(c){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(c)}}function es(c,$){if(!c||!$||Object.keys(c).length!==Object.keys($).length)return!1;for(var pr in c)if(typeof c[pr]=="object"){if(!es(c[pr],$[pr]))return!1}else if(typeof c[pr]!="function"&&c[pr]!==$[pr])return!1;return!0}e.compareDataObjects=es;function Es(c,$){c.forEach($),c.clear()}e.clearMap=Es;function vc(c,$,pr){var Yr=pr.onDeleteValue,ji=pr.onExistingValue;c.forEach(function(wt,Lt){var Ea=$.get(Lt);Ea===void 0?(c.delete(Lt),Yr(wt,Lt)):ji&&ji(wt,Ea,Lt)})}e.mutateMapSkippingNewValues=vc;function lc(c,$,pr){vc(c,$,pr);var Yr=pr.createNewValue;$.forEach(function(ji,wt){c.has(wt)||c.set(wt,Yr(wt,ji))})}e.mutateMap=lc;function cl(c){if(c.flags&32){var $=Is(c);return!!$&&bs($,128)}return!1}e.isAbstractConstructorSymbol=cl;function Is(c){var $;return($=c.declarations)===null||$===void 0?void 0:$.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=Is;function yf(c){return c.flags&3899393?c.objectFlags:0}e.getObjectFlags=yf;function g_(c,$){return $.getSignaturesOfType(c,0).length!==0||$.getSignaturesOfType(c,1).length!==0}e.typeHasCallOrConstructSignatures=g_;function wc(c,$){return!!e.forEachAncestorDirectory(c,function(pr){return $(pr)?!0:void 0})}e.forSomeAncestorDirectory=wc;function bc(c){return!!c&&!!c.declarations&&!!c.declarations[0]&&e.isNamespaceExportDeclaration(c.declarations[0])}e.isUMDExportSymbol=bc;function ru(c){var $=c.moduleSpecifier;return e.isStringLiteral($)?$.text:me($)}e.showModuleSpecifier=ru;function m_(c){var $;return e.forEachChild(c,function(pr){j(pr)&&($=pr)},function(pr){for(var Yr=pr.length-1;Yr>=0;Yr--)if(j(pr[Yr])){$=pr[Yr];break}}),$}e.getLastChild=m_;function Wu(c,$,pr){return pr===void 0&&(pr=!0),c.has($)?!1:(c.set($,pr),!0)}e.addToSeen=Wu;function d(c){return e.isClassLike(c)||e.isInterfaceDeclaration(c)||e.isTypeLiteralNode(c)}e.isObjectTypeDeclaration=d;function K(c){return c>=176&&c<=199||c===130||c===154||c===146||c===157||c===147||c===133||c===149||c===150||c===114||c===152||c===143||c===227||c===310||c===311||c===312||c===313||c===314||c===315||c===316}e.isTypeNodeKind=K;function Ae(c){return c.kind===205||c.kind===206}e.isAccessExpression=Ae;function tr(c){return c.kind===205?c.name:(e.Debug.assert(c.kind===206),c.argumentExpression)}e.getNameOfAccessExpression=tr;function $r(c){switch(c.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=$r;function Zi(c){return c.kind===268||c.kind===272}e.isNamedImportsOrExports=Zi;function dt(c){for(;Ae(c);)c=c.expression;return c}e.getLeftmostAccessExpression=dt;function _n(c,$){for(;;){switch(c.kind){case 219:c=c.operand;continue;case 220:c=c.left;continue;case 221:c=c.condition;continue;case 209:c=c.tag;continue;case 207:if($)return c;case 228:case 206:case 205:case 229:case 348:c=c.expression;continue}return c}}e.getLeftmostExpression=_n;function Zo(c,$){this.flags=c,this.escapedName=$,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function Bs(c,$){this.flags=$,(e.Debug.isDebugging||e.tracing)&&(this.checker=c)}function ad(c,$){this.flags=$,e.Debug.isDebugging&&(this.checker=c)}function hf(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Ag(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function v_(c,$,pr){this.pos=$,this.end=pr,this.kind=c,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function hv(c,$,pr){this.fileName=c,this.text=$,this.skipTrivia=pr||function(Yr){return Yr}}e.objectAllocator={getNodeConstructor:function(){return hf},getTokenConstructor:function(){return Ag},getIdentifierConstructor:function(){return v_},getPrivateIdentifierConstructor:function(){return hf},getSourceFileConstructor:function(){return hf},getSymbolConstructor:function(){return Zo},getTypeConstructor:function(){return Bs},getSignatureConstructor:function(){return ad},getSourceMapSourceConstructor:function(){return hv}};function Dv(c){Object.assign(e.objectAllocator,c)}e.setObjectAllocator=Dv;function Ap(c,$,pr){return pr===void 0&&(pr=0),c.replace(/{(\d+)}/g,function(Yr,ji){return""+e.Debug.checkDefined($[+ji+pr])})}e.formatStringFromArgs=Ap;var wd;function Jt(c){wd=c}e.setLocalizedDiagnosticMessages=Jt;function Df(c){!wd&&c&&(wd=c())}e.maybeSetLocalizedDiagnosticMessages=Df;function qu(c){return wd&&wd[c.key]||c.message}e.getLocaleSpecificMessage=qu;function bf(c,$,pr,Yr){_r(void 0,$,pr);var ji=qu(Yr);return arguments.length>4&&(ji=Ap(ji,arguments,4)),{file:void 0,start:$,length:pr,messageText:ji,category:Yr.category,code:Yr.code,reportsUnnecessary:Yr.reportsUnnecessary,fileName:c}}e.createDetachedDiagnostic=bf;function nd(c){return c.file===void 0&&c.start!==void 0&&c.length!==void 0&&typeof c.fileName=="string"}function Gd(c,$){var pr=$.fileName||"",Yr=$.text.length;e.Debug.assertEqual(c.fileName,pr),e.Debug.assertLessThanOrEqual(c.start,Yr),e.Debug.assertLessThanOrEqual(c.start+c.length,Yr);var ji={file:$,start:c.start,length:c.length,messageText:c.messageText,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary};if(c.relatedInformation){ji.relatedInformation=[];for(var wt=0,Lt=c.relatedInformation;wt<Lt.length;wt++){var Ea=Lt[wt];nd(Ea)&&Ea.fileName===pr?(e.Debug.assertLessThanOrEqual(Ea.start,Yr),e.Debug.assertLessThanOrEqual(Ea.start+Ea.length,Yr),ji.relatedInformation.push(Gd(Ea,$))):ji.relatedInformation.push(Ea)}}return ji}function Od(c,$){for(var pr=[],Yr=0,ji=c;Yr<ji.length;Yr++){var wt=ji[Yr];pr.push(Gd(wt,$))}return pr}e.attachFileToDiagnostics=Od;function od(c,$,pr,Yr){_r(c,$,pr);var ji=qu(Yr);return arguments.length>4&&(ji=Ap(ji,arguments,4)),{file:c,start:$,length:pr,messageText:ji,category:Yr.category,code:Yr.code,reportsUnnecessary:Yr.reportsUnnecessary,reportsDeprecated:Yr.reportsDeprecated}}e.createFileDiagnostic=od;function Sf(c,$){var pr=qu($);return arguments.length>2&&(pr=Ap(pr,arguments,2)),pr}e.formatMessage=Sf;function Em(c){var $=qu(c);return arguments.length>1&&($=Ap($,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:$,category:c.category,code:c.code,reportsUnnecessary:c.reportsUnnecessary,reportsDeprecated:c.reportsDeprecated}}e.createCompilerDiagnostic=Em;function Pg(c,$){return{file:void 0,start:void 0,length:void 0,code:c.code,category:c.category,messageText:c.next?c:c.messageText,relatedInformation:$}}e.createCompilerDiagnosticFromMessageChain=Pg;function Hd(c,$){var pr=qu($);return arguments.length>2&&(pr=Ap(pr,arguments,2)),{messageText:pr,category:$.category,code:$.code,next:c===void 0||Array.isArray(c)?c:[c]}}e.chainDiagnosticMessages=Hd;function sd(c,$){for(var pr=c;pr.next;)pr=pr.next[0];pr.next=[$]}e.concatenateDiagnosticMessageChains=sd;function Ng(c){return c.file?c.file.path:void 0}function Fd(c,$){return ef(c,$)||bv(c,$)||0}e.compareDiagnostics=Fd;function ef(c,$){return e.compareStringsCaseSensitive(Ng(c),Ng($))||e.compareValues(c.start,$.start)||e.compareValues(c.length,$.length)||e.compareValues(c.code,$.code)||y_(c.messageText,$.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=ef;function bv(c,$){return!c.relatedInformation&&!$.relatedInformation?0:c.relatedInformation&&$.relatedInformation?e.compareValues(c.relatedInformation.length,$.relatedInformation.length)||e.forEach(c.relatedInformation,function(pr,Yr){var ji=$.relatedInformation[Yr];return Fd(pr,ji)})||0:c.relatedInformation?-1:1}function y_(c,$){if(typeof c=="string"&&typeof $=="string")return e.compareStringsCaseSensitive(c,$);if(typeof c=="string")return-1;if(typeof $=="string")return 1;var pr=e.compareStringsCaseSensitive(c.messageText,$.messageText);if(pr)return pr;if(!c.next&&!$.next)return 0;if(!c.next)return-1;if(!$.next)return 1;for(var Yr=Math.min(c.next.length,$.next.length),ji=0;ji<Yr;ji++)if(pr=y_(c.next[ji],$.next[ji]),pr)return pr;return c.next.length<$.next.length?-1:c.next.length>$.next.length?1:0}function zc(c){return c===4||c===2||c===1||c===6?1:0}e.getLanguageVariant=zc;function Kf(c){return c.target||c.module===e.ModuleKind.Node12&&7||c.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=Kf;function _t(c){return typeof c.module=="number"?c.module:Kf(c)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=_t;function xa(c){var $=c.moduleResolution;if($===void 0)switch(_t(c)){case e.ModuleKind.CommonJS:$=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:$=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:$=e.ModuleResolutionKind.NodeNext;break;default:$=e.ModuleResolutionKind.Classic;break}return $}e.getEmitModuleResolutionKind=xa;function ma(c){switch(_t(c)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=ma;function Va(c){return c.allowUnreachableCode===!1}e.unreachableCodeIsError=Va;function dn(c){return c.allowUnusedLabels===!1}e.unusedLabelIsError=dn;function Pn(c){return!!(Sc(c)&&c.declarationMap)}e.getAreDeclarationMapsEnabled=Pn;function cs(c){if(c.esModuleInterop!==void 0)return c.esModuleInterop;switch(_t(c)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=cs;function yc(c){var $=_t(c);return c.allowSyntheticDefaultImports!==void 0?c.allowSyntheticDefaultImports:cs(c)||$===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=yc;function Sc(c){return!!(c.declaration||c.composite)}e.getEmitDeclarations=Sc;function Oc(c){return!!(c.preserveConstEnums||c.isolatedModules)}e.shouldPreserveConstEnums=Oc;function cu(c){return!!(c.incremental||c.composite)}e.isIncrementalCompilation=cu;function Pl(c,$){return c[$]===void 0?!!c.strict:!!c[$]}e.getStrictOptionValue=Pl;function G_(c){return c.allowJs===void 0?!!c.checkJs:c.allowJs}e.getAllowJSCompilerOption=G_;function Tf(c){return c.useDefineForClassFields===void 0?Kf(c)>=9:c.useDefineForClassFields}e.getUseDefineForClassFields=Tf;function Xd(c,$){return S($,c,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=Xd;function Io(c,$){return S($,c,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=Io;function Qd(c,$){return $.strictFlag?Pl(c,$.name):c[$.name]}e.getCompilerOptionValue=Qd;function Ig(c){var $=c.jsx;return $===2||$===4||$===5}e.getJSXTransformEnabled=Ig;function p1(c,$){var pr=$==null?void 0:$.pragmas.get("jsximportsource"),Yr=e.isArray(pr)?pr[pr.length-1]:pr;return c.jsx===4||c.jsx===5||c.jsxImportSource||Yr?(Yr==null?void 0:Yr.arguments.factory)||c.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=p1;function Ry(c,$){return c?"".concat(c,"/").concat($.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=Ry;function d1(c){for(var $=!1,pr=0;pr<c.length;pr++)if(c.charCodeAt(pr)===42)if(!$)$=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=d1;function g1(c,$){var pr,Yr,ji,wt=!1;return{getSymlinkedFiles:function(){return ji},getSymlinkedDirectories:function(){return pr},getSymlinkedDirectoriesByRealpath:function(){return Yr},setSymlinkedFile:function(Ea,vn){return(ji||(ji=new e.Map)).set(Ea,vn)},setSymlinkedDirectory:function(Ea,vn){var sn=e.toPath(Ea,c,$);eh(sn)||(sn=e.ensureTrailingDirectorySeparator(sn),vn!==!1&&!(pr!=null&&pr.has(sn))&&(Yr||(Yr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(vn.realPath),Ea),(pr||(pr=new e.Map)).set(sn,vn))},setSymlinksFromResolutions:function(Ea,vn){var sn=this,Fo;e.Debug.assert(!wt),wt=!0;for(var us=0,tn=Ea;us<tn.length;us++){var Ys=tn[us];(Fo=Ys.resolvedModules)===null||Fo===void 0||Fo.forEach(function(za){return Lt(sn,za)})}vn==null||vn.forEach(function(za){return Lt(sn,za)})},hasProcessedResolutions:function(){return wt}};function Lt(Ea,vn){if(!(!vn||!vn.originalPath||!vn.resolvedFileName)){var sn=vn.resolvedFileName,Fo=vn.originalPath;Ea.setSymlinkedFile(e.toPath(Fo,c,$),sn);var us=By(sn,Fo,c,$)||e.emptyArray,tn=us[0],Ys=us[1];tn&&Ys&&Ea.setSymlinkedDirectory(Ys,{real:tn,realPath:e.toPath(tn,c,$)})}}}e.createSymlinkCache=g1;function By(c,$,pr,Yr){for(var ji=e.getPathComponents(e.getNormalizedAbsolutePath(c,pr)),wt=e.getPathComponents(e.getNormalizedAbsolutePath($,pr)),Lt=!1;ji.length>=2&&wt.length>=2&&!Sv(ji[ji.length-2],Yr)&&!Sv(wt[wt.length-2],Yr)&&Yr(ji[ji.length-1])===Yr(wt[wt.length-1]);)ji.pop(),wt.pop(),Lt=!0;return Lt?[e.getPathFromPathComponents(ji),e.getPathFromPathComponents(wt)]:void 0}function Sv(c,$){return c!==void 0&&($(c)==="node_modules"||e.startsWith(c,"@"))}function Jy(c){return e.isAnyDirectorySeparator(c.charCodeAt(0))?c.slice(1):void 0}function Tv(c,$,pr){var Yr=e.tryRemovePrefix(c,$,pr);return Yr===void 0?void 0:Jy(Yr)}e.tryRemoveDirectoryPrefix=Tv;var ul=/[^\w\s\/]/g;function xv(c){return c.replace(ul,Yd)}e.regExpEscape=xv;function Yd(c){return"\\"+c}var wg=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Pp="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),jy={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Pp,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return kv(c,jy.singleAsteriskRegexFragment)}},Nl={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Pp,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(c){return kv(c,Nl.singleAsteriskRegexFragment)}},Uy={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(c){return kv(c,Uy.singleAsteriskRegexFragment)}},Ev={files:jy,directories:Nl,exclude:Uy};function $d(c,$,pr){var Yr=Il(c,$,pr);if(!(!Yr||!Yr.length)){var ji=Yr.map(function(Lt){return"(".concat(Lt,")")}).join("|"),wt=pr==="exclude"?"($|/)":"$";return"^(".concat(ji,")").concat(wt)}}e.getRegularExpressionForWildcard=$d;function Il(c,$,pr){if(!(c===void 0||c.length===0))return e.flatMap(c,function(Yr){return Yr&&Cv(Yr,$,pr,Ev[pr])})}e.getRegularExpressionsForWildcards=Il;function Og(c){return!/[.*?]/.test(c)}e.isImplicitGlob=Og;function Wc(c,$,pr){var Yr=c&&Cv(c,$,pr,Ev[pr]);return Yr&&"^(".concat(Yr,")").concat(pr==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Wc;function Cv(c,$,pr,Yr){var ji=Yr.singleAsteriskRegexFragment,wt=Yr.doubleAsteriskRegexFragment,Lt=Yr.replaceWildcardCharacter,Ea="",vn=!1,sn=e.getNormalizedPathComponents(c,$),Fo=e.last(sn);if(!(pr!=="exclude"&&Fo==="**")){sn[0]=e.removeTrailingDirectorySeparator(sn[0]),Og(Fo)&&sn.push("**","*");for(var us=0,tn=0,Ys=sn;tn<Ys.length;tn++){var za=Ys[tn];if(za==="**")Ea+=wt;else if(pr==="directories"&&(Ea+="(",us++),vn&&(Ea+=e.directorySeparator),pr!=="exclude"){var Du="";za.charCodeAt(0)===42?(Du+="([^./]"+ji+")?",za=za.substr(1)):za.charCodeAt(0)===63&&(Du+="[^./]",za=za.substr(1)),Du+=za.replace(ul,Lt),Du!==za&&(Ea+=Pp),Ea+=Du}else Ea+=za.replace(ul,Lt);vn=!0}for(;us>0;)Ea+=")?",us--;return Ea}}function kv(c,$){return c==="*"?$:c==="?"?"[^/]":"\\"+c}function zy(c,$,pr,Yr,ji){c=e.normalizePath(c),ji=e.normalizePath(ji);var wt=e.combinePaths(ji,c);return{includeFilePatterns:e.map(Il(pr,wt,"files"),function(Lt){return"^".concat(Lt,"$")}),includeFilePattern:$d(pr,wt,"files"),includeDirectoryPattern:$d(pr,wt,"directories"),excludePattern:$d($,wt,"exclude"),basePaths:Wy(c,pr,Yr)}}e.getFileMatcherPatterns=zy;function Pu(c,$){return new RegExp(c,$?"":"i")}e.getRegexFromPattern=Pu;function Zd(c,$,pr,Yr,ji,wt,Lt,Ea,vn){c=e.normalizePath(c),wt=e.normalizePath(wt);for(var sn=zy(c,pr,Yr,ji,wt),Fo=sn.includeFilePatterns&&sn.includeFilePatterns.map(function(kc){return Pu(kc,ji)}),us=sn.includeDirectoryPattern&&Pu(sn.includeDirectoryPattern,ji),tn=sn.excludePattern&&Pu(sn.excludePattern,ji),Ys=Fo?Fo.map(function(){return[]}):[[]],za=new e.Map,Du=e.createGetCanonicalFileName(ji),gs=0,iu=sn.basePaths;gs<iu.length;gs++){var X_=iu[gs];Js(X_,e.combinePaths(wt,X_),Lt)}return e.flatten(Ys);function Js(kc,fl,jg){var ig=Du(vn(fl));if(!za.has(ig)){za.set(ig,!0);for(var Np=Ea(kc),ih=Np.files,Bv=Np.directories,Nm=function(Ku){var Jv=e.combinePaths(kc,Ku),Wg=e.combinePaths(fl,Ku);if($&&!e.fileExtensionIsOneOf(Jv,$)||tn&&tn.test(Wg))return"continue";if(!Fo)Ys[0].push(Jv);else{var th=e.findIndex(Fo,function(M1){return M1.test(Wg)});th!==-1&&Ys[th].push(Jv)}},Ug=0,ud=e.sort(ih,e.compareStringsCaseSensitive);Ug<ud.length;Ug++){var Im=ud[Ug];Nm(Im)}if(!(jg!==void 0&&(jg--,jg===0)))for(var zg=0,tg=e.sort(Bv,e.compareStringsCaseSensitive);zg<tg.length;zg++){var Im=tg[zg],Ol=e.combinePaths(kc,Im),S_=e.combinePaths(fl,Im);(!us||us.test(S_))&&(!tn||!tn.test(S_))&&Js(Ol,S_,jg)}}}}e.matchFiles=Zd;function Wy(c,$,pr){var Yr=[c];if($){for(var ji=[],wt=0,Lt=$;wt<Lt.length;wt++){var Ea=Lt[wt],vn=e.isRootedDiskPath(Ea)?Ea:e.normalizePath(e.combinePaths(c,Ea));ji.push(m1(vn))}ji.sort(e.getStringComparer(!pr));for(var sn=function(Ys){e.every(Yr,function(za){return!e.containsPath(za,Ys,c,!pr)})&&Yr.push(Ys)},Fo=0,us=ji;Fo<us.length;Fo++){var tn=us[Fo];sn(tn)}}return Yr}function m1(c){var $=e.indexOfAnyCharCode(c,wg);return $<0?e.hasExtension(c)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(c)):c:c.substring(0,c.lastIndexOf(e.directorySeparator,$))}function v1(c,$){return $||Av(c)||3}e.ensureScriptKind=v1;function Av(c){var $=c.substr(c.lastIndexOf("."));switch($.toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getScriptKindFromFileName=Av,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var y1=qe(qe([],e.supportedTSExtensions,!0),[[".json"]],!1),Pv=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Cm=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Nv=qe(qe([],Cm,!0),[[".json"]],!1);function Iv(c,$){var pr=c&&G_(c);if(!$||$.length===0)return pr?Cm:e.supportedTSExtensions;var Yr=pr?Cm:e.supportedTSExtensions,ji=e.flatten(Yr),wt=qe(qe([],Yr,!0),e.mapDefined($,function(Lt){return Lt.scriptKind===7||pr&&h1(Lt.scriptKind)&&ji.indexOf(Lt.extension)===-1?[Lt.extension]:void 0}),!0);return wt}e.getSupportedExtensions=Iv;function qy(c,$){return!c||!c.resolveJsonModule?$:$===Cm?Nv:$===e.supportedTSExtensions?y1:qe(qe([],$,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=qy;function h1(c){return c===1||c===2}function D1(c){return e.some(e.supportedJSExtensionsFlat,function($){return e.fileExtensionIs(c,$)})}e.hasJSFileExtension=D1;function Vy(c){return e.some(e.supportedTSExtensionsFlat,function($){return e.fileExtensionIs(c,$)})}e.hasTSFileExtension=Vy;function b1(c,$,pr){if(!c)return!1;for(var Yr=Iv($,pr),ji=0,wt=e.flatten(qy($,Yr));ji<wt.length;ji++){var Lt=wt[ji];if(e.fileExtensionIs(c,Lt))return!0}return!1}e.isSupportedSourceFileName=b1;function eg(c){var $=c.match(/\//g);return $?$.length:0}function Ky(c,$){return e.compareValues(eg(c),eg($))}e.compareNumberOfDirectorySeparators=Ky;var wv=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Fg(c){for(var $=0,pr=wv;$<pr.length;$++){var Yr=pr[$],ji=Ov(c,Yr);if(ji!==void 0)return ji}return c}e.removeFileExtension=Fg;function Ov(c,$){return e.fileExtensionIs(c,$)?Fv(c,$):void 0}e.tryRemoveExtension=Ov;function Fv(c,$){return c.substring(0,c.length-$.length)}e.removeExtension=Fv;function S1(c,$){return e.changeAnyExtension(c,$,wv,!1)}e.changeExtension=S1;function Gy(c){var $=c.indexOf("*");return $===-1?c:c.indexOf("*",$+1)!==-1?void 0:{prefix:c.substr(0,$),suffix:c.substr($+1)}}e.tryParsePattern=Gy;function T1(c){return e.mapDefined(e.getOwnKeys(c),function($){return Gy($)})}e.tryParsePatterns=T1;function cd(c){return!(c>=0)}e.positionIsSynthesized=cd;function km(c){return c===".ts"||c===".tsx"||c===".d.ts"||c===".cts"||c===".mts"||c===".d.mts"||c===".d.cts"}e.extensionIsTS=km;function Mv(c){return km(c)||c===".json"}e.resolutionExtensionIsTSOrJson=Mv;function x1(c){var $=Nu(c);return $!==void 0?$:e.Debug.fail("File ".concat(c," has unknown extension."))}e.extensionFromPath=x1;function E1(c){return Nu(c)!==void 0}e.isAnySupportedFileExtension=E1;function Nu(c){return e.find(wv,function($){return e.fileExtensionIs(c,$)})}e.tryGetExtensionFromPath=Nu;function Iu(c,$){return c.checkJsDirective?c.checkJsDirective.enabled:$.checkJs}e.isCheckJsEnabledForFile=Iu,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function h_(c,$){for(var pr=[],Yr=0,ji=c;Yr<ji.length;Yr++){var wt=ji[Yr];if(wt===$)return $;e.isString(wt)||pr.push(wt)}return e.findBestPatternMatch(pr,function(Lt){return Lt},$)}e.matchPatternOrExact=h_;function wl(c,$){var pr=c.indexOf($);return e.Debug.assert(pr!==-1),c.slice(pr)}e.sliceAfter=wl;function Hy(c){for(var $,pr=[],Yr=1;Yr<arguments.length;Yr++)pr[Yr-1]=arguments[Yr];return pr.length&&(c.relatedInformation||(c.relatedInformation=[]),e.Debug.assert(c.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),($=c.relatedInformation).push.apply($,pr)),c}e.addRelatedInfo=Hy;function Mg(c,$){e.Debug.assert(c.length!==0);for(var pr=$(c[0]),Yr=pr,ji=1;ji<c.length;ji++){var wt=$(c[ji]);wt<pr?pr=wt:wt>Yr&&(Yr=wt)}return{min:pr,max:Yr}}e.minAndMax=Mg;function Lg(c){return{pos:le(c),end:c.end}}e.rangeOfNode=Lg;function ll(c,$){var pr=$.pos-1,Yr=e.skipTrivia(c.text,$.end)+1;return{pos:pr,end:Yr}}e.rangeOfTypeParameters=ll;function Xy(c,$,pr){return $.skipLibCheck&&c.isDeclarationFile||$.skipDefaultLibCheck&&c.hasNoDefaultLib||pr.isSourceOfProjectReferenceRedirect(c.fileName)}e.skipTypeChecking=Xy;function Rg(c,$){return c===$||typeof c=="object"&&c!==null&&typeof $=="object"&&$!==null&&e.equalOwnProperties(c,$,Rg)}e.isJsonEqual=Rg;function C1(c){var $;switch(c.charCodeAt(1)){case 98:case 66:$=1;break;case 111:case 79:$=3;break;case 120:case 88:$=4;break;default:for(var pr=c.length-1,Yr=0;c.charCodeAt(Yr)===48;)Yr++;return c.slice(Yr,pr)||"0"}for(var ji=2,wt=c.length-1,Lt=(wt-ji)*$,Ea=new Uint16Array((Lt>>>4)+(Lt&15?1:0)),vn=wt-1,sn=0;vn>=ji;vn--,sn+=$){var Fo=sn>>>4,us=c.charCodeAt(vn),tn=us<=57?us-48:10+us-(us<=70?65:97),Ys=tn<<(sn&15);Ea[Fo]|=Ys;var za=Ys>>>16;za&&(Ea[Fo+1]|=za)}for(var Du="",gs=Ea.length-1,iu=!0;iu;){var X_=0;iu=!1;for(var Fo=gs;Fo>=0;Fo--){var Js=X_<<16|Ea[Fo],kc=Js/10|0;Ea[Fo]=kc,X_=Js-kc*10,kc&&!iu&&(gs=Fo,iu=!0)}Du=X_+Du}return Du}e.parsePseudoBigInt=C1;function Fc(c){var $=c.negative,pr=c.base10Value;return($&&pr!=="0"?"-":"")+pr}e.pseudoBigIntToString=Fc;function Vu(c){return!!(c.flags&8388608)||Ka(c)||Bg(c)||D_(c)||!(ut(c)||Gf(c))}e.isValidTypeOnlyAliasUseSite=Vu;function Gf(c){return e.isIdentifier(c)&&e.isShorthandPropertyAssignment(c.parent)&&c.parent.name===c}function D_(c){for(;c.kind===79||c.kind===205;)c=c.parent;if(c.kind!==161)return!1;if(bs(c.parent,128))return!0;var $=c.parent.parent.kind;return $===257||$===181}function Bg(c){if(c.kind!==79)return!1;var $=e.findAncestor(c.parent,function(pr){switch(pr.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}});return($==null?void 0:$.token)===117||($==null?void 0:$.parent.kind)===257}function _o(c){return e.isTypeReferenceNode(c)&&e.isIdentifier(c.typeName)}e.isIdentifierTypeReference=_o;function k1(c,$){if($===void 0&&($=e.equateValues),c.length<2)return!0;for(var pr=c[0],Yr=1,ji=c.length;Yr<ji;Yr++){var wt=c[Yr];if(!$(pr,wt))return!1}return!0}e.arrayIsHomogeneous=k1;function Qy(c,$){return c.pos=$,c}e.setTextRangePos=Qy;function Yy(c,$){return c.end=$,c}e.setTextRangeEnd=Yy;function b_(c,$,pr){return Yy(Qy(c,$),pr)}e.setTextRangePosEnd=b_;function qc(c,$,pr){return b_(c,$,$+pr)}e.setTextRangePosWidth=qc;function A1(c,$){return c&&(c.flags=$),c}e.setNodeFlags=A1;function Jg(c,$){return c&&$&&(c.parent=$),c}e.setParent=Jg;function P1(c,$){if(c)for(var pr=0,Yr=c;pr<Yr.length;pr++){var ji=Yr[pr];Jg(ji,$)}return c}e.setEachParent=P1;function Lv(c,$){if(!c)return c;return e.forEachChildRecursively(c,e.isJSDocNode(c)?pr:ji),c;function pr(wt,Lt){if($&&wt.parent===Lt)return"skip";Jg(wt,Lt)}function Yr(wt){if(e.hasJSDocNodes(wt))for(var Lt=0,Ea=wt.jsDoc;Lt<Ea.length;Lt++){var vn=Ea[Lt];pr(vn,wt),e.forEachChildRecursively(vn,pr)}}function ji(wt,Lt){return pr(wt,Lt)||Yr(wt)}}e.setParentRecursive=Lv;function $y(c){return!e.isOmittedExpression(c)}function Zy(c){return e.isArrayLiteralExpression(c)&&e.every(c.elements,$y)}e.isPackedArrayLiteral=Zy;function N1(c){for(e.Debug.assertIsDefined(c.parent);;){var $=c.parent;if(e.isParenthesizedExpression($)){c=$;continue}if(e.isExpressionStatement($)||e.isVoidExpression($)||e.isForStatement($)&&($.initializer===c||$.incrementor===c))return!0;if(e.isCommaListExpression($)){if(c!==e.last($.elements))return!0;c=$;continue}if(e.isBinaryExpression($)&&$.operatorToken.kind===27){if(c===$.left)return!0;c=$;continue}return!1}}e.expressionResultIsUnused=N1;function eh(c){return e.some(e.ignoredPaths,function($){return e.stringContains(c,$)})}e.containsIgnoredPath=eh;function Cc(c){if(!!c.parent){switch(c.kind){case 162:var $=c.parent;return $.kind===189?void 0:$.typeParameters;case 163:return c.parent.parameters;case 198:return c.parent.templateSpans;case 232:return c.parent.templateSpans;case 164:return c.parent.decorators;case 290:return c.parent.heritageClauses}var pr=c.parent;if(e.isJSDocTag(c))return e.isJSDocTypeLiteral(c.parent)?void 0:c.parent.tags;switch(pr.kind){case 181:case 257:return e.isTypeElement(c)?pr.members:void 0;case 186:case 187:return pr.types;case 183:case 203:case 349:case 268:case 272:return pr.elements;case 204:case 285:return pr.properties;case 207:case 208:return e.isTypeNode(c)?pr.typeArguments:pr.expression===c?void 0:pr.arguments;case 277:case 281:return e.isJsxChild(c)?pr.children:void 0;case 279:case 278:return e.isTypeNode(c)?pr.typeArguments:void 0;case 234:case 288:case 289:case 261:return pr.statements;case 262:return pr.clauses;case 256:case 225:return e.isClassElement(c)?pr.members:void 0;case 259:return e.isEnumMember(c)?pr.members:void 0;case 303:return pr.statements}}}e.getContainingNodeArray=Cc;function rg(c){if(!c.typeParameters){if(e.some(c.parameters,function(pr){return!Tl(pr)}))return!0;if(c.kind!==213){var $=e.firstOrUndefined(c.parameters);if(!($&&_f($)))return!0}}return!1}e.hasContextSensitiveParameters=rg;function Am(c){return c==="Infinity"||c==="-Infinity"||c==="NaN"}e.isInfinityOrNaNString=Am;function Pm(c){return c.kind===253&&c.parent.kind===291}e.isCatchClauseVariableDeclaration=Pm;function I1(c){var $=c.valueDeclaration&&a_(c.valueDeclaration);return!!$&&(e.isParameter($)||Pm($))}e.isParameterOrCatchClauseVariable=I1;function Rv(c){return c.kind===212||c.kind===213}e.isFunctionExpressionOrArrowFunction=Rv;function H_(c){return c.replace(/\$/gm,function(){return"\\$"})}e.escapeSnippetText=H_;function rh(c){return(+c).toString()===c}e.isNumericLiteralName=rh;function w1(c,$,pr,Yr){return e.isIdentifierText(c,$)?e.factory.createIdentifier(c):!Yr&&rh(c)&&+c>=0?e.factory.createNumericLiteral(+c):e.factory.createStringLiteral(c,!!pr)}e.createPropertyNameNodeForIdentifierOrLiteral=w1;function O1(c){return!!(c.flags&262144&&c.isThisType)}e.isThisTypeParameter=O1;function F1(c){var $=0,pr=0,Yr=0,ji=0,wt;(function(sn){sn[sn.BeforeNodeModules=0]="BeforeNodeModules",sn[sn.NodeModules=1]="NodeModules",sn[sn.Scope=2]="Scope",sn[sn.PackageContent=3]="PackageContent"})(wt||(wt={}));for(var Lt=0,Ea=0,vn=0;Ea>=0;)switch(Lt=Ea,Ea=c.indexOf("/",Lt+1),vn){case 0:c.indexOf(e.nodeModulesPathPart,Lt)===Lt&&($=Lt,pr=Ea,vn=1);break;case 1:case 2:vn===1&&c.charAt(Lt+1)==="@"?vn=2:(Yr=Ea,vn=3);break;case 3:c.indexOf(e.nodeModulesPathPart,Lt)===Lt?vn=1:vn=3;break}return ji=Lt,vn>1?{topLevelNodeModulesIndex:$,topLevelPackageNameIndex:pr,packageRootIndex:Yr,fileNameIndex:ji}:void 0}e.getNodeModulePathParts=F1})(Pe||(Pe={}));var Pe;(function(e){function a(){var O,L,W,N,Q;return{createBaseSourceFileNode:pe,createBaseIdentifierNode:F,createBasePrivateIdentifierNode:g,createBaseTokenNode:S,createBaseNode:H};function pe(se){return new(Q||(Q=e.objectAllocator.getSourceFileConstructor()))(se,-1,-1)}function F(se){return new(W||(W=e.objectAllocator.getIdentifierConstructor()))(se,-1,-1)}function g(se){return new(N||(N=e.objectAllocator.getPrivateIdentifierConstructor()))(se,-1,-1)}function S(se){return new(L||(L=e.objectAllocator.getTokenConstructor()))(se,-1,-1)}function H(se){return new(O||(O=e.objectAllocator.getNodeConstructor()))(se,-1,-1)}}e.createBaseNodeFactory=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L,W;return{getParenthesizeLeftSideOfBinaryForOperator:N,getParenthesizeRightSideOfBinaryForOperator:Q,parenthesizeLeftSideOfBinary:H,parenthesizeRightSideOfBinary:se,parenthesizeExpressionOfComputedPropertyName:p,parenthesizeConditionOfConditionalExpression:C,parenthesizeBranchOfConditionalExpression:G,parenthesizeExpressionOfExportDefault:E,parenthesizeExpressionOfNew:ue,parenthesizeLeftSideOfAccess:B,parenthesizeOperandOfPostfixUnary:re,parenthesizeOperandOfPrefixUnary:M,parenthesizeExpressionsOfCommaDelimitedList:x,parenthesizeExpressionForDisallowedComma:ie,parenthesizeExpressionOfExpressionStatement:_e,parenthesizeConciseBodyOfArrowFunction:Y,parenthesizeMemberOfConditionalType:Z,parenthesizeMemberOfElementType:k,parenthesizeElementTypeOfArrayType:I,parenthesizeConstituentTypesOfUnionOrIntersectionType:ne,parenthesizeTypeArguments:A};function N(f){L||(L=new e.Map);var P=L.get(f);return P||(P=function(D){return H(f,D)},L.set(f,P)),P}function Q(f){W||(W=new e.Map);var P=W.get(f);return P||(P=function(D){return se(f,void 0,D)},W.set(f,P)),P}function pe(f,P,D,l){var _=e.getOperatorPrecedence(220,f),J=e.getOperatorAssociativity(220,f),w=e.skipPartiallyEmittedExpressions(P);if(!D&&P.kind===213&&_>3)return!0;var j=e.getExpressionPrecedence(w);switch(e.compareValues(j,_)){case-1:return!(!D&&J===1&&P.kind===223);case 1:return!1;case 0:if(D)return J===1;if(e.isBinaryExpression(w)&&w.operatorToken.kind===f){if(F(f))return!1;if(f===39){var U=l?g(l):0;if(e.isLiteralKind(U)&&U===g(w))return!1}}var z=e.getExpressionAssociativity(w);return z===0}}function F(f){return f===41||f===51||f===50||f===52}function g(f){if(f=e.skipPartiallyEmittedExpressions(f),e.isLiteralKind(f.kind))return f.kind;if(f.kind===220&&f.operatorToken.kind===39){if(f.cachedLiteralKind!==void 0)return f.cachedLiteralKind;var P=g(f.left),D=e.isLiteralKind(P)&&P===g(f.right)?P:0;return f.cachedLiteralKind=D,D}return 0}function S(f,P,D,l){var _=e.skipPartiallyEmittedExpressions(P);return _.kind===211?P:pe(f,P,D,l)?O.createParenthesizedExpression(P):P}function H(f,P){return S(f,P,!0)}function se(f,P,D){return S(f,D,!1,P)}function p(f){return e.isCommaSequence(f)?O.createParenthesizedExpression(f):f}function C(f){var P=e.getOperatorPrecedence(221,57),D=e.skipPartiallyEmittedExpressions(f),l=e.getExpressionPrecedence(D);return e.compareValues(l,P)!==1?O.createParenthesizedExpression(f):f}function G(f){var P=e.skipPartiallyEmittedExpressions(f);return e.isCommaSequence(P)?O.createParenthesizedExpression(f):f}function E(f){var P=e.skipPartiallyEmittedExpressions(f),D=e.isCommaSequence(P);if(!D)switch(e.getLeftmostExpression(P,!1).kind){case 225:case 212:D=!0}return D?O.createParenthesizedExpression(f):f}function ue(f){var P=e.getLeftmostExpression(f,!0);switch(P.kind){case 207:return O.createParenthesizedExpression(f);case 208:return P.arguments?f:O.createParenthesizedExpression(f)}return B(f)}function B(f){var P=e.skipPartiallyEmittedExpressions(f);return e.isLeftHandSideExpression(P)&&(P.kind!==208||P.arguments)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function re(f){return e.isLeftHandSideExpression(f)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function M(f){return e.isUnaryExpression(f)?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function x(f){var P=e.sameMap(f,ie);return e.setTextRange(O.createNodeArray(P,f.hasTrailingComma),f)}function ie(f){var P=e.skipPartiallyEmittedExpressions(f),D=e.getExpressionPrecedence(P),l=e.getOperatorPrecedence(220,27);return D>l?f:e.setTextRange(O.createParenthesizedExpression(f),f)}function _e(f){var P=e.skipPartiallyEmittedExpressions(f);if(e.isCallExpression(P)){var D=P.expression,l=e.skipPartiallyEmittedExpressions(D).kind;if(l===212||l===213){var _=O.updateCallExpression(P,e.setTextRange(O.createParenthesizedExpression(D),D),P.typeArguments,P.arguments);return O.restoreOuterExpressions(f,_,8)}}var J=e.getLeftmostExpression(P,!1).kind;return J===204||J===212?e.setTextRange(O.createParenthesizedExpression(f),f):f}function Y(f){return!e.isBlock(f)&&(e.isCommaSequence(f)||e.getLeftmostExpression(f,!1).kind===204)?e.setTextRange(O.createParenthesizedExpression(f),f):f}function Z(f){return f.kind===188?O.createParenthesizedType(f):f}function k(f){switch(f.kind){case 186:case 187:case 178:case 179:return O.createParenthesizedType(f)}return Z(f)}function I(f){switch(f.kind){case 180:case 192:case 189:return O.createParenthesizedType(f)}return k(f)}function ne(f){return O.createNodeArray(e.sameMap(f,k))}function ee(f,P){return P===0&&e.isFunctionOrConstructorTypeNode(f)&&f.typeParameters?O.createParenthesizedType(f):f}function A(f){if(e.some(f))return O.createNodeArray(e.sameMap(f,ee))}}e.createParenthesizerRules=a,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(O){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(O){return e.identity},parenthesizeLeftSideOfBinary:function(O,L){return L},parenthesizeRightSideOfBinary:function(O,L,W){return W},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(O){return e.cast(O,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(O){return e.cast(O,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(O){return e.cast(O,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(O){return e.cast(O,e.isNodeArray)},parenthesizeTypeArguments:function(O){return O&&e.cast(O,e.isNodeArray)}}})(Pe||(Pe={}));var Pe;(function(e){function a(O){return{convertToFunctionBlock:L,convertToFunctionExpression:W,convertToArrayAssignmentElement:N,convertToObjectAssignmentElement:Q,convertToAssignmentPattern:pe,convertToObjectAssignmentPattern:F,convertToArrayAssignmentPattern:g,convertToAssignmentElementTarget:S};function L(H,se){if(e.isBlock(H))return H;var p=O.createReturnStatement(H);e.setTextRange(p,H);var C=O.createBlock([p],se);return e.setTextRange(C,H),C}function W(H){if(!H.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var se=O.createFunctionExpression(H.modifiers,H.asteriskToken,H.name,H.typeParameters,H.parameters,H.type,H.body);return e.setOriginalNode(se,H),e.setTextRange(se,H),e.getStartsOnNewLine(H)&&e.setStartsOnNewLine(se,!0),se}function N(H){if(e.isBindingElement(H)){if(H.dotDotDotToken)return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createSpreadElement(H.name),H),H);var se=S(H.name);return H.initializer?e.setOriginalNode(e.setTextRange(O.createAssignment(se,H.initializer),H),H):se}return e.cast(H,e.isExpression)}function Q(H){if(e.isBindingElement(H)){if(H.dotDotDotToken)return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createSpreadAssignment(H.name),H),H);if(H.propertyName){var se=S(H.name);return e.setOriginalNode(e.setTextRange(O.createPropertyAssignment(H.propertyName,H.initializer?O.createAssignment(se,H.initializer):se),H),H)}return e.Debug.assertNode(H.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(O.createShorthandPropertyAssignment(H.name,H.initializer),H),H)}return e.cast(H,e.isObjectLiteralElementLike)}function pe(H){switch(H.kind){case 201:case 203:return g(H);case 200:case 204:return F(H)}}function F(H){return e.isObjectBindingPattern(H)?e.setOriginalNode(e.setTextRange(O.createObjectLiteralExpression(e.map(H.elements,Q)),H),H):e.cast(H,e.isObjectLiteralExpression)}function g(H){return e.isArrayBindingPattern(H)?e.setOriginalNode(e.setTextRange(O.createArrayLiteralExpression(e.map(H.elements,N)),H),H):e.cast(H,e.isArrayLiteralExpression)}function S(H){return e.isBindingPattern(H)?pe(H):e.cast(H,e.isExpression)}}e.createNodeConverters=a,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(Pe||(Pe={}));var Pe;(function(e){var a=0,O;(function(ne){ne[ne.None=0]="None",ne[ne.NoParenthesizerRules=1]="NoParenthesizerRules",ne[ne.NoNodeConverters=2]="NoNodeConverters",ne[ne.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",ne[ne.NoOriginalNode=8]="NoOriginalNode"})(O=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function L(ne,ee){var A=ne&8?W:N,f=e.memoize(function(){return ne&1?e.nullParenthesizerRules:e.createParenthesizerRules(ve)}),P=e.memoize(function(){return ne&2?e.nullNodeConverters:e.createNodeConverters(ve)}),D=e.memoizeOne(function(d){return function(K,Ae){return Ba(K,d,Ae)}}),l=e.memoizeOne(function(d){return function(K){return ti(d,K)}}),_=e.memoizeOne(function(d){return function(K){return Zt(K,d)}}),J=e.memoizeOne(function(d){return function(){return nf(d)}}),w=e.memoizeOne(function(d){return function(K){return s_(d,K)}}),j=e.memoizeOne(function(d){return function(K,Ae){return Rf(d,K,Ae)}}),U=e.memoizeOne(function(d){return function(K,Ae){return ff(d,K,Ae)}}),z=e.memoizeOne(function(d){return function(K,Ae,tr){return _f(d,K,Ae,tr)}}),y=e.memoizeOne(function(d){return function(K,Ae,tr){return Vl(d,K,Ae,tr)}}),oe=e.memoizeOne(function(d){return function(K,Ae,tr,$r){return j_(d,K,Ae,tr,$r)}}),ve={get parenthesizer(){return f()},get converters(){return P()},createNodeArray:ce,createNumericLiteral:he,createBigIntLiteral:we,createStringLiteral:Se,createStringLiteralFromNode:ge,createRegularExpressionLiteral:Fe,createLiteralLikeNode:cr,createIdentifier:dr,updateIdentifier:Br,createTempVariable:Tr,createLoopVariable:n,createUniqueName:Er,getGeneratedNameForNode:br,createPrivateIdentifier:Pr,createToken:Le,createSuper:Xe,createThis:Cr,createNull:Lr,createTrue:Jr,createFalse:Rr,createModifier:ci,createModifiersFromModifierFlags:be,createQualifiedName:or,updateQualifiedName:Kr,createComputedPropertyName:ei,updateComputedPropertyName:li,createTypeParameterDeclaration:Si,updateTypeParameterDeclaration:qi,createParameterDeclaration:ft,updateParameterDeclaration:bt,createDecorator:aa,updateDecorator:sr,createPropertySignature:Ji,updatePropertySignature:di,createPropertyDeclaration:X,updatePropertyDeclaration:Ye,createMethodSignature:Be,updateMethodSignature:Qe,createMethodDeclaration:_r,updateMethodDeclaration:hr,createConstructorDeclaration:v,updateConstructorDeclaration:xe,createGetAccessorDeclaration:ze,updateGetAccessorDeclaration:Je,createSetAccessorDeclaration:Oe,updateSetAccessorDeclaration:Fr,createCallSignature:Xr,updateCallSignature:Or,createConstructSignature:We,updateConstructSignature:mr,createIndexSignature:Nr,updateIndexSignature:Ur,createClassStaticBlockDeclaration:Dr,updateClassStaticBlockDeclaration:Me,createTemplateLiteralTypeSpan:si,updateTemplateLiteralTypeSpan:mi,createKeywordTypeNode:Ti,createTypePredicateNode:hi,updateTypePredicateNode:ki,createTypeReferenceNode:Ui,updateTypeReferenceNode:zi,createFunctionTypeNode:ri,updateFunctionTypeNode:Gi,createConstructorTypeNode:Rt,updateConstructorTypeNode:ua,createTypeQueryNode:Ci,updateTypeQueryNode:Hi,createTypeLiteralNode:Yi,updateTypeLiteralNode:yt,createArrayTypeNode:gt,updateArrayTypeNode:oa,createTupleTypeNode:Bt,updateTupleTypeNode:Pi,createNamedTupleMember:Oi,updateNamedTupleMember:wi,createOptionalTypeNode:Qr,updateOptionalTypeNode:Ct,createRestTypeNode:tt,updateRestTypeNode:ta,createUnionTypeNode:qr,updateUnionTypeNode:bn,createIntersectionTypeNode:Rn,updateIntersectionTypeNode:Sn,createConditionalTypeNode:zn,updateConditionalTypeNode:Zn,createInferTypeNode:ho,updateInferTypeNode:Vo,createImportTypeNode:ro,updateImportTypeNode:Ko,createParenthesizedType:rs,updateParenthesizedType:rn,createThisTypeNode:Do,createTypeOperatorNode:io,updateTypeOperatorNode:pn,createIndexedAccessTypeNode:Qn,updateIndexedAccessTypeNode:wo,createMappedTypeNode:xo,updateMappedTypeNode:ds,createLiteralTypeNode:No,updateLiteralTypeNode:Ts,createTemplateLiteralType:Cn,updateTemplateLiteralType:go,createObjectBindingPattern:Ms,updateObjectBindingPattern:xr,createArrayBindingPattern:bi,updateArrayBindingPattern:ut,createBindingElement:Ht,updateBindingElement:Ka,createArrayLiteralExpression:Ke,updateArrayLiteralExpression:h,createObjectLiteralExpression:Ee,updateObjectLiteralExpression:Re,createPropertyAccessExpression:ne&4?function(d,K){return e.setEmitFlags(nr(d,K),131072)}:nr,updatePropertyAccessExpression:Gr,createPropertyAccessChain:ne&4?function(d,K,Ae){return e.setEmitFlags(_i(d,K,Ae),131072)}:_i,updatePropertyAccessChain:Ei,createElementAccessExpression:Ki,updateElementAccessExpression:Nt,createElementAccessChain:ca,updateElementAccessChain:Fa,createCallExpression:Ta,updateCallExpression:In,createCallChain:so,updateCallChain:as,createNewExpression:Ho,updateNewExpression:Ds,createTaggedTemplateExpression:Os,updateTaggedTemplateExpression:mc,createTypeAssertion:Hs,updateTypeAssertion:Mi,createParenthesizedExpression:$t,updateParenthesizedExpression:ga,createFunctionExpression:xn,updateFunctionExpression:yn,createArrowFunction:An,updateArrowFunction:Pa,createDeleteExpression:Mn,updateDeleteExpression:ao,createTypeOfExpression:co,updateTypeOfExpression:De,createVoidExpression:zr,updateVoidExpression:xi,createAwaitExpression:et,updateAwaitExpression:je,createPrefixUnaryExpression:ti,updatePrefixUnaryExpression:mt,createPostfixUnaryExpression:Zt,updatePostfixUnaryExpression:ln,createBinaryExpression:Ba,updateBinaryExpression:jr,createConditionalExpression:is,updateConditionalExpression:hc,createTemplateExpression:nc,updateTemplateExpression:ns,createTemplateHead:uu,createTemplateMiddle:Bc,createTemplateTail:Qu,createNoSubstitutionTemplateLiteral:uo,createTemplateLiteralLikeNode:rc,createYieldExpression:Xc,updateYieldExpression:Ru,createSpreadElement:Dc,updateSpreadElement:Yu,createClassExpression:lu,updateClassExpression:qa,createOmittedExpression:Bu,createExpressionWithTypeArguments:$u,updateExpressionWithTypeArguments:au,createAsExpression:Vr,updateAsExpression:fi,createNonNullExpression:Ni,updateNonNullExpression:rt,createNonNullChain:Tt,updateNonNullChain:Dt,createMetaProperty:jt,updateMetaProperty:na,createTemplateSpan:Za,updateTemplateSpan:ya,createSemicolonClassElement:ha,createBlock:Ja,updateBlock:Eo,createVariableStatement:Hn,updateVariableStatement:lo,createEmptyStatement:Kn,createExpressionStatement:Te,updateExpressionStatement:vr,createIfStatement:Sr,updateIfStatement:Di,createDoStatement:nt,updateDoStatement:_a,createWhileStatement:Na,updateWhileStatement:wn,createForStatement:no,updateForStatement:Go,createForInStatement:vo,updateForInStatement:Vn,createForOfStatement:to,updateForOfStatement:Jo,createContinueStatement:Xo,updateContinueStatement:Wr,createBreakStatement:Ws,updateBreakStatement:nu,createReturnStatement:Tu,updateReturnStatement:oc,createWithStatement:Qc,updateWithStatement:fu,createSwitchStatement:lp,updateSwitchStatement:bo,createLabeledStatement:w_,updateLabeledStatement:i_,createThrowStatement:Ls,updateThrowStatement:hl,createTryStatement:xu,updateTryStatement:tf,createDebuggerStatement:If,createVariableDeclaration:Yc,updateVariableDeclaration:Vs,createVariableDeclarationList:Zu,updateVariableDeclarationList:Ma,createFunctionDeclaration:Da,updateFunctionDeclaration:Ju,createClassDeclaration:Pc,updateClassDeclaration:fp,createInterfaceDeclaration:wf,updateInterfaceDeclaration:Xp,createTypeAliasDeclaration:os,updateTypeAliasDeclaration:el,createEnumDeclaration:Of,updateEnumDeclaration:O_,createModuleDeclaration:t_,updateModuleDeclaration:Nc,createModuleBlock:F_,updateModuleBlock:Ff,createCaseBlock:M_,updateCaseBlock:_p,createNamespaceExportDeclaration:Qp,updateNamespaceExportDeclaration:pp,createImportEqualsDeclaration:dp,updateImportEqualsDeclaration:gp,createImportDeclaration:Yp,updateImportDeclaration:$p,createImportClause:a_,updateImportClause:Cd,createAssertClause:mp,updateAssertClause:L_,createAssertEntry:rl,updateAssertEntry:ju,createNamespaceImport:_u,updateNamespaceImport:Eu,createNamespaceExport:Dl,updateNamespaceExport:Zp,createNamedImports:Wl,updateNamedImports:ed,createImportSpecifier:n_,updateImportSpecifier:vp,createExportAssignment:o_,updateExportAssignment:R_,createExportDeclaration:af,updateExportDeclaration:yp,createNamedExports:B_,updateNamedExports:kd,createExportSpecifier:Mf,updateExportSpecifier:hp,createMissingDeclaration:ic,createExternalModuleReference:Jc,updateExternalModuleReference:Lf,get createJSDocAllType(){return J(310)},get createJSDocUnknownType(){return J(311)},get createJSDocNonNullableType(){return w(313)},get updateJSDocNonNullableType(){return j(313)},get createJSDocNullableType(){return w(312)},get updateJSDocNullableType(){return j(312)},get createJSDocOptionalType(){return w(314)},get updateJSDocOptionalType(){return j(314)},get createJSDocVariadicType(){return w(316)},get updateJSDocVariadicType(){return j(316)},get createJSDocNamepathType(){return w(317)},get updateJSDocNamepathType(){return j(317)},createJSDocFunctionType:c_,updateJSDocFunctionType:Cu,createJSDocTypeLiteral:Tc,updateJSDocTypeLiteral:pu,createJSDocTypeExpression:du,updateJSDocTypeExpression:bl,createJSDocSignature:of,updateJSDocSignature:il,createJSDocTemplateTag:Ro,updateJSDocTemplateTag:jc,createJSDocTypedefTag:Bf,updateJSDocTypedefTag:gu,createJSDocParameterTag:Jf,updateJSDocParameterTag:jf,createJSDocPropertyTag:sf,updateJSDocPropertyTag:Kt,createJSDocCallbackTag:ts,updateJSDocCallbackTag:mn,createJSDocAugmentsTag:Sl,updateJSDocAugmentsTag:Ps,createJSDocImplementsTag:tl,updateJSDocImplementsTag:lf,createJSDocSeeTag:Ut,updateJSDocSeeTag:Dp,createJSDocNameReference:cf,updateJSDocNameReference:ko,createJSDocMemberName:xc,updateJSDocMemberName:ou,createJSDocLink:uf,updateJSDocLink:bp,createJSDocLinkCode:ql,updateJSDocLinkCode:Fs,createJSDocLinkPlain:J_,updateJSDocLinkPlain:su,get createJSDocTypeTag(){return y(341)},get updateJSDocTypeTag(){return oe(341)},get createJSDocReturnTag(){return y(339)},get updateJSDocReturnTag(){return oe(339)},get createJSDocThisTag(){return y(340)},get updateJSDocThisTag(){return oe(340)},get createJSDocEnumTag(){return y(337)},get updateJSDocEnumTag(){return oe(337)},get createJSDocAuthorTag(){return U(328)},get updateJSDocAuthorTag(){return z(328)},get createJSDocClassTag(){return U(330)},get updateJSDocClassTag(){return z(330)},get createJSDocPublicTag(){return U(331)},get updateJSDocPublicTag(){return z(331)},get createJSDocPrivateTag(){return U(332)},get updateJSDocPrivateTag(){return z(332)},get createJSDocProtectedTag(){return U(333)},get updateJSDocProtectedTag(){return z(333)},get createJSDocReadonlyTag(){return U(334)},get updateJSDocReadonlyTag(){return z(334)},get createJSDocOverrideTag(){return U(335)},get updateJSDocOverrideTag(){return z(335)},get createJSDocDeprecatedTag(){return U(329)},get updateJSDocDeprecatedTag(){return z(329)},createJSDocUnknownTag:Uf,updateJSDocUnknownTag:Sp,createJSDocText:Tl,updateJSDocText:Ns,createJSDocComment:al,updateJSDocComment:U_,createJsxElement:Kl,updateJsxElement:Wn,createJsxSelfClosingElement:It,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:u_,updateJsxOpeningElement:xs,createJsxClosingElement:Tp,updateJsxClosingElement:mu,createJsxFragment:zf,createJsxText:$c,updateJsxText:Wf,createJsxOpeningFragment:Gl,createJsxJsxClosingFragment:bs,updateJsxFragment:Uu,createJsxAttribute:zu,updateJsxAttribute:ss,createJsxAttributes:Uc,updateJsxAttributes:Ad,createJsxSpreadAttribute:vu,updateJsxSpreadAttribute:pf,createJsxExpression:df,updateJsxExpression:xp,createCaseClause:l_,updateCaseClause:Ic,createDefaultClause:_s,updateDefaultClause:xl,createHeritageClause:gf,updateHeritageClause:Hl,createCatchClause:Xl,updateCatchClause:Ep,createPropertyAssignment:z_,updatePropertyAssignment:Cp,createShorthandPropertyAssignment:Zc,updateShorthandPropertyAssignment:mf,createSpreadAssignment:Ql,updateSpreadAssignment:f_,createEnumMember:qf,updateEnumMember:Cl,createSourceFile:W_,updateSourceFile:Ga,createBundle:kl,updateBundle:ht,createUnparsedSource:__,createUnparsedPrologue:ol,createUnparsedPrepend:q_,createUnparsedTextLike:rd,createUnparsedSyntheticReference:Pd,createInputFiles:Al,createSyntheticExpression:id,createSyntaxList:p_,createNotEmittedStatement:Nd,createPartiallyEmittedExpression:V_,updatePartiallyEmittedExpression:yu,createCommaListExpression:sl,updateCommaListExpression:sc,createEndOfDeclarationMarker:Vf,createMergeDeclarationMarker:ku,createSyntheticReferenceExpression:vf,updateSyntheticReferenceExpression:td,cloneNode:eu,get createComma(){return D(27)},get createAssignment(){return D(63)},get createLogicalOr(){return D(56)},get createLogicalAnd(){return D(55)},get createBitwiseOr(){return D(51)},get createBitwiseXor(){return D(52)},get createBitwiseAnd(){return D(50)},get createStrictEquality(){return D(36)},get createStrictInequality(){return D(37)},get createEquality(){return D(34)},get createInequality(){return D(35)},get createLessThan(){return D(29)},get createLessThanEquals(){return D(32)},get createGreaterThan(){return D(31)},get createGreaterThanEquals(){return D(33)},get createLeftShift(){return D(47)},get createRightShift(){return D(48)},get createUnsignedRightShift(){return D(49)},get createAdd(){return D(39)},get createSubtract(){return D(40)},get createMultiply(){return D(41)},get createDivide(){return D(43)},get createModulo(){return D(44)},get createExponent(){return D(42)},get createPrefixPlus(){return l(39)},get createPrefixMinus(){return l(40)},get createPrefixIncrement(){return l(45)},get createPrefixDecrement(){return l(46)},get createBitwiseNot(){return l(54)},get createLogicalNot(){return l(53)},get createPostfixIncrement(){return _(45)},get createPostfixDecrement(){return _(46)},createImmediatelyInvokedFunctionExpression:b,createImmediatelyInvokedArrowFunction:rr,createVoidZero:ai,createExportDefault:Wi,createExternalModuleExport:At,createTypeCheck:ra,createMethodCall:La,createGlobalMethodCall:jo,createFunctionBindCall:fn,createFunctionCallCall:Bo,createFunctionApplyCall:Yo,createArraySliceCall:cc,createArrayConcatCall:qs,createObjectDefinePropertyCall:uc,createReflectGetCall:hu,createReflectSetCall:$l,createPropertyDescriptor:Au,createCallBinding:kr,createAssignmentTargetWrapper:Hr,inlineExpressions:vi,getInternalName:ot,getLocalName:zt,getExportName:la,getDeclarationName:ja,getNamespaceMemberName:Oa,getExternalModuleOrNamespaceExportName:eo,restoreOuterExpressions:Ec,restoreEnclosingLabel:Zl,createUseStrictPrologue:es,copyPrologue:$o,copyStandardPrologue:Es,copyCustomPrologue:vc,ensureUseStrict:lc,liftToBlock:cl,mergeLexicalEnvironment:yf,updateModifiers:g_};return ve;function ce(d,K){if(d===void 0||d===e.emptyArray)d=[];else if(e.isNodeArray(d)){if(K===void 0||d.hasTrailingComma===K)return d.transformFlags===void 0&&C(d),e.Debug.attachNodeArrayDebugInfo(d),d;var Ae=d.slice();return Ae.pos=d.pos,Ae.end=d.end,Ae.hasTrailingComma=K,Ae.transformFlags=d.transformFlags,e.Debug.attachNodeArrayDebugInfo(Ae),Ae}var tr=d.length,$r=tr>=1&&tr<=4?d.slice():d;return e.setTextRangePosEnd($r,-1,-1),$r.hasTrailingComma=!!K,C($r),e.Debug.attachNodeArrayDebugInfo($r),$r}function m(d){return ee.createBaseNode(d)}function de(d,K,Ae){var tr=m(d);return tr.decorators=wc(K),tr.modifiers=wc(Ae),tr.transformFlags|=p(tr.decorators)|p(tr.modifiers),tr.symbol=void 0,tr.localSymbol=void 0,tr.locals=void 0,tr.nextContainer=void 0,tr}function ae(d,K,Ae,tr){var $r=de(d,K,Ae);if(tr=bc(tr),$r.name=tr,tr)switch($r.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(tr)){$r.transformFlags|=S(tr);break}default:$r.transformFlags|=se(tr);break}return $r}function V(d,K,Ae,tr,$r){var Zi=ae(d,K,Ae,tr);return Zi.typeParameters=wc($r),Zi.transformFlags|=p(Zi.typeParameters),$r&&(Zi.transformFlags|=1),Zi}function le(d,K,Ae,tr,$r,Zi,dt){var _n=V(d,K,Ae,tr,$r);return _n.parameters=ce(Zi),_n.type=dt,_n.transformFlags|=p(_n.parameters)|se(_n.type),dt&&(_n.transformFlags|=1),_n}function ke(d,K){return K.typeArguments&&(d.typeArguments=K.typeArguments),A(d,K)}function Ue(d,K,Ae,tr,$r,Zi,dt,_n){var Zo=le(d,K,Ae,tr,$r,Zi,dt);return Zo.body=_n,Zo.transformFlags|=se(Zo.body)&-16777217,_n||(Zo.transformFlags|=1),Zo}function He(d,K){return K.exclamationToken&&(d.exclamationToken=K.exclamationToken),K.typeArguments&&(d.typeArguments=K.typeArguments),ke(d,K)}function ar(d,K,Ae,tr,$r,Zi){var dt=V(d,K,Ae,tr,$r);return dt.heritageClauses=wc(Zi),dt.transformFlags|=p(dt.heritageClauses),dt}function gr(d,K,Ae,tr,$r,Zi,dt){var _n=ar(d,K,Ae,tr,$r,Zi);return _n.members=ce(dt),_n.transformFlags|=p(_n.members),_n}function me(d,K,Ae,tr,$r){var Zi=ae(d,K,Ae,tr);return Zi.initializer=$r,Zi.transformFlags|=se(Zi.initializer),Zi}function Ge(d,K,Ae,tr,$r,Zi){var dt=me(d,K,Ae,tr,Zi);return dt.type=$r,dt.transformFlags|=se($r),$r&&(dt.transformFlags|=1),dt}function er(d,K){var Ae=Ce(d);return Ae.text=K,Ae}function he(d,K){K===void 0&&(K=0);var Ae=er(8,typeof d=="number"?d+"":d);return Ae.numericLiteralFlags=K,K&384&&(Ae.transformFlags|=1024),Ae}function we(d){var K=er(9,typeof d=="string"?d:e.pseudoBigIntToString(d)+"n");return K.transformFlags|=4,K}function ye(d,K){var Ae=er(10,d);return Ae.singleQuote=K,Ae}function Se(d,K,Ae){var tr=ye(d,K);return tr.hasExtendedUnicodeEscape=Ae,Ae&&(tr.transformFlags|=1024),tr}function ge(d){var K=ye(e.getTextOfIdentifierOrLiteral(d),void 0);return K.textSourceNode=d,K}function Fe(d){var K=er(13,d);return K}function cr(d,K){switch(d){case 8:return he(K,0);case 9:return we(K);case 10:return Se(K,void 0);case 11:return $c(K,!1);case 12:return $c(K,!0);case 13:return Fe(K);case 14:return rc(d,K,void 0,0)}}function ur(d,K){K===void 0&&d&&(K=e.stringToToken(d)),K===79&&(K=void 0);var Ae=ee.createBaseIdentifierNode(79);return Ae.originalKeywordKind=K,Ae.escapedText=e.escapeLeadingUnderscores(d),Ae}function Ir(d,K){var Ae=ur(d,void 0);return Ae.autoGenerateFlags=K,Ae.autoGenerateId=a,a++,Ae}function dr(d,K,Ae){var tr=ur(d,Ae);return K&&(tr.typeArguments=ce(K)),tr.originalKeywordKind===132&&(tr.transformFlags|=16777216),tr}function Br(d,K){return d.typeArguments!==K?A(dr(e.idText(d),K),d):d}function Tr(d,K){var Ae=1;K&&(Ae|=8);var tr=Ir("",Ae);return d&&d(tr),tr}function n(d){var K=2;return d&&(K|=8),Ir("",K)}function Er(d,K){return K===void 0&&(K=0),e.Debug.assert(!(K&7),"Argument out of range: flags"),e.Debug.assert((K&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Ir(d,3|K)}function br(d,K){K===void 0&&(K=0),e.Debug.assert(!(K&7),"Argument out of range: flags");var Ae=Ir(d&&e.isIdentifier(d)?e.idText(d):"",4|K);return Ae.original=d,Ae}function Pr(d){e.startsWith(d,"#")||e.Debug.fail("First character of private identifier must be #: "+d);var K=ee.createBasePrivateIdentifierNode(80);return K.escapedText=e.escapeLeadingUnderscores(d),K.transformFlags|=8388608,K}function Ce(d){return ee.createBaseTokenNode(d)}function Le(d){e.Debug.assert(d>=0&&d<=159,"Invalid token"),e.Debug.assert(d<=14||d>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(d<=8||d>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(d!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var K=Ce(d),Ae=0;switch(d){case 131:Ae=384;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:Ae=1;break;case 106:Ae=33555456;break;case 124:Ae=1024;break;case 108:Ae=8192;break}return Ae&&(K.transformFlags|=Ae),K}function Xe(){return Le(106)}function Cr(){return Le(108)}function Lr(){return Le(104)}function Jr(){return Le(110)}function Rr(){return Le(95)}function ci(d){return Le(d)}function be(d){var K=[];return d&1&&K.push(ci(93)),d&2&&K.push(ci(135)),d&512&&K.push(ci(88)),d&2048&&K.push(ci(85)),d&4&&K.push(ci(123)),d&8&&K.push(ci(121)),d&16&&K.push(ci(122)),d&128&&K.push(ci(126)),d&32&&K.push(ci(124)),d&16384&&K.push(ci(158)),d&64&&K.push(ci(144)),d&256&&K.push(ci(131)),K.length?K:void 0}function or(d,K){var Ae=m(160);return Ae.left=d,Ae.right=bc(K),Ae.transformFlags|=se(Ae.left)|S(Ae.right),Ae}function Kr(d,K,Ae){return d.left!==K||d.right!==Ae?A(or(K,Ae),d):d}function ei(d){var K=m(161);return K.expression=f().parenthesizeExpressionOfComputedPropertyName(d),K.transformFlags|=se(K.expression)|1024|65536,K}function li(d,K){return d.expression!==K?A(ei(K),d):d}function Si(d,K,Ae){var tr=ae(162,void 0,void 0,d);return tr.constraint=K,tr.default=Ae,tr.transformFlags=1,tr}function qi(d,K,Ae,tr){return d.name!==K||d.constraint!==Ae||d.default!==tr?A(Si(K,Ae,tr),d):d}function ft(d,K,Ae,tr,$r,Zi,dt){var _n=Ge(163,d,K,tr,Zi,dt&&f().parenthesizeExpressionForDisallowedComma(dt));return _n.dotDotDotToken=Ae,_n.questionToken=$r,e.isThisIdentifier(_n.name)?_n.transformFlags=1:(_n.transformFlags|=se(_n.dotDotDotToken)|se(_n.questionToken),$r&&(_n.transformFlags|=1),e.modifiersToFlags(_n.modifiers)&16476&&(_n.transformFlags|=4096),(dt||Ae)&&(_n.transformFlags|=1024)),_n}function bt(d,K,Ae,tr,$r,Zi,dt,_n){return d.decorators!==K||d.modifiers!==Ae||d.dotDotDotToken!==tr||d.name!==$r||d.questionToken!==Zi||d.type!==dt||d.initializer!==_n?A(ft(K,Ae,tr,$r,Zi,dt,_n),d):d}function aa(d){var K=m(164);return K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1|4096,K}function sr(d,K){return d.expression!==K?A(aa(K),d):d}function Ji(d,K,Ae,tr){var $r=ae(165,void 0,d,K);return $r.type=tr,$r.questionToken=Ae,$r.transformFlags=1,$r}function di(d,K,Ae,tr,$r){return d.modifiers!==K||d.name!==Ae||d.questionToken!==tr||d.type!==$r?A(Ji(K,Ae,tr,$r),d):d}function X(d,K,Ae,tr,$r,Zi){var dt=Ge(166,d,K,Ae,$r,Zi);return dt.questionToken=tr&&e.isQuestionToken(tr)?tr:void 0,dt.exclamationToken=tr&&e.isExclamationToken(tr)?tr:void 0,dt.transformFlags|=se(dt.questionToken)|se(dt.exclamationToken)|8388608,(e.isComputedPropertyName(dt.name)||e.hasStaticModifier(dt)&&dt.initializer)&&(dt.transformFlags|=4096),(tr||e.modifiersToFlags(dt.modifiers)&2)&&(dt.transformFlags|=1),dt}function Ye(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.questionToken!==($r!==void 0&&e.isQuestionToken($r)?$r:void 0)||d.exclamationToken!==($r!==void 0&&e.isExclamationToken($r)?$r:void 0)||d.type!==Zi||d.initializer!==dt?A(X(K,Ae,tr,$r,Zi,dt),d):d}function Be(d,K,Ae,tr,$r,Zi){var dt=le(167,void 0,d,K,tr,$r,Zi);return dt.questionToken=Ae,dt.transformFlags=1,dt}function Qe(d,K,Ae,tr,$r,Zi,dt){return d.modifiers!==K||d.name!==Ae||d.questionToken!==tr||d.typeParameters!==$r||d.parameters!==Zi||d.type!==dt?ke(Be(K,Ae,tr,$r,Zi,dt),d):d}function _r(d,K,Ae,tr,$r,Zi,dt,_n,Zo){var Bs=Ue(168,d,K,tr,Zi,dt,_n,Zo);return Bs.asteriskToken=Ae,Bs.questionToken=$r,Bs.transformFlags|=se(Bs.asteriskToken)|se(Bs.questionToken)|1024,$r&&(Bs.transformFlags|=1),e.modifiersToFlags(Bs.modifiers)&256?Ae?Bs.transformFlags|=128:Bs.transformFlags|=256:Ae&&(Bs.transformFlags|=2048),Bs}function hr(d,K,Ae,tr,$r,Zi,dt,_n,Zo,Bs){return d.decorators!==K||d.modifiers!==Ae||d.asteriskToken!==tr||d.name!==$r||d.questionToken!==Zi||d.typeParameters!==dt||d.parameters!==_n||d.type!==Zo||d.body!==Bs?He(_r(K,Ae,tr,$r,Zi,dt,_n,Zo,Bs),d):d}function Dr(d,K,Ae){var tr=V(169,d,K,void 0,void 0);return tr.body=Ae,tr.transformFlags=se(Ae)|8388608,tr}function Me(d,K,Ae,tr){return d.decorators!==K||d.modifier!==Ae||d.body!==tr?A(Dr(K,Ae,tr),d):d}function v(d,K,Ae,tr){var $r=Ue(170,d,K,void 0,void 0,Ae,void 0,tr);return $r.transformFlags|=1024,$r}function xe(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.parameters!==tr||d.body!==$r?He(v(K,Ae,tr,$r),d):d}function ze(d,K,Ae,tr,$r,Zi){return Ue(171,d,K,Ae,void 0,tr,$r,Zi)}function Je(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.parameters!==$r||d.type!==Zi||d.body!==dt?He(ze(K,Ae,tr,$r,Zi,dt),d):d}function Oe(d,K,Ae,tr,$r){return Ue(172,d,K,Ae,void 0,tr,void 0,$r)}function Fr(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.parameters!==$r||d.body!==Zi?He(Oe(K,Ae,tr,$r,Zi),d):d}function Xr(d,K,Ae){var tr=le(173,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function Or(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(Xr(K,Ae,tr),d):d}function We(d,K,Ae){var tr=le(174,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function mr(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(We(K,Ae,tr),d):d}function Nr(d,K,Ae,tr){var $r=le(175,d,K,void 0,void 0,Ae,tr);return $r.transformFlags=1,$r}function Ur(d,K,Ae,tr,$r){return d.parameters!==tr||d.type!==$r||d.decorators!==K||d.modifiers!==Ae?ke(Nr(K,Ae,tr,$r),d):d}function si(d,K){var Ae=m(198);return Ae.type=d,Ae.literal=K,Ae.transformFlags=1,Ae}function mi(d,K,Ae){return d.type!==K||d.literal!==Ae?A(si(K,Ae),d):d}function Ti(d){return Le(d)}function hi(d,K,Ae){var tr=m(176);return tr.assertsModifier=d,tr.parameterName=bc(K),tr.type=Ae,tr.transformFlags=1,tr}function ki(d,K,Ae,tr){return d.assertsModifier!==K||d.parameterName!==Ae||d.type!==tr?A(hi(K,Ae,tr),d):d}function Ui(d,K){var Ae=m(177);return Ae.typeName=bc(d),Ae.typeArguments=K&&f().parenthesizeTypeArguments(ce(K)),Ae.transformFlags=1,Ae}function zi(d,K,Ae){return d.typeName!==K||d.typeArguments!==Ae?A(Ui(K,Ae),d):d}function ri(d,K,Ae){var tr=le(178,void 0,void 0,void 0,d,K,Ae);return tr.transformFlags=1,tr}function Gi(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?ke(ri(K,Ae,tr),d):d}function Rt(){for(var d=[],K=0;K<arguments.length;K++)d[K]=arguments[K];return d.length===4?pa.apply(void 0,d):d.length===3?xt.apply(void 0,d):e.Debug.fail("Incorrect number of arguments specified.")}function pa(d,K,Ae,tr){var $r=le(179,void 0,d,void 0,K,Ae,tr);return $r.transformFlags=1,$r}function xt(d,K,Ae){return pa(void 0,d,K,Ae)}function ua(){for(var d=[],K=0;K<arguments.length;K++)d[K]=arguments[K];return d.length===5?Vt.apply(void 0,d):d.length===4?St.apply(void 0,d):e.Debug.fail("Incorrect number of arguments specified.")}function Vt(d,K,Ae,tr,$r){return d.modifiers!==K||d.typeParameters!==Ae||d.parameters!==tr||d.type!==$r?ke(Rt(K,Ae,tr,$r),d):d}function St(d,K,Ae,tr){return Vt(d,d.modifiers,K,Ae,tr)}function Ci(d){var K=m(180);return K.exprName=d,K.transformFlags=1,K}function Hi(d,K){return d.exprName!==K?A(Ci(K),d):d}function Yi(d){var K=m(181);return K.members=ce(d),K.transformFlags=1,K}function yt(d,K){return d.members!==K?A(Yi(K),d):d}function gt(d){var K=m(182);return K.elementType=f().parenthesizeElementTypeOfArrayType(d),K.transformFlags=1,K}function oa(d,K){return d.elementType!==K?A(gt(K),d):d}function Bt(d){var K=m(183);return K.elements=ce(d),K.transformFlags=1,K}function Pi(d,K){return d.elements!==K?A(Bt(K),d):d}function Oi(d,K,Ae,tr){var $r=m(196);return $r.dotDotDotToken=d,$r.name=K,$r.questionToken=Ae,$r.type=tr,$r.transformFlags=1,$r}function wi(d,K,Ae,tr,$r){return d.dotDotDotToken!==K||d.name!==Ae||d.questionToken!==tr||d.type!==$r?A(Oi(K,Ae,tr,$r),d):d}function Qr(d){var K=m(184);return K.type=f().parenthesizeElementTypeOfArrayType(d),K.transformFlags=1,K}function Ct(d,K){return d.type!==K?A(Qr(K),d):d}function tt(d){var K=m(185);return K.type=d,K.transformFlags=1,K}function ta(d,K){return d.type!==K?A(tt(K),d):d}function Xa(d,K){var Ae=m(d);return Ae.types=f().parenthesizeConstituentTypesOfUnionOrIntersectionType(K),Ae.transformFlags=1,Ae}function on(d,K){return d.types!==K?A(Xa(d.kind,K),d):d}function qr(d){return Xa(186,d)}function bn(d,K){return on(d,K)}function Rn(d){return Xa(187,d)}function Sn(d,K){return on(d,K)}function zn(d,K,Ae,tr){var $r=m(188);return $r.checkType=f().parenthesizeMemberOfConditionalType(d),$r.extendsType=f().parenthesizeMemberOfConditionalType(K),$r.trueType=Ae,$r.falseType=tr,$r.transformFlags=1,$r}function Zn(d,K,Ae,tr,$r){return d.checkType!==K||d.extendsType!==Ae||d.trueType!==tr||d.falseType!==$r?A(zn(K,Ae,tr,$r),d):d}function ho(d){var K=m(189);return K.typeParameter=d,K.transformFlags=1,K}function Vo(d,K){return d.typeParameter!==K?A(ho(K),d):d}function Cn(d,K){var Ae=m(197);return Ae.head=d,Ae.templateSpans=ce(K),Ae.transformFlags=1,Ae}function go(d,K,Ae){return d.head!==K||d.templateSpans!==Ae?A(Cn(K,Ae),d):d}function ro(d,K,Ae,tr){tr===void 0&&(tr=!1);var $r=m(199);return $r.argument=d,$r.qualifier=K,$r.typeArguments=Ae&&f().parenthesizeTypeArguments(Ae),$r.isTypeOf=tr,$r.transformFlags=1,$r}function Ko(d,K,Ae,tr,$r){return $r===void 0&&($r=d.isTypeOf),d.argument!==K||d.qualifier!==Ae||d.typeArguments!==tr||d.isTypeOf!==$r?A(ro(K,Ae,tr,$r),d):d}function rs(d){var K=m(190);return K.type=d,K.transformFlags=1,K}function rn(d,K){return d.type!==K?A(rs(K),d):d}function Do(){var d=m(191);return d.transformFlags=1,d}function io(d,K){var Ae=m(192);return Ae.operator=d,Ae.type=f().parenthesizeMemberOfElementType(K),Ae.transformFlags=1,Ae}function pn(d,K){return d.type!==K?A(io(d.operator,K),d):d}function Qn(d,K){var Ae=m(193);return Ae.objectType=f().parenthesizeMemberOfElementType(d),Ae.indexType=K,Ae.transformFlags=1,Ae}function wo(d,K,Ae){return d.objectType!==K||d.indexType!==Ae?A(Qn(K,Ae),d):d}function xo(d,K,Ae,tr,$r,Zi){var dt=m(194);return dt.readonlyToken=d,dt.typeParameter=K,dt.nameType=Ae,dt.questionToken=tr,dt.type=$r,dt.members=Zi&&ce(Zi),dt.transformFlags=1,dt}function ds(d,K,Ae,tr,$r,Zi,dt){return d.readonlyToken!==K||d.typeParameter!==Ae||d.nameType!==tr||d.questionToken!==$r||d.type!==Zi||d.members!==dt?A(xo(K,Ae,tr,$r,Zi,dt),d):d}function No(d){var K=m(195);return K.literal=d,K.transformFlags=1,K}function Ts(d,K){return d.literal!==K?A(No(K),d):d}function Ms(d){var K=m(200);return K.elements=ce(d),K.transformFlags|=p(K.elements)|1024|262144,K.transformFlags&16384&&(K.transformFlags|=32896),K}function xr(d,K){return d.elements!==K?A(Ms(K),d):d}function bi(d){var K=m(201);return K.elements=ce(d),K.transformFlags|=p(K.elements)|1024|262144,K}function ut(d,K){return d.elements!==K?A(bi(K),d):d}function Ht(d,K,Ae,tr){var $r=me(202,void 0,void 0,Ae,tr&&f().parenthesizeExpressionForDisallowedComma(tr));return $r.propertyName=bc(K),$r.dotDotDotToken=d,$r.transformFlags|=se($r.dotDotDotToken)|1024,$r.propertyName&&($r.transformFlags|=e.isIdentifier($r.propertyName)?S($r.propertyName):se($r.propertyName)),d&&($r.transformFlags|=16384),$r}function Ka(d,K,Ae,tr,$r){return d.propertyName!==Ae||d.dotDotDotToken!==K||d.name!==tr||d.initializer!==$r?A(Ht(K,Ae,tr,$r),d):d}function an(d){var K=m(d);return K}function Ke(d,K){var Ae=an(203),tr=d&&e.lastOrUndefined(d),$r=ce(d,tr&&e.isOmittedExpression(tr)?!0:void 0);return Ae.elements=f().parenthesizeExpressionsOfCommaDelimitedList($r),Ae.multiLine=K,Ae.transformFlags|=p(Ae.elements),Ae}function h(d,K){return d.elements!==K?A(Ke(K,d.multiLine),d):d}function Ee(d,K){var Ae=an(204);return Ae.properties=ce(d),Ae.multiLine=K,Ae.transformFlags|=p(Ae.properties),Ae}function Re(d,K){return d.properties!==K?A(Ee(K,d.multiLine),d):d}function nr(d,K){var Ae=an(205);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.name=bc(K),Ae.transformFlags=se(Ae.expression)|(e.isIdentifier(Ae.name)?S(Ae.name):se(Ae.name)),e.isSuperKeyword(d)&&(Ae.transformFlags|=384),Ae}function Gr(d,K,Ae){return e.isPropertyAccessChain(d)?Ei(d,K,d.questionDotToken,e.cast(Ae,e.isIdentifier)):d.expression!==K||d.name!==Ae?A(nr(K,Ae),d):d}function _i(d,K,Ae){var tr=an(205);return tr.flags|=32,tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.questionDotToken=K,tr.name=bc(Ae),tr.transformFlags|=32|se(tr.expression)|se(tr.questionDotToken)|(e.isIdentifier(tr.name)?S(tr.name):se(tr.name)),tr}function Ei(d,K,Ae,tr){return e.Debug.assert(!!(d.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),d.expression!==K||d.questionDotToken!==Ae||d.name!==tr?A(_i(K,Ae,tr),d):d}function Ki(d,K){var Ae=an(206);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.argumentExpression=ru(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.argumentExpression),e.isSuperKeyword(d)&&(Ae.transformFlags|=384),Ae}function Nt(d,K,Ae){return e.isElementAccessChain(d)?Fa(d,K,d.questionDotToken,Ae):d.expression!==K||d.argumentExpression!==Ae?A(Ki(K,Ae),d):d}function ca(d,K,Ae){var tr=an(206);return tr.flags|=32,tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.questionDotToken=K,tr.argumentExpression=ru(Ae),tr.transformFlags|=se(tr.expression)|se(tr.questionDotToken)|se(tr.argumentExpression)|32,tr}function Fa(d,K,Ae,tr){return e.Debug.assert(!!(d.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),d.expression!==K||d.questionDotToken!==Ae||d.argumentExpression!==tr?A(ca(K,Ae,tr),d):d}function Ta(d,K,Ae){var tr=an(207);return tr.expression=f().parenthesizeLeftSideOfAccess(d),tr.typeArguments=wc(K),tr.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(ce(Ae)),tr.transformFlags|=se(tr.expression)|p(tr.typeArguments)|p(tr.arguments),tr.typeArguments&&(tr.transformFlags|=1),e.isImportKeyword(tr.expression)?tr.transformFlags|=4194304:e.isSuperProperty(tr.expression)&&(tr.transformFlags|=8192),tr}function In(d,K,Ae,tr){return e.isCallChain(d)?as(d,K,d.questionDotToken,Ae,tr):d.expression!==K||d.typeArguments!==Ae||d.arguments!==tr?A(Ta(K,Ae,tr),d):d}function so(d,K,Ae,tr){var $r=an(207);return $r.flags|=32,$r.expression=f().parenthesizeLeftSideOfAccess(d),$r.questionDotToken=K,$r.typeArguments=wc(Ae),$r.arguments=f().parenthesizeExpressionsOfCommaDelimitedList(ce(tr)),$r.transformFlags|=se($r.expression)|se($r.questionDotToken)|p($r.typeArguments)|p($r.arguments)|32,$r.typeArguments&&($r.transformFlags|=1),e.isSuperProperty($r.expression)&&($r.transformFlags|=8192),$r}function as(d,K,Ae,tr,$r){return e.Debug.assert(!!(d.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),d.expression!==K||d.questionDotToken!==Ae||d.typeArguments!==tr||d.arguments!==$r?A(so(K,Ae,tr,$r),d):d}function Ho(d,K,Ae){var tr=an(208);return tr.expression=f().parenthesizeExpressionOfNew(d),tr.typeArguments=wc(K),tr.arguments=Ae?f().parenthesizeExpressionsOfCommaDelimitedList(Ae):void 0,tr.transformFlags|=se(tr.expression)|p(tr.typeArguments)|p(tr.arguments)|32,tr.typeArguments&&(tr.transformFlags|=1),tr}function Ds(d,K,Ae,tr){return d.expression!==K||d.typeArguments!==Ae||d.arguments!==tr?A(Ho(K,Ae,tr),d):d}function Os(d,K,Ae){var tr=an(209);return tr.tag=f().parenthesizeLeftSideOfAccess(d),tr.typeArguments=wc(K),tr.template=Ae,tr.transformFlags|=se(tr.tag)|p(tr.typeArguments)|se(tr.template)|1024,tr.typeArguments&&(tr.transformFlags|=1),e.hasInvalidEscape(tr.template)&&(tr.transformFlags|=128),tr}function mc(d,K,Ae,tr){return d.tag!==K||d.typeArguments!==Ae||d.template!==tr?A(Os(K,Ae,tr),d):d}function Hs(d,K){var Ae=an(210);return Ae.expression=f().parenthesizeOperandOfPrefixUnary(K),Ae.type=d,Ae.transformFlags|=se(Ae.expression)|se(Ae.type)|1,Ae}function Mi(d,K,Ae){return d.type!==K||d.expression!==Ae?A(Hs(K,Ae),d):d}function $t(d){var K=an(211);return K.expression=d,K.transformFlags=se(K.expression),K}function ga(d,K){return d.expression!==K?A($t(K),d):d}function xn(d,K,Ae,tr,$r,Zi,dt){var _n=Ue(212,void 0,d,Ae,tr,$r,Zi,dt);return _n.asteriskToken=K,_n.transformFlags|=se(_n.asteriskToken),_n.typeParameters&&(_n.transformFlags|=1),e.modifiersToFlags(_n.modifiers)&256?_n.asteriskToken?_n.transformFlags|=128:_n.transformFlags|=256:_n.asteriskToken&&(_n.transformFlags|=2048),_n}function yn(d,K,Ae,tr,$r,Zi,dt,_n){return d.name!==tr||d.modifiers!==K||d.asteriskToken!==Ae||d.typeParameters!==$r||d.parameters!==Zi||d.type!==dt||d.body!==_n?He(xn(K,Ae,tr,$r,Zi,dt,_n),d):d}function An(d,K,Ae,tr,$r,Zi){var dt=Ue(213,void 0,d,void 0,K,Ae,tr,f().parenthesizeConciseBodyOfArrowFunction(Zi));return dt.equalsGreaterThanToken=$r!=null?$r:Le(38),dt.transformFlags|=se(dt.equalsGreaterThanToken)|1024,e.modifiersToFlags(dt.modifiers)&256&&(dt.transformFlags|=8448),dt}function Pa(d,K,Ae,tr,$r,Zi,dt){return d.modifiers!==K||d.typeParameters!==Ae||d.parameters!==tr||d.type!==$r||d.equalsGreaterThanToken!==Zi||d.body!==dt?He(An(K,Ae,tr,$r,Zi,dt),d):d}function Mn(d){var K=an(214);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function ao(d,K){return d.expression!==K?A(Mn(K),d):d}function co(d){var K=an(215);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function De(d,K){return d.expression!==K?A(co(K),d):d}function zr(d){var K=an(216);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression),K}function xi(d,K){return d.expression!==K?A(zr(K),d):d}function et(d){var K=an(217);return K.expression=f().parenthesizeOperandOfPrefixUnary(d),K.transformFlags|=se(K.expression)|256|128|1048576,K}function je(d,K){return d.expression!==K?A(et(K),d):d}function ti(d,K){var Ae=an(218);return Ae.operator=d,Ae.operand=f().parenthesizeOperandOfPrefixUnary(K),Ae.transformFlags|=se(Ae.operand),(d===45||d===46)&&e.isIdentifier(Ae.operand)&&!e.isGeneratedIdentifier(Ae.operand)&&!e.isLocalName(Ae.operand)&&(Ae.transformFlags|=67108864),Ae}function mt(d,K){return d.operand!==K?A(ti(d.operator,K),d):d}function Zt(d,K){var Ae=an(219);return Ae.operator=K,Ae.operand=f().parenthesizeOperandOfPostfixUnary(d),Ae.transformFlags|=se(Ae.operand),e.isIdentifier(Ae.operand)&&!e.isGeneratedIdentifier(Ae.operand)&&!e.isLocalName(Ae.operand)&&(Ae.transformFlags|=67108864),Ae}function ln(d,K){return d.operand!==K?A(Zt(K,d.operator),d):d}function Ba(d,K,Ae){var tr=an(220),$r=m_(K),Zi=$r.kind;return tr.left=f().parenthesizeLeftSideOfBinary(Zi,d),tr.operatorToken=$r,tr.right=f().parenthesizeRightSideOfBinary(Zi,tr.left,Ae),tr.transformFlags|=se(tr.left)|se(tr.operatorToken)|se(tr.right),Zi===60?tr.transformFlags|=32:Zi===63?e.isObjectLiteralExpression(tr.left)?tr.transformFlags|=5248|Oo(tr.left):e.isArrayLiteralExpression(tr.left)&&(tr.transformFlags|=5120|Oo(tr.left)):Zi===42||Zi===67?tr.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(Zi)&&(tr.transformFlags|=16),tr}function Oo(d){if(d.transformFlags&32768)return 32768;if(d.transformFlags&128)for(var K=0,Ae=e.getElementsOfBindingOrAssignmentPattern(d);K<Ae.length;K++){var tr=Ae[K],$r=e.getTargetOfBindingOrAssignmentElement(tr);if($r&&e.isAssignmentPattern($r)){if($r.transformFlags&32768)return 32768;if($r.transformFlags&128){var Zi=Oo($r);if(Zi)return Zi}}}return 0}function jr(d,K,Ae,tr){return d.left!==K||d.operatorToken!==Ae||d.right!==tr?A(Ba(K,Ae,tr),d):d}function is(d,K,Ae,tr,$r){var Zi=an(221);return Zi.condition=f().parenthesizeConditionOfConditionalExpression(d),Zi.questionToken=K!=null?K:Le(57),Zi.whenTrue=f().parenthesizeBranchOfConditionalExpression(Ae),Zi.colonToken=tr!=null?tr:Le(58),Zi.whenFalse=f().parenthesizeBranchOfConditionalExpression($r),Zi.transformFlags|=se(Zi.condition)|se(Zi.questionToken)|se(Zi.whenTrue)|se(Zi.colonToken)|se(Zi.whenFalse),Zi}function hc(d,K,Ae,tr,$r,Zi){return d.condition!==K||d.questionToken!==Ae||d.whenTrue!==tr||d.colonToken!==$r||d.whenFalse!==Zi?A(is(K,Ae,tr,$r,Zi),d):d}function nc(d,K){var Ae=an(222);return Ae.head=d,Ae.templateSpans=ce(K),Ae.transformFlags|=se(Ae.head)|p(Ae.templateSpans)|1024,Ae}function ns(d,K,Ae){return d.head!==K||d.templateSpans!==Ae?A(nc(K,Ae),d):d}function Xs(d,K,Ae,tr){tr===void 0&&(tr=0),e.Debug.assert(!(tr&-2049),"Unsupported template flags.");var $r=void 0;if(Ae!==void 0&&Ae!==K&&($r=g(d,Ae),typeof $r=="object"))return e.Debug.fail("Invalid raw text");if(K===void 0){if($r===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");K=$r}else $r!==void 0&&e.Debug.assert(K===$r,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return rc(d,K,Ae,tr)}function rc(d,K,Ae,tr){var $r=Ce(d);return $r.text=K,$r.rawText=Ae,$r.templateFlags=tr&2048,$r.transformFlags|=1024,$r.templateFlags&&($r.transformFlags|=128),$r}function uu(d,K,Ae){return Xs(15,d,K,Ae)}function Bc(d,K,Ae){return Xs(16,d,K,Ae)}function Qu(d,K,Ae){return Xs(17,d,K,Ae)}function uo(d,K,Ae){return Xs(14,d,K,Ae)}function Xc(d,K){e.Debug.assert(!d||!!K,"A `YieldExpression` with an asteriskToken must have an expression.");var Ae=an(223);return Ae.expression=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.asteriskToken=d,Ae.transformFlags|=se(Ae.expression)|se(Ae.asteriskToken)|1024|128|524288,Ae}function Ru(d,K,Ae){return d.expression!==Ae||d.asteriskToken!==K?A(Xc(K,Ae),d):d}function Dc(d){var K=an(224);return K.expression=f().parenthesizeExpressionForDisallowedComma(d),K.transformFlags|=se(K.expression)|1024|16384,K}function Yu(d,K){return d.expression!==K?A(Dc(K),d):d}function lu(d,K,Ae,tr,$r,Zi){var dt=gr(225,d,K,Ae,tr,$r,Zi);return dt.transformFlags|=1024,dt}function qa(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(lu(K,Ae,tr,$r,Zi,dt),d):d}function Bu(){return an(226)}function $u(d,K){var Ae=m(227);return Ae.expression=f().parenthesizeLeftSideOfAccess(d),Ae.typeArguments=K&&f().parenthesizeTypeArguments(K),Ae.transformFlags|=se(Ae.expression)|p(Ae.typeArguments)|1024,Ae}function au(d,K,Ae){return d.expression!==K||d.typeArguments!==Ae?A($u(K,Ae),d):d}function Vr(d,K){var Ae=an(228);return Ae.expression=d,Ae.type=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.type)|1,Ae}function fi(d,K,Ae){return d.expression!==K||d.type!==Ae?A(Vr(K,Ae),d):d}function Ni(d){var K=an(229);return K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1,K}function rt(d,K){return e.isNonNullChain(d)?Dt(d,K):d.expression!==K?A(Ni(K),d):d}function Tt(d){var K=an(229);return K.flags|=32,K.expression=f().parenthesizeLeftSideOfAccess(d),K.transformFlags|=se(K.expression)|1,K}function Dt(d,K){return e.Debug.assert(!!(d.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),d.expression!==K?A(Tt(K),d):d}function jt(d,K){var Ae=an(230);switch(Ae.keywordToken=d,Ae.name=K,Ae.transformFlags|=se(Ae.name),d){case 103:Ae.transformFlags|=1024;break;case 100:Ae.transformFlags|=4;break;default:return e.Debug.assertNever(d)}return Ae}function na(d,K){return d.name!==K?A(jt(d.keywordToken,K),d):d}function Za(d,K){var Ae=m(232);return Ae.expression=d,Ae.literal=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.literal)|1024,Ae}function ya(d,K,Ae){return d.expression!==K||d.literal!==Ae?A(Za(K,Ae),d):d}function ha(){var d=m(233);return d.transformFlags|=1024,d}function Ja(d,K){var Ae=m(234);return Ae.statements=ce(d),Ae.multiLine=K,Ae.transformFlags|=p(Ae.statements),Ae}function Eo(d,K){return d.statements!==K?A(Ja(K,d.multiLine),d):d}function Hn(d,K){var Ae=de(236,void 0,d);return Ae.declarationList=e.isArray(K)?Zu(K):K,Ae.transformFlags|=se(Ae.declarationList),e.modifiersToFlags(Ae.modifiers)&2&&(Ae.transformFlags=1),Ae}function lo(d,K,Ae){return d.modifiers!==K||d.declarationList!==Ae?A(Hn(K,Ae),d):d}function Kn(){return m(235)}function Te(d){var K=m(237);return K.expression=f().parenthesizeExpressionOfExpressionStatement(d),K.transformFlags|=se(K.expression),K}function vr(d,K){return d.expression!==K?A(Te(K),d):d}function Sr(d,K,Ae){var tr=m(238);return tr.expression=d,tr.thenStatement=Wu(K),tr.elseStatement=Wu(Ae),tr.transformFlags|=se(tr.expression)|se(tr.thenStatement)|se(tr.elseStatement),tr}function Di(d,K,Ae,tr){return d.expression!==K||d.thenStatement!==Ae||d.elseStatement!==tr?A(Sr(K,Ae,tr),d):d}function nt(d,K){var Ae=m(239);return Ae.statement=Wu(d),Ae.expression=K,Ae.transformFlags|=se(Ae.statement)|se(Ae.expression),Ae}function _a(d,K,Ae){return d.statement!==K||d.expression!==Ae?A(nt(K,Ae),d):d}function Na(d,K){var Ae=m(240);return Ae.expression=d,Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.statement),Ae}function wn(d,K,Ae){return d.expression!==K||d.statement!==Ae?A(Na(K,Ae),d):d}function no(d,K,Ae,tr){var $r=m(241);return $r.initializer=d,$r.condition=K,$r.incrementor=Ae,$r.statement=Wu(tr),$r.transformFlags|=se($r.initializer)|se($r.condition)|se($r.incrementor)|se($r.statement),$r}function Go(d,K,Ae,tr,$r){return d.initializer!==K||d.condition!==Ae||d.incrementor!==tr||d.statement!==$r?A(no(K,Ae,tr,$r),d):d}function vo(d,K,Ae){var tr=m(242);return tr.initializer=d,tr.expression=K,tr.statement=Wu(Ae),tr.transformFlags|=se(tr.initializer)|se(tr.expression)|se(tr.statement),tr}function Vn(d,K,Ae,tr){return d.initializer!==K||d.expression!==Ae||d.statement!==tr?A(vo(K,Ae,tr),d):d}function to(d,K,Ae,tr){var $r=m(243);return $r.awaitModifier=d,$r.initializer=K,$r.expression=f().parenthesizeExpressionForDisallowedComma(Ae),$r.statement=Wu(tr),$r.transformFlags|=se($r.awaitModifier)|se($r.initializer)|se($r.expression)|se($r.statement)|1024,d&&($r.transformFlags|=128),$r}function Jo(d,K,Ae,tr,$r){return d.awaitModifier!==K||d.initializer!==Ae||d.expression!==tr||d.statement!==$r?A(to(K,Ae,tr,$r),d):d}function Xo(d){var K=m(244);return K.label=bc(d),K.transformFlags|=se(K.label)|2097152,K}function Wr(d,K){return d.label!==K?A(Xo(K),d):d}function Ws(d){var K=m(245);return K.label=bc(d),K.transformFlags|=se(K.label)|2097152,K}function nu(d,K){return d.label!==K?A(Ws(K),d):d}function Tu(d){var K=m(246);return K.expression=d,K.transformFlags|=se(K.expression)|128|2097152,K}function oc(d,K){return d.expression!==K?A(Tu(K),d):d}function Qc(d,K){var Ae=m(247);return Ae.expression=d,Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.expression)|se(Ae.statement),Ae}function fu(d,K,Ae){return d.expression!==K||d.statement!==Ae?A(Qc(K,Ae),d):d}function lp(d,K){var Ae=m(248);return Ae.expression=f().parenthesizeExpressionForDisallowedComma(d),Ae.caseBlock=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.caseBlock),Ae}function bo(d,K,Ae){return d.expression!==K||d.caseBlock!==Ae?A(lp(K,Ae),d):d}function w_(d,K){var Ae=m(249);return Ae.label=bc(d),Ae.statement=Wu(K),Ae.transformFlags|=se(Ae.label)|se(Ae.statement),Ae}function i_(d,K,Ae){return d.label!==K||d.statement!==Ae?A(w_(K,Ae),d):d}function Ls(d){var K=m(250);return K.expression=d,K.transformFlags|=se(K.expression),K}function hl(d,K){return d.expression!==K?A(Ls(K),d):d}function xu(d,K,Ae){var tr=m(251);return tr.tryBlock=d,tr.catchClause=K,tr.finallyBlock=Ae,tr.transformFlags|=se(tr.tryBlock)|se(tr.catchClause)|se(tr.finallyBlock),tr}function tf(d,K,Ae,tr){return d.tryBlock!==K||d.catchClause!==Ae||d.finallyBlock!==tr?A(xu(K,Ae,tr),d):d}function If(){return m(252)}function Yc(d,K,Ae,tr){var $r=Ge(253,void 0,void 0,d,Ae,tr&&f().parenthesizeExpressionForDisallowedComma(tr));return $r.exclamationToken=K,$r.transformFlags|=se($r.exclamationToken),K&&($r.transformFlags|=1),$r}function Vs(d,K,Ae,tr,$r){return d.name!==K||d.type!==tr||d.exclamationToken!==Ae||d.initializer!==$r?A(Yc(K,Ae,tr,$r),d):d}function Zu(d,K){K===void 0&&(K=0);var Ae=m(254);return Ae.flags|=K&3,Ae.declarations=ce(d),Ae.transformFlags|=p(Ae.declarations)|2097152,K&3&&(Ae.transformFlags|=132096),Ae}function Ma(d,K){return d.declarations!==K?A(Zu(K,d.flags),d):d}function Da(d,K,Ae,tr,$r,Zi,dt,_n){var Zo=Ue(255,d,K,tr,$r,Zi,dt,_n);return Zo.asteriskToken=Ae,!Zo.body||e.modifiersToFlags(Zo.modifiers)&2?Zo.transformFlags=1:(Zo.transformFlags|=se(Zo.asteriskToken)|2097152,e.modifiersToFlags(Zo.modifiers)&256?Zo.asteriskToken?Zo.transformFlags|=128:Zo.transformFlags|=256:Zo.asteriskToken&&(Zo.transformFlags|=2048)),Zo}function Ju(d,K,Ae,tr,$r,Zi,dt,_n,Zo){return d.decorators!==K||d.modifiers!==Ae||d.asteriskToken!==tr||d.name!==$r||d.typeParameters!==Zi||d.parameters!==dt||d.type!==_n||d.body!==Zo?He(Da(K,Ae,tr,$r,Zi,dt,_n,Zo),d):d}function Pc(d,K,Ae,tr,$r,Zi){var dt=gr(256,d,K,Ae,tr,$r,Zi);return e.modifiersToFlags(dt.modifiers)&2?dt.transformFlags=1:(dt.transformFlags|=1024,dt.transformFlags&4096&&(dt.transformFlags|=1)),dt}function fp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(Pc(K,Ae,tr,$r,Zi,dt),d):d}function wf(d,K,Ae,tr,$r,Zi){var dt=ar(257,d,K,Ae,tr,$r);return dt.members=ce(Zi),dt.transformFlags=1,dt}function Xp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.heritageClauses!==Zi||d.members!==dt?A(wf(K,Ae,tr,$r,Zi,dt),d):d}function os(d,K,Ae,tr,$r){var Zi=V(258,d,K,Ae,tr);return Zi.type=$r,Zi.transformFlags=1,Zi}function el(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.typeParameters!==$r||d.type!==Zi?A(os(K,Ae,tr,$r,Zi),d):d}function Of(d,K,Ae,tr){var $r=ae(259,d,K,Ae);return $r.members=ce(tr),$r.transformFlags|=p($r.members)|1,$r.transformFlags&=-16777217,$r}function O_(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.members!==$r?A(Of(K,Ae,tr,$r),d):d}function t_(d,K,Ae,tr,$r){$r===void 0&&($r=0);var Zi=de(260,d,K);return Zi.flags|=$r&1044,Zi.name=Ae,Zi.body=tr,e.modifiersToFlags(Zi.modifiers)&2?Zi.transformFlags=1:Zi.transformFlags|=se(Zi.name)|se(Zi.body)|1,Zi.transformFlags&=-16777217,Zi}function Nc(d,K,Ae,tr,$r){return d.decorators!==K||d.modifiers!==Ae||d.name!==tr||d.body!==$r?A(t_(K,Ae,tr,$r,d.flags),d):d}function F_(d){var K=m(261);return K.statements=ce(d),K.transformFlags|=p(K.statements),K}function Ff(d,K){return d.statements!==K?A(F_(K),d):d}function M_(d){var K=m(262);return K.clauses=ce(d),K.transformFlags|=p(K.clauses),K}function _p(d,K){return d.clauses!==K?A(M_(K),d):d}function Qp(d){var K=ae(263,void 0,void 0,d);return K.transformFlags=1,K}function pp(d,K){return d.name!==K?A(Qp(K),d):d}function dp(d,K,Ae,tr,$r){var Zi=ae(264,d,K,tr);return Zi.isTypeOnly=Ae,Zi.moduleReference=$r,Zi.transformFlags|=se(Zi.moduleReference),e.isExternalModuleReference(Zi.moduleReference)||(Zi.transformFlags|=1),Zi.transformFlags&=-16777217,Zi}function gp(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.isTypeOnly!==tr||d.name!==$r||d.moduleReference!==Zi?A(dp(K,Ae,tr,$r,Zi),d):d}function Yp(d,K,Ae,tr,$r){var Zi=de(265,d,K);return Zi.importClause=Ae,Zi.moduleSpecifier=tr,Zi.assertClause=$r,Zi.transformFlags|=se(Zi.importClause)|se(Zi.moduleSpecifier),Zi.transformFlags&=-16777217,Zi}function $p(d,K,Ae,tr,$r,Zi){return d.decorators!==K||d.modifiers!==Ae||d.importClause!==tr||d.moduleSpecifier!==$r||d.assertClause!==Zi?A(Yp(K,Ae,tr,$r,Zi),d):d}function a_(d,K,Ae){var tr=m(266);return tr.isTypeOnly=d,tr.name=K,tr.namedBindings=Ae,tr.transformFlags|=se(tr.name)|se(tr.namedBindings),d&&(tr.transformFlags|=1),tr.transformFlags&=-16777217,tr}function Cd(d,K,Ae,tr){return d.isTypeOnly!==K||d.name!==Ae||d.namedBindings!==tr?A(a_(K,Ae,tr),d):d}function mp(d,K){var Ae=m(292);return Ae.elements=ce(d),Ae.multiLine=K,Ae.transformFlags|=4,Ae}function L_(d,K,Ae){return d.elements!==K||d.multiLine!==Ae?A(mp(K,Ae),d):d}function rl(d,K){var Ae=m(293);return Ae.name=d,Ae.value=K,Ae.transformFlags|=4,Ae}function ju(d,K,Ae){return d.name!==K||d.value!==Ae?A(rl(K,Ae),d):d}function _u(d){var K=m(267);return K.name=d,K.transformFlags|=se(K.name),K.transformFlags&=-16777217,K}function Eu(d,K){return d.name!==K?A(_u(K),d):d}function Dl(d){var K=m(273);return K.name=d,K.transformFlags|=se(K.name)|4,K.transformFlags&=-16777217,K}function Zp(d,K){return d.name!==K?A(Dl(K),d):d}function Wl(d){var K=m(268);return K.elements=ce(d),K.transformFlags|=p(K.elements),K.transformFlags&=-16777217,K}function ed(d,K){return d.elements!==K?A(Wl(K),d):d}function n_(d,K,Ae){var tr=m(269);return tr.isTypeOnly=d,tr.propertyName=K,tr.name=Ae,tr.transformFlags|=se(tr.propertyName)|se(tr.name),tr.transformFlags&=-16777217,tr}function vp(d,K,Ae,tr){return d.isTypeOnly!==K||d.propertyName!==Ae||d.name!==tr?A(n_(K,Ae,tr),d):d}function o_(d,K,Ae,tr){var $r=de(270,d,K);return $r.isExportEquals=Ae,$r.expression=Ae?f().parenthesizeRightSideOfBinary(63,void 0,tr):f().parenthesizeExpressionOfExportDefault(tr),$r.transformFlags|=se($r.expression),$r.transformFlags&=-16777217,$r}function R_(d,K,Ae,tr){return d.decorators!==K||d.modifiers!==Ae||d.expression!==tr?A(o_(K,Ae,d.isExportEquals,tr),d):d}function af(d,K,Ae,tr,$r,Zi){var dt=de(271,d,K);return dt.isTypeOnly=Ae,dt.exportClause=tr,dt.moduleSpecifier=$r,dt.assertClause=Zi,dt.transformFlags|=se(dt.exportClause)|se(dt.moduleSpecifier),dt.transformFlags&=-16777217,dt}function yp(d,K,Ae,tr,$r,Zi,dt){return d.decorators!==K||d.modifiers!==Ae||d.isTypeOnly!==tr||d.exportClause!==$r||d.moduleSpecifier!==Zi||d.assertClause!==dt?A(af(K,Ae,tr,$r,Zi,dt),d):d}function B_(d){var K=m(272);return K.elements=ce(d),K.transformFlags|=p(K.elements),K.transformFlags&=-16777217,K}function kd(d,K){return d.elements!==K?A(B_(K),d):d}function Mf(d,K,Ae){var tr=m(274);return tr.isTypeOnly=d,tr.propertyName=bc(K),tr.name=bc(Ae),tr.transformFlags|=se(tr.propertyName)|se(tr.name),tr.transformFlags&=-16777217,tr}function hp(d,K,Ae,tr){return d.isTypeOnly!==K||d.propertyName!==Ae||d.name!==tr?A(Mf(K,Ae,tr),d):d}function ic(){var d=de(275,void 0,void 0);return d}function Jc(d){var K=m(276);return K.expression=d,K.transformFlags|=se(K.expression),K.transformFlags&=-16777217,K}function Lf(d,K){return d.expression!==K?A(Jc(K),d):d}function nf(d){return m(d)}function s_(d,K){var Ae=m(d);return Ae.type=K,Ae}function Rf(d,K,Ae){return K.type!==Ae?A(s_(d,Ae),K):K}function c_(d,K){var Ae=le(315,void 0,void 0,void 0,void 0,d,K);return Ae}function Cu(d,K,Ae){return d.parameters!==K||d.type!==Ae?A(c_(K,Ae),d):d}function Tc(d,K){K===void 0&&(K=!1);var Ae=m(320);return Ae.jsDocPropertyTags=wc(d),Ae.isArrayType=K,Ae}function pu(d,K,Ae){return d.jsDocPropertyTags!==K||d.isArrayType!==Ae?A(Tc(K,Ae),d):d}function du(d){var K=m(307);return K.type=d,K}function bl(d,K){return d.type!==K?A(du(K),d):d}function of(d,K,Ae){var tr=m(321);return tr.typeParameters=wc(d),tr.parameters=ce(K),tr.type=Ae,tr}function il(d,K,Ae,tr){return d.typeParameters!==K||d.parameters!==Ae||d.type!==tr?A(of(K,Ae,tr),d):d}function Qo(d){var K=Q(d.kind);return d.tagName.escapedText===e.escapeLeadingUnderscores(K)?d.tagName:dr(K)}function zo(d,K,Ae){var tr=m(d);return tr.tagName=K,tr.comment=Ae,tr}function Ro(d,K,Ae,tr){var $r=zo(342,d!=null?d:dr("template"),tr);return $r.constraint=K,$r.typeParameters=ce(Ae),$r}function jc(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.constraint!==Ae||d.typeParameters!==tr||d.comment!==$r?A(Ro(K,Ae,tr,$r),d):d}function Bf(d,K,Ae,tr){var $r=zo(343,d!=null?d:dr("typedef"),tr);return $r.typeExpression=K,$r.fullName=Ae,$r.name=e.getJSDocTypeAliasName(Ae),$r}function gu(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.typeExpression!==Ae||d.fullName!==tr||d.comment!==$r?A(Bf(K,Ae,tr,$r),d):d}function Jf(d,K,Ae,tr,$r,Zi){var dt=zo(338,d!=null?d:dr("param"),Zi);return dt.typeExpression=tr,dt.name=K,dt.isNameFirst=!!$r,dt.isBracketed=Ae,dt}function jf(d,K,Ae,tr,$r,Zi,dt){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.name!==Ae||d.isBracketed!==tr||d.typeExpression!==$r||d.isNameFirst!==Zi||d.comment!==dt?A(Jf(K,Ae,tr,$r,Zi,dt),d):d}function sf(d,K,Ae,tr,$r,Zi){var dt=zo(345,d!=null?d:dr("prop"),Zi);return dt.typeExpression=tr,dt.name=K,dt.isNameFirst=!!$r,dt.isBracketed=Ae,dt}function Kt(d,K,Ae,tr,$r,Zi,dt){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.name!==Ae||d.isBracketed!==tr||d.typeExpression!==$r||d.isNameFirst!==Zi||d.comment!==dt?A(sf(K,Ae,tr,$r,Zi,dt),d):d}function ts(d,K,Ae,tr){var $r=zo(336,d!=null?d:dr("callback"),tr);return $r.typeExpression=K,$r.fullName=Ae,$r.name=e.getJSDocTypeAliasName(Ae),$r}function mn(d,K,Ae,tr,$r){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.typeExpression!==Ae||d.fullName!==tr||d.comment!==$r?A(ts(K,Ae,tr,$r),d):d}function Sl(d,K,Ae){var tr=zo(326,d!=null?d:dr("augments"),Ae);return tr.class=K,tr}function Ps(d,K,Ae,tr){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.class!==Ae||d.comment!==tr?A(Sl(K,Ae,tr),d):d}function tl(d,K,Ae){var tr=zo(327,d!=null?d:dr("implements"),Ae);return tr.class=K,tr}function Ut(d,K,Ae){var tr=zo(344,d!=null?d:dr("see"),Ae);return tr.name=K,tr}function Dp(d,K,Ae,tr){return d.tagName!==K||d.name!==Ae||d.comment!==tr?A(Ut(K,Ae,tr),d):d}function cf(d){var K=m(308);return K.name=d,K}function ko(d,K){return d.name!==K?A(cf(K),d):d}function xc(d,K){var Ae=m(309);return Ae.left=d,Ae.right=K,Ae.transformFlags|=se(Ae.left)|se(Ae.right),Ae}function ou(d,K,Ae){return d.left!==K||d.right!==Ae?A(xc(K,Ae),d):d}function uf(d,K){var Ae=m(322);return Ae.name=d,Ae.text=K,Ae}function bp(d,K,Ae){return d.name!==K?A(uf(K,Ae),d):d}function ql(d,K){var Ae=m(323);return Ae.name=d,Ae.text=K,Ae}function Fs(d,K,Ae){return d.name!==K?A(ql(K,Ae),d):d}function J_(d,K){var Ae=m(324);return Ae.name=d,Ae.text=K,Ae}function su(d,K,Ae){return d.name!==K?A(J_(K,Ae),d):d}function lf(d,K,Ae,tr){return K===void 0&&(K=Qo(d)),d.tagName!==K||d.class!==Ae||d.comment!==tr?A(tl(K,Ae,tr),d):d}function ff(d,K,Ae){var tr=zo(d,K!=null?K:dr(Q(d)),Ae);return tr}function _f(d,K,Ae,tr){return Ae===void 0&&(Ae=Qo(K)),K.tagName!==Ae||K.comment!==tr?A(ff(d,Ae,tr),K):K}function Vl(d,K,Ae,tr){var $r=zo(d,K!=null?K:dr(Q(d)),tr);return $r.typeExpression=Ae,$r}function j_(d,K,Ae,tr,$r){return Ae===void 0&&(Ae=Qo(K)),K.tagName!==Ae||K.typeExpression!==tr||K.comment!==$r?A(Vl(d,Ae,tr,$r),K):K}function Uf(d,K){var Ae=zo(325,d,K);return Ae}function Sp(d,K,Ae){return d.tagName!==K||d.comment!==Ae?A(Uf(K,Ae),d):d}function Tl(d){var K=m(319);return K.text=d,K}function Ns(d,K){return d.text!==K?A(Tl(K),d):d}function al(d,K){var Ae=m(318);return Ae.comment=d,Ae.tags=wc(K),Ae}function U_(d,K,Ae){return d.comment!==K||d.tags!==Ae?A(al(K,Ae),d):d}function Kl(d,K,Ae){var tr=m(277);return tr.openingElement=d,tr.children=ce(K),tr.closingElement=Ae,tr.transformFlags|=se(tr.openingElement)|p(tr.children)|se(tr.closingElement)|2,tr}function Wn(d,K,Ae,tr){return d.openingElement!==K||d.children!==Ae||d.closingElement!==tr?A(Kl(K,Ae,tr),d):d}function It(d,K,Ae){var tr=m(278);return tr.tagName=d,tr.typeArguments=wc(K),tr.attributes=Ae,tr.transformFlags|=se(tr.tagName)|p(tr.typeArguments)|se(tr.attributes)|2,tr.typeArguments&&(tr.transformFlags|=1),tr}function Rs(d,K,Ae,tr){return d.tagName!==K||d.typeArguments!==Ae||d.attributes!==tr?A(It(K,Ae,tr),d):d}function u_(d,K,Ae){var tr=m(279);return tr.tagName=d,tr.typeArguments=wc(K),tr.attributes=Ae,tr.transformFlags|=se(tr.tagName)|p(tr.typeArguments)|se(tr.attributes)|2,K&&(tr.transformFlags|=1),tr}function xs(d,K,Ae,tr){return d.tagName!==K||d.typeArguments!==Ae||d.attributes!==tr?A(u_(K,Ae,tr),d):d}function Tp(d){var K=m(280);return K.tagName=d,K.transformFlags|=se(K.tagName)|2,K}function mu(d,K){return d.tagName!==K?A(Tp(K),d):d}function zf(d,K,Ae){var tr=m(281);return tr.openingFragment=d,tr.children=ce(K),tr.closingFragment=Ae,tr.transformFlags|=se(tr.openingFragment)|p(tr.children)|se(tr.closingFragment)|2,tr}function Uu(d,K,Ae,tr){return d.openingFragment!==K||d.children!==Ae||d.closingFragment!==tr?A(zf(K,Ae,tr),d):d}function $c(d,K){var Ae=m(11);return Ae.text=d,Ae.containsOnlyTriviaWhiteSpaces=!!K,Ae.transformFlags|=2,Ae}function Wf(d,K,Ae){return d.text!==K||d.containsOnlyTriviaWhiteSpaces!==Ae?A($c(K,Ae),d):d}function Gl(){var d=m(282);return d.transformFlags|=2,d}function bs(){var d=m(283);return d.transformFlags|=2,d}function zu(d,K){var Ae=m(284);return Ae.name=d,Ae.initializer=K,Ae.transformFlags|=se(Ae.name)|se(Ae.initializer)|2,Ae}function ss(d,K,Ae){return d.name!==K||d.initializer!==Ae?A(zu(K,Ae),d):d}function Uc(d){var K=m(285);return K.properties=ce(d),K.transformFlags|=p(K.properties)|2,K}function Ad(d,K){return d.properties!==K?A(Uc(K),d):d}function vu(d){var K=m(286);return K.expression=d,K.transformFlags|=se(K.expression)|2,K}function pf(d,K){return d.expression!==K?A(vu(K),d):d}function df(d,K){var Ae=m(287);return Ae.dotDotDotToken=d,Ae.expression=K,Ae.transformFlags|=se(Ae.dotDotDotToken)|se(Ae.expression)|2,Ae}function xp(d,K){return d.expression!==K?A(df(d.dotDotDotToken,K),d):d}function l_(d,K){var Ae=m(288);return Ae.expression=f().parenthesizeExpressionForDisallowedComma(d),Ae.statements=ce(K),Ae.transformFlags|=se(Ae.expression)|p(Ae.statements),Ae}function Ic(d,K,Ae){return d.expression!==K||d.statements!==Ae?A(l_(K,Ae),d):d}function _s(d){var K=m(289);return K.statements=ce(d),K.transformFlags=p(K.statements),K}function xl(d,K){return d.statements!==K?A(_s(K),d):d}function gf(d,K){var Ae=m(290);switch(Ae.token=d,Ae.types=ce(K),Ae.transformFlags|=p(Ae.types),d){case 94:Ae.transformFlags|=1024;break;case 117:Ae.transformFlags|=1;break;default:return e.Debug.assertNever(d)}return Ae}function Hl(d,K){return d.types!==K?A(gf(d.token,K),d):d}function Xl(d,K){var Ae=m(291);return(typeof d=="string"||d&&!e.isVariableDeclaration(d))&&(d=Yc(d,void 0,void 0,void 0)),Ae.variableDeclaration=d,Ae.block=K,Ae.transformFlags|=se(Ae.variableDeclaration)|se(Ae.block),d||(Ae.transformFlags|=64),Ae}function Ep(d,K,Ae){return d.variableDeclaration!==K||d.block!==Ae?A(Xl(K,Ae),d):d}function z_(d,K){var Ae=ae(294,void 0,void 0,d);return Ae.initializer=f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.name)|se(Ae.initializer),Ae}function El(d,K){return K.decorators&&(d.decorators=K.decorators),K.modifiers&&(d.modifiers=K.modifiers),K.questionToken&&(d.questionToken=K.questionToken),K.exclamationToken&&(d.exclamationToken=K.exclamationToken),A(d,K)}function Cp(d,K,Ae){return d.name!==K||d.initializer!==Ae?El(z_(K,Ae),d):d}function Zc(d,K){var Ae=ae(295,void 0,void 0,d);return Ae.objectAssignmentInitializer=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.objectAssignmentInitializer)|1024,Ae}function kp(d,K){return K.decorators&&(d.decorators=K.decorators),K.modifiers&&(d.modifiers=K.modifiers),K.equalsToken&&(d.equalsToken=K.equalsToken),K.questionToken&&(d.questionToken=K.questionToken),K.exclamationToken&&(d.exclamationToken=K.exclamationToken),A(d,K)}function mf(d,K,Ae){return d.name!==K||d.objectAssignmentInitializer!==Ae?kp(Zc(K,Ae),d):d}function Ql(d){var K=m(296);return K.expression=f().parenthesizeExpressionForDisallowedComma(d),K.transformFlags|=se(K.expression)|128|32768,K}function f_(d,K){return d.expression!==K?A(Ql(K),d):d}function qf(d,K){var Ae=m(297);return Ae.name=bc(d),Ae.initializer=K&&f().parenthesizeExpressionForDisallowedComma(K),Ae.transformFlags|=se(Ae.name)|se(Ae.initializer)|1,Ae}function Cl(d,K,Ae){return d.name!==K||d.initializer!==Ae?A(qf(K,Ae),d):d}function W_(d,K,Ae){var tr=ee.createBaseSourceFileNode(303);return tr.statements=ce(d),tr.endOfFileToken=K,tr.flags|=Ae,tr.fileName="",tr.text="",tr.languageVersion=0,tr.languageVariant=0,tr.scriptKind=0,tr.isDeclarationFile=!1,tr.hasNoDefaultLib=!1,tr.transformFlags|=p(tr.statements)|se(tr.endOfFileToken),tr}function nl(d,K,Ae,tr,$r,Zi,dt){var _n=ee.createBaseSourceFileNode(303);for(var Zo in d)Zo==="emitNode"||e.hasProperty(_n,Zo)||!e.hasProperty(d,Zo)||(_n[Zo]=d[Zo]);return _n.flags|=d.flags,_n.statements=ce(K),_n.endOfFileToken=d.endOfFileToken,_n.isDeclarationFile=Ae,_n.referencedFiles=tr,_n.typeReferenceDirectives=$r,_n.hasNoDefaultLib=Zi,_n.libReferenceDirectives=dt,_n.transformFlags=p(_n.statements)|se(_n.endOfFileToken),_n.impliedNodeFormat=d.impliedNodeFormat,_n}function Ga(d,K,Ae,tr,$r,Zi,dt){return Ae===void 0&&(Ae=d.isDeclarationFile),tr===void 0&&(tr=d.referencedFiles),$r===void 0&&($r=d.typeReferenceDirectives),Zi===void 0&&(Zi=d.hasNoDefaultLib),dt===void 0&&(dt=d.libReferenceDirectives),d.statements!==K||d.isDeclarationFile!==Ae||d.referencedFiles!==tr||d.typeReferenceDirectives!==$r||d.hasNoDefaultLib!==Zi||d.libReferenceDirectives!==dt?A(nl(d,K,Ae,tr,$r,Zi,dt),d):d}function kl(d,K){K===void 0&&(K=e.emptyArray);var Ae=m(304);return Ae.prepends=K,Ae.sourceFiles=d,Ae}function ht(d,K,Ae){return Ae===void 0&&(Ae=e.emptyArray),d.sourceFiles!==K||d.prepends!==Ae?A(kl(K,Ae),d):d}function __(d,K,Ae){var tr=m(305);return tr.prologues=d,tr.syntheticReferences=K,tr.texts=Ae,tr.fileName="",tr.text="",tr.referencedFiles=e.emptyArray,tr.libReferenceDirectives=e.emptyArray,tr.getLineAndCharacterOfPosition=function($r){return e.getLineAndCharacterOfPosition(tr,$r)},tr}function Yl(d,K){var Ae=m(d);return Ae.data=K,Ae}function ol(d){return Yl(298,d)}function q_(d,K){var Ae=Yl(299,d);return Ae.texts=K,Ae}function rd(d,K){return Yl(K?301:300,d)}function Pd(d){var K=m(302);return K.data=d.data,K.section=d,K}function Al(){var d=m(306);return d.javascriptText="",d.declarationText="",d}function id(d,K,Ae){K===void 0&&(K=!1);var tr=m(231);return tr.type=d,tr.isSpread=K,tr.tupleNameSource=Ae,tr}function p_(d){var K=m(346);return K._children=d,K}function Nd(d){var K=m(347);return K.original=d,e.setTextRange(K,d),K}function V_(d,K){var Ae=m(348);return Ae.expression=d,Ae.original=K,Ae.transformFlags|=se(Ae.expression)|1,e.setTextRange(Ae,K),Ae}function yu(d,K){return d.expression!==K?A(V_(K,d.original),d):d}function d_(d){if(e.nodeIsSynthesized(d)&&!e.isParseTreeNode(d)&&!d.original&&!d.emitNode&&!d.id){if(e.isCommaListExpression(d))return d.elements;if(e.isBinaryExpression(d)&&e.isCommaToken(d.operatorToken))return[d.left,d.right]}return d}function sl(d){var K=m(349);return K.elements=ce(e.sameFlatMap(d,d_)),K.transformFlags|=p(K.elements),K}function sc(d,K){return d.elements!==K?A(sl(K),d):d}function Vf(d){var K=m(351);return K.emitNode={},K.original=d,K}function ku(d){var K=m(350);return K.emitNode={},K.original=d,K}function vf(d,K){var Ae=m(352);return Ae.expression=d,Ae.thisArg=K,Ae.transformFlags|=se(Ae.expression)|se(Ae.thisArg),Ae}function td(d,K,Ae){return d.expression!==K||d.thisArg!==Ae?A(vf(K,Ae),d):d}function eu(d){if(d===void 0)return d;var K=e.isSourceFile(d)?ee.createBaseSourceFileNode(303):e.isIdentifier(d)?ee.createBaseIdentifierNode(79):e.isPrivateIdentifier(d)?ee.createBasePrivateIdentifierNode(80):e.isNodeKind(d.kind)?ee.createBaseNode(d.kind):ee.createBaseTokenNode(d.kind);K.flags|=d.flags&-9,K.transformFlags=d.transformFlags,Z(K,d);for(var Ae in d)K.hasOwnProperty(Ae)||!d.hasOwnProperty(Ae)||(K[Ae]=d[Ae]);return K}function b(d,K,Ae){return Ta(xn(void 0,void 0,void 0,void 0,K?[K]:[],void 0,Ja(d,!0)),void 0,Ae?[Ae]:[])}function rr(d,K,Ae){return Ta(An(void 0,void 0,K?[K]:[],void 0,void 0,Ja(d,!0)),void 0,Ae?[Ae]:[])}function ai(){return zr(he("0"))}function Wi(d){return o_(void 0,void 0,!1,d)}function At(d){return af(void 0,void 0,!1,B_([Mf(!1,void 0,d)]))}function ra(d,K){return K==="undefined"?ve.createStrictEquality(d,ai()):ve.createStrictEquality(co(d),Se(K))}function La(d,K,Ae){return e.isCallChain(d)?so(_i(d,void 0,K),void 0,void 0,Ae):Ta(nr(d,K),void 0,Ae)}function fn(d,K,Ae){return La(d,"bind",qe([K],Ae,!0))}function Bo(d,K,Ae){return La(d,"call",qe([K],Ae,!0))}function Yo(d,K,Ae){return La(d,"apply",[K,Ae])}function jo(d,K,Ae){return La(dr(d),K,Ae)}function cc(d,K){return La(d,"slice",K===void 0?[]:[ru(K)])}function qs(d,K){return La(d,"concat",K)}function uc(d,K,Ae){return jo("Object","defineProperty",[d,ru(K),Ae])}function hu(d,K,Ae){return jo("Reflect","get",Ae?[d,K,Ae]:[d,K])}function $l(d,K,Ae,tr){return jo("Reflect","set",tr?[d,K,Ae,tr]:[d,K,Ae])}function Qs(d,K,Ae){return Ae?(d.push(z_(K,Ae)),!0):!1}function Au(d,K){var Ae=[];Qs(Ae,"enumerable",ru(d.enumerable)),Qs(Ae,"configurable",ru(d.configurable));var tr=Qs(Ae,"writable",ru(d.writable));tr=Qs(Ae,"value",d.value)||tr;var $r=Qs(Ae,"get",d.get);return $r=Qs(Ae,"set",d.set)||$r,e.Debug.assert(!(tr&&$r),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ee(Ae,!K)}function Id(d,K){switch(d.kind){case 211:return ga(d,K);case 210:return Mi(d,d.type,K);case 228:return fi(d,K,d.type);case 229:return rt(d,K);case 348:return yu(d,K)}}function K_(d){return e.isParenthesizedExpression(d)&&e.nodeIsSynthesized(d)&&e.nodeIsSynthesized(e.getSourceMapRange(d))&&e.nodeIsSynthesized(e.getCommentRange(d))&&!e.some(e.getSyntheticLeadingComments(d))&&!e.some(e.getSyntheticTrailingComments(d))}function Ec(d,K,Ae){return Ae===void 0&&(Ae=15),d&&e.isOuterExpression(d,Ae)&&!K_(d)?Id(d,Ec(d.expression,K)):K}function Zl(d,K,Ae){if(!K)return d;var tr=i_(K,K.label,e.isLabeledStatement(K.statement)?Zl(d,K.statement):d);return Ae&&Ae(K),tr}function Ie(d,K){var Ae=e.skipParentheses(d);switch(Ae.kind){case 79:return K;case 108:case 8:case 9:case 10:return!1;case 203:var tr=Ae.elements;return tr.length!==0;case 204:return Ae.properties.length>0;default:return!0}}function kr(d,K,Ae,tr){tr===void 0&&(tr=!1);var $r=e.skipOuterExpressions(d,15),Zi,dt;return e.isSuperProperty($r)?(Zi=Cr(),dt=$r):e.isSuperKeyword($r)?(Zi=Cr(),dt=Ae!==void 0&&Ae<2?e.setTextRange(dr("_super"),$r):$r):e.getEmitFlags($r)&4096?(Zi=ai(),dt=f().parenthesizeLeftSideOfAccess($r)):e.isPropertyAccessExpression($r)?Ie($r.expression,tr)?(Zi=Tr(K),dt=nr(e.setTextRange(ve.createAssignment(Zi,$r.expression),$r.expression),$r.name),e.setTextRange(dt,$r)):(Zi=$r.expression,dt=$r):e.isElementAccessExpression($r)?Ie($r.expression,tr)?(Zi=Tr(K),dt=Ki(e.setTextRange(ve.createAssignment(Zi,$r.expression),$r.expression),$r.argumentExpression),e.setTextRange(dt,$r)):(Zi=$r.expression,dt=$r):(Zi=ai(),dt=f().parenthesizeLeftSideOfAccess(d)),{target:dt,thisArg:Zi}}function Hr(d,K){return nr($t(Ee([Oe(void 0,void 0,"value",[ft(void 0,void 0,void 0,d,void 0,void 0,void 0)],Ja([Te(K)]))])),"value")}function vi(d){return d.length>10?sl(d):e.reduceLeft(d,ve.createComma)}function Li(d,K,Ae,tr){tr===void 0&&(tr=0);var $r=e.getNameOfDeclaration(d);if($r&&e.isIdentifier($r)&&!e.isGeneratedIdentifier($r)){var Zi=e.setParent(e.setTextRange(eu($r),$r),$r.parent);return tr|=e.getEmitFlags($r),Ae||(tr|=48),K||(tr|=1536),tr&&e.setEmitFlags(Zi,tr),Zi}return br(d)}function ot(d,K,Ae){return Li(d,K,Ae,49152)}function zt(d,K,Ae){return Li(d,K,Ae,16384)}function la(d,K,Ae){return Li(d,K,Ae,8192)}function ja(d,K,Ae){return Li(d,K,Ae)}function Oa(d,K,Ae,tr){var $r=nr(d,e.nodeIsSynthesized(K)?K:eu(K));e.setTextRange($r,K);var Zi=0;return tr||(Zi|=48),Ae||(Zi|=1536),Zi&&e.setEmitFlags($r,Zi),$r}function eo(d,K,Ae,tr){return d&&e.hasSyntacticModifier(K,1)?Oa(d,Li(K),Ae,tr):la(K,Ae,tr)}function $o(d,K,Ae,tr){var $r=Es(d,K,0,Ae);return vc(d,K,$r,tr)}function fo(d){return e.isStringLiteral(d.expression)&&d.expression.text==="use strict"}function es(){return e.startOnNewLine(Te(Se("use strict")))}function Es(d,K,Ae,tr){Ae===void 0&&(Ae=0),e.Debug.assert(K.length===0,"Prologue directives should be at the first statement in the target statements array");for(var $r=!1,Zi=d.length;Ae<Zi;){var dt=d[Ae];if(e.isPrologueDirective(dt))fo(dt)&&($r=!0),K.push(dt);else break;Ae++}return tr&&!$r&&K.push(es()),Ae}function vc(d,K,Ae,tr,$r){$r===void 0&&($r=e.returnTrue);for(var Zi=d.length;Ae!==void 0&&Ae<Zi;){var dt=d[Ae];if(e.getEmitFlags(dt)&1048576&&$r(dt))e.append(K,tr?e.visitNode(dt,tr,e.isStatement):dt);else break;Ae++}return Ae}function lc(d){var K=e.findUseStrictPrologue(d);return K?d:e.setTextRange(ce(qe([es()],d,!0)),d)}function cl(d){return e.Debug.assert(e.every(d,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(d)||Ja(d)}function Is(d,K,Ae){for(var tr=Ae;tr<d.length&&K(d[tr]);)tr++;return tr}function yf(d,K){if(!e.some(K))return d;var Ae=Is(d,e.isPrologueDirective,0),tr=Is(d,e.isHoistedFunction,Ae),$r=Is(d,e.isHoistedVariableStatement,tr),Zi=Is(K,e.isPrologueDirective,0),dt=Is(K,e.isHoistedFunction,Zi),_n=Is(K,e.isHoistedVariableStatement,dt),Zo=Is(K,e.isCustomPrologue,_n);e.Debug.assert(Zo===K.length,"Expected declarations to be valid standard or custom prologues");var Bs=e.isNodeArray(d)?d.slice():d;if(Zo>_n&&Bs.splice.apply(Bs,qe([$r,0],K.slice(_n,Zo),!1)),_n>dt&&Bs.splice.apply(Bs,qe([tr,0],K.slice(dt,_n),!1)),dt>Zi&&Bs.splice.apply(Bs,qe([Ae,0],K.slice(Zi,dt),!1)),Zi>0)if(Ae===0)Bs.splice.apply(Bs,qe([0,0],K.slice(0,Zi),!1));else{for(var ad=new e.Map,hf=0;hf<Ae;hf++){var Ag=d[hf];ad.set(Ag.expression.text,!0)}for(var hf=Zi-1;hf>=0;hf--){var v_=K[hf];ad.has(v_.expression.text)||Bs.unshift(v_)}}return e.isNodeArray(d)?e.setTextRange(ce(Bs,d.hasTrailingComma),d):d}function g_(d,K){var Ae,tr;return typeof K=="number"?tr=be(K):tr=K,e.isParameter(d)?bt(d,d.decorators,tr,d.dotDotDotToken,d.name,d.questionToken,d.type,d.initializer):e.isPropertySignature(d)?di(d,tr,d.name,d.questionToken,d.type):e.isPropertyDeclaration(d)?Ye(d,d.decorators,tr,d.name,(Ae=d.questionToken)!==null&&Ae!==void 0?Ae:d.exclamationToken,d.type,d.initializer):e.isMethodSignature(d)?Qe(d,tr,d.name,d.questionToken,d.typeParameters,d.parameters,d.type):e.isMethodDeclaration(d)?hr(d,d.decorators,tr,d.asteriskToken,d.name,d.questionToken,d.typeParameters,d.parameters,d.type,d.body):e.isConstructorDeclaration(d)?xe(d,d.decorators,tr,d.parameters,d.body):e.isGetAccessorDeclaration(d)?Je(d,d.decorators,tr,d.name,d.parameters,d.type,d.body):e.isSetAccessorDeclaration(d)?Fr(d,d.decorators,tr,d.name,d.parameters,d.body):e.isIndexSignatureDeclaration(d)?Ur(d,d.decorators,tr,d.parameters,d.type):e.isFunctionExpression(d)?yn(d,tr,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isArrowFunction(d)?Pa(d,tr,d.typeParameters,d.parameters,d.type,d.equalsGreaterThanToken,d.body):e.isClassExpression(d)?qa(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isVariableStatement(d)?lo(d,tr,d.declarationList):e.isFunctionDeclaration(d)?Ju(d,d.decorators,tr,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isClassDeclaration(d)?fp(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isInterfaceDeclaration(d)?Xp(d,d.decorators,tr,d.name,d.typeParameters,d.heritageClauses,d.members):e.isTypeAliasDeclaration(d)?el(d,d.decorators,tr,d.name,d.typeParameters,d.type):e.isEnumDeclaration(d)?O_(d,d.decorators,tr,d.name,d.members):e.isModuleDeclaration(d)?Nc(d,d.decorators,tr,d.name,d.body):e.isImportEqualsDeclaration(d)?gp(d,d.decorators,tr,d.isTypeOnly,d.name,d.moduleReference):e.isImportDeclaration(d)?$p(d,d.decorators,tr,d.importClause,d.moduleSpecifier,d.assertClause):e.isExportAssignment(d)?R_(d,d.decorators,tr,d.expression):e.isExportDeclaration(d)?yp(d,d.decorators,tr,d.isTypeOnly,d.exportClause,d.moduleSpecifier,d.assertClause):e.Debug.assertNever(d)}function wc(d){return d?ce(d):void 0}function bc(d){return typeof d=="string"?dr(d):d}function ru(d){return typeof d=="string"?Se(d):typeof d=="number"?he(d):typeof d=="boolean"?d?Jr():Rr():d}function m_(d){return typeof d=="number"?Le(d):d}function Wu(d){return d&&e.isNotEmittedStatement(d)?e.setTextRange(Z(Kn(),d),d):d}}e.createNodeFactory=L;function W(ne,ee){return ne!==ee&&e.setTextRange(ne,ee),ne}function N(ne,ee){return ne!==ee&&(Z(ne,ee),e.setTextRange(ne,ee)),ne}function Q(ne){switch(ne){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(ne)))}}var pe,F={};function g(ne,ee){switch(pe||(pe=e.createScanner(99,!1,0)),ne){case 14:pe.setText("`"+ee+"`");break;case 15:pe.setText("`"+ee+"${");break;case 16:pe.setText("}"+ee+"${");break;case 17:pe.setText("}"+ee+"`");break}var A=pe.scan();if(A===19&&(A=pe.reScanTemplateToken(!1)),pe.isUnterminated())return pe.setText(void 0),F;var f;switch(A){case 14:case 15:case 16:case 17:f=pe.getTokenValue();break}return f===void 0||pe.scan()!==1?(pe.setText(void 0),F):(pe.setText(void 0),f)}function S(ne){return se(ne)&-16777217}function H(ne,ee){return ee|ne.transformFlags&33562624}function se(ne){if(!ne)return 0;var ee=ne.transformFlags&~G(ne.kind);return e.isNamedDeclaration(ne)&&e.isPropertyName(ne.name)?H(ne.name,ee):ee}function p(ne){return ne?ne.transformFlags:0}function C(ne){for(var ee=0,A=0,f=ne;A<f.length;A++){var P=f[A];ee|=se(P)}ne.transformFlags=ee}function G(ne){if(ne>=176&&ne<=199)return-2;switch(ne){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=G;var E=e.createBaseNodeFactory();function ue(ne){return ne.flags|=8,ne}var B={createBaseSourceFileNode:function(ne){return ue(E.createBaseSourceFileNode(ne))},createBaseIdentifierNode:function(ne){return ue(E.createBaseIdentifierNode(ne))},createBasePrivateIdentifierNode:function(ne){return ue(E.createBasePrivateIdentifierNode(ne))},createBaseTokenNode:function(ne){return ue(E.createBaseTokenNode(ne))},createBaseNode:function(ne){return ue(E.createBaseNode(ne))}};e.factory=L(4,B);function re(ne,ee,A){var f,P,D,l,_,J,w,j,U,z;e.isString(ne)?(D="",l=ne,_=ne.length,J=ee,w=A):(e.Debug.assert(ee==="js"||ee==="dts"),D=(ee==="js"?ne.javascriptPath:ne.declarationPath)||"",J=ee==="js"?ne.javascriptMapPath:ne.declarationMapPath,j=function(){return ee==="js"?ne.javascriptText:ne.declarationText},U=function(){return ee==="js"?ne.javascriptMapText:ne.declarationMapText},_=function(){return j().length},ne.buildInfo&&ne.buildInfo.bundle&&(e.Debug.assert(A===void 0||typeof A=="boolean"),f=A,P=ee==="js"?ne.buildInfo.bundle.js:ne.buildInfo.bundle.dts,z=ne.oldFileOfCurrentEmit));var y=z?x(e.Debug.checkDefined(P)):M(P,f,_);return y.fileName=D,y.sourceMapPath=J,y.oldFileOfCurrentEmit=z,j&&U?(Object.defineProperty(y,"text",{get:j}),Object.defineProperty(y,"sourceMapText",{get:U})):(e.Debug.assert(!z),y.text=l!=null?l:"",y.sourceMapText=w),y}e.createUnparsedSourceFile=re;function M(ne,ee,A){for(var f,P,D,l,_,J,w,j,U=0,z=ne?ne.sections:e.emptyArray;U<z.length;U++){var y=z[U];switch(y.kind){case"prologue":f=e.append(f,e.setTextRange(e.factory.createUnparsedPrologue(y.data),y));break;case"emitHelpers":P=e.append(P,e.getAllUnscopedEmitHelpers().get(y.data));break;case"no-default-lib":j=!0;break;case"reference":D=e.append(D,{pos:-1,end:-1,fileName:y.data});break;case"type":l=e.append(l,y.data);break;case"lib":_=e.append(_,{pos:-1,end:-1,fileName:y.data});break;case"prepend":for(var oe=void 0,ve=0,ce=y.texts;ve<ce.length;ve++){var m=ce[ve];(!ee||m.kind!=="internal")&&(oe=e.append(oe,e.setTextRange(e.factory.createUnparsedTextLike(m.data,m.kind==="internal"),m)))}J=e.addRange(J,oe),w=e.append(w,e.factory.createUnparsedPrepend(y.data,oe!=null?oe:e.emptyArray));break;case"internal":if(ee){w||(w=[]);break}case"text":w=e.append(w,e.setTextRange(e.factory.createUnparsedTextLike(y.data,y.kind==="internal"),y));break;default:e.Debug.assertNever(y)}}if(!w){var de=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(de,0,typeof A=="function"?A():A),w=[de]}var ae=e.parseNodeFactory.createUnparsedSource(f!=null?f:e.emptyArray,void 0,w);return e.setEachParent(f,ae),e.setEachParent(w,ae),e.setEachParent(J,ae),ae.hasNoDefaultLib=j,ae.helpers=P,ae.referencedFiles=D||e.emptyArray,ae.typeReferenceDirectives=l,ae.libReferenceDirectives=_||e.emptyArray,ae}function x(ne){for(var ee,A,f=0,P=ne.sections;f<P.length;f++){var D=P[f];switch(D.kind){case"internal":case"text":ee=e.append(ee,e.setTextRange(e.factory.createUnparsedTextLike(D.data,D.kind==="internal"),D));break;case"no-default-lib":case"reference":case"type":case"lib":A=e.append(A,e.setTextRange(e.factory.createUnparsedSyntheticReference(D),D));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(D)}}var l=e.factory.createUnparsedSource(e.emptyArray,A,ee!=null?ee:e.emptyArray);return e.setEachParent(A,l),e.setEachParent(ee,l),l.helpers=e.map(ne.sources&&ne.sources.helpers,function(_){return e.getAllUnscopedEmitHelpers().get(_)}),l}function ie(ne,ee,A,f,P,D,l,_,J,w,j){var U=e.parseNodeFactory.createInputFiles();if(e.isString(ne))U.javascriptText=ne,U.javascriptMapPath=A,U.javascriptMapText=f,U.declarationText=ee,U.declarationMapPath=P,U.declarationMapText=D,U.javascriptPath=l,U.declarationPath=_,U.buildInfoPath=J,U.buildInfo=w,U.oldFileOfCurrentEmit=j;else{var z=new e.Map,y=function(m){if(m!==void 0){var de=z.get(m);return de===void 0&&(de=ne(m),z.set(m,de!==void 0?de:!1)),de!==!1?de:void 0}},oe=function(m){var de=y(m);return de!==void 0?de:"/* Input file ".concat(m,` was missing */\r
|
|
`)},ve,ce=function(m){if(ve===void 0){var de=m();ve=de!==void 0?e.getBuildInfo(de):!1}return ve||void 0};U.javascriptPath=ee,U.javascriptMapPath=A,U.declarationPath=e.Debug.checkDefined(f),U.declarationMapPath=P,U.buildInfoPath=D,Object.defineProperties(U,{javascriptText:{get:function(){return oe(ee)}},javascriptMapText:{get:function(){return y(A)}},declarationText:{get:function(){return oe(e.Debug.checkDefined(f))}},declarationMapText:{get:function(){return y(P)}},buildInfo:{get:function(){return ce(function(){return y(D)})}}})}return U}e.createInputFiles=ie;var _e;function Y(ne,ee,A){return new(_e||(_e=e.objectAllocator.getSourceMapSourceConstructor()))(ne,ee,A)}e.createSourceMapSource=Y;function Z(ne,ee){if(ne.original=ee,ee){var A=ee.emitNode;A&&(ne.emitNode=k(A,ne.emitNode))}return ne}e.setOriginalNode=Z;function k(ne,ee){var A=ne.flags,f=ne.leadingComments,P=ne.trailingComments,D=ne.commentRange,l=ne.sourceMapRange,_=ne.tokenSourceMapRanges,J=ne.constantValue,w=ne.helpers,j=ne.startsOnNewLine;if(ee||(ee={}),f&&(ee.leadingComments=e.addRange(f.slice(),ee.leadingComments)),P&&(ee.trailingComments=e.addRange(P.slice(),ee.trailingComments)),A&&(ee.flags=A&-268435457),D&&(ee.commentRange=D),l&&(ee.sourceMapRange=l),_&&(ee.tokenSourceMapRanges=I(_,ee.tokenSourceMapRanges)),J!==void 0&&(ee.constantValue=J),w)for(var U=0,z=w;U<z.length;U++){var y=z[U];ee.helpers=e.appendIfUnique(ee.helpers,y)}return j!==void 0&&(ee.startsOnNewLine=j),ee}function I(ne,ee){ee||(ee=[]);for(var A in ne)ee[A]=ne[A];return ee}})(Pe||(Pe={}));var Pe;(function(e){function a(f){var P;if(f.emitNode)e.Debug.assert(!(f.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(f)){if(f.kind===303)return f.emitNode={annotatedNodes:[f]};var D=(P=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(f))))!==null&&P!==void 0?P:e.Debug.fail("Could not determine parsed source file.");a(D).annotatedNodes.push(f)}f.emitNode={}}return f.emitNode}e.getOrCreateEmitNode=a;function O(f){var P,D,l=(D=(P=e.getSourceFileOfNode(e.getParseTreeNode(f)))===null||P===void 0?void 0:P.emitNode)===null||D===void 0?void 0:D.annotatedNodes;if(l)for(var _=0,J=l;_<J.length;_++){var w=J[_];w.emitNode=void 0}}e.disposeEmitNodes=O;function L(f){var P=a(f);return P.flags|=1536,P.leadingComments=void 0,P.trailingComments=void 0,f}e.removeAllComments=L;function W(f,P){return a(f).flags=P,f}e.setEmitFlags=W;function N(f,P){var D=a(f);return D.flags=D.flags|P,f}e.addEmitFlags=N;function Q(f){var P,D;return(D=(P=f.emitNode)===null||P===void 0?void 0:P.sourceMapRange)!==null&&D!==void 0?D:f}e.getSourceMapRange=Q;function pe(f,P){return a(f).sourceMapRange=P,f}e.setSourceMapRange=pe;function F(f,P){var D,l;return(l=(D=f.emitNode)===null||D===void 0?void 0:D.tokenSourceMapRanges)===null||l===void 0?void 0:l[P]}e.getTokenSourceMapRange=F;function g(f,P,D){var l,_=a(f),J=(l=_.tokenSourceMapRanges)!==null&&l!==void 0?l:_.tokenSourceMapRanges=[];return J[P]=D,f}e.setTokenSourceMapRange=g;function S(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.startsOnNewLine}e.getStartsOnNewLine=S;function H(f,P){return a(f).startsOnNewLine=P,f}e.setStartsOnNewLine=H;function se(f){var P,D;return(D=(P=f.emitNode)===null||P===void 0?void 0:P.commentRange)!==null&&D!==void 0?D:f}e.getCommentRange=se;function p(f,P){return a(f).commentRange=P,f}e.setCommentRange=p;function C(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.leadingComments}e.getSyntheticLeadingComments=C;function G(f,P){return a(f).leadingComments=P,f}e.setSyntheticLeadingComments=G;function E(f,P,D,l){return G(f,e.append(C(f),{kind:P,pos:-1,end:-1,hasTrailingNewLine:l,text:D}))}e.addSyntheticLeadingComment=E;function ue(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.trailingComments}e.getSyntheticTrailingComments=ue;function B(f,P){return a(f).trailingComments=P,f}e.setSyntheticTrailingComments=B;function re(f,P,D,l){return B(f,e.append(ue(f),{kind:P,pos:-1,end:-1,hasTrailingNewLine:l,text:D}))}e.addSyntheticTrailingComment=re;function M(f,P){G(f,C(P)),B(f,ue(P));var D=a(P);return D.leadingComments=void 0,D.trailingComments=void 0,f}e.moveSyntheticComments=M;function x(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.constantValue}e.getConstantValue=x;function ie(f,P){var D=a(f);return D.constantValue=P,f}e.setConstantValue=ie;function _e(f,P){var D=a(f);return D.helpers=e.append(D.helpers,P),f}e.addEmitHelper=_e;function Y(f,P){if(e.some(P))for(var D=a(f),l=0,_=P;l<_.length;l++){var J=_[l];D.helpers=e.appendIfUnique(D.helpers,J)}return f}e.addEmitHelpers=Y;function Z(f,P){var D,l=(D=f.emitNode)===null||D===void 0?void 0:D.helpers;return l?e.orderedRemoveItem(l,P):!1}e.removeEmitHelper=Z;function k(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.helpers}e.getEmitHelpers=k;function I(f,P,D){var l=f.emitNode,_=l&&l.helpers;if(!!e.some(_)){for(var J=a(P),w=0,j=0;j<_.length;j++){var U=_[j];D(U)?(w++,J.helpers=e.appendIfUnique(J.helpers,U)):w>0&&(_[j-w]=U)}w>0&&(_.length-=w)}}e.moveEmitHelpers=I;function ne(f){var P;return(P=f.emitNode)===null||P===void 0?void 0:P.snippetElement}e.getSnippetElement=ne;function ee(f,P){var D=a(f);return D.snippetElement=P,f}e.setSnippetElement=ee;function A(f){return a(f).flags|=134217728,f}e.ignoreSourceNewlines=A})(Pe||(Pe={}));var Pe;(function(e){function a(pe){var F=pe.factory,g=e.memoize(function(){return e.setEmitFlags(F.createTrue(),268435456)}),S=e.memoize(function(){return e.setEmitFlags(F.createFalse(),268435456)});return{getUnscopedHelperName:H,createDecorateHelper:se,createMetadataHelper:p,createParamHelper:C,createAssignHelper:G,createAwaitHelper:E,createAsyncGeneratorHelper:ue,createAsyncDelegatorHelper:B,createAsyncValuesHelper:re,createRestHelper:M,createAwaiterHelper:x,createExtendsHelper:ie,createTemplateObjectHelper:_e,createSpreadArrayHelper:Y,createValuesHelper:Z,createReadHelper:k,createGeneratorHelper:I,createCreateBindingHelper:ne,createImportStarHelper:ee,createImportStarCallbackHelper:A,createImportDefaultHelper:f,createExportStarHelper:P,createClassPrivateFieldGetHelper:D,createClassPrivateFieldSetHelper:l,createClassPrivateFieldInHelper:_};function H(J){return e.setEmitFlags(F.createIdentifier(J),4098)}function se(J,w,j,U){pe.requestEmitHelper(e.decorateHelper);var z=[];return z.push(F.createArrayLiteralExpression(J,!0)),z.push(w),j&&(z.push(j),U&&z.push(U)),F.createCallExpression(H("__decorate"),void 0,z)}function p(J,w){return pe.requestEmitHelper(e.metadataHelper),F.createCallExpression(H("__metadata"),void 0,[F.createStringLiteral(J),w])}function C(J,w,j){return pe.requestEmitHelper(e.paramHelper),e.setTextRange(F.createCallExpression(H("__param"),void 0,[F.createNumericLiteral(w+""),J]),j)}function G(J){return e.getEmitScriptTarget(pe.getCompilerOptions())>=2?F.createCallExpression(F.createPropertyAccessExpression(F.createIdentifier("Object"),"assign"),void 0,J):(pe.requestEmitHelper(e.assignHelper),F.createCallExpression(H("__assign"),void 0,J))}function E(J){return pe.requestEmitHelper(e.awaitHelper),F.createCallExpression(H("__await"),void 0,[J])}function ue(J,w){return pe.requestEmitHelper(e.awaitHelper),pe.requestEmitHelper(e.asyncGeneratorHelper),(J.emitNode||(J.emitNode={})).flags|=786432,F.createCallExpression(H("__asyncGenerator"),void 0,[w?F.createThis():F.createVoidZero(),F.createIdentifier("arguments"),J])}function B(J){return pe.requestEmitHelper(e.awaitHelper),pe.requestEmitHelper(e.asyncDelegator),F.createCallExpression(H("__asyncDelegator"),void 0,[J])}function re(J){return pe.requestEmitHelper(e.asyncValues),F.createCallExpression(H("__asyncValues"),void 0,[J])}function M(J,w,j,U){pe.requestEmitHelper(e.restHelper);for(var z=[],y=0,oe=0;oe<w.length-1;oe++){var ve=e.getPropertyNameOfBindingOrAssignmentElement(w[oe]);if(ve)if(e.isComputedPropertyName(ve)){e.Debug.assertIsDefined(j,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var ce=j[y];y++,z.push(F.createConditionalExpression(F.createTypeCheck(ce,"symbol"),void 0,ce,void 0,F.createAdd(ce,F.createStringLiteral(""))))}else z.push(F.createStringLiteralFromNode(ve))}return F.createCallExpression(H("__rest"),void 0,[J,e.setTextRange(F.createArrayLiteralExpression(z),U)])}function x(J,w,j,U){pe.requestEmitHelper(e.awaiterHelper);var z=F.createFunctionExpression(void 0,F.createToken(41),void 0,void 0,[],void 0,U);return(z.emitNode||(z.emitNode={})).flags|=786432,F.createCallExpression(H("__awaiter"),void 0,[J?F.createThis():F.createVoidZero(),w?F.createIdentifier("arguments"):F.createVoidZero(),j?e.createExpressionFromEntityName(F,j):F.createVoidZero(),z])}function ie(J){return pe.requestEmitHelper(e.extendsHelper),F.createCallExpression(H("__extends"),void 0,[J,F.createUniqueName("_super",48)])}function _e(J,w){return pe.requestEmitHelper(e.templateObjectHelper),F.createCallExpression(H("__makeTemplateObject"),void 0,[J,w])}function Y(J,w,j){return pe.requestEmitHelper(e.spreadArrayHelper),F.createCallExpression(H("__spreadArray"),void 0,[J,w,j?g():S()])}function Z(J){return pe.requestEmitHelper(e.valuesHelper),F.createCallExpression(H("__values"),void 0,[J])}function k(J,w){return pe.requestEmitHelper(e.readHelper),F.createCallExpression(H("__read"),void 0,w!==void 0?[J,F.createNumericLiteral(w+"")]:[J])}function I(J){return pe.requestEmitHelper(e.generatorHelper),F.createCallExpression(H("__generator"),void 0,[F.createThis(),J])}function ne(J,w,j){return pe.requestEmitHelper(e.createBindingHelper),F.createCallExpression(H("__createBinding"),void 0,qe([F.createIdentifier("exports"),J,w],j?[j]:[],!0))}function ee(J){return pe.requestEmitHelper(e.importStarHelper),F.createCallExpression(H("__importStar"),void 0,[J])}function A(){return pe.requestEmitHelper(e.importStarHelper),H("__importStar")}function f(J){return pe.requestEmitHelper(e.importDefaultHelper),F.createCallExpression(H("__importDefault"),void 0,[J])}function P(J,w){return w===void 0&&(w=F.createIdentifier("exports")),pe.requestEmitHelper(e.exportStarHelper),pe.requestEmitHelper(e.createBindingHelper),F.createCallExpression(H("__exportStar"),void 0,[J,w])}function D(J,w,j,U){pe.requestEmitHelper(e.classPrivateFieldGetHelper);var z;return U?z=[J,w,F.createStringLiteral(j),U]:z=[J,w,F.createStringLiteral(j)],F.createCallExpression(H("__classPrivateFieldGet"),void 0,z)}function l(J,w,j,U,z){pe.requestEmitHelper(e.classPrivateFieldSetHelper);var y;return z?y=[J,w,j,F.createStringLiteral(U),z]:y=[J,w,j,F.createStringLiteral(U)],F.createCallExpression(H("__classPrivateFieldSet"),void 0,y)}function _(J,w){return pe.requestEmitHelper(e.classPrivateFieldInHelper),F.createCallExpression(H("__classPrivateFieldIn"),void 0,[J,w])}}e.createEmitHelperFactory=a;function O(pe,F){return pe===F||pe.priority===F.priority?0:pe.priority===void 0?1:F.priority===void 0?-1:e.compareValues(pe.priority,F.priority)}e.compareEmitHelpers=O;function L(pe){for(var F=[],g=1;g<arguments.length;g++)F[g-1]=arguments[g];return function(S){for(var H="",se=0;se<F.length;se++)H+=pe[se],H+=S(F[se]);return H+=pe[pe.length-1],H}}e.helperString=L,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};`},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
|
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};`},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
|
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
};`},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
|
|
var __assign = (this && this.__assign) || function () {
|
|
__assign = Object.assign || function(t) {
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
s = arguments[i];
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
t[p] = s[p];
|
|
}
|
|
return t;
|
|
};
|
|
return __assign.apply(this, arguments);
|
|
};`},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:`
|
|
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
|
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
function fulfill(value) { resume("next", value); }
|
|
function reject(value) { resume("throw", value); }
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
};`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:`
|
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
var i, p;
|
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
};`},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
|
|
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var m = o[Symbol.asyncIterator], i;
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
};`},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
|
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};`},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};`},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
|
|
return function (d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();`},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
|
|
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
return cooked;
|
|
};`},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:`
|
|
var __read = (this && this.__read) || function (o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
}
|
|
catch (error) { e = { error: error }; }
|
|
finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
}
|
|
finally { if (e) throw e.error; }
|
|
}
|
|
return ar;
|
|
};`},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
|
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
if (ar || !(i in from)) {
|
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
ar[i] = from[i];
|
|
}
|
|
}
|
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
};`},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:`
|
|
var __values = (this && this.__values) || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: function () {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
|
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
function step(op) {
|
|
if (f) throw new TypeError("Generator is already executing.");
|
|
while (_) try {
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
switch (op[0]) {
|
|
case 0: case 1: t = op; break;
|
|
case 4: _.label++; return { value: op[1], done: false };
|
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
default:
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
if (t[2]) _.ops.pop();
|
|
_.trys.pop(); continue;
|
|
}
|
|
op = body.call(thisArg, _);
|
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
}
|
|
};`},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));`},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:`
|
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};`},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
|
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
};`},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
|
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
};`},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
|
|
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
|
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
};`};var W;function N(){return W||(W=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(pe){return pe.name}))}e.getAllUnscopedEmitHelpers=N,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:L(ni([`
|
|
const `," = name => super[name];"],[`
|
|
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:L(ni([`
|
|
const `,` = (function (geti, seti) {
|
|
const cache = Object.create(null);
|
|
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
|
|
})(name => super[name], (name, value) => super[name] = value);`],[`
|
|
const `,` = (function (geti, seti) {
|
|
const cache = Object.create(null);
|
|
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
|
|
})(name => super[name], (name, value) => super[name] = value);`]),"_superIndex")};function Q(pe,F){return e.isCallExpression(pe)&&e.isIdentifier(pe.expression)&&(e.getEmitFlags(pe.expression)&4096)!==0&&pe.expression.escapedText===F}e.isCallToHelper=Q})(Pe||(Pe={}));var Pe;(function(e){function a(jr){return jr.kind===8}e.isNumericLiteral=a;function O(jr){return jr.kind===9}e.isBigIntLiteral=O;function L(jr){return jr.kind===10}e.isStringLiteral=L;function W(jr){return jr.kind===11}e.isJsxText=W;function N(jr){return jr.kind===13}e.isRegularExpressionLiteral=N;function Q(jr){return jr.kind===14}e.isNoSubstitutionTemplateLiteral=Q;function pe(jr){return jr.kind===15}e.isTemplateHead=pe;function F(jr){return jr.kind===16}e.isTemplateMiddle=F;function g(jr){return jr.kind===17}e.isTemplateTail=g;function S(jr){return jr.kind===25}e.isDotDotDotToken=S;function H(jr){return jr.kind===27}e.isCommaToken=H;function se(jr){return jr.kind===39}e.isPlusToken=se;function p(jr){return jr.kind===40}e.isMinusToken=p;function C(jr){return jr.kind===41}e.isAsteriskToken=C;function G(jr){return jr.kind===53}e.isExclamationToken=G;function E(jr){return jr.kind===57}e.isQuestionToken=E;function ue(jr){return jr.kind===58}e.isColonToken=ue;function B(jr){return jr.kind===28}e.isQuestionDotToken=B;function re(jr){return jr.kind===38}e.isEqualsGreaterThanToken=re;function M(jr){return jr.kind===79}e.isIdentifier=M;function x(jr){return jr.kind===80}e.isPrivateIdentifier=x;function ie(jr){return jr.kind===93}e.isExportModifier=ie;function _e(jr){return jr.kind===131}e.isAsyncModifier=_e;function Y(jr){return jr.kind===128}e.isAssertsKeyword=Y;function Z(jr){return jr.kind===132}e.isAwaitKeyword=Z;function k(jr){return jr.kind===144}e.isReadonlyKeyword=k;function I(jr){return jr.kind===124}e.isStaticModifier=I;function ne(jr){return jr.kind===126}e.isAbstractModifier=ne;function ee(jr){return jr.kind===106}e.isSuperKeyword=ee;function A(jr){return jr.kind===100}e.isImportKeyword=A;function f(jr){return jr.kind===160}e.isQualifiedName=f;function P(jr){return jr.kind===161}e.isComputedPropertyName=P;function D(jr){return jr.kind===162}e.isTypeParameterDeclaration=D;function l(jr){return jr.kind===163}e.isParameter=l;function _(jr){return jr.kind===164}e.isDecorator=_;function J(jr){return jr.kind===165}e.isPropertySignature=J;function w(jr){return jr.kind===166}e.isPropertyDeclaration=w;function j(jr){return jr.kind===167}e.isMethodSignature=j;function U(jr){return jr.kind===168}e.isMethodDeclaration=U;function z(jr){return jr.kind===169}e.isClassStaticBlockDeclaration=z;function y(jr){return jr.kind===170}e.isConstructorDeclaration=y;function oe(jr){return jr.kind===171}e.isGetAccessorDeclaration=oe;function ve(jr){return jr.kind===172}e.isSetAccessorDeclaration=ve;function ce(jr){return jr.kind===173}e.isCallSignatureDeclaration=ce;function m(jr){return jr.kind===174}e.isConstructSignatureDeclaration=m;function de(jr){return jr.kind===175}e.isIndexSignatureDeclaration=de;function ae(jr){return jr.kind===176}e.isTypePredicateNode=ae;function V(jr){return jr.kind===177}e.isTypeReferenceNode=V;function le(jr){return jr.kind===178}e.isFunctionTypeNode=le;function ke(jr){return jr.kind===179}e.isConstructorTypeNode=ke;function Ue(jr){return jr.kind===180}e.isTypeQueryNode=Ue;function He(jr){return jr.kind===181}e.isTypeLiteralNode=He;function ar(jr){return jr.kind===182}e.isArrayTypeNode=ar;function gr(jr){return jr.kind===183}e.isTupleTypeNode=gr;function me(jr){return jr.kind===196}e.isNamedTupleMember=me;function Ge(jr){return jr.kind===184}e.isOptionalTypeNode=Ge;function er(jr){return jr.kind===185}e.isRestTypeNode=er;function he(jr){return jr.kind===186}e.isUnionTypeNode=he;function we(jr){return jr.kind===187}e.isIntersectionTypeNode=we;function ye(jr){return jr.kind===188}e.isConditionalTypeNode=ye;function Se(jr){return jr.kind===189}e.isInferTypeNode=Se;function ge(jr){return jr.kind===190}e.isParenthesizedTypeNode=ge;function Fe(jr){return jr.kind===191}e.isThisTypeNode=Fe;function cr(jr){return jr.kind===192}e.isTypeOperatorNode=cr;function ur(jr){return jr.kind===193}e.isIndexedAccessTypeNode=ur;function Ir(jr){return jr.kind===194}e.isMappedTypeNode=Ir;function dr(jr){return jr.kind===195}e.isLiteralTypeNode=dr;function Br(jr){return jr.kind===199}e.isImportTypeNode=Br;function Tr(jr){return jr.kind===198}e.isTemplateLiteralTypeSpan=Tr;function n(jr){return jr.kind===197}e.isTemplateLiteralTypeNode=n;function Er(jr){return jr.kind===200}e.isObjectBindingPattern=Er;function br(jr){return jr.kind===201}e.isArrayBindingPattern=br;function Pr(jr){return jr.kind===202}e.isBindingElement=Pr;function Ce(jr){return jr.kind===203}e.isArrayLiteralExpression=Ce;function Le(jr){return jr.kind===204}e.isObjectLiteralExpression=Le;function Xe(jr){return jr.kind===205}e.isPropertyAccessExpression=Xe;function Cr(jr){return jr.kind===206}e.isElementAccessExpression=Cr;function Lr(jr){return jr.kind===207}e.isCallExpression=Lr;function Jr(jr){return jr.kind===208}e.isNewExpression=Jr;function Rr(jr){return jr.kind===209}e.isTaggedTemplateExpression=Rr;function ci(jr){return jr.kind===210}e.isTypeAssertionExpression=ci;function be(jr){return jr.kind===211}e.isParenthesizedExpression=be;function or(jr){return jr.kind===212}e.isFunctionExpression=or;function Kr(jr){return jr.kind===213}e.isArrowFunction=Kr;function ei(jr){return jr.kind===214}e.isDeleteExpression=ei;function li(jr){return jr.kind===215}e.isTypeOfExpression=li;function Si(jr){return jr.kind===216}e.isVoidExpression=Si;function qi(jr){return jr.kind===217}e.isAwaitExpression=qi;function ft(jr){return jr.kind===218}e.isPrefixUnaryExpression=ft;function bt(jr){return jr.kind===219}e.isPostfixUnaryExpression=bt;function aa(jr){return jr.kind===220}e.isBinaryExpression=aa;function sr(jr){return jr.kind===221}e.isConditionalExpression=sr;function Ji(jr){return jr.kind===222}e.isTemplateExpression=Ji;function di(jr){return jr.kind===223}e.isYieldExpression=di;function X(jr){return jr.kind===224}e.isSpreadElement=X;function Ye(jr){return jr.kind===225}e.isClassExpression=Ye;function Be(jr){return jr.kind===226}e.isOmittedExpression=Be;function Qe(jr){return jr.kind===227}e.isExpressionWithTypeArguments=Qe;function _r(jr){return jr.kind===228}e.isAsExpression=_r;function hr(jr){return jr.kind===229}e.isNonNullExpression=hr;function Dr(jr){return jr.kind===230}e.isMetaProperty=Dr;function Me(jr){return jr.kind===231}e.isSyntheticExpression=Me;function v(jr){return jr.kind===348}e.isPartiallyEmittedExpression=v;function xe(jr){return jr.kind===349}e.isCommaListExpression=xe;function ze(jr){return jr.kind===232}e.isTemplateSpan=ze;function Je(jr){return jr.kind===233}e.isSemicolonClassElement=Je;function Oe(jr){return jr.kind===234}e.isBlock=Oe;function Fr(jr){return jr.kind===236}e.isVariableStatement=Fr;function Xr(jr){return jr.kind===235}e.isEmptyStatement=Xr;function Or(jr){return jr.kind===237}e.isExpressionStatement=Or;function We(jr){return jr.kind===238}e.isIfStatement=We;function mr(jr){return jr.kind===239}e.isDoStatement=mr;function Nr(jr){return jr.kind===240}e.isWhileStatement=Nr;function Ur(jr){return jr.kind===241}e.isForStatement=Ur;function si(jr){return jr.kind===242}e.isForInStatement=si;function mi(jr){return jr.kind===243}e.isForOfStatement=mi;function Ti(jr){return jr.kind===244}e.isContinueStatement=Ti;function hi(jr){return jr.kind===245}e.isBreakStatement=hi;function ki(jr){return jr.kind===246}e.isReturnStatement=ki;function Ui(jr){return jr.kind===247}e.isWithStatement=Ui;function zi(jr){return jr.kind===248}e.isSwitchStatement=zi;function ri(jr){return jr.kind===249}e.isLabeledStatement=ri;function Gi(jr){return jr.kind===250}e.isThrowStatement=Gi;function Rt(jr){return jr.kind===251}e.isTryStatement=Rt;function pa(jr){return jr.kind===252}e.isDebuggerStatement=pa;function xt(jr){return jr.kind===253}e.isVariableDeclaration=xt;function ua(jr){return jr.kind===254}e.isVariableDeclarationList=ua;function Vt(jr){return jr.kind===255}e.isFunctionDeclaration=Vt;function St(jr){return jr.kind===256}e.isClassDeclaration=St;function Ci(jr){return jr.kind===257}e.isInterfaceDeclaration=Ci;function Hi(jr){return jr.kind===258}e.isTypeAliasDeclaration=Hi;function Yi(jr){return jr.kind===259}e.isEnumDeclaration=Yi;function yt(jr){return jr.kind===260}e.isModuleDeclaration=yt;function gt(jr){return jr.kind===261}e.isModuleBlock=gt;function oa(jr){return jr.kind===262}e.isCaseBlock=oa;function Bt(jr){return jr.kind===263}e.isNamespaceExportDeclaration=Bt;function Pi(jr){return jr.kind===264}e.isImportEqualsDeclaration=Pi;function Oi(jr){return jr.kind===265}e.isImportDeclaration=Oi;function wi(jr){return jr.kind===266}e.isImportClause=wi;function Qr(jr){return jr.kind===292}e.isAssertClause=Qr;function Ct(jr){return jr.kind===293}e.isAssertEntry=Ct;function tt(jr){return jr.kind===267}e.isNamespaceImport=tt;function ta(jr){return jr.kind===273}e.isNamespaceExport=ta;function Xa(jr){return jr.kind===268}e.isNamedImports=Xa;function on(jr){return jr.kind===269}e.isImportSpecifier=on;function qr(jr){return jr.kind===270}e.isExportAssignment=qr;function bn(jr){return jr.kind===271}e.isExportDeclaration=bn;function Rn(jr){return jr.kind===272}e.isNamedExports=Rn;function Sn(jr){return jr.kind===274}e.isExportSpecifier=Sn;function zn(jr){return jr.kind===275}e.isMissingDeclaration=zn;function Zn(jr){return jr.kind===347}e.isNotEmittedStatement=Zn;function ho(jr){return jr.kind===352}e.isSyntheticReference=ho;function Vo(jr){return jr.kind===350}e.isMergeDeclarationMarker=Vo;function Cn(jr){return jr.kind===351}e.isEndOfDeclarationMarker=Cn;function go(jr){return jr.kind===276}e.isExternalModuleReference=go;function ro(jr){return jr.kind===277}e.isJsxElement=ro;function Ko(jr){return jr.kind===278}e.isJsxSelfClosingElement=Ko;function rs(jr){return jr.kind===279}e.isJsxOpeningElement=rs;function rn(jr){return jr.kind===280}e.isJsxClosingElement=rn;function Do(jr){return jr.kind===281}e.isJsxFragment=Do;function io(jr){return jr.kind===282}e.isJsxOpeningFragment=io;function pn(jr){return jr.kind===283}e.isJsxClosingFragment=pn;function Qn(jr){return jr.kind===284}e.isJsxAttribute=Qn;function wo(jr){return jr.kind===285}e.isJsxAttributes=wo;function xo(jr){return jr.kind===286}e.isJsxSpreadAttribute=xo;function ds(jr){return jr.kind===287}e.isJsxExpression=ds;function No(jr){return jr.kind===288}e.isCaseClause=No;function Ts(jr){return jr.kind===289}e.isDefaultClause=Ts;function Ms(jr){return jr.kind===290}e.isHeritageClause=Ms;function xr(jr){return jr.kind===291}e.isCatchClause=xr;function bi(jr){return jr.kind===294}e.isPropertyAssignment=bi;function ut(jr){return jr.kind===295}e.isShorthandPropertyAssignment=ut;function Ht(jr){return jr.kind===296}e.isSpreadAssignment=Ht;function Ka(jr){return jr.kind===297}e.isEnumMember=Ka;function an(jr){return jr.kind===299}e.isUnparsedPrepend=an;function Ke(jr){return jr.kind===303}e.isSourceFile=Ke;function h(jr){return jr.kind===304}e.isBundle=h;function Ee(jr){return jr.kind===305}e.isUnparsedSource=Ee;function Re(jr){return jr.kind===307}e.isJSDocTypeExpression=Re;function nr(jr){return jr.kind===308}e.isJSDocNameReference=nr;function Gr(jr){return jr.kind===309}e.isJSDocMemberName=Gr;function _i(jr){return jr.kind===322}e.isJSDocLink=_i;function Ei(jr){return jr.kind===323}e.isJSDocLinkCode=Ei;function Ki(jr){return jr.kind===324}e.isJSDocLinkPlain=Ki;function Nt(jr){return jr.kind===310}e.isJSDocAllType=Nt;function ca(jr){return jr.kind===311}e.isJSDocUnknownType=ca;function Fa(jr){return jr.kind===312}e.isJSDocNullableType=Fa;function Ta(jr){return jr.kind===313}e.isJSDocNonNullableType=Ta;function In(jr){return jr.kind===314}e.isJSDocOptionalType=In;function so(jr){return jr.kind===315}e.isJSDocFunctionType=so;function as(jr){return jr.kind===316}e.isJSDocVariadicType=as;function Ho(jr){return jr.kind===317}e.isJSDocNamepathType=Ho;function Ds(jr){return jr.kind===318}e.isJSDoc=Ds;function Os(jr){return jr.kind===320}e.isJSDocTypeLiteral=Os;function mc(jr){return jr.kind===321}e.isJSDocSignature=mc;function Hs(jr){return jr.kind===326}e.isJSDocAugmentsTag=Hs;function Mi(jr){return jr.kind===328}e.isJSDocAuthorTag=Mi;function $t(jr){return jr.kind===330}e.isJSDocClassTag=$t;function ga(jr){return jr.kind===336}e.isJSDocCallbackTag=ga;function xn(jr){return jr.kind===331}e.isJSDocPublicTag=xn;function yn(jr){return jr.kind===332}e.isJSDocPrivateTag=yn;function An(jr){return jr.kind===333}e.isJSDocProtectedTag=An;function Pa(jr){return jr.kind===334}e.isJSDocReadonlyTag=Pa;function Mn(jr){return jr.kind===335}e.isJSDocOverrideTag=Mn;function ao(jr){return jr.kind===329}e.isJSDocDeprecatedTag=ao;function co(jr){return jr.kind===344}e.isJSDocSeeTag=co;function De(jr){return jr.kind===337}e.isJSDocEnumTag=De;function zr(jr){return jr.kind===338}e.isJSDocParameterTag=zr;function xi(jr){return jr.kind===339}e.isJSDocReturnTag=xi;function et(jr){return jr.kind===340}e.isJSDocThisTag=et;function je(jr){return jr.kind===341}e.isJSDocTypeTag=je;function ti(jr){return jr.kind===342}e.isJSDocTemplateTag=ti;function mt(jr){return jr.kind===343}e.isJSDocTypedefTag=mt;function Zt(jr){return jr.kind===325}e.isJSDocUnknownTag=Zt;function ln(jr){return jr.kind===345}e.isJSDocPropertyTag=ln;function Ba(jr){return jr.kind===327}e.isJSDocImplementsTag=Ba;function Oo(jr){return jr.kind===346}e.isSyntaxList=Oo})(Pe||(Pe={}));var Pe;(function(e){function a(br){return br.createExportDeclaration(void 0,void 0,!1,br.createNamedExports([]),void 0)}e.createEmptyExports=a;function O(br,Pr,Ce,Le){if(e.isComputedPropertyName(Ce))return e.setTextRange(br.createElementAccessExpression(Pr,Ce.expression),Le);var Xe=e.setTextRange(e.isMemberName(Ce)?br.createPropertyAccessExpression(Pr,Ce):br.createElementAccessExpression(Pr,Ce),Ce);return e.getOrCreateEmitNode(Xe).flags|=64,Xe}e.createMemberAccessForPropertyName=O;function L(br,Pr){var Ce=e.parseNodeFactory.createIdentifier(br||"React");return e.setParent(Ce,e.getParseTreeNode(Pr)),Ce}function W(br,Pr,Ce){if(e.isQualifiedName(Pr)){var Le=W(br,Pr.left,Ce),Xe=br.createIdentifier(e.idText(Pr.right));return Xe.escapedText=Pr.right.escapedText,br.createPropertyAccessExpression(Le,Xe)}else return L(e.idText(Pr),Ce)}function N(br,Pr,Ce,Le){return Pr?W(br,Pr,Le):br.createPropertyAccessExpression(L(Ce,Le),"createElement")}e.createJsxFactoryExpression=N;function Q(br,Pr,Ce,Le){return Pr?W(br,Pr,Le):br.createPropertyAccessExpression(L(Ce,Le),"Fragment")}function pe(br,Pr,Ce,Le,Xe,Cr){var Lr=[Ce];if(Le&&Lr.push(Le),Xe&&Xe.length>0)if(Le||Lr.push(br.createNull()),Xe.length>1)for(var Jr=0,Rr=Xe;Jr<Rr.length;Jr++){var ci=Rr[Jr];f(ci),Lr.push(ci)}else Lr.push(Xe[0]);return e.setTextRange(br.createCallExpression(Pr,void 0,Lr),Cr)}e.createExpressionForJsxElement=pe;function F(br,Pr,Ce,Le,Xe,Cr,Lr){var Jr=Q(br,Ce,Le,Cr),Rr=[Jr,br.createNull()];if(Xe&&Xe.length>0)if(Xe.length>1)for(var ci=0,be=Xe;ci<be.length;ci++){var or=be[ci];f(or),Rr.push(or)}else Rr.push(Xe[0]);return e.setTextRange(br.createCallExpression(N(br,Pr,Le,Cr),void 0,Rr),Lr)}e.createExpressionForJsxFragment=F;function g(br,Pr,Ce){if(e.isVariableDeclarationList(Pr)){var Le=e.first(Pr.declarations),Xe=br.updateVariableDeclaration(Le,Le.name,void 0,void 0,Ce);return e.setTextRange(br.createVariableStatement(void 0,br.updateVariableDeclarationList(Pr,[Xe])),Pr)}else{var Cr=e.setTextRange(br.createAssignment(Pr,Ce),Pr);return e.setTextRange(br.createExpressionStatement(Cr),Pr)}}e.createForOfBindingStatement=g;function S(br,Pr,Ce){return e.isBlock(Pr)?br.updateBlock(Pr,e.setTextRange(br.createNodeArray(qe([Ce],Pr.statements,!0)),Pr.statements)):br.createBlock(br.createNodeArray([Pr,Ce]),!0)}e.insertLeadingStatement=S;function H(br,Pr){if(e.isQualifiedName(Pr)){var Ce=H(br,Pr.left),Le=e.setParent(e.setTextRange(br.cloneNode(Pr.right),Pr.right),Pr.right.parent);return e.setTextRange(br.createPropertyAccessExpression(Ce,Le),Pr)}else return e.setParent(e.setTextRange(br.cloneNode(Pr),Pr),Pr.parent)}e.createExpressionFromEntityName=H;function se(br,Pr){return e.isIdentifier(Pr)?br.createStringLiteralFromNode(Pr):e.isComputedPropertyName(Pr)?e.setParent(e.setTextRange(br.cloneNode(Pr.expression),Pr.expression),Pr.expression.parent):e.setParent(e.setTextRange(br.cloneNode(Pr),Pr),Pr.parent)}e.createExpressionForPropertyName=se;function p(br,Pr,Ce,Le,Xe){var Cr=e.getAllAccessorDeclarations(Pr,Ce),Lr=Cr.firstAccessor,Jr=Cr.getAccessor,Rr=Cr.setAccessor;if(Ce===Lr)return e.setTextRange(br.createObjectDefinePropertyCall(Le,se(br,Ce.name),br.createPropertyDescriptor({enumerable:br.createFalse(),configurable:!0,get:Jr&&e.setTextRange(e.setOriginalNode(br.createFunctionExpression(Jr.modifiers,void 0,void 0,void 0,Jr.parameters,void 0,Jr.body),Jr),Jr),set:Rr&&e.setTextRange(e.setOriginalNode(br.createFunctionExpression(Rr.modifiers,void 0,void 0,void 0,Rr.parameters,void 0,Rr.body),Rr),Rr)},!Xe)),Lr)}function C(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),Pr.initializer),Pr),Pr)}function G(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),br.cloneNode(Pr.name)),Pr),Pr)}function E(br,Pr,Ce){return e.setOriginalNode(e.setTextRange(br.createAssignment(O(br,Ce,Pr.name,Pr.name),e.setOriginalNode(e.setTextRange(br.createFunctionExpression(Pr.modifiers,Pr.asteriskToken,void 0,void 0,Pr.parameters,void 0,Pr.body),Pr),Pr)),Pr),Pr)}function ue(br,Pr,Ce,Le){switch(Ce.name&&e.isPrivateIdentifier(Ce.name)&&e.Debug.failBadSyntaxKind(Ce.name,"Private identifiers are not allowed in object literals."),Ce.kind){case 171:case 172:return p(br,Pr.properties,Ce,Le,!!Pr.multiLine);case 294:return C(br,Ce,Le);case 295:return G(br,Ce,Le);case 168:return E(br,Ce,Le)}}e.createExpressionForObjectLiteralElementLike=ue;function B(br,Pr,Ce,Le,Xe){var Cr=Pr.operator;e.Debug.assert(Cr===45||Cr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var Lr=br.createTempVariable(Le);Ce=br.createAssignment(Lr,Ce),e.setTextRange(Ce,Pr.operand);var Jr=e.isPrefixUnaryExpression(Pr)?br.createPrefixUnaryExpression(Cr,Lr):br.createPostfixUnaryExpression(Lr,Cr);return e.setTextRange(Jr,Pr),Xe&&(Jr=br.createAssignment(Xe,Jr),e.setTextRange(Jr,Pr)),Ce=br.createComma(Ce,Jr),e.setTextRange(Ce,Pr),e.isPostfixUnaryExpression(Pr)&&(Ce=br.createComma(Ce,Lr),e.setTextRange(Ce,Pr)),Ce}e.expandPreOrPostfixIncrementOrDecrementExpression=B;function re(br){return(e.getEmitFlags(br)&32768)!==0}e.isInternalName=re;function M(br){return(e.getEmitFlags(br)&16384)!==0}e.isLocalName=M;function x(br){return(e.getEmitFlags(br)&8192)!==0}e.isExportName=x;function ie(br){return e.isStringLiteral(br.expression)&&br.expression.text==="use strict"}function _e(br){for(var Pr=0,Ce=br;Pr<Ce.length;Pr++){var Le=Ce[Pr];if(e.isPrologueDirective(Le)){if(ie(Le))return Le}else break}}e.findUseStrictPrologue=_e;function Y(br){var Pr=e.firstOrUndefined(br);return Pr!==void 0&&e.isPrologueDirective(Pr)&&ie(Pr)}e.startsWithUseStrict=Y;function Z(br){return br.kind===220&&br.operatorToken.kind===27||br.kind===349}e.isCommaSequence=Z;function k(br){return e.isParenthesizedExpression(br)&&e.isInJSFile(br)&&!!e.getJSDocTypeTag(br)}e.isJSDocTypeAssertion=k;function I(br){var Pr=e.getJSDocType(br);return e.Debug.assertIsDefined(Pr),Pr}e.getJSDocTypeAssertionType=I;function ne(br,Pr){switch(Pr===void 0&&(Pr=15),br.kind){case 211:return Pr&16&&k(br)?!1:(Pr&1)!==0;case 210:case 228:return(Pr&2)!==0;case 229:return(Pr&4)!==0;case 348:return(Pr&8)!==0}return!1}e.isOuterExpression=ne;function ee(br,Pr){for(Pr===void 0&&(Pr=15);ne(br,Pr);)br=br.expression;return br}e.skipOuterExpressions=ee;function A(br){return ee(br,6)}e.skipAssertions=A;function f(br){return e.setStartsOnNewLine(br,!0)}e.startOnNewLine=f;function P(br){var Pr=e.getOriginalNode(br,e.isSourceFile),Ce=Pr&&Pr.emitNode;return Ce&&Ce.externalHelpersModuleName}e.getExternalHelpersModuleName=P;function D(br){var Pr=e.getOriginalNode(br,e.isSourceFile),Ce=Pr&&Pr.emitNode;return!!Ce&&(!!Ce.externalHelpersModuleName||!!Ce.externalHelpers)}e.hasRecordedExternalHelpers=D;function l(br,Pr,Ce,Le,Xe,Cr,Lr){if(Le.importHelpers&&e.isEffectiveExternalModule(Ce,Le)){var Jr=void 0,Rr=e.getEmitModuleKind(Le);if(Rr>=e.ModuleKind.ES2015&&Rr<=e.ModuleKind.ESNext||Ce.impliedNodeFormat===e.ModuleKind.ESNext){var ci=e.getEmitHelpers(Ce);if(ci){for(var be=[],or=0,Kr=ci;or<Kr.length;or++){var ei=Kr[or];if(!ei.scoped){var li=ei.importName;li&&e.pushIfUnique(be,li)}}if(e.some(be)){be.sort(e.compareStringsCaseSensitive),Jr=br.createNamedImports(e.map(be,function(aa){return e.isFileLevelUniqueName(Ce,aa)?br.createImportSpecifier(!1,void 0,br.createIdentifier(aa)):br.createImportSpecifier(!1,br.createIdentifier(aa),Pr.getUnscopedHelperName(aa))}));var Si=e.getOriginalNode(Ce,e.isSourceFile),qi=e.getOrCreateEmitNode(Si);qi.externalHelpers=!0}}}else{var ft=_(br,Ce,Le,Xe,Cr||Lr);ft&&(Jr=br.createNamespaceImport(ft))}if(Jr){var bt=br.createImportDeclaration(void 0,void 0,br.createImportClause(!1,void 0,Jr),br.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(bt,67108864),bt}}}e.createExternalHelpersImportDeclarationIfNeeded=l;function _(br,Pr,Ce,Le,Xe){if(Ce.importHelpers&&e.isEffectiveExternalModule(Pr,Ce)){var Cr=P(Pr);if(Cr)return Cr;var Lr=e.getEmitModuleKind(Ce),Jr=(Le||e.getESModuleInterop(Ce)&&Xe)&&Lr!==e.ModuleKind.System&&(Lr<e.ModuleKind.ES2015||Pr.impliedNodeFormat===e.ModuleKind.CommonJS);if(!Jr){var Rr=e.getEmitHelpers(Pr);if(Rr)for(var ci=0,be=Rr;ci<be.length;ci++){var or=be[ci];if(!or.scoped){Jr=!0;break}}}if(Jr){var Kr=e.getOriginalNode(Pr,e.isSourceFile),ei=e.getOrCreateEmitNode(Kr);return ei.externalHelpersModuleName||(ei.externalHelpersModuleName=br.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=_;function J(br,Pr,Ce){var Le=e.getNamespaceDeclarationNode(Pr);if(Le&&!e.isDefaultImport(Pr)&&!e.isExportNamespaceAsDefaultDeclaration(Pr)){var Xe=Le.name;return e.isGeneratedIdentifier(Xe)?Xe:br.createIdentifier(e.getSourceTextOfNodeFromSourceFile(Ce,Xe)||e.idText(Xe))}if(Pr.kind===265&&Pr.importClause||Pr.kind===271&&Pr.moduleSpecifier)return br.getGeneratedNameForNode(Pr)}e.getLocalNameForExternalImport=J;function w(br,Pr,Ce,Le,Xe,Cr){var Lr=e.getExternalModuleName(Pr);if(Lr&&e.isStringLiteral(Lr))return z(Pr,Le,br,Xe,Cr)||j(br,Lr,Ce)||br.cloneNode(Lr)}e.getExternalModuleNameLiteral=w;function j(br,Pr,Ce){var Le=Ce.renamedDependencies&&Ce.renamedDependencies.get(Pr.text);return Le?br.createStringLiteral(Le):void 0}function U(br,Pr,Ce,Le){if(!!Pr){if(Pr.moduleName)return br.createStringLiteral(Pr.moduleName);if(!Pr.isDeclarationFile&&e.outFile(Le))return br.createStringLiteral(e.getExternalModuleNameFromPath(Ce,Pr.fileName))}}e.tryGetModuleNameFromFile=U;function z(br,Pr,Ce,Le,Xe){return U(Ce,Le.getExternalModuleFileFromDeclaration(br),Pr,Xe)}function y(br){if(e.isDeclarationBindingElement(br))return br.initializer;if(e.isPropertyAssignment(br)){var Pr=br.initializer;return e.isAssignmentExpression(Pr,!0)?Pr.right:void 0}if(e.isShorthandPropertyAssignment(br))return br.objectAssignmentInitializer;if(e.isAssignmentExpression(br,!0))return br.right;if(e.isSpreadElement(br))return y(br.expression)}e.getInitializerOfBindingOrAssignmentElement=y;function oe(br){if(e.isDeclarationBindingElement(br))return br.name;if(e.isObjectLiteralElementLike(br)){switch(br.kind){case 294:return oe(br.initializer);case 295:return br.name;case 296:return oe(br.expression)}return}return e.isAssignmentExpression(br,!0)?oe(br.left):e.isSpreadElement(br)?oe(br.expression):br}e.getTargetOfBindingOrAssignmentElement=oe;function ve(br){switch(br.kind){case 163:case 202:return br.dotDotDotToken;case 224:case 296:return br}}e.getRestIndicatorOfBindingOrAssignmentElement=ve;function ce(br){var Pr=m(br);return e.Debug.assert(!!Pr||e.isSpreadAssignment(br),"Invalid property name for binding element."),Pr}e.getPropertyNameOfBindingOrAssignmentElement=ce;function m(br){switch(br.kind){case 202:if(br.propertyName){var Pr=br.propertyName;return e.isPrivateIdentifier(Pr)?e.Debug.failBadSyntaxKind(Pr):e.isComputedPropertyName(Pr)&&de(Pr.expression)?Pr.expression:Pr}break;case 294:if(br.name){var Pr=br.name;return e.isPrivateIdentifier(Pr)?e.Debug.failBadSyntaxKind(Pr):e.isComputedPropertyName(Pr)&&de(Pr.expression)?Pr.expression:Pr}break;case 296:return br.name&&e.isPrivateIdentifier(br.name)?e.Debug.failBadSyntaxKind(br.name):br.name}var Ce=oe(br);if(Ce&&e.isPropertyName(Ce))return Ce}e.tryGetPropertyNameOfBindingOrAssignmentElement=m;function de(br){var Pr=br.kind;return Pr===10||Pr===8}function ae(br){switch(br.kind){case 200:case 201:case 203:return br.elements;case 204:return br.properties}}e.getElementsOfBindingOrAssignmentPattern=ae;function V(br){if(br)for(var Pr=br;;){if(e.isIdentifier(Pr)||!Pr.body)return e.isIdentifier(Pr)?Pr:Pr.name;Pr=Pr.body}}e.getJSDocTypeAliasName=V;function le(br){var Pr=br.kind;return Pr===163||Pr===165||Pr===166||Pr===167||Pr===168||Pr===170||Pr===171||Pr===172||Pr===175||Pr===212||Pr===213||Pr===225||Pr===236||Pr===255||Pr===256||Pr===257||Pr===258||Pr===259||Pr===260||Pr===264||Pr===265||Pr===270||Pr===271}e.canHaveModifiers=le,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function ke(br){var Pr=br.kind;return Pr===104||Pr===110||Pr===95||e.isLiteralExpression(br)||e.isPrefixUnaryExpression(br)}e.isLiteralTypeLikeExpression=ke;function Ue(br){return br===42}function He(br){return br===41||br===43||br===44}function ar(br){return Ue(br)||He(br)}function gr(br){return br===39||br===40}function me(br){return gr(br)||ar(br)}function Ge(br){return br===47||br===48||br===49}function er(br){return Ge(br)||me(br)}function he(br){return br===29||br===32||br===31||br===33||br===102||br===101}function we(br){return he(br)||er(br)}function ye(br){return br===34||br===36||br===35||br===37}function Se(br){return ye(br)||we(br)}function ge(br){return br===50||br===51||br===52}function Fe(br){return ge(br)||Se(br)}function cr(br){return br===55||br===56}function ur(br){return cr(br)||Fe(br)}function Ir(br){return br===60||ur(br)||e.isAssignmentOperator(br)}function dr(br){return Ir(br)||br===27}function Br(br){return dr(br.kind)}e.isBinaryOperatorToken=Br;var Tr;(function(br){function Pr(be,or,Kr,ei,li,Si,qi){var ft=or>0?li[or-1]:void 0;return e.Debug.assertEqual(Kr[or],Pr),li[or]=be.onEnter(ei[or],ft,qi),Kr[or]=Jr(be,Pr),or}br.enter=Pr;function Ce(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Ce),e.Debug.assertIsDefined(be.onLeft),Kr[or]=Jr(be,Ce);var ft=be.onLeft(ei[or].left,li[or],ei[or]);return ft?(ci(or,ei,ft),Rr(or,Kr,ei,li,ft)):or}br.left=Ce;function Le(be,or,Kr,ei,li,Si,qi){return e.Debug.assertEqual(Kr[or],Le),e.Debug.assertIsDefined(be.onOperator),Kr[or]=Jr(be,Le),be.onOperator(ei[or].operatorToken,li[or],ei[or]),or}br.operator=Le;function Xe(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Xe),e.Debug.assertIsDefined(be.onRight),Kr[or]=Jr(be,Xe);var ft=be.onRight(ei[or].right,li[or],ei[or]);return ft?(ci(or,ei,ft),Rr(or,Kr,ei,li,ft)):or}br.right=Xe;function Cr(be,or,Kr,ei,li,Si,qi){e.Debug.assertEqual(Kr[or],Cr),Kr[or]=Jr(be,Cr);var ft=be.onExit(ei[or],li[or]);if(or>0){if(or--,be.foldState){var bt=Kr[or]===Cr?"right":"left";li[or]=be.foldState(li[or],ft,bt)}}else Si.value=ft;return or}br.exit=Cr;function Lr(be,or,Kr,ei,li,Si,qi){return e.Debug.assertEqual(Kr[or],Lr),or}br.done=Lr;function Jr(be,or){switch(or){case Pr:if(be.onLeft)return Ce;case Ce:if(be.onOperator)return Le;case Le:if(be.onRight)return Xe;case Xe:return Cr;case Cr:return Lr;case Lr:return Lr;default:e.Debug.fail("Invalid state")}}br.nextState=Jr;function Rr(be,or,Kr,ei,li){return be++,or[be]=Pr,Kr[be]=li,ei[be]=void 0,be}function ci(be,or,Kr){if(e.Debug.shouldAssert(2))for(;be>=0;)e.Debug.assert(or[be]!==Kr,"Circular traversal detected."),be--}})(Tr||(Tr={}));var n=function(){function br(Pr,Ce,Le,Xe,Cr,Lr){this.onEnter=Pr,this.onLeft=Ce,this.onOperator=Le,this.onRight=Xe,this.onExit=Cr,this.foldState=Lr}return br}();function Er(br,Pr,Ce,Le,Xe,Cr){var Lr=new n(br,Pr,Ce,Le,Xe,Cr);return Jr;function Jr(Rr,ci){for(var be={value:void 0},or=[Tr.enter],Kr=[Rr],ei=[void 0],li=0;or[li]!==Tr.done;)li=or[li](Lr,li,or,Kr,ei,be,ci);return e.Debug.assertEqual(li,0),be.value}}e.createBinaryExpressionTrampoline=Er})(Pe||(Pe={}));var Pe;(function(e){function a(O,L){return L?e.setTextRangePosEnd(O,L.pos,L.end):O}e.setTextRange=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(l){l[l.None=0]="None",l[l.Yield=1]="Yield",l[l.Await=2]="Await",l[l.Type=4]="Type",l[l.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",l[l.JSDoc=32]="JSDoc"})(a||(a={}));var O;(function(l){l[l.TryParse=0]="TryParse",l[l.Lookahead=1]="Lookahead",l[l.Reparse=2]="Reparse"})(O||(O={}));var L,W,N,Q,pe;e.parseBaseNodeFactory={createBaseSourceFileNode:function(l){return new(pe||(pe=e.objectAllocator.getSourceFileConstructor()))(l,-1,-1)},createBaseIdentifierNode:function(l){return new(N||(N=e.objectAllocator.getIdentifierConstructor()))(l,-1,-1)},createBasePrivateIdentifierNode:function(l){return new(Q||(Q=e.objectAllocator.getPrivateIdentifierConstructor()))(l,-1,-1)},createBaseTokenNode:function(l){return new(W||(W=e.objectAllocator.getTokenConstructor()))(l,-1,-1)},createBaseNode:function(l){return new(L||(L=e.objectAllocator.getNodeConstructor()))(l,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function F(l,_){return _&&l(_)}function g(l,_,J){if(J){if(_)return _(J);for(var w=0,j=J;w<j.length;w++){var U=j[w],z=l(U);if(z)return z}}}function S(l,_){return l.charCodeAt(_+1)===42&&l.charCodeAt(_+2)===42&&l.charCodeAt(_+3)!==47}e.isJSDocLikeText=S;function H(l,_,J){if(!(!l||l.kind<=159))switch(l.kind){case 160:return F(_,l.left)||F(_,l.right);case 162:return F(_,l.name)||F(_,l.constraint)||F(_,l.default)||F(_,l.expression);case 295:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||F(_,l.equalsToken)||F(_,l.objectAssignmentInitializer);case 296:return F(_,l.expression);case 163:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.dotDotDotToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type)||F(_,l.initializer);case 166:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||F(_,l.type)||F(_,l.initializer);case 165:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type)||F(_,l.initializer);case 294:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.questionToken)||F(_,l.initializer);case 253:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.exclamationToken)||F(_,l.type)||F(_,l.initializer);case 202:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.dotDotDotToken)||F(_,l.propertyName)||F(_,l.name)||F(_,l.initializer);case 178:case 179:case 173:case 174:case 175:return g(_,J,l.decorators)||g(_,J,l.modifiers)||g(_,J,l.typeParameters)||g(_,J,l.parameters)||F(_,l.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.asteriskToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.exclamationToken)||g(_,J,l.typeParameters)||g(_,J,l.parameters)||F(_,l.type)||F(_,l.equalsGreaterThanToken)||F(_,l.body);case 169:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.body);case 177:return F(_,l.typeName)||g(_,J,l.typeArguments);case 176:return F(_,l.assertsModifier)||F(_,l.parameterName)||F(_,l.type);case 180:return F(_,l.exprName);case 181:return g(_,J,l.members);case 182:return F(_,l.elementType);case 183:return g(_,J,l.elements);case 186:case 187:return g(_,J,l.types);case 188:return F(_,l.checkType)||F(_,l.extendsType)||F(_,l.trueType)||F(_,l.falseType);case 189:return F(_,l.typeParameter);case 199:return F(_,l.argument)||F(_,l.qualifier)||g(_,J,l.typeArguments);case 190:case 192:return F(_,l.type);case 193:return F(_,l.objectType)||F(_,l.indexType);case 194:return F(_,l.readonlyToken)||F(_,l.typeParameter)||F(_,l.nameType)||F(_,l.questionToken)||F(_,l.type)||g(_,J,l.members);case 195:return F(_,l.literal);case 196:return F(_,l.dotDotDotToken)||F(_,l.name)||F(_,l.questionToken)||F(_,l.type);case 200:case 201:return g(_,J,l.elements);case 203:return g(_,J,l.elements);case 204:return g(_,J,l.properties);case 205:return F(_,l.expression)||F(_,l.questionDotToken)||F(_,l.name);case 206:return F(_,l.expression)||F(_,l.questionDotToken)||F(_,l.argumentExpression);case 207:case 208:return F(_,l.expression)||F(_,l.questionDotToken)||g(_,J,l.typeArguments)||g(_,J,l.arguments);case 209:return F(_,l.tag)||F(_,l.questionDotToken)||g(_,J,l.typeArguments)||F(_,l.template);case 210:return F(_,l.type)||F(_,l.expression);case 211:return F(_,l.expression);case 214:return F(_,l.expression);case 215:return F(_,l.expression);case 216:return F(_,l.expression);case 218:return F(_,l.operand);case 223:return F(_,l.asteriskToken)||F(_,l.expression);case 217:return F(_,l.expression);case 219:return F(_,l.operand);case 220:return F(_,l.left)||F(_,l.operatorToken)||F(_,l.right);case 228:return F(_,l.expression)||F(_,l.type);case 229:return F(_,l.expression);case 230:return F(_,l.name);case 221:return F(_,l.condition)||F(_,l.questionToken)||F(_,l.whenTrue)||F(_,l.colonToken)||F(_,l.whenFalse);case 224:return F(_,l.expression);case 234:case 261:return g(_,J,l.statements);case 303:return g(_,J,l.statements)||F(_,l.endOfFileToken);case 236:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.declarationList);case 254:return g(_,J,l.declarations);case 237:return F(_,l.expression);case 238:return F(_,l.expression)||F(_,l.thenStatement)||F(_,l.elseStatement);case 239:return F(_,l.statement)||F(_,l.expression);case 240:return F(_,l.expression)||F(_,l.statement);case 241:return F(_,l.initializer)||F(_,l.condition)||F(_,l.incrementor)||F(_,l.statement);case 242:return F(_,l.initializer)||F(_,l.expression)||F(_,l.statement);case 243:return F(_,l.awaitModifier)||F(_,l.initializer)||F(_,l.expression)||F(_,l.statement);case 244:case 245:return F(_,l.label);case 246:return F(_,l.expression);case 247:return F(_,l.expression)||F(_,l.statement);case 248:return F(_,l.expression)||F(_,l.caseBlock);case 262:return g(_,J,l.clauses);case 288:return F(_,l.expression)||g(_,J,l.statements);case 289:return g(_,J,l.statements);case 249:return F(_,l.label)||F(_,l.statement);case 250:return F(_,l.expression);case 251:return F(_,l.tryBlock)||F(_,l.catchClause)||F(_,l.finallyBlock);case 291:return F(_,l.variableDeclaration)||F(_,l.block);case 164:return F(_,l.expression);case 256:case 225:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||g(_,J,l.heritageClauses)||g(_,J,l.members);case 257:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||g(_,J,l.heritageClauses)||g(_,J,l.members);case 258:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.typeParameters)||F(_,l.type);case 259:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||g(_,J,l.members);case 297:return F(_,l.name)||F(_,l.initializer);case 260:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.body);case 264:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.name)||F(_,l.moduleReference);case 265:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.importClause)||F(_,l.moduleSpecifier)||F(_,l.assertClause);case 266:return F(_,l.name)||F(_,l.namedBindings);case 292:return g(_,J,l.elements);case 293:return F(_,l.name)||F(_,l.value);case 263:return F(_,l.name);case 267:return F(_,l.name);case 273:return F(_,l.name);case 268:case 272:return g(_,J,l.elements);case 271:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.exportClause)||F(_,l.moduleSpecifier)||F(_,l.assertClause);case 269:case 274:return F(_,l.propertyName)||F(_,l.name);case 270:return g(_,J,l.decorators)||g(_,J,l.modifiers)||F(_,l.expression);case 222:return F(_,l.head)||g(_,J,l.templateSpans);case 232:return F(_,l.expression)||F(_,l.literal);case 197:return F(_,l.head)||g(_,J,l.templateSpans);case 198:return F(_,l.type)||F(_,l.literal);case 161:return F(_,l.expression);case 290:return g(_,J,l.types);case 227:return F(_,l.expression)||g(_,J,l.typeArguments);case 276:return F(_,l.expression);case 275:return g(_,J,l.decorators);case 349:return g(_,J,l.elements);case 277:return F(_,l.openingElement)||g(_,J,l.children)||F(_,l.closingElement);case 281:return F(_,l.openingFragment)||g(_,J,l.children)||F(_,l.closingFragment);case 278:case 279:return F(_,l.tagName)||g(_,J,l.typeArguments)||F(_,l.attributes);case 285:return g(_,J,l.properties);case 284:return F(_,l.name)||F(_,l.initializer);case 286:return F(_,l.expression);case 287:return F(_,l.dotDotDotToken)||F(_,l.expression);case 280:return F(_,l.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return F(_,l.type);case 315:return g(_,J,l.parameters)||F(_,l.type);case 318:return(typeof l.comment=="string"?void 0:g(_,J,l.comment))||g(_,J,l.tags);case 344:return F(_,l.tagName)||F(_,l.name)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 308:return F(_,l.name);case 309:return F(_,l.left)||F(_,l.right);case 338:case 345:return F(_,l.tagName)||(l.isNameFirst?F(_,l.name)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)):F(_,l.typeExpression)||F(_,l.name)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)));case 328:return F(_,l.tagName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 327:return F(_,l.tagName)||F(_,l.class)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 326:return F(_,l.tagName)||F(_,l.class)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 342:return F(_,l.tagName)||F(_,l.constraint)||g(_,J,l.typeParameters)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 343:return F(_,l.tagName)||(l.typeExpression&&l.typeExpression.kind===307?F(_,l.typeExpression)||F(_,l.fullName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)):F(_,l.fullName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment)));case 336:return F(_,l.tagName)||F(_,l.fullName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 339:case 341:case 340:case 337:return F(_,l.tagName)||F(_,l.typeExpression)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 321:return e.forEach(l.typeParameters,_)||e.forEach(l.parameters,_)||F(_,l.type);case 322:case 323:case 324:return F(_,l.name);case 320:return e.forEach(l.jsDocPropertyTags,_);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return F(_,l.tagName)||(typeof l.comment=="string"?void 0:g(_,J,l.comment));case 348:return F(_,l.expression)}}e.forEachChild=H;function se(l,_,J){for(var w=p(l),j=[];j.length<w.length;)j.push(l);for(;w.length!==0;){var U=w.pop(),z=j.pop();if(e.isArray(U)){if(J){var y=J(U,z);if(y){if(y==="skip")continue;return y}}for(var oe=U.length-1;oe>=0;--oe)w.push(U[oe]),j.push(z)}else{var y=_(U,z);if(y){if(y==="skip")continue;return y}if(U.kind>=160)for(var ve=0,ce=p(U);ve<ce.length;ve++){var m=ce[ve];w.push(m),j.push(U)}}}}e.forEachChildRecursively=se;function p(l){var _=[];return H(l,J,J),_;function J(w){_.unshift(w)}}function C(l,_,J,w,j){w===void 0&&(w=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:l},!0),e.performance.mark("beforeParse");var U;return e.perfLogger.logStartParseSourceFile(l),J===100?U=x.parseSourceFile(l,_,J,void 0,w,6):U=x.parseSourceFile(l,_,J,void 0,w,j),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),U}e.createSourceFile=C;function G(l,_){return x.parseIsolatedEntityName(l,_)}e.parseIsolatedEntityName=G;function E(l,_){return x.parseJsonText(l,_)}e.parseJsonText=E;function ue(l){return l.externalModuleIndicator!==void 0}e.isExternalModule=ue;function B(l,_,J,w){w===void 0&&(w=!1);var j=ie.updateSourceFile(l,_,J,w);return j.flags|=l.flags&3145728,j}e.updateSourceFile=B;function re(l,_,J){var w=x.JSDocParser.parseIsolatedJSDocComment(l,_,J);return w&&w.jsDoc&&x.fixupParentReferences(w.jsDoc),w}e.parseIsolatedJSDocComment=re;function M(l,_,J){return x.JSDocParser.parseJSDocTypeExpressionForTests(l,_,J)}e.parseJSDocTypeExpressionForTests=M;var x;(function(l){var _=e.createScanner(99,!0),J=20480,w,j,U,z,y;function oe(Ie){return me++,Ie}var ve={createBaseSourceFileNode:function(Ie){return oe(new y(Ie,0,0))},createBaseIdentifierNode:function(Ie){return oe(new U(Ie,0,0))},createBasePrivateIdentifierNode:function(Ie){return oe(new z(Ie,0,0))},createBaseTokenNode:function(Ie){return oe(new j(Ie,0,0))},createBaseNode:function(Ie){return oe(new w(Ie,0,0))}},ce=e.createNodeFactory(11,ve),m,de,ae,V,le,ke,Ue,He,ar,gr,me,Ge,er,he,we,ye,Se,ge=!0,Fe=!1;function cr(Ie,kr,Hr,vi,Li,ot){var zt;if(Li===void 0&&(Li=!1),ot=e.ensureScriptKind(Ie,ot),ot===6){var la=Ir(Ie,kr,Hr,vi,Li);return e.convertToObjectWorker(la,(zt=la.statements[0])===null||zt===void 0?void 0:zt.expression,la.parseDiagnostics,!1,void 0,void 0),la.referencedFiles=e.emptyArray,la.typeReferenceDirectives=e.emptyArray,la.libReferenceDirectives=e.emptyArray,la.amdDependencies=e.emptyArray,la.hasNoDefaultLib=!1,la.pragmas=e.emptyMap,la}dr(Ie,kr,Hr,vi,ot);var ja=Tr(Hr,Li,ot);return Br(),ja}l.parseSourceFile=cr;function ur(Ie,kr){dr("",Ie,kr,void 0,1),Je();var Hr=Ds(!0),vi=v()===1&&!Ue.length;return Br(),vi?Hr:void 0}l.parseIsolatedEntityName=ur;function Ir(Ie,kr,Hr,vi,Li){Hr===void 0&&(Hr=2),Li===void 0&&(Li=!1),dr(Ie,kr,Hr,vi,6),de=Se,Je();var ot=Dr(),zt,la;if(v()===1)zt=wi([],ot,ot),la=gt();else{for(var ja=void 0;v()!==1;){var Oa=void 0;switch(v()){case 22:Oa=Bf();break;case 110:case 95:case 104:Oa=gt();break;case 40:hi(function(){return Je()===8&&Je()!==58})?Oa=gp():Oa=Jf();break;case 8:case 10:if(hi(function(){return Je()!==58})){Oa=Pa();break}default:Oa=Jf();break}ja&&e.isArray(ja)?ja.push(Oa):ja?ja=[ja,Oa]:(ja=Oa,v()!==1&&Ye(e.Diagnostics.Unexpected_token))}var eo=e.isArray(ja)?Qr(ce.createArrayLiteralExpression(ja),ot):e.Debug.checkDefined(ja),$o=ce.createExpressionStatement(eo);Qr($o,ot),zt=wi([$o],ot),la=Yi(1,e.Diagnostics.Unexpected_token)}var fo=Le(Ie,2,6,!1,zt,la,de);Li&&Ce(fo),fo.nodeCount=me,fo.identifierCount=he,fo.identifiers=Ge,fo.parseDiagnostics=e.attachFileToDiagnostics(Ue,fo),He&&(fo.jsDocDiagnostics=e.attachFileToDiagnostics(He,fo));var es=fo;return Br(),es}l.parseJsonText=Ir;function dr(Ie,kr,Hr,vi,Li){switch(w=e.objectAllocator.getNodeConstructor(),j=e.objectAllocator.getTokenConstructor(),U=e.objectAllocator.getIdentifierConstructor(),z=e.objectAllocator.getPrivateIdentifierConstructor(),y=e.objectAllocator.getSourceFileConstructor(),m=e.normalizePath(Ie),ae=kr,V=Hr,ar=vi,le=Li,ke=e.getLanguageVariant(Li),Ue=[],we=0,Ge=new e.Map,er=new e.Map,he=0,me=0,de=0,ge=!0,le){case 1:case 2:Se=131072;break;case 6:Se=33685504;break;default:Se=0;break}Fe=!1,_.setText(ae),_.setOnError(hr),_.setScriptTarget(V),_.setLanguageVariant(ke)}function Br(){_.clearCommentDirectives(),_.setText(""),_.setOnError(void 0),ae=void 0,V=void 0,ar=void 0,le=void 0,ke=void 0,de=0,Ue=void 0,He=void 0,we=0,Ge=void 0,ye=void 0,ge=!0}function Tr(Ie,kr,Hr){var vi=_e(m);vi&&(Se|=8388608),de=Se,Je();var Li=Ht(0,Wn);e.Debug.assert(v()===1);var ot=br(gt()),zt=Le(m,Ie,Hr,vi,Li,ot,de);return Y(zt,ae),Z(zt,la),zt.commentDirectives=_.getCommentDirectives(),zt.nodeCount=me,zt.identifierCount=he,zt.identifiers=Ge,zt.parseDiagnostics=e.attachFileToDiagnostics(Ue,zt),He&&(zt.jsDocDiagnostics=e.attachFileToDiagnostics(He,zt)),kr&&Ce(zt),zt;function la(ja,Oa,eo){Ue.push(e.createDetachedDiagnostic(m,ja,Oa,eo))}}function n(Ie,kr){return kr?br(Ie):Ie}var Er=!1;function br(Ie){e.Debug.assert(!Ie.jsDoc);var kr=e.mapDefined(e.getJSDocCommentRanges(Ie,ae),function(Hr){return Zl.parseJSDocComment(Ie,Hr.pos,Hr.end-Hr.pos)});return kr.length&&(Ie.jsDoc=kr),Er&&(Er=!1,Ie.flags|=134217728),Ie}function Pr(Ie){var kr=ar,Hr=ie.createSyntaxCursor(Ie);ar={currentNode:es};var vi=[],Li=Ue;Ue=[];for(var ot=0,zt=$o(Ie.statements,0),la=function(){var Es=Ie.statements[ot],vc=Ie.statements[zt];e.addRange(vi,Ie.statements,ot,zt),ot=fo(Ie.statements,zt);var lc=e.findIndex(Li,function(Is){return Is.start>=Es.pos}),cl=lc>=0?e.findIndex(Li,function(Is){return Is.start>=vc.pos},lc):-1;lc>=0&&e.addRange(Ue,Li,lc,cl>=0?cl:void 0),Ti(function(){var Is=Se;for(Se|=32768,_.setTextPos(vc.pos),Je();v()!==1;){var yf=_.getStartPos(),g_=Ka(0,Wn);if(vi.push(g_),yf===_.getStartPos()&&Je(),ot>=0){var wc=Ie.statements[ot];if(g_.end===wc.pos)break;g_.end>wc.pos&&(ot=fo(Ie.statements,ot+1))}}Se=Is},2),zt=ot>=0?$o(Ie.statements,ot):-1};zt!==-1;)la();if(ot>=0){var ja=Ie.statements[ot];e.addRange(vi,Ie.statements,ot);var Oa=e.findIndex(Li,function(Es){return Es.start>=ja.pos});Oa>=0&&e.addRange(Ue,Li,Oa)}return ar=kr,ce.updateSourceFile(Ie,e.setTextRange(ce.createNodeArray(vi),Ie.statements));function eo(Es){return!(Es.flags&32768)&&!!(Es.transformFlags&16777216)}function $o(Es,vc){for(var lc=vc;lc<Es.length;lc++)if(eo(Es[lc]))return lc;return-1}function fo(Es,vc){for(var lc=vc;lc<Es.length;lc++)if(!eo(Es[lc]))return lc;return-1}function es(Es){var vc=Hr.currentNode(Es);return ge&&vc&&eo(vc)&&(vc.intersectsChange=!0),vc}}function Ce(Ie){e.setParentRecursive(Ie,!0)}l.fixupParentReferences=Ce;function Le(Ie,kr,Hr,vi,Li,ot,zt){var la=ce.createSourceFile(Li,ot,zt);return e.setTextRangePosWidth(la,0,ae.length),uc(la),!vi&&ue(la)&&la.transformFlags&16777216&&(la=Pr(la)),la.text=ae,la.bindDiagnostics=[],la.bindSuggestionDiagnostics=void 0,la.languageVersion=kr,la.fileName=Ie,la.languageVariant=e.getLanguageVariant(Hr),la.isDeclarationFile=vi,la.scriptKind=Hr,la}function Xe(Ie,kr){Ie?Se|=kr:Se&=~kr}function Cr(Ie){Xe(Ie,4096)}function Lr(Ie){Xe(Ie,8192)}function Jr(Ie){Xe(Ie,16384)}function Rr(Ie){Xe(Ie,32768)}function ci(Ie,kr){var Hr=Ie&Se;if(Hr){Xe(!1,Hr);var vi=kr();return Xe(!0,Hr),vi}return kr()}function be(Ie,kr){var Hr=Ie&~Se;if(Hr){Xe(!0,Hr);var vi=kr();return Xe(!1,Hr),vi}return kr()}function or(Ie){return ci(4096,Ie)}function Kr(Ie){return be(4096,Ie)}function ei(Ie){return be(8192,Ie)}function li(Ie){return be(16384,Ie)}function Si(Ie){return be(32768,Ie)}function qi(Ie){return ci(32768,Ie)}function ft(Ie){return be(40960,Ie)}function bt(Ie){return ci(40960,Ie)}function aa(Ie){return(Se&Ie)!==0}function sr(){return aa(8192)}function Ji(){return aa(4096)}function di(){return aa(16384)}function X(){return aa(32768)}function Ye(Ie,kr){Qe(_.getTokenPos(),_.getTextPos(),Ie,kr)}function Be(Ie,kr,Hr,vi){var Li=e.lastOrUndefined(Ue);(!Li||Ie!==Li.start)&&Ue.push(e.createDetachedDiagnostic(m,Ie,kr,Hr,vi)),Fe=!0}function Qe(Ie,kr,Hr,vi){Be(Ie,kr-Ie,Hr,vi)}function _r(Ie,kr,Hr){Qe(Ie.pos,Ie.end,kr,Hr)}function hr(Ie,kr){Be(_.getTextPos(),kr,Ie)}function Dr(){return _.getStartPos()}function Me(){return _.hasPrecedingJSDocComment()}function v(){return gr}function xe(){return gr=_.scan()}function ze(Ie){return Je(),Ie()}function Je(){return e.isKeyword(gr)&&(_.hasUnicodeEscape()||_.hasExtendedUnicodeEscape())&&Qe(_.getTokenPos(),_.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),xe()}function Oe(){return gr=_.scanJsDocToken()}function Fr(){return gr=_.reScanGreaterToken()}function Xr(){return gr=_.reScanSlashToken()}function Or(Ie){return gr=_.reScanTemplateToken(Ie)}function We(){return gr=_.reScanTemplateHeadOrNoSubstitutionTemplate()}function mr(){return gr=_.reScanLessThanToken()}function Nr(){return gr=_.reScanHashToken()}function Ur(){return gr=_.scanJsxIdentifier()}function si(){return gr=_.scanJsxToken()}function mi(){return gr=_.scanJsxAttributeValue()}function Ti(Ie,kr){var Hr=gr,vi=Ue.length,Li=Fe,ot=Se,zt=kr!==0?_.lookAhead(Ie):_.tryScan(Ie);return e.Debug.assert(ot===Se),(!zt||kr!==0)&&(gr=Hr,kr!==2&&(Ue.length=vi),Fe=Li),zt}function hi(Ie){return Ti(Ie,1)}function ki(Ie){return Ti(Ie,0)}function Ui(){return v()===79?!0:v()>116}function zi(){return v()===79?!0:v()===125&&sr()||v()===132&&X()?!1:v()>116}function ri(Ie,kr,Hr){return Hr===void 0&&(Hr=!0),v()===Ie?(Hr&&Je(),!0):(kr?Ye(kr):Ye(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}var Gi=Object.keys(e.textToKeywordObj).filter(function(Ie){return Ie.length>2});function Rt(Ie){var kr;if(e.isTaggedTemplateExpression(Ie)){Qe(e.skipTrivia(ae,Ie.template.pos),Ie.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Hr=e.isIdentifier(Ie)?e.idText(Ie):void 0;if(!Hr||!e.isIdentifierText(Hr,V)){Ye(e.Diagnostics._0_expected,e.tokenToString(26));return}var vi=e.skipTrivia(ae,Ie.pos);switch(Hr){case"const":case"let":case"var":Qe(vi,Ie.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":pa(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Qe(vi,_.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":pa(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":pa(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var Li=(kr=e.getSpellingSuggestion(Hr,Gi,function(ot){return ot}))!==null&&kr!==void 0?kr:xt(Hr);if(Li){Qe(vi,Ie.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,Li);return}v()!==0&&Qe(vi,Ie.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function pa(Ie,kr,Hr){v()===Hr?Ye(kr):Ye(Ie,_.getTokenValue())}function xt(Ie){for(var kr=0,Hr=Gi;kr<Hr.length;kr++){var vi=Hr[kr];if(Ie.length>vi.length+2&&e.startsWith(Ie,vi))return"".concat(vi," ").concat(Ie.slice(vi.length))}}function ua(Ie,kr,Hr){if(v()===59&&!_.hasPrecedingLineBreak()){Ye(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(v()===20){Ye(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),Je();return}if(kr&&!Bt()){Hr?Ye(e.Diagnostics._0_expected,e.tokenToString(26)):Ye(e.Diagnostics.Expected_for_property_initializer);return}if(!Pi()){if(Hr){Ye(e.Diagnostics._0_expected,e.tokenToString(26));return}Rt(Ie)}}function Vt(Ie){return v()===Ie?(Oe(),!0):(Ye(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}function St(Ie){return v()===Ie?(Je(),!0):!1}function Ci(Ie){if(v()===Ie)return gt()}function Hi(Ie){if(v()===Ie)return oa()}function Yi(Ie,kr,Hr){return Ci(Ie)||Ct(Ie,!1,kr||e.Diagnostics._0_expected,Hr||e.tokenToString(Ie))}function yt(Ie){return Hi(Ie)||Ct(Ie,!1,e.Diagnostics._0_expected,e.tokenToString(Ie))}function gt(){var Ie=Dr(),kr=v();return Je(),Qr(ce.createToken(kr),Ie)}function oa(){var Ie=Dr(),kr=v();return Oe(),Qr(ce.createToken(kr),Ie)}function Bt(){return v()===26?!0:v()===19||v()===1||_.hasPrecedingLineBreak()}function Pi(){return Bt()?(v()===26&&Je(),!0):!1}function Oi(){return Pi()||ri(26)}function wi(Ie,kr,Hr,vi){var Li=ce.createNodeArray(Ie,vi);return e.setTextRangePosEnd(Li,kr,Hr!=null?Hr:_.getStartPos()),Li}function Qr(Ie,kr,Hr){return e.setTextRangePosEnd(Ie,kr,Hr!=null?Hr:_.getStartPos()),Se&&(Ie.flags|=Se),Fe&&(Fe=!1,Ie.flags|=65536),Ie}function Ct(Ie,kr,Hr,vi){kr?Be(_.getStartPos(),0,Hr,vi):Hr&&Ye(Hr,vi);var Li=Dr(),ot=Ie===79?ce.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Ie)?ce.createTemplateLiteralLikeNode(Ie,"","",void 0):Ie===8?ce.createNumericLiteral("",void 0):Ie===10?ce.createStringLiteral("",void 0):Ie===275?ce.createMissingDeclaration():ce.createToken(Ie);return Qr(ot,Li)}function tt(Ie){var kr=Ge.get(Ie);return kr===void 0&&Ge.set(Ie,kr=Ie),kr}function ta(Ie,kr,Hr){if(Ie){he++;var vi=Dr(),Li=v(),ot=tt(_.getTokenValue());return xe(),Qr(ce.createIdentifier(ot,void 0,Li),vi)}if(v()===80)return Ye(Hr||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ta(!0);if(v()===0&&_.tryScan(function(){return _.reScanInvalidIdentifier()===79}))return ta(!0);he++;var zt=v()===1,la=_.isReservedWord(),ja=_.getTokenText(),Oa=la?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ct(79,zt,kr||Oa,ja)}function Xa(Ie){return ta(Ui(),void 0,Ie)}function on(Ie,kr){return ta(zi(),Ie,kr)}function qr(Ie){return ta(e.tokenIsIdentifierOrKeyword(v()),Ie)}function bn(){return e.tokenIsIdentifierOrKeyword(v())||v()===10||v()===8}function Rn(){return e.tokenIsIdentifierOrKeyword(v())||v()===10}function Sn(Ie){if(v()===10||v()===8){var kr=Pa();return kr.text=tt(kr.text),kr}return Ie&&v()===22?Zn():v()===80?Vo():qr()}function zn(){return Sn(!0)}function Zn(){var Ie=Dr();ri(22);var kr=or(Vs);return ri(23),Qr(ce.createComputedPropertyName(kr),Ie)}function ho(Ie){var kr=er.get(Ie);return kr===void 0&&er.set(Ie,kr=Ie),kr}function Vo(){var Ie=Dr(),kr=ce.createPrivateIdentifier(ho(_.getTokenText()));return Je(),Qr(kr,Ie)}function Cn(Ie){return v()===Ie&&ki(ro)}function go(){return Je(),_.hasPrecedingLineBreak()?!1:Do()}function ro(){switch(v()){case 85:return Je()===92;case 93:return Je(),v()===88?hi(io):v()===151?hi(rs):Ko();case 88:return io();case 124:case 136:case 148:return Je(),Do();default:return go()}}function Ko(){return v()!==41&&v()!==127&&v()!==18&&Do()}function rs(){return Je(),Ko()}function rn(){return e.isModifierKind(v())&&ki(ro)}function Do(){return v()===22||v()===18||v()===41||v()===25||bn()}function io(){return Je(),v()===84||v()===98||v()===118||v()===126&&hi(j_)||v()===131&&hi(Uf)}function pn(Ie,kr){var Hr=an(Ie);if(Hr)return!0;switch(Ie){case 0:case 1:case 3:return!(v()===26&&kr)&&al();case 2:return v()===82||v()===88;case 4:return hi(Vr);case 5:return hi(gf)||v()===26&&!kr;case 6:return v()===22||bn();case 12:switch(v()){case 22:case 41:case 25:case 24:return!0;default:return bn()}case 18:return bn();case 9:return v()===22||v()===25||bn();case 24:return Rn();case 7:return v()===18?hi(Qn):kr?zi()&&!No():tf()&&!No();case 8:return Gl();case 10:return v()===27||v()===25||Gl();case 19:return zi();case 15:switch(v()){case 27:case 24:return!0}case 11:return v()===25||If();case 16:return Xs(!1);case 17:return Xs(!0);case 20:case 21:return v()===27||no();case 22:return __();case 23:return e.tokenIsIdentifierOrKeyword(v());case 13:return e.tokenIsIdentifierOrKeyword(v())||v()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Qn(){if(e.Debug.assert(v()===18),Je()===19){var Ie=Je();return Ie===27||Ie===18||Ie===94||Ie===117}return!0}function wo(){return Je(),zi()}function xo(){return Je(),e.tokenIsIdentifierOrKeyword(v())}function ds(){return Je(),e.tokenIsIdentifierOrKeywordOrGreaterThan(v())}function No(){return v()===117||v()===94?hi(Ts):!1}function Ts(){return Je(),If()}function Ms(){return Je(),no()}function xr(Ie){if(v()===1)return!0;switch(Ie){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return v()===19;case 3:return v()===19||v()===82||v()===88;case 7:return v()===18||v()===94||v()===117;case 8:return bi();case 19:return v()===31||v()===20||v()===18||v()===94||v()===117;case 11:return v()===21||v()===26;case 15:case 21:case 10:return v()===23;case 17:case 16:case 18:return v()===21||v()===23;case 20:return v()!==27;case 22:return v()===18||v()===19;case 13:return v()===31||v()===43;case 14:return v()===29&&hi(sl);default:return!1}}function bi(){return!!(Bt()||M_(v())||v()===38)}function ut(){for(var Ie=0;Ie<25;Ie++)if(we&1<<Ie&&(pn(Ie,!0)||xr(Ie)))return!0;return!1}function Ht(Ie,kr){var Hr=we;we|=1<<Ie;for(var vi=[],Li=Dr();!xr(Ie);){if(pn(Ie,!1)){vi.push(Ka(Ie,kr));continue}if(ca(Ie))break}return we=Hr,wi(vi,Li)}function Ka(Ie,kr){var Hr=an(Ie);return Hr?Ke(Hr):kr()}function an(Ie){if(!(!ar||!h(Ie)||Fe)){var kr=ar.currentNode(_.getStartPos());if(!(e.nodeIsMissing(kr)||kr.intersectsChange||e.containsParseError(kr))){var Hr=kr.flags&25358336;if(Hr===Se&&!!Ee(kr,Ie))return kr.jsDocCache&&(kr.jsDocCache=void 0),kr}}}function Ke(Ie){return _.setTextPos(Ie.end),Je(),Ie}function h(Ie){switch(Ie){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ee(Ie,kr){switch(kr){case 5:return Re(Ie);case 2:return nr(Ie);case 0:case 1:case 3:return Gr(Ie);case 6:return _i(Ie);case 4:return Ei(Ie);case 8:return Ki(Ie);case 17:case 16:return Nt(Ie)}return!1}function Re(Ie){if(Ie)switch(Ie.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var kr=Ie,Hr=kr.name.kind===79&&kr.name.originalKeywordKind===134;return!Hr}return!1}function nr(Ie){if(Ie)switch(Ie.kind){case 288:case 289:return!0}return!1}function Gr(Ie){if(Ie)switch(Ie.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}function _i(Ie){return Ie.kind===297}function Ei(Ie){if(Ie)switch(Ie.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}function Ki(Ie){if(Ie.kind!==253)return!1;var kr=Ie;return kr.initializer===void 0}function Nt(Ie){if(Ie.kind!==163)return!1;var kr=Ie;return kr.initializer===void 0}function ca(Ie){return Fa(Ie),ut()?!0:(Je(),!1)}function Fa(Ie){switch(Ie){case 0:return v()===88?Ye(e.Diagnostics._0_expected,e.tokenToString(93)):Ye(e.Diagnostics.Declaration_or_statement_expected);case 1:return Ye(e.Diagnostics.Declaration_or_statement_expected);case 2:return Ye(e.Diagnostics.case_or_default_expected);case 3:return Ye(e.Diagnostics.Statement_expected);case 18:case 4:return Ye(e.Diagnostics.Property_or_signature_expected);case 5:return Ye(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ye(e.Diagnostics.Enum_member_expected);case 7:return Ye(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(v())?Ye(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(v())):Ye(e.Diagnostics.Variable_declaration_expected);case 9:return Ye(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return Ye(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return Ye(e.Diagnostics.Argument_expression_expected);case 12:return Ye(e.Diagnostics.Property_assignment_expected);case 15:return Ye(e.Diagnostics.Expression_or_comma_expected);case 17:return Ye(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(v())?Ye(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(v())):Ye(e.Diagnostics.Parameter_declaration_expected);case 19:return Ye(e.Diagnostics.Type_parameter_declaration_expected);case 20:return Ye(e.Diagnostics.Type_argument_expected);case 21:return Ye(e.Diagnostics.Type_expected);case 22:return Ye(e.Diagnostics.Unexpected_token_expected);case 23:return Ye(e.Diagnostics.Identifier_expected);case 13:return Ye(e.Diagnostics.Identifier_expected);case 14:return Ye(e.Diagnostics.Identifier_expected);default:return[void 0]}}function Ta(Ie,kr,Hr){var vi=we;we|=1<<Ie;for(var Li=[],ot=Dr(),zt=-1;;){if(pn(Ie,!1)){var la=_.getStartPos();if(Li.push(Ka(Ie,kr)),zt=_.getTokenPos(),St(27))continue;if(zt=-1,xr(Ie))break;ri(27,In(Ie)),Hr&&v()===26&&!_.hasPrecedingLineBreak()&&Je(),la===_.getStartPos()&&Je();continue}if(xr(Ie)||ca(Ie))break}return we=vi,wi(Li,ot,void 0,zt>=0)}function In(Ie){return Ie===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function so(){var Ie=wi([],Dr());return Ie.isMissingList=!0,Ie}function as(Ie){return!!Ie.isMissingList}function Ho(Ie,kr,Hr,vi){if(ri(Hr)){var Li=Ta(Ie,kr);return ri(vi),Li}return so()}function Ds(Ie,kr){for(var Hr=Dr(),vi=Ie?qr(kr):on(kr),Li=Dr();St(24);){if(v()===29){vi.jsdocDotPos=Li;break}Li=Dr(),vi=Qr(ce.createQualifiedName(vi,mc(Ie,!1)),Hr)}return vi}function Os(Ie,kr){return Qr(ce.createQualifiedName(Ie,kr),Ie.pos)}function mc(Ie,kr){if(_.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(v())){var Hr=hi(Vl);if(Hr)return Ct(79,!0,e.Diagnostics.Identifier_expected)}if(v()===80){var vi=Vo();return kr?vi:Ct(79,!0,e.Diagnostics.Identifier_expected)}return Ie?qr():on()}function Hs(Ie){var kr=Dr(),Hr=[],vi;do vi=An(Ie),Hr.push(vi);while(vi.literal.kind===16);return wi(Hr,kr)}function Mi(Ie){var kr=Dr();return Qr(ce.createTemplateExpression(Mn(Ie),Hs(Ie)),kr)}function $t(){var Ie=Dr();return Qr(ce.createTemplateLiteralType(Mn(!1),ga()),Ie)}function ga(){var Ie=Dr(),kr=[],Hr;do Hr=xn(),kr.push(Hr);while(Hr.literal.kind===16);return wi(kr,Ie)}function xn(){var Ie=Dr();return Qr(ce.createTemplateLiteralTypeSpan(Ls(),yn(!1)),Ie)}function yn(Ie){return v()===19?(Or(Ie),ao()):Yi(17,e.Diagnostics._0_expected,e.tokenToString(19))}function An(Ie){var kr=Dr();return Qr(ce.createTemplateSpan(or(Vs),yn(Ie)),kr)}function Pa(){return De(v())}function Mn(Ie){Ie&&We();var kr=De(v());return e.Debug.assert(kr.kind===15,"Template head has wrong token kind"),kr}function ao(){var Ie=De(v());return e.Debug.assert(Ie.kind===16||Ie.kind===17,"Template fragment has wrong token kind"),Ie}function co(Ie){var kr=Ie===14||Ie===17,Hr=_.getTokenText();return Hr.substring(1,Hr.length-(_.isUnterminated()?0:kr?1:2))}function De(Ie){var kr=Dr(),Hr=e.isTemplateLiteralKind(Ie)?ce.createTemplateLiteralLikeNode(Ie,_.getTokenValue(),co(Ie),_.getTokenFlags()&2048):Ie===8?ce.createNumericLiteral(_.getTokenValue(),_.getNumericLiteralFlags()):Ie===10?ce.createStringLiteral(_.getTokenValue(),void 0,_.hasExtendedUnicodeEscape()):e.isLiteralKind(Ie)?ce.createLiteralLikeNode(Ie,_.getTokenValue()):e.Debug.fail();return _.hasExtendedUnicodeEscape()&&(Hr.hasExtendedUnicodeEscape=!0),_.isUnterminated()&&(Hr.isUnterminated=!0),Je(),Qr(Hr,kr)}function zr(){return Ds(!0,e.Diagnostics.Type_expected)}function xi(){if(!_.hasPrecedingLineBreak()&&mr()===29)return Ho(20,Ls,29,31)}function et(){var Ie=Dr();return Qr(ce.createTypeReferenceNode(zr(),xi()),Ie)}function je(Ie){switch(Ie.kind){case 177:return e.nodeIsMissing(Ie.typeName);case 178:case 179:{var kr=Ie,Hr=kr.parameters,vi=kr.type;return as(Hr)||je(vi)}case 190:return je(Ie.type);default:return!1}}function ti(Ie){return Je(),Qr(ce.createTypePredicateNode(void 0,Ie,Ls()),Ie.pos)}function mt(){var Ie=Dr();return Je(),Qr(ce.createThisTypeNode(),Ie)}function Zt(){var Ie=Dr();return Je(),Qr(ce.createJSDocAllType(),Ie)}function ln(){var Ie=Dr();return Je(),Qr(ce.createJSDocNonNullableType(wn()),Ie)}function Ba(){var Ie=Dr();return Je(),v()===27||v()===19||v()===21||v()===31||v()===63||v()===51?Qr(ce.createJSDocUnknownType(),Ie):Qr(ce.createJSDocNullableType(Ls()),Ie)}function Oo(){var Ie=Dr(),kr=Me();if(hi(yu)){Je();var Hr=Dc(36),vi=uo(58,!1);return n(Qr(ce.createJSDocFunctionType(Hr,vi),Ie),kr)}return Qr(ce.createTypeReferenceNode(qr(),void 0),Ie)}function jr(){var Ie=Dr(),kr;return(v()===108||v()===103)&&(kr=qr(),ri(58)),Qr(ce.createParameterDeclaration(void 0,void 0,void 0,kr,void 0,is(),void 0),Ie)}function is(){_.setInJSDocType(!0);var Ie=Dr();if(St(141)){var kr=ce.createJSDocNamepathType(void 0);e:for(;;)switch(v()){case 19:case 1:case 27:case 5:break e;default:Oe()}return _.setInJSDocType(!1),Qr(kr,Ie)}var Hr=St(25),vi=bo();return _.setInJSDocType(!1),Hr&&(vi=Qr(ce.createJSDocVariadicType(vi),Ie)),v()===63?(Je(),Qr(ce.createJSDocOptionalType(vi),Ie)):vi}function hc(){var Ie=Dr();return ri(112),Qr(ce.createTypeQueryNode(Ds(!0)),Ie)}function nc(){var Ie=Dr(),kr=on(),Hr,vi;St(94)&&(no()||!If()?Hr=Ls():vi=L_());var Li=St(63)?Ls():void 0,ot=ce.createTypeParameterDeclaration(kr,Hr,Li);return ot.expression=vi,Qr(ot,Ie)}function ns(){if(v()===29)return Ho(19,nc,29,31)}function Xs(Ie){return v()===25||Gl()||e.isModifierKind(v())||v()===59||no(!Ie)}function rc(Ie){var kr=bs(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(kr)===0&&!e.some(Ie)&&e.isModifierKind(v())&&Je(),kr}function uu(){return Qu(!0)}function Bc(){return Qu(!1)}function Qu(Ie){var kr=Dr(),Hr=Me(),vi=Ie?Si(El):El();if(v()===108){var Li=ce.createParameterDeclaration(vi,void 0,void 0,ta(!0),void 0,xu(),void 0);return vi&&_r(vi[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),n(Qr(Li,kr),Hr)}var ot=ge;ge=!1;var zt=Zc(),la=n(Qr(ce.createParameterDeclaration(vi,zt,Ci(25),rc(zt),Ci(57),xu(),Zu()),kr),Hr);return ge=ot,la}function uo(Ie,kr){if(Xc(Ie,kr))return bo()}function Xc(Ie,kr){return Ie===38?(ri(Ie),!0):St(58)?!0:kr&&v()===38?(Ye(e.Diagnostics._0_expected,e.tokenToString(58)),Je(),!0):!1}function Ru(Ie){var kr=sr(),Hr=X();Lr(!!(Ie&1)),Rr(!!(Ie&2));var vi=Ie&32?Ta(17,jr):Ta(16,Hr?uu:Bc);return Lr(kr),Rr(Hr),vi}function Dc(Ie){if(!ri(20))return so();var kr=Ru(Ie);return ri(21),kr}function Yu(){St(27)||Oi()}function lu(Ie){var kr=Dr(),Hr=Me();Ie===174&&ri(103);var vi=ns(),Li=Dc(4),ot=uo(58,!0);Yu();var zt=Ie===173?ce.createCallSignature(vi,Li,ot):ce.createConstructSignature(vi,Li,ot);return n(Qr(zt,kr),Hr)}function qa(){return v()===22&&hi(Bu)}function Bu(){if(Je(),v()===25||v()===23)return!0;if(e.isModifierKind(v())){if(Je(),zi())return!0}else if(zi())Je();else return!1;return v()===58||v()===27?!0:v()!==57?!1:(Je(),v()===58||v()===27||v()===23)}function $u(Ie,kr,Hr,vi){var Li=Ho(16,Bc,22,23),ot=xu();Yu();var zt=ce.createIndexSignature(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}function au(Ie,kr,Hr){var vi=zn(),Li=Ci(57),ot;if(v()===20||v()===29){var zt=ns(),la=Dc(4),ja=uo(58,!0);ot=ce.createMethodSignature(Hr,vi,Li,zt,la,ja)}else{var ja=xu();ot=ce.createPropertySignature(Hr,vi,Li,ja),v()===63&&(ot.initializer=Zu())}return Yu(),n(Qr(ot,Ie),kr)}function Vr(){if(v()===20||v()===29||v()===136||v()===148)return!0;for(var Ie=!1;e.isModifierKind(v());)Ie=!0,Je();return v()===22?!0:(bn()&&(Ie=!0,Je()),Ie?v()===20||v()===29||v()===57||v()===58||v()===27||Bt():!1)}function fi(){if(v()===20||v()===29)return lu(173);if(v()===103&&hi(Ni))return lu(174);var Ie=Dr(),kr=Me(),Hr=Zc();return Cn(136)?xl(Ie,kr,void 0,Hr,171):Cn(148)?xl(Ie,kr,void 0,Hr,172):qa()?$u(Ie,kr,void 0,Hr):au(Ie,kr,Hr)}function Ni(){return Je(),v()===20||v()===29}function rt(){return Je()===24}function Tt(){switch(Je()){case 20:case 29:case 24:return!0}return!1}function Dt(){var Ie=Dr();return Qr(ce.createTypeLiteralNode(jt()),Ie)}function jt(){var Ie;return ri(18)?(Ie=Ht(4,fi),ri(19)):Ie=so(),Ie}function na(){return Je(),v()===39||v()===40?Je()===144:(v()===144&&Je(),v()===22&&wo()&&Je()===101)}function Za(){var Ie=Dr(),kr=qr();ri(101);var Hr=Ls();return Qr(ce.createTypeParameterDeclaration(kr,Hr,void 0),Ie)}function ya(){var Ie=Dr();ri(18);var kr;(v()===144||v()===39||v()===40)&&(kr=gt(),kr.kind!==144&&ri(144)),ri(22);var Hr=Za(),vi=St(127)?Ls():void 0;ri(23);var Li;(v()===57||v()===39||v()===40)&&(Li=gt(),Li.kind!==57&&ri(57));var ot=xu();Oi();var zt=Ht(4,fi);return ri(19),Qr(ce.createMappedTypeNode(kr,Hr,vi,Li,ot,zt),Ie)}function ha(){var Ie=Dr();if(St(25))return Qr(ce.createRestTypeNode(Ls()),Ie);var kr=Ls();if(e.isJSDocNullableType(kr)&&kr.pos===kr.type.pos){var Hr=ce.createOptionalTypeNode(kr.type);return e.setTextRange(Hr,kr),Hr.flags=kr.flags,Hr}return kr}function Ja(){return Je()===58||v()===57&&Je()===58}function Eo(){return v()===25?e.tokenIsIdentifierOrKeyword(Je())&&Ja():e.tokenIsIdentifierOrKeyword(v())&&Ja()}function Hn(){if(hi(Eo)){var Ie=Dr(),kr=Me(),Hr=Ci(25),vi=qr(),Li=Ci(57);ri(58);var ot=ha(),zt=ce.createNamedTupleMember(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}return ha()}function lo(){var Ie=Dr();return Qr(ce.createTupleTypeNode(Ho(21,Hn,22,23)),Ie)}function Kn(){var Ie=Dr();ri(20);var kr=Ls();return ri(21),Qr(ce.createParenthesizedType(kr),Ie)}function Te(){var Ie;if(v()===126){var kr=Dr();Je();var Hr=Qr(ce.createToken(126),kr);Ie=wi([Hr],kr)}return Ie}function vr(){var Ie=Dr(),kr=Me(),Hr=Te(),vi=St(103),Li=ns(),ot=Dc(4),zt=uo(38,!1),la=vi?ce.createConstructorTypeNode(Hr,Li,ot,zt):ce.createFunctionTypeNode(Li,ot,zt);return vi||(la.modifiers=Hr),n(Qr(la,Ie),kr)}function Sr(){var Ie=gt();return v()===24?void 0:Ie}function Di(Ie){var kr=Dr();Ie&&Je();var Hr=v()===110||v()===95||v()===104?gt():De(v());return Ie&&(Hr=Qr(ce.createPrefixUnaryExpression(40,Hr),kr)),Qr(ce.createLiteralTypeNode(Hr),kr)}function nt(){return Je(),v()===100}function _a(){de|=1048576;var Ie=Dr(),kr=St(112);ri(100),ri(20);var Hr=Ls();ri(21);var vi=St(24)?zr():void 0,Li=xi();return Qr(ce.createImportTypeNode(Hr,vi,Li,kr),Ie)}function Na(){return Je(),v()===8||v()===9}function wn(){switch(v()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return ki(Sr)||et();case 66:_.reScanAsteriskEqualsToken();case 41:return Zt();case 60:_.reScanQuestionToken();case 57:return Ba();case 98:return Oo();case 53:return ln();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Di();case 40:return hi(Na)?Di(!0):et();case 114:return gt();case 108:{var Ie=mt();return v()===139&&!_.hasPrecedingLineBreak()?ti(Ie):Ie}case 112:return hi(nt)?_a():hc();case 18:return hi(na)?ya():Dt();case 22:return lo();case 20:return Kn();case 100:return _a();case 128:return hi(Vl)?i_():et();case 15:return $t();default:return et()}}function no(Ie){switch(v()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!Ie;case 40:return!Ie&&hi(Na);case 20:return!Ie&&hi(Go);default:return zi()}}function Go(){return Je(),v()===21||Xs(!1)||no()}function vo(){for(var Ie=Dr(),kr=wn();!_.hasPrecedingLineBreak();)switch(v()){case 53:Je(),kr=Qr(ce.createJSDocNonNullableType(kr),Ie);break;case 57:if(hi(Ms))return kr;Je(),kr=Qr(ce.createJSDocNullableType(kr),Ie);break;case 22:if(ri(22),no()){var Hr=Ls();ri(23),kr=Qr(ce.createIndexedAccessTypeNode(kr,Hr),Ie)}else ri(23),kr=Qr(ce.createArrayTypeNode(kr),Ie);break;default:return kr}return kr}function Vn(Ie){var kr=Dr();return ri(Ie),Qr(ce.createTypeOperatorNode(Ie,Xo()),kr)}function to(){var Ie=Dr();return Qr(ce.createTypeParameterDeclaration(on(),void 0,void 0),Ie)}function Jo(){var Ie=Dr();return ri(137),Qr(ce.createInferTypeNode(to()),Ie)}function Xo(){var Ie=v();switch(Ie){case 140:case 153:case 144:return Vn(Ie);case 137:return Jo()}return vo()}function Wr(Ie){if(Qc()){var kr=vr(),Hr=void 0;return e.isFunctionTypeNode(kr)?Hr=Ie?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Hr=Ie?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,_r(kr,Hr),kr}}function Ws(Ie,kr,Hr){var vi=Dr(),Li=Ie===51,ot=St(Ie),zt=ot&&Wr(Li)||kr();if(v()===Ie||ot){for(var la=[zt];St(Ie);)la.push(Wr(Li)||kr());zt=Qr(Hr(wi(la,vi)),vi)}return zt}function nu(){return Ws(50,Xo,ce.createIntersectionTypeNode)}function Tu(){return Ws(51,nu,ce.createUnionTypeNode)}function oc(){return Je(),v()===103}function Qc(){return v()===29||v()===20&&hi(lp)?!0:v()===103||v()===126&&hi(oc)}function fu(){if(e.isModifierKind(v())&&Zc(),zi()||v()===108)return Je(),!0;if(v()===22||v()===18){var Ie=Ue.length;return bs(),Ie===Ue.length}return!1}function lp(){return Je(),!!(v()===21||v()===25||fu()&&(v()===58||v()===27||v()===57||v()===63||v()===21&&(Je(),v()===38)))}function bo(){var Ie=Dr(),kr=zi()&&ki(w_),Hr=Ls();return kr?Qr(ce.createTypePredicateNode(void 0,kr,Hr),Ie):Hr}function w_(){var Ie=on();if(v()===139&&!_.hasPrecedingLineBreak())return Je(),Ie}function i_(){var Ie=Dr(),kr=Yi(128),Hr=v()===108?mt():on(),vi=St(139)?Ls():void 0;return Qr(ce.createTypePredicateNode(kr,Hr,vi),Ie)}function Ls(){return ci(40960,hl)}function hl(Ie){if(Qc())return vr();var kr=Dr(),Hr=Tu();if(!Ie&&!_.hasPrecedingLineBreak()&&St(94)){var vi=hl(!0);ri(57);var Li=hl();ri(58);var ot=hl();return Qr(ce.createConditionalTypeNode(Hr,vi,Li,ot),kr)}return Hr}function xu(){return St(58)?Ls():void 0}function tf(){switch(v()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return hi(Tt);default:return zi()}}function If(){if(tf())return!0;switch(v()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return Qp()?!0:zi()}}function Yc(){return v()!==18&&v()!==98&&v()!==84&&v()!==59&&If()}function Vs(){var Ie=di();Ie&&Jr(!1);for(var kr=Dr(),Hr=Ma(),vi;vi=Ci(27);)Hr=pp(Hr,vi,Ma(),kr);return Ie&&Jr(!0),Hr}function Zu(){return St(63)?Ma():void 0}function Ma(){if(Da())return Pc();var Ie=wf()||Of();if(Ie)return Ie;var kr=Dr(),Hr=Ff(0);return Hr.kind===79&&v()===38?fp(kr,Hr,void 0):e.isLeftHandSideExpression(Hr)&&e.isAssignmentOperator(Fr())?pp(Hr,gt(),Ma(),kr):F_(Hr,kr)}function Da(){return v()===125?sr()?!0:hi(Sp):!1}function Ju(){return Je(),!_.hasPrecedingLineBreak()&&zi()}function Pc(){var Ie=Dr();return Je(),!_.hasPrecedingLineBreak()&&(v()===41||If())?Qr(ce.createYieldExpression(Ci(41),Ma()),Ie):Qr(ce.createYieldExpression(void 0,void 0),Ie)}function fp(Ie,kr,Hr){e.Debug.assert(v()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var vi=ce.createParameterDeclaration(void 0,void 0,void 0,kr,void 0,void 0,void 0);Qr(vi,kr.pos);var Li=wi([vi],vi.pos,vi.end),ot=Yi(38),zt=Nc(!!Hr),la=ce.createArrowFunction(Hr,void 0,Li,void 0,ot,zt);return br(Qr(la,Ie))}function wf(){var Ie=Xp();if(Ie!==0)return Ie===1?t_(!0):ki(el)}function Xp(){return v()===20||v()===29||v()===131?hi(os):v()===38?1:0}function os(){if(v()===131&&(Je(),_.hasPrecedingLineBreak()||v()!==20&&v()!==29))return 0;var Ie=v(),kr=Je();if(Ie===20){if(kr===21){var Hr=Je();switch(Hr){case 38:case 58:case 18:return 1;default:return 0}}if(kr===22||kr===18)return 2;if(kr===25||e.isModifierKind(kr)&&kr!==131&&hi(wo))return 1;if(!zi()&&kr!==108)return 0;switch(Je()){case 58:return 1;case 57:return Je(),v()===58||v()===27||v()===63||v()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(Ie===29),!zi())return 0;if(ke===1){var vi=hi(function(){var Li=Je();if(Li===94){var ot=Je();switch(ot){case 63:case 31:return!1;default:return!0}}else if(Li===27||Li===63)return!0;return!1});return vi?1:0}return 2}}function el(){var Ie=_.getTokenPos();if(!(ye!=null&&ye.has(Ie))){var kr=t_(!1);return kr||(ye||(ye=new e.Set)).add(Ie),kr}}function Of(){if(v()===131&&hi(O_)===1){var Ie=Dr(),kr=kp(),Hr=Ff(0);return fp(Ie,Hr,kr)}}function O_(){if(v()===131){if(Je(),_.hasPrecedingLineBreak()||v()===38)return 0;var Ie=Ff(0);if(!_.hasPrecedingLineBreak()&&Ie.kind===79&&v()===38)return 1}return 0}function t_(Ie){var kr=Dr(),Hr=Me(),vi=kp(),Li=e.some(vi,e.isAsyncModifier)?2:0,ot=ns(),zt;if(ri(20)){if(zt=Ru(Li),!ri(21)&&!Ie)return}else{if(!Ie)return;zt=so()}var la=uo(58,!1);if(!(la&&!Ie&&je(la))){for(var ja=la;(ja==null?void 0:ja.kind)===190;)ja=ja.type;var Oa=ja&&e.isJSDocFunctionType(ja);if(!(!Ie&&v()!==38&&(Oa||v()!==18))){var eo=v(),$o=Yi(38),fo=eo===38||eo===18?Nc(e.some(vi,e.isAsyncModifier)):on(),es=ce.createArrowFunction(vi,ot,zt,la,$o,fo);return n(Qr(es,kr),Hr)}}}function Nc(Ie){if(v()===18)return mn(Ie?2:0);if(v()!==26&&v()!==98&&v()!==84&&al()&&!Yc())return mn(16|(Ie?2:0));var kr=ge;ge=!1;var Hr=Ie?Si(Ma):qi(Ma);return ge=kr,Hr}function F_(Ie,kr){var Hr=Ci(57);if(!Hr)return Ie;var vi;return Qr(ce.createConditionalExpression(Ie,Hr,ci(J,Ma),vi=Yi(58),e.nodeIsPresent(vi)?Ma():Ct(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),kr)}function Ff(Ie){var kr=Dr(),Hr=L_();return _p(Ie,Hr,kr)}function M_(Ie){return Ie===101||Ie===159}function _p(Ie,kr,Hr){for(;;){Fr();var vi=e.getBinaryOperatorPrecedence(v()),Li=v()===42?vi>=Ie:vi>Ie;if(!Li||v()===101&&Ji())break;if(v()===127){if(_.hasPrecedingLineBreak())break;Je(),kr=dp(kr,Ls())}else kr=pp(kr,gt(),Ff(vi),Hr)}return kr}function Qp(){return Ji()&&v()===101?!1:e.getBinaryOperatorPrecedence(v())>0}function pp(Ie,kr,Hr,vi){return Qr(ce.createBinaryExpression(Ie,kr,Hr),vi)}function dp(Ie,kr){return Qr(ce.createAsExpression(Ie,kr),Ie.pos)}function gp(){var Ie=Dr();return Qr(ce.createPrefixUnaryExpression(v(),ze(rl)),Ie)}function Yp(){var Ie=Dr();return Qr(ce.createDeleteExpression(ze(rl)),Ie)}function $p(){var Ie=Dr();return Qr(ce.createTypeOfExpression(ze(rl)),Ie)}function a_(){var Ie=Dr();return Qr(ce.createVoidExpression(ze(rl)),Ie)}function Cd(){return v()===132?X()?!0:hi(Sp):!1}function mp(){var Ie=Dr();return Qr(ce.createAwaitExpression(ze(rl)),Ie)}function L_(){if(ju()){var Ie=Dr(),kr=_u();return v()===42?_p(e.getBinaryOperatorPrecedence(v()),kr,Ie):kr}var Hr=v(),vi=rl();if(v()===42){var Ie=e.skipTrivia(ae,vi.pos),Li=vi.end;vi.kind===210?Qe(Ie,Li,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Qe(Ie,Li,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(Hr))}return vi}function rl(){switch(v()){case 39:case 40:case 54:case 53:return gp();case 89:return Yp();case 112:return $p();case 114:return a_();case 29:return ic();case 132:if(Cd())return mp();default:return _u()}}function ju(){switch(v()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(ke!==1)return!1;default:return!0}}function _u(){if(v()===45||v()===46){var Ie=Dr();return Qr(ce.createPrefixUnaryExpression(v(),ze(Eu)),Ie)}else if(ke===1&&v()===29&&hi(ds))return Wl(!0);var kr=Eu();if(e.Debug.assert(e.isLeftHandSideExpression(kr)),(v()===45||v()===46)&&!_.hasPrecedingLineBreak()){var Hr=v();return Je(),Qr(ce.createPostfixUnaryExpression(kr,Hr),kr.pos)}return kr}function Eu(){var Ie=Dr(),kr;return v()===100?hi(Ni)?(de|=1048576,kr=gt()):hi(rt)?(Je(),Je(),kr=Qr(ce.createMetaProperty(100,qr()),Ie),de|=2097152):kr=Dl():kr=v()===106?Zp():Dl(),pu(Ie,kr)}function Dl(){var Ie=Dr(),kr=il();return c_(Ie,kr,!0)}function Zp(){var Ie=Dr(),kr=gt();if(v()===29){var Hr=Dr(),vi=ki(bl);vi!==void 0&&Qe(Hr,Dr(),e.Diagnostics.super_may_not_use_type_arguments)}return v()===20||v()===24||v()===22?kr:(Yi(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Qr(ce.createPropertyAccessExpression(kr,mc(!0,!0)),Ie))}function Wl(Ie,kr,Hr){var vi=Dr(),Li=R_(Ie),ot;if(Li.kind===279){var zt=vp(Li),la=void 0,ja=zt[zt.length-1];if((ja==null?void 0:ja.kind)===277&&!D(ja.openingElement.tagName,ja.closingElement.tagName)&&D(Li.tagName,ja.closingElement.tagName)){var Oa=ja.children.end,eo=Qr(ce.createJsxElement(ja.openingElement,ja.children,Qr(ce.createJsxClosingElement(Qr(ce.createIdentifier(""),Oa,Oa)),Oa,Oa)),ja.openingElement.pos,Oa);zt=wi(qe(qe([],zt.slice(0,zt.length-1),!0),[eo],!1),zt.pos,Oa),la=ja.closingElement}else la=Mf(Li,Ie),D(Li.tagName,la.tagName)||(Hr&&e.isJsxOpeningElement(Hr)&&D(la.tagName,Hr.tagName)?_r(Li.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ae,Li.tagName)):_r(la.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ae,Li.tagName)));ot=Qr(ce.createJsxElement(Li,zt,la),vi)}else Li.kind===282?ot=Qr(ce.createJsxFragment(Li,vp(Li),hp(Ie)),vi):(e.Debug.assert(Li.kind===278),ot=Li);if(Ie&&v()===29){var $o=typeof kr>"u"?ot.pos:kr,fo=ki(function(){return Wl(!0,$o)});if(fo){var es=Ct(27,!1);return e.setTextRangePosWidth(es,fo.pos,0),Qe(e.skipTrivia(ae,$o),fo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Qr(ce.createBinaryExpression(ot,es,fo),vi)}}return ot}function ed(){var Ie=Dr(),kr=ce.createJsxText(_.getTokenValue(),gr===12);return gr=_.scanJsxToken(),Qr(kr,Ie)}function n_(Ie,kr){switch(kr){case 1:if(e.isJsxOpeningFragment(Ie))_r(Ie,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Hr=Ie.tagName,vi=e.skipTrivia(ae,Hr.pos);Qe(vi,Hr.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ae,Ie.tagName))}return;case 30:case 7:return;case 11:case 12:return ed();case 18:return yp(!1);case 29:return Wl(!1,void 0,Ie);default:return e.Debug.assertNever(kr)}}function vp(Ie){var kr=[],Hr=Dr(),vi=we;for(we|=1<<14;;){var Li=n_(Ie,gr=_.reScanJsxToken());if(!Li||(kr.push(Li),e.isJsxOpeningElement(Ie)&&(Li==null?void 0:Li.kind)===277&&!D(Li.openingElement.tagName,Li.closingElement.tagName)&&D(Ie.tagName,Li.closingElement.tagName)))break}return we=vi,wi(kr,Hr)}function o_(){var Ie=Dr();return Qr(ce.createJsxAttributes(Ht(13,B_)),Ie)}function R_(Ie){var kr=Dr();if(ri(29),v()===31)return si(),Qr(ce.createJsxOpeningFragment(),kr);var Hr=af(),vi=(Se&131072)===0?ht():void 0,Li=o_(),ot;return v()===31?(si(),ot=ce.createJsxOpeningElement(Hr,vi,Li)):(ri(43),ri(31,void 0,!1)&&(Ie?Je():si()),ot=ce.createJsxSelfClosingElement(Hr,vi,Li)),Qr(ot,kr)}function af(){var Ie=Dr();Ur();for(var kr=v()===108?gt():qr();St(24);)kr=Qr(ce.createPropertyAccessExpression(kr,mc(!0,!1)),Ie);return kr}function yp(Ie){var kr=Dr();if(!!ri(18)){var Hr,vi;return v()!==19&&(Hr=Ci(25),vi=Vs()),Ie?ri(19):ri(19,void 0,!1)&&si(),Qr(ce.createJsxExpression(Hr,vi),kr)}}function B_(){if(v()===18)return kd();Ur();var Ie=Dr();return Qr(ce.createJsxAttribute(qr(),v()!==63?void 0:mi()===10?Pa():yp(!0)),Ie)}function kd(){var Ie=Dr();ri(18),ri(25);var kr=Vs();return ri(19),Qr(ce.createJsxSpreadAttribute(kr),Ie)}function Mf(Ie,kr){var Hr=Dr();ri(30);var vi=af();return ri(31,void 0,!1)&&(kr||!D(Ie.tagName,vi)?Je():si()),Qr(ce.createJsxClosingElement(vi),Hr)}function hp(Ie){var kr=Dr();return ri(30),e.tokenIsIdentifierOrKeyword(v())&&_r(af(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),ri(31,void 0,!1)&&(Ie?Je():si()),Qr(ce.createJsxJsxClosingFragment(),kr)}function ic(){var Ie=Dr();ri(29);var kr=Ls();ri(31);var Hr=rl();return Qr(ce.createTypeAssertion(kr,Hr),Ie)}function Jc(){return Je(),e.tokenIsIdentifierOrKeyword(v())||v()===22||Cu()}function Lf(){return v()===28&&hi(Jc)}function nf(Ie){if(Ie.flags&32)return!0;if(e.isNonNullExpression(Ie)){for(var kr=Ie.expression;e.isNonNullExpression(kr)&&!(kr.flags&32);)kr=kr.expression;if(kr.flags&32){for(;e.isNonNullExpression(Ie);)Ie.flags|=32,Ie=Ie.expression;return!0}}return!1}function s_(Ie,kr,Hr){var vi=mc(!0,!0),Li=Hr||nf(kr),ot=Li?ce.createPropertyAccessChain(kr,Hr,vi):ce.createPropertyAccessExpression(kr,vi);return Li&&e.isPrivateIdentifier(ot.name)&&_r(ot.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Qr(ot,Ie)}function Rf(Ie,kr,Hr){var vi;if(v()===23)vi=Ct(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Li=or(Vs);e.isStringOrNumericLiteralLike(Li)&&(Li.text=tt(Li.text)),vi=Li}ri(23);var ot=Hr||nf(kr)?ce.createElementAccessChain(kr,Hr,vi):ce.createElementAccessExpression(kr,vi);return Qr(ot,Ie)}function c_(Ie,kr,Hr){for(;;){var vi=void 0,Li=!1;if(Hr&&Lf()?(vi=Yi(28),Li=e.tokenIsIdentifierOrKeyword(v())):Li=St(24),Li){kr=s_(Ie,kr,vi);continue}if(!vi&&v()===53&&!_.hasPrecedingLineBreak()){Je(),kr=Qr(ce.createNonNullExpression(kr),Ie);continue}if((vi||!di())&&St(22)){kr=Rf(Ie,kr,vi);continue}if(Cu()){kr=Tc(Ie,kr,vi,void 0);continue}return kr}}function Cu(){return v()===14||v()===15}function Tc(Ie,kr,Hr,vi){var Li=ce.createTaggedTemplateExpression(kr,vi,v()===14?(We(),Pa()):Mi(!0));return(Hr||kr.flags&32)&&(Li.flags|=32),Li.questionDotToken=Hr,Qr(Li,Ie)}function pu(Ie,kr){for(;;){kr=c_(Ie,kr,!0);var Hr=Ci(28);if((Se&131072)===0&&(v()===29||v()===47)){var vi=ki(bl);if(vi){if(Cu()){kr=Tc(Ie,kr,Hr,vi);continue}var Li=du(),ot=Hr||nf(kr)?ce.createCallChain(kr,Hr,vi,Li):ce.createCallExpression(kr,vi,Li);kr=Qr(ot,Ie);continue}}else if(v()===20){var Li=du(),ot=Hr||nf(kr)?ce.createCallChain(kr,Hr,void 0,Li):ce.createCallExpression(kr,void 0,Li);kr=Qr(ot,Ie);continue}if(Hr){var zt=Ct(79,!1,e.Diagnostics.Identifier_expected);kr=Qr(ce.createPropertyAccessChain(kr,Hr,zt),Ie)}break}return kr}function du(){ri(20);var Ie=Ta(11,jc);return ri(21),Ie}function bl(){if((Se&131072)===0&&mr()===29){Je();var Ie=Ta(20,Ls);if(!!ri(31))return Ie&&of()?Ie:void 0}}function of(){switch(v()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function il(){switch(v()){case 8:case 9:case 10:case 14:return Pa();case 108:case 106:case 104:case 110:case 95:return gt();case 20:return Qo();case 22:return Bf();case 18:return Jf();case 131:if(!hi(Uf))break;return jf();case 84:return Ql();case 98:return jf();case 103:return Kt();case 43:case 68:if(Xr()===13)return Pa();break;case 15:return Mi(!1);case 80:return Vo()}return on(e.Diagnostics.Expression_expected)}function Qo(){var Ie=Dr(),kr=Me();ri(20);var Hr=or(Vs);return ri(21),n(Qr(ce.createParenthesizedExpression(Hr),Ie),kr)}function zo(){var Ie=Dr();ri(25);var kr=Ma();return Qr(ce.createSpreadElement(kr),Ie)}function Ro(){return v()===25?zo():v()===27?Qr(ce.createOmittedExpression(),Dr()):Ma()}function jc(){return ci(J,Ro)}function Bf(){var Ie=Dr();ri(22);var kr=_.hasPrecedingLineBreak(),Hr=Ta(15,Ro);return ri(23),Qr(ce.createArrayLiteralExpression(Hr,kr),Ie)}function gu(){var Ie=Dr(),kr=Me();if(Ci(25)){var Hr=Ma();return n(Qr(ce.createSpreadAssignment(Hr),Ie),kr)}var vi=El(),Li=Zc();if(Cn(136))return xl(Ie,kr,vi,Li,171);if(Cn(148))return xl(Ie,kr,vi,Li,172);var ot=Ci(41),zt=zi(),la=zn(),ja=Ci(57),Oa=Ci(53);if(ot||v()===20||v()===29)return l_(Ie,kr,vi,Li,ot,la,ja,Oa);var eo,$o=zt&&v()!==58;if($o){var fo=Ci(63),es=fo?or(Ma):void 0;eo=ce.createShorthandPropertyAssignment(la,es),eo.equalsToken=fo}else{ri(58);var Es=or(Ma);eo=ce.createPropertyAssignment(la,Es)}return eo.decorators=vi,eo.modifiers=Li,eo.questionToken=ja,eo.exclamationToken=Oa,n(Qr(eo,Ie),kr)}function Jf(){var Ie=Dr(),kr=_.getTokenPos();ri(18);var Hr=_.hasPrecedingLineBreak(),vi=Ta(12,gu,!0);if(!ri(19)){var Li=e.lastOrUndefined(Ue);Li&&Li.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Li,e.createDetachedDiagnostic(m,kr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Qr(ce.createObjectLiteralExpression(vi,Hr),Ie)}function jf(){var Ie=di();Jr(!1);var kr=Dr(),Hr=Me(),vi=Zc();ri(98);var Li=Ci(41),ot=Li?1:0,zt=e.some(vi,e.isAsyncModifier)?2:0,la=ot&&zt?ft(sf):ot?ei(sf):zt?Si(sf):sf(),ja=ns(),Oa=Dc(ot|zt),eo=uo(58,!1),$o=mn(ot|zt);Jr(Ie);var fo=ce.createFunctionExpression(vi,Li,la,ja,Oa,eo,$o);return n(Qr(fo,kr),Hr)}function sf(){return Ui()?Xa():void 0}function Kt(){var Ie=Dr();if(ri(103),St(24)){var kr=qr();return Qr(ce.createMetaProperty(103,kr),Ie)}for(var Hr=Dr(),vi=il(),Li;;){vi=c_(Hr,vi,!1),Li=ki(bl),Cu()&&(e.Debug.assert(!!Li,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),vi=Tc(Hr,vi,void 0,Li),Li=void 0);break}var ot;return v()===20?ot=du():Li&&Qe(Ie,_.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),Qr(ce.createNewExpression(vi,Li,ot),Ie)}function ts(Ie,kr){var Hr=Dr(),vi=Me(),Li=_.getTokenPos();if(ri(18,kr)||Ie){var ot=_.hasPrecedingLineBreak(),zt=Ht(1,Wn);if(!ri(19)){var la=e.lastOrUndefined(Ue);la&&la.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(la,e.createDetachedDiagnostic(m,Li,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var ja=n(Qr(ce.createBlock(zt,ot),Hr),vi);return v()===63&&(Ye(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),Je()),ja}else{var zt=so();return n(Qr(ce.createBlock(zt,void 0),Hr),vi)}}function mn(Ie,kr){var Hr=sr();Lr(!!(Ie&1));var vi=X();Rr(!!(Ie&2));var Li=ge;ge=!1;var ot=di();ot&&Jr(!1);var zt=ts(!!(Ie&16),kr);return ot&&Jr(!0),ge=Li,Lr(Hr),Rr(vi),zt}function Sl(){var Ie=Dr(),kr=Me();return ri(26),n(Qr(ce.createEmptyStatement(),Ie),kr)}function Ps(){var Ie=Dr(),kr=Me();ri(99),ri(20);var Hr=or(Vs);ri(21);var vi=Wn(),Li=St(91)?Wn():void 0;return n(Qr(ce.createIfStatement(Hr,vi,Li),Ie),kr)}function tl(){var Ie=Dr(),kr=Me();ri(90);var Hr=Wn();ri(115),ri(20);var vi=or(Vs);return ri(21),St(26),n(Qr(ce.createDoStatement(Hr,vi),Ie),kr)}function Ut(){var Ie=Dr(),kr=Me();ri(115),ri(20);var Hr=or(Vs);ri(21);var vi=Wn();return n(Qr(ce.createWhileStatement(Hr,vi),Ie),kr)}function Dp(){var Ie=Dr(),kr=Me();ri(97);var Hr=Ci(132);ri(20);var vi;v()!==26&&(v()===113||v()===119||v()===85?vi=Uc(!0):vi=Kr(Vs));var Li;if(Hr?ri(159):St(159)){var ot=or(Ma);ri(21),Li=ce.createForOfStatement(Hr,vi,ot,Wn())}else if(St(101)){var ot=or(Vs);ri(21),Li=ce.createForInStatement(vi,ot,Wn())}else{ri(26);var zt=v()!==26&&v()!==21?or(Vs):void 0;ri(26);var la=v()!==21?or(Vs):void 0;ri(21),Li=ce.createForStatement(vi,zt,la,Wn())}return n(Qr(Li,Ie),kr)}function cf(Ie){var kr=Dr(),Hr=Me();ri(Ie===245?81:86);var vi=Bt()?void 0:on();Oi();var Li=Ie===245?ce.createBreakStatement(vi):ce.createContinueStatement(vi);return n(Qr(Li,kr),Hr)}function ko(){var Ie=Dr(),kr=Me();ri(105);var Hr=Bt()?void 0:or(Vs);return Oi(),n(Qr(ce.createReturnStatement(Hr),Ie),kr)}function xc(){var Ie=Dr(),kr=Me();ri(116),ri(20);var Hr=or(Vs);ri(21);var vi=be(16777216,Wn);return n(Qr(ce.createWithStatement(Hr,vi),Ie),kr)}function ou(){var Ie=Dr();ri(82);var kr=or(Vs);ri(58);var Hr=Ht(3,Wn);return Qr(ce.createCaseClause(kr,Hr),Ie)}function uf(){var Ie=Dr();ri(88),ri(58);var kr=Ht(3,Wn);return Qr(ce.createDefaultClause(kr),Ie)}function bp(){return v()===82?ou():uf()}function ql(){var Ie=Dr();ri(18);var kr=Ht(2,bp);return ri(19),Qr(ce.createCaseBlock(kr),Ie)}function Fs(){var Ie=Dr(),kr=Me();ri(107),ri(20);var Hr=or(Vs);ri(21);var vi=ql();return n(Qr(ce.createSwitchStatement(Hr,vi),Ie),kr)}function J_(){var Ie=Dr(),kr=Me();ri(109);var Hr=_.hasPrecedingLineBreak()?void 0:or(Vs);return Hr===void 0&&(he++,Hr=Qr(ce.createIdentifier(""),Dr())),Pi()||Rt(Hr),n(Qr(ce.createThrowStatement(Hr),Ie),kr)}function su(){var Ie=Dr(),kr=Me();ri(111);var Hr=ts(!1),vi=v()===83?lf():void 0,Li;return(!vi||v()===96)&&(ri(96,e.Diagnostics.catch_or_finally_expected),Li=ts(!1)),n(Qr(ce.createTryStatement(Hr,vi,Li),Ie),kr)}function lf(){var Ie=Dr();ri(83);var kr;St(20)?(kr=ss(),ri(21)):kr=void 0;var Hr=ts(!1);return Qr(ce.createCatchClause(kr,Hr),Ie)}function ff(){var Ie=Dr(),kr=Me();return ri(87),Oi(),n(Qr(ce.createDebuggerStatement(),Ie),kr)}function _f(){var Ie=Dr(),kr=Me(),Hr,vi=v()===20,Li=or(Vs);return e.isIdentifier(Li)&&St(58)?Hr=ce.createLabeledStatement(Li,Wn()):(Pi()||Rt(Li),Hr=ce.createExpressionStatement(Li),vi&&(kr=!1)),n(Qr(Hr,Ie),kr)}function Vl(){return Je(),e.tokenIsIdentifierOrKeyword(v())&&!_.hasPrecedingLineBreak()}function j_(){return Je(),v()===84&&!_.hasPrecedingLineBreak()}function Uf(){return Je(),v()===98&&!_.hasPrecedingLineBreak()}function Sp(){return Je(),(e.tokenIsIdentifierOrKeyword(v())||v()===8||v()===9||v()===10)&&!_.hasPrecedingLineBreak()}function Tl(){for(;;)switch(v()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return Ju();case 141:case 142:return Tp();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(Je(),_.hasPrecedingLineBreak())return!1;continue;case 156:return Je(),v()===18||v()===79||v()===93;case 100:return Je(),v()===10||v()===41||v()===18||e.tokenIsIdentifierOrKeyword(v());case 93:var Ie=Je();if(Ie===151&&(Ie=hi(Je)),Ie===63||Ie===41||Ie===18||Ie===88||Ie===127)return!0;continue;case 124:Je();continue;default:return!1}}function Ns(){return hi(Tl)}function al(){switch(v()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Ns()||hi(Tt);case 85:case 93:return Ns();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return Ns()||!hi(Vl);default:return If()}}function U_(){return Je(),Ui()||v()===18||v()===22}function Kl(){return hi(U_)}function Wn(){switch(v()){case 26:return Sl();case 18:return ts(!1);case 113:return vu(Dr(),Me(),void 0,void 0);case 119:if(Kl())return vu(Dr(),Me(),void 0,void 0);break;case 98:return pf(Dr(),Me(),void 0,void 0);case 84:return f_(Dr(),Me(),void 0,void 0);case 99:return Ps();case 90:return tl();case 115:return Ut();case 97:return Dp();case 86:return cf(244);case 81:return cf(245);case 105:return ko();case 116:return xc();case 107:return Fs();case 109:return J_();case 111:case 83:case 96:return su();case 87:return ff();case 59:return Rs();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(Ns())return Rs();break}return _f()}function It(Ie){return Ie.kind===135}function Rs(){var Ie=e.some(hi(function(){return El(),Zc()}),It);if(Ie){var kr=u_();if(kr)return kr}var Hr=Dr(),vi=Me(),Li=El(),ot=Zc();if(Ie){for(var zt=0,la=ot;zt<la.length;zt++){var ja=la[zt];ja.flags|=8388608}return be(8388608,function(){return xs(Hr,vi,Li,ot)})}else return xs(Hr,vi,Li,ot)}function u_(){return be(8388608,function(){var Ie=an(we);if(Ie)return Ke(Ie)})}function xs(Ie,kr,Hr,vi){switch(v()){case 113:case 119:case 85:return vu(Ie,kr,Hr,vi);case 98:return pf(Ie,kr,Hr,vi);case 84:return f_(Ie,kr,Hr,vi);case 118:return ol(Ie,kr,Hr,vi);case 151:return q_(Ie,kr,Hr,vi);case 92:return Pd(Ie,kr,Hr,vi);case 156:case 141:case 142:return Nd(Ie,kr,Hr,vi);case 100:return Vf(Ie,kr,Hr,vi);case 93:switch(Je(),v()){case 88:case 63:return qs(Ie,kr,Hr,vi);case 127:return sc(Ie,kr,Hr,vi);default:return cc(Ie,kr,Hr,vi)}default:if(Hr||vi){var Li=Ct(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(Li,Ie),Li.decorators=Hr,Li.modifiers=vi,Li}return}}function Tp(){return Je(),!_.hasPrecedingLineBreak()&&(zi()||v()===10)}function mu(Ie,kr){if(v()!==18&&Bt()){Oi();return}return mn(Ie,kr)}function zf(){var Ie=Dr();if(v()===27)return Qr(ce.createOmittedExpression(),Ie);var kr=Ci(25),Hr=bs(),vi=Zu();return Qr(ce.createBindingElement(kr,void 0,Hr,vi),Ie)}function Uu(){var Ie=Dr(),kr=Ci(25),Hr=Ui(),vi=zn(),Li;Hr&&v()!==58?(Li=vi,vi=void 0):(ri(58),Li=bs());var ot=Zu();return Qr(ce.createBindingElement(kr,vi,Li,ot),Ie)}function $c(){var Ie=Dr();ri(18);var kr=Ta(9,Uu);return ri(19),Qr(ce.createObjectBindingPattern(kr),Ie)}function Wf(){var Ie=Dr();ri(22);var kr=Ta(10,zf);return ri(23),Qr(ce.createArrayBindingPattern(kr),Ie)}function Gl(){return v()===18||v()===22||v()===80||Ui()}function bs(Ie){return v()===22?Wf():v()===18?$c():Xa(Ie)}function zu(){return ss(!0)}function ss(Ie){var kr=Dr(),Hr=Me(),vi=bs(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),Li;Ie&&vi.kind===79&&v()===53&&!_.hasPrecedingLineBreak()&&(Li=gt());var ot=xu(),zt=M_(v())?void 0:Zu(),la=ce.createVariableDeclaration(vi,Li,ot,zt);return n(Qr(la,kr),Hr)}function Uc(Ie){var kr=Dr(),Hr=0;switch(v()){case 113:break;case 119:Hr|=1;break;case 85:Hr|=2;break;default:e.Debug.fail()}Je();var vi;if(v()===159&&hi(Ad))vi=so();else{var Li=Ji();Cr(Ie),vi=Ta(8,Ie?ss:zu),Cr(Li)}return Qr(ce.createVariableDeclarationList(vi,Hr),kr)}function Ad(){return wo()&&Je()===21}function vu(Ie,kr,Hr,vi){var Li=Uc(!1);Oi();var ot=ce.createVariableStatement(vi,Li);return ot.decorators=Hr,n(Qr(ot,Ie),kr)}function pf(Ie,kr,Hr,vi){var Li=X(),ot=e.modifiersToFlags(vi);ri(98);var zt=Ci(41),la=ot&512?sf():Xa(),ja=zt?1:0,Oa=ot&256?2:0,eo=ns();ot&1&&Rr(!0);var $o=Dc(ja|Oa),fo=uo(58,!1),es=mu(ja|Oa,e.Diagnostics.or_expected);Rr(Li);var Es=ce.createFunctionDeclaration(Hr,vi,zt,la,eo,$o,fo,es);return n(Qr(Es,Ie),kr)}function df(){if(v()===134)return ri(134);if(v()===10&&hi(Je)===20)return ki(function(){var Ie=Pa();return Ie.text==="constructor"?Ie:void 0})}function xp(Ie,kr,Hr,vi){return ki(function(){if(df()){var Li=ns(),ot=Dc(0),zt=uo(58,!1),la=mu(0,e.Diagnostics.or_expected),ja=ce.createConstructorDeclaration(Hr,vi,ot,la);return ja.typeParameters=Li,ja.type=zt,n(Qr(ja,Ie),kr)}})}function l_(Ie,kr,Hr,vi,Li,ot,zt,la,ja){var Oa=Li?1:0,eo=e.some(vi,e.isAsyncModifier)?2:0,$o=ns(),fo=Dc(Oa|eo),es=uo(58,!1),Es=mu(Oa|eo,ja),vc=ce.createMethodDeclaration(Hr,vi,Li,ot,zt,$o,fo,es,Es);return vc.exclamationToken=la,n(Qr(vc,Ie),kr)}function Ic(Ie,kr,Hr,vi,Li,ot){var zt=!ot&&!_.hasPrecedingLineBreak()?Ci(53):void 0,la=xu(),ja=ci(45056,Zu);ua(Li,la,ja);var Oa=ce.createPropertyDeclaration(Hr,vi,Li,ot||zt,la,ja);return n(Qr(Oa,Ie),kr)}function _s(Ie,kr,Hr,vi){var Li=Ci(41),ot=zn(),zt=Ci(57);return Li||v()===20||v()===29?l_(Ie,kr,Hr,vi,Li,ot,zt,void 0,e.Diagnostics.or_expected):Ic(Ie,kr,Hr,vi,ot,zt)}function xl(Ie,kr,Hr,vi,Li){var ot=zn(),zt=ns(),la=Dc(0),ja=uo(58,!1),Oa=mu(0),eo=Li===171?ce.createGetAccessorDeclaration(Hr,vi,ot,la,ja,Oa):ce.createSetAccessorDeclaration(Hr,vi,ot,la,Oa);return eo.typeParameters=zt,ja&&eo.kind===172&&(eo.type=ja),n(Qr(eo,Ie),kr)}function gf(){var Ie;if(v()===59)return!0;for(;e.isModifierKind(v());){if(Ie=v(),e.isClassMemberModifier(Ie))return!0;Je()}if(v()===41||(bn()&&(Ie=v(),Je()),v()===22))return!0;if(Ie!==void 0){if(!e.isKeyword(Ie)||Ie===148||Ie===136)return!0;switch(v()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Bt()}}return!1}function Hl(Ie,kr,Hr,vi){Yi(124);var Li=Xl();return n(Qr(ce.createClassStaticBlockDeclaration(Hr,vi,Li),Ie),kr)}function Xl(){var Ie=sr(),kr=X();Lr(!1),Rr(!0);var Hr=ts(!1);return Lr(Ie),Rr(kr),Hr}function Ep(){if(X()&&v()===132){var Ie=Dr(),kr=on(e.Diagnostics.Expression_expected);Je();var Hr=c_(Ie,kr,!0);return pu(Ie,Hr)}return Eu()}function z_(){var Ie=Dr();if(!!St(59)){var kr=li(Ep);return Qr(ce.createDecorator(kr),Ie)}}function El(){for(var Ie=Dr(),kr,Hr;Hr=z_();)kr=e.append(kr,Hr);return kr&&wi(kr,Ie)}function Cp(Ie,kr,Hr){var vi=Dr(),Li=v();if(v()===85&&Ie){if(!ki(go))return}else{if(kr&&v()===124&&hi(d_))return;if(Hr&&v()===124)return;if(!rn())return}return Qr(ce.createToken(Li),vi)}function Zc(Ie,kr){for(var Hr=Dr(),vi,Li,ot=!1;Li=Cp(Ie,kr,ot);)Li.kind===124&&(ot=!0),vi=e.append(vi,Li);return vi&&wi(vi,Hr)}function kp(){var Ie;if(v()===131){var kr=Dr();Je();var Hr=Qr(ce.createToken(131),kr);Ie=wi([Hr],kr)}return Ie}function mf(){var Ie=Dr();if(v()===26)return Je(),Qr(ce.createSemicolonClassElement(),Ie);var kr=Me(),Hr=El(),vi=Zc(!0,!0);if(v()===124&&hi(d_))return Hl(Ie,kr,Hr,vi);if(Cn(136))return xl(Ie,kr,Hr,vi,171);if(Cn(148))return xl(Ie,kr,Hr,vi,172);if(v()===134||v()===10){var Li=xp(Ie,kr,Hr,vi);if(Li)return Li}if(qa())return $u(Ie,kr,Hr,vi);if(e.tokenIsIdentifierOrKeyword(v())||v()===10||v()===8||v()===41||v()===22){var ot=e.some(vi,It);if(ot){for(var zt=0,la=vi;zt<la.length;zt++){var ja=la[zt];ja.flags|=8388608}return be(8388608,function(){return _s(Ie,kr,Hr,vi)})}else return _s(Ie,kr,Hr,vi)}if(Hr||vi){var Oa=Ct(79,!0,e.Diagnostics.Declaration_expected);return Ic(Ie,kr,Hr,vi,Oa,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function Ql(){return qf(Dr(),Me(),void 0,void 0,225)}function f_(Ie,kr,Hr,vi){return qf(Ie,kr,Hr,vi,256)}function qf(Ie,kr,Hr,vi,Li){var ot=X();ri(84);var zt=Cl(),la=ns();e.some(vi,e.isExportModifier)&&Rr(!0);var ja=nl(),Oa;ri(18)?(Oa=Yl(),ri(19)):Oa=so(),Rr(ot);var eo=Li===256?ce.createClassDeclaration(Hr,vi,zt,la,ja,Oa):ce.createClassExpression(Hr,vi,zt,la,ja,Oa);return n(Qr(eo,Ie),kr)}function Cl(){return Ui()&&!W_()?ta(Ui()):void 0}function W_(){return v()===117&&hi(xo)}function nl(){if(__())return Ht(22,Ga)}function Ga(){var Ie=Dr(),kr=v();e.Debug.assert(kr===94||kr===117),Je();var Hr=Ta(7,kl);return Qr(ce.createHeritageClause(kr,Hr),Ie)}function kl(){var Ie=Dr(),kr=Eu(),Hr=ht();return Qr(ce.createExpressionWithTypeArguments(kr,Hr),Ie)}function ht(){return v()===29?Ho(20,Ls,29,31):void 0}function __(){return v()===94||v()===117}function Yl(){return Ht(5,mf)}function ol(Ie,kr,Hr,vi){ri(118);var Li=on(),ot=ns(),zt=nl(),la=jt(),ja=ce.createInterfaceDeclaration(Hr,vi,Li,ot,zt,la);return n(Qr(ja,Ie),kr)}function q_(Ie,kr,Hr,vi){ri(151);var Li=on(),ot=ns();ri(63);var zt=v()===138&&ki(Sr)||Ls();Oi();var la=ce.createTypeAliasDeclaration(Hr,vi,Li,ot,zt);return n(Qr(la,Ie),kr)}function rd(){var Ie=Dr(),kr=Me(),Hr=zn(),vi=or(Zu);return n(Qr(ce.createEnumMember(Hr,vi),Ie),kr)}function Pd(Ie,kr,Hr,vi){ri(92);var Li=on(),ot;ri(18)?(ot=bt(function(){return Ta(6,rd)}),ri(19)):ot=so();var zt=ce.createEnumDeclaration(Hr,vi,Li,ot);return n(Qr(zt,Ie),kr)}function Al(){var Ie=Dr(),kr;return ri(18)?(kr=Ht(1,Wn),ri(19)):kr=so(),Qr(ce.createModuleBlock(kr),Ie)}function id(Ie,kr,Hr,vi,Li){var ot=Li&16,zt=on(),la=St(24)?id(Dr(),!1,void 0,void 0,4|ot):Al(),ja=ce.createModuleDeclaration(Hr,vi,zt,la,Li);return n(Qr(ja,Ie),kr)}function p_(Ie,kr,Hr,vi){var Li=0,ot;v()===156?(ot=on(),Li|=1024):(ot=Pa(),ot.text=tt(ot.text));var zt;v()===18?zt=Al():Oi();var la=ce.createModuleDeclaration(Hr,vi,ot,zt,Li);return n(Qr(la,Ie),kr)}function Nd(Ie,kr,Hr,vi){var Li=0;if(v()===156)return p_(Ie,kr,Hr,vi);if(St(142))Li|=16;else if(ri(141),v()===10)return p_(Ie,kr,Hr,vi);return id(Ie,kr,Hr,vi,Li)}function V_(){return v()===145&&hi(yu)}function yu(){return Je()===20}function d_(){return Je()===18}function sl(){return Je()===43}function sc(Ie,kr,Hr,vi){ri(127),ri(142);var Li=on();Oi();var ot=ce.createNamespaceExportDeclaration(Li);return ot.decorators=Hr,ot.modifiers=vi,n(Qr(ot,Ie),kr)}function Vf(Ie,kr,Hr,vi){ri(100);var Li=_.getStartPos(),ot;zi()&&(ot=on());var zt=!1;if(v()!==155&&(ot==null?void 0:ot.escapedText)==="type"&&(zi()||td())&&(zt=!0,ot=zi()?on():void 0),ot&&!eu())return b(Ie,kr,Hr,vi,ot,zt);var la;(ot||v()===41||v()===18)&&(la=rr(ot,Li,zt),ri(155));var ja=At(),Oa;v()===129&&!_.hasPrecedingLineBreak()&&(Oa=vf()),Oi();var eo=ce.createImportDeclaration(Hr,vi,la,ja,Oa);return n(Qr(eo,Ie),kr)}function ku(){var Ie=Dr(),kr=e.tokenIsIdentifierOrKeyword(v())?qr():De(10);ri(58);var Hr=Ma();return Qr(ce.createAssertEntry(kr,Hr),Ie)}function vf(){var Ie=Dr();ri(129);var kr=_.getTokenPos();if(ri(18)){var Hr=_.hasPrecedingLineBreak(),vi=Ta(24,ku,!0);if(!ri(19)){var Li=e.lastOrUndefined(Ue);Li&&Li.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Li,e.createDetachedDiagnostic(m,kr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Qr(ce.createAssertClause(vi,Hr),Ie)}else{var vi=wi([],Dr(),void 0,!1);return Qr(ce.createAssertClause(vi,!1),Ie)}}function td(){return v()===41||v()===18}function eu(){return v()===27||v()===155}function b(Ie,kr,Hr,vi,Li,ot){ri(63);var zt=ai();Oi();var la=ce.createImportEqualsDeclaration(Hr,vi,ot,Li,zt),ja=n(Qr(la,Ie),kr);return ja}function rr(Ie,kr,Hr){var vi;return(!Ie||St(27))&&(vi=v()===41?ra():La(268)),Qr(ce.createImportClause(Hr,Ie,vi),kr)}function ai(){return V_()?Wi():Ds(!1)}function Wi(){var Ie=Dr();ri(145),ri(20);var kr=At();return ri(21),Qr(ce.createExternalModuleReference(kr),Ie)}function At(){if(v()===10){var Ie=Pa();return Ie.text=tt(Ie.text),Ie}else return Vs()}function ra(){var Ie=Dr();ri(41),ri(127);var kr=on();return Qr(ce.createNamespaceImport(kr),Ie)}function La(Ie){var kr=Dr(),Hr=Ie===268?ce.createNamedImports(Ho(23,Bo,18,19)):ce.createNamedExports(Ho(23,fn,18,19));return Qr(Hr,kr)}function fn(){var Ie=Me();return n(Yo(274),Ie)}function Bo(){return Yo(269)}function Yo(Ie){var kr=Dr(),Hr=e.isKeyword(v())&&!zi(),vi=_.getTokenPos(),Li=_.getTextPos(),ot=!1,zt,la=!0,ja=qr();if(ja.escapedText==="type")if(v()===127){var Oa=qr();if(v()===127){var eo=qr();e.tokenIsIdentifierOrKeyword(v())?(ot=!0,zt=Oa,ja=fo(),la=!1):(zt=ja,ja=eo,la=!1)}else e.tokenIsIdentifierOrKeyword(v())?(zt=ja,la=!1,ja=fo()):(ot=!0,ja=Oa)}else e.tokenIsIdentifierOrKeyword(v())&&(ot=!0,ja=fo());la&&v()===127&&(zt=ja,ri(127),ja=fo()),Ie===269&&Hr&&Qe(vi,Li,e.Diagnostics.Identifier_expected);var $o=Ie===269?ce.createImportSpecifier(ot,zt,ja):ce.createExportSpecifier(ot,zt,ja);return Qr($o,kr);function fo(){return Hr=e.isKeyword(v())&&!zi(),vi=_.getTokenPos(),Li=_.getTextPos(),qr()}}function jo(Ie){return Qr(ce.createNamespaceExport(qr()),Ie)}function cc(Ie,kr,Hr,vi){var Li=X();Rr(!0);var ot,zt,la,ja=St(151),Oa=Dr();St(41)?(St(127)&&(ot=jo(Oa)),ri(155),zt=At()):(ot=La(272),(v()===155||v()===10&&!_.hasPrecedingLineBreak())&&(ri(155),zt=At())),zt&&v()===129&&!_.hasPrecedingLineBreak()&&(la=vf()),Oi(),Rr(Li);var eo=ce.createExportDeclaration(Hr,vi,ja,ot,zt,la);return n(Qr(eo,Ie),kr)}function qs(Ie,kr,Hr,vi){var Li=X();Rr(!0);var ot;St(63)?ot=!0:ri(88);var zt=Ma();Oi(),Rr(Li);var la=ce.createExportAssignment(Hr,vi,ot,zt);return n(Qr(la,Ie),kr)}function uc(Ie){Ie.externalModuleIndicator=e.forEach(Ie.statements,hu)||$l(Ie)}function hu(Ie){return Au(Ie,93)||e.isImportEqualsDeclaration(Ie)&&e.isExternalModuleReference(Ie.moduleReference)||e.isImportDeclaration(Ie)||e.isExportAssignment(Ie)||e.isExportDeclaration(Ie)?Ie:void 0}function $l(Ie){return Ie.flags&2097152?Qs(Ie):void 0}function Qs(Ie){return Id(Ie)?Ie:H(Ie,Qs)}function Au(Ie,kr){return e.some(Ie.modifiers,function(Hr){return Hr.kind===kr})}function Id(Ie){return e.isMetaProperty(Ie)&&Ie.keywordToken===100&&Ie.name.escapedText==="meta"}var K_;(function(Ie){Ie[Ie.SourceElements=0]="SourceElements",Ie[Ie.BlockStatements=1]="BlockStatements",Ie[Ie.SwitchClauses=2]="SwitchClauses",Ie[Ie.SwitchClauseStatements=3]="SwitchClauseStatements",Ie[Ie.TypeMembers=4]="TypeMembers",Ie[Ie.ClassMembers=5]="ClassMembers",Ie[Ie.EnumMembers=6]="EnumMembers",Ie[Ie.HeritageClauseElement=7]="HeritageClauseElement",Ie[Ie.VariableDeclarations=8]="VariableDeclarations",Ie[Ie.ObjectBindingElements=9]="ObjectBindingElements",Ie[Ie.ArrayBindingElements=10]="ArrayBindingElements",Ie[Ie.ArgumentExpressions=11]="ArgumentExpressions",Ie[Ie.ObjectLiteralMembers=12]="ObjectLiteralMembers",Ie[Ie.JsxAttributes=13]="JsxAttributes",Ie[Ie.JsxChildren=14]="JsxChildren",Ie[Ie.ArrayLiteralMembers=15]="ArrayLiteralMembers",Ie[Ie.Parameters=16]="Parameters",Ie[Ie.JSDocParameters=17]="JSDocParameters",Ie[Ie.RestProperties=18]="RestProperties",Ie[Ie.TypeParameters=19]="TypeParameters",Ie[Ie.TypeArguments=20]="TypeArguments",Ie[Ie.TupleElementTypes=21]="TupleElementTypes",Ie[Ie.HeritageClauses=22]="HeritageClauses",Ie[Ie.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Ie[Ie.AssertEntries=24]="AssertEntries",Ie[Ie.Count=25]="Count"})(K_||(K_={}));var Ec;(function(Ie){Ie[Ie.False=0]="False",Ie[Ie.True=1]="True",Ie[Ie.Unknown=2]="Unknown"})(Ec||(Ec={}));var Zl;(function(Ie){function kr(Oa,eo,$o){dr("file.js",Oa,99,void 0,1),_.setText(Oa,eo,$o),gr=_.scan();var fo=Hr(),es=Le("file.js",99,1,!1,[],ce.createToken(1),0),Es=e.attachFileToDiagnostics(Ue,es);return He&&(es.jsDocDiagnostics=e.attachFileToDiagnostics(He,es)),Br(),fo?{jsDocTypeExpression:fo,diagnostics:Es}:void 0}Ie.parseJSDocTypeExpressionForTests=kr;function Hr(Oa){var eo=Dr(),$o=(Oa?St:ri)(18),fo=be(4194304,is);(!Oa||$o)&&Vt(19);var es=ce.createJSDocTypeExpression(fo);return Ce(es),Qr(es,eo)}Ie.parseJSDocTypeExpression=Hr;function vi(){for(var Oa=Dr(),eo=St(18),$o=Dr(),fo=Ds(!1);v()===80;)Nr(),Oe(),fo=Qr(ce.createJSDocMemberName(fo,on()),$o);eo&&Vt(19);var es=ce.createJSDocNameReference(fo);return Ce(es),Qr(es,Oa)}Ie.parseJSDocNameReference=vi;function Li(Oa,eo,$o){dr("",Oa,99,void 0,1);var fo=be(4194304,function(){return ja(eo,$o)}),es={languageVariant:0,text:Oa},Es=e.attachFileToDiagnostics(Ue,es);return Br(),fo?{jsDoc:fo,diagnostics:Es}:void 0}Ie.parseIsolatedJSDocComment=Li;function ot(Oa,eo,$o){var fo=gr,es=Ue.length,Es=Fe,vc=be(4194304,function(){return ja(eo,$o)});return e.setParent(vc,Oa),Se&131072&&(He||(He=[]),He.push.apply(He,Ue)),gr=fo,Ue.length=es,Fe=Es,vc}Ie.parseJSDocComment=ot;var zt;(function(Oa){Oa[Oa.BeginningOfLine=0]="BeginningOfLine",Oa[Oa.SawAsterisk=1]="SawAsterisk",Oa[Oa.SavingComments=2]="SavingComments",Oa[Oa.SavingBackticks=3]="SavingBackticks"})(zt||(zt={}));var la;(function(Oa){Oa[Oa.Property=1]="Property",Oa[Oa.Parameter=2]="Parameter",Oa[Oa.CallbackParameter=4]="CallbackParameter"})(la||(la={}));function ja(Oa,eo){Oa===void 0&&(Oa=0);var $o=ae,fo=eo===void 0?$o.length:Oa+eo;if(eo=fo-Oa,e.Debug.assert(Oa>=0),e.Debug.assert(Oa<=fo),e.Debug.assert(fo<=$o.length),!S($o,Oa))return;var es,Es,vc,lc,cl,Is=[],yf=[];return _.scanRange(Oa+3,eo-5,function(){var _t=1,xa,ma=Oa-($o.lastIndexOf(`
|
|
`,Oa)+1)+4;function Va(cu){xa||(xa=ma),Is.push(cu),ma+=cu.length}for(Oe();y_(5););y_(4)&&(_t=0,ma=0);e:for(;;){switch(v()){case 59:_t===0||_t===1?(wc(Is),cl||(cl=Dr()),dt(Wu(ma)),_t=0,xa=void 0):Va(_.getTokenText());break;case 4:Is.push(_.getTokenText()),_t=0,ma=0;break;case 41:var dn=_.getTokenText();_t===1||_t===2?(_t=2,Va(dn)):(_t=1,ma+=dn.length);break;case 5:var Pn=_.getTokenText();_t===2?Is.push(Pn):xa!==void 0&&ma+Pn.length>xa&&Is.push(Pn.slice(xa-ma)),ma+=Pn.length;break;case 1:break e;case 18:_t=2;var cs=_.getStartPos(),yc=_.getTextPos()-1,Sc=tr(yc);if(Sc){lc||g_(Is),yf.push(Qr(ce.createJSDocText(Is.join("")),lc!=null?lc:Oa,cs)),yf.push(Sc),Is=[],lc=_.getTextPos();break}default:_t=2,Va(_.getTokenText());break}Oe()}wc(Is),yf.length&&Is.length&&yf.push(Qr(ce.createJSDocText(Is.join("")),lc!=null?lc:Oa,cl)),yf.length&&es&&e.Debug.assertIsDefined(cl,"having parsed tags implies that the end of the comment span should be set");var Oc=es&&wi(es,Es,vc);return Qr(ce.createJSDocComment(yf.length?wi(yf,Oa,cl):Is.length?Is.join(""):void 0,Oc),Oa,fo)});function g_(_t){for(;_t.length&&(_t[0]===`
|
|
`||_t[0]==="\r");)_t.shift()}function wc(_t){for(;_t.length&&_t[_t.length-1].trim()==="";)_t.pop()}function bc(){for(;;){if(Oe(),v()===1)return!0;if(!(v()===5||v()===4))return!1}}function ru(){if(!((v()===5||v()===4)&&hi(bc)))for(;v()===5||v()===4;)Oe()}function m_(){if((v()===5||v()===4)&&hi(bc))return"";for(var _t=_.hasPrecedingLineBreak(),xa=!1,ma="";_t&&v()===41||v()===5||v()===4;)ma+=_.getTokenText(),v()===4?(_t=!0,xa=!0,ma=""):v()===41&&(_t=!1),Oe();return xa?ma:""}function Wu(_t){e.Debug.assert(v()===59);var xa=_.getTokenPos();Oe();var ma=Kf(void 0),Va=m_(),dn;switch(ma.escapedText){case"author":dn=Dv(xa,ma,_t,Va);break;case"implements":dn=wd(xa,ma,_t,Va);break;case"augments":case"extends":dn=Jt(xa,ma,_t,Va);break;case"class":case"constructor":dn=bf(xa,ce.createJSDocClassTag,ma,_t,Va);break;case"public":dn=bf(xa,ce.createJSDocPublicTag,ma,_t,Va);break;case"private":dn=bf(xa,ce.createJSDocPrivateTag,ma,_t,Va);break;case"protected":dn=bf(xa,ce.createJSDocProtectedTag,ma,_t,Va);break;case"readonly":dn=bf(xa,ce.createJSDocReadonlyTag,ma,_t,Va);break;case"override":dn=bf(xa,ce.createJSDocOverrideTag,ma,_t,Va);break;case"deprecated":Er=!0,dn=bf(xa,ce.createJSDocDeprecatedTag,ma,_t,Va);break;case"this":dn=nd(xa,ma,_t,Va);break;case"enum":dn=Gd(xa,ma,_t,Va);break;case"arg":case"argument":case"param":return ad(xa,ma,2,_t);case"return":case"returns":dn=Ag(xa,ma,_t,Va);break;case"template":dn=bv(xa,ma,_t,Va);break;case"type":dn=v_(xa,ma,_t,Va);break;case"typedef":dn=Od(xa,ma,_t,Va);break;case"callback":dn=Em(xa,ma,_t,Va);break;case"see":dn=hv(xa,ma,_t,Va);break;default:dn=Zi(xa,ma,_t,Va);break}return dn}function d(_t,xa,ma,Va){return Va||(ma+=xa-_t),K(ma,Va.slice(ma))}function K(_t,xa){var ma=Dr(),Va=[],dn=[],Pn,cs=0,yc=!0,Sc;function Oc(Io){Sc||(Sc=_t),Va.push(Io),_t+=Io.length}xa!==void 0&&(xa!==""&&Oc(xa),cs=1);var cu=v();e:for(;;){switch(cu){case 4:cs=0,Va.push(_.getTokenText()),_t=0;break;case 59:if(cs===3||cs===2&&(!yc||hi(Ae))){Va.push(_.getTokenText());break}_.setTextPos(_.getTextPos()-1);case 1:break e;case 5:if(cs===2||cs===3)Oc(_.getTokenText());else{var Pl=_.getTokenText();Sc!==void 0&&_t+Pl.length>Sc&&Va.push(Pl.slice(Sc-_t)),_t+=Pl.length}break;case 18:cs=2;var G_=_.getStartPos(),Tf=_.getTextPos()-1,Xd=tr(Tf);Xd?(dn.push(Qr(ce.createJSDocText(Va.join("")),Pn!=null?Pn:ma,G_)),dn.push(Xd),Va=[],Pn=_.getTextPos()):Oc(_.getTokenText());break;case 61:cs===3?cs=2:cs=3,Oc(_.getTokenText());break;case 41:if(cs===0){cs=1,_t+=1;break}default:cs!==3&&(cs=2),Oc(_.getTokenText());break}yc=v()===5,cu=Oe()}if(g_(Va),wc(Va),dn.length)return Va.length&&dn.push(Qr(ce.createJSDocText(Va.join("")),Pn!=null?Pn:ma)),wi(dn,ma,_.getTextPos());if(Va.length)return Va.join("")}function Ae(){var _t=Oe();return _t===5||_t===4}function tr(_t){var xa=ki($r);if(!!xa){Oe(),ru();var ma=Dr(),Va=e.tokenIsIdentifierOrKeyword(v())?Ds(!0):void 0;if(Va)for(;v()===80;)Nr(),Oe(),Va=Qr(ce.createJSDocMemberName(Va,on()),ma);for(var dn=[];v()!==19&&v()!==4&&v()!==1;)dn.push(_.getTokenText()),Oe();var Pn=xa==="link"?ce.createJSDocLink:xa==="linkcode"?ce.createJSDocLinkCode:ce.createJSDocLinkPlain;return Qr(Pn(Va,dn.join("")),_t,_.getTextPos())}}function $r(){if(m_(),v()===18&&Oe()===59&&e.tokenIsIdentifierOrKeyword(Oe())){var _t=_.getTokenValue();if(_t==="link"||_t==="linkcode"||_t==="linkplain")return _t}}function Zi(_t,xa,ma,Va){return Qr(ce.createJSDocUnknownTag(xa,d(_t,Dr(),ma,Va)),_t)}function dt(_t){!_t||(es?es.push(_t):(es=[_t],Es=_t.pos),vc=_t.end)}function _n(){return m_(),v()===18?Hr():void 0}function Zo(){var _t=y_(22);_t&&ru();var xa=y_(61),ma=zc();return xa&&yt(61),_t&&(ru(),Ci(63)&&Vs(),ri(23)),{name:ma,isBracketed:_t}}function Bs(_t){switch(_t.kind){case 147:return!0;case 182:return Bs(_t.elementType);default:return e.isTypeReferenceNode(_t)&&e.isIdentifier(_t.typeName)&&_t.typeName.escapedText==="Object"&&!_t.typeArguments}}function ad(_t,xa,ma,Va){var dn=_n(),Pn=!dn;m_();var cs=Zo(),yc=cs.name,Sc=cs.isBracketed,Oc=m_();Pn&&!hi($r)&&(dn=_n());var cu=d(_t,Dr(),Va,Oc),Pl=ma!==4&&hf(dn,yc,ma,Va);Pl&&(dn=Pl,Pn=!0);var G_=ma===1?ce.createJSDocPropertyTag(xa,yc,Sc,dn,Pn,cu):ce.createJSDocParameterTag(xa,yc,Sc,dn,Pn,cu);return Qr(G_,_t)}function hf(_t,xa,ma,Va){if(_t&&Bs(_t.type)){for(var dn=Dr(),Pn=void 0,cs=void 0;Pn=ki(function(){return sd(ma,Va,xa)});)(Pn.kind===338||Pn.kind===345)&&(cs=e.append(cs,Pn));if(cs){var yc=Qr(ce.createJSDocTypeLiteral(cs,_t.type.kind===182),dn);return Qr(ce.createJSDocTypeExpression(yc),dn)}}}function Ag(_t,xa,ma,Va){e.some(es,e.isJSDocReturnTag)&&Qe(xa.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,xa.escapedText);var dn=_n();return Qr(ce.createJSDocReturnTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function v_(_t,xa,ma,Va){e.some(es,e.isJSDocTypeTag)&&Qe(xa.pos,_.getTokenPos(),e.Diagnostics._0_tag_already_specified,xa.escapedText);var dn=Hr(!0),Pn=ma!==void 0&&Va!==void 0?d(_t,Dr(),ma,Va):void 0;return Qr(ce.createJSDocTypeTag(xa,dn,Pn),_t)}function hv(_t,xa,ma,Va){var dn=v()===22||hi(function(){return Oe()===59&&e.tokenIsIdentifierOrKeyword(Oe())&&_.getTokenValue()==="link"}),Pn=dn?void 0:vi(),cs=ma!==void 0&&Va!==void 0?d(_t,Dr(),ma,Va):void 0;return Qr(ce.createJSDocSeeTag(xa,Pn,cs),_t)}function Dv(_t,xa,ma,Va){var dn=Dr(),Pn=Ap(),cs=_.getStartPos(),yc=d(_t,cs,ma,Va);yc||(cs=_.getStartPos());var Sc=typeof yc!="string"?wi(e.concatenate([Qr(Pn,dn,cs)],yc),dn):Pn.text+yc;return Qr(ce.createJSDocAuthorTag(xa,Sc),_t)}function Ap(){for(var _t=[],xa=!1,ma=_.getToken();ma!==1&&ma!==4;){if(ma===29)xa=!0;else{if(ma===59&&!xa)break;if(ma===31&&xa){_t.push(_.getTokenText()),_.setTextPos(_.getTokenPos()+1);break}}_t.push(_.getTokenText()),ma=Oe()}return ce.createJSDocText(_t.join(""))}function wd(_t,xa,ma,Va){var dn=Df();return Qr(ce.createJSDocImplementsTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Jt(_t,xa,ma,Va){var dn=Df();return Qr(ce.createJSDocAugmentsTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Df(){var _t=St(18),xa=Dr(),ma=qu(),Va=ht(),dn=ce.createExpressionWithTypeArguments(ma,Va),Pn=Qr(dn,xa);return _t&&ri(19),Pn}function qu(){for(var _t=Dr(),xa=Kf();St(24);){var ma=Kf();xa=Qr(ce.createPropertyAccessExpression(xa,ma),_t)}return xa}function bf(_t,xa,ma,Va,dn){return Qr(xa(ma,d(_t,Dr(),Va,dn)),_t)}function nd(_t,xa,ma,Va){var dn=Hr(!0);return ru(),Qr(ce.createJSDocThisTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Gd(_t,xa,ma,Va){var dn=Hr(!0);return ru(),Qr(ce.createJSDocEnumTag(xa,dn,d(_t,Dr(),ma,Va)),_t)}function Od(_t,xa,ma,Va){var dn,Pn=_n();m_();var cs=od();ru();var yc=K(ma),Sc;if(!Pn||Bs(Pn.type)){for(var Oc=void 0,cu=void 0,Pl=void 0,G_=!1;Oc=ki(function(){return Hd(ma)});)if(G_=!0,Oc.kind===341)if(cu){Ye(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var Tf=e.lastOrUndefined(Ue);Tf&&e.addRelatedInfo(Tf,e.createDetachedDiagnostic(m,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else cu=Oc;else Pl=e.append(Pl,Oc);if(G_){var Xd=Pn&&Pn.type.kind===182,Io=ce.createJSDocTypeLiteral(Pl,Xd);Pn=cu&&cu.typeExpression&&!Bs(cu.typeExpression.type)?cu.typeExpression:Qr(Io,_t),Sc=Pn.end}}Sc=Sc||yc!==void 0?Dr():((dn=cs!=null?cs:Pn)!==null&&dn!==void 0?dn:xa).end,yc||(yc=d(_t,Sc,ma,Va));var Qd=ce.createJSDocTypedefTag(xa,Pn,cs,yc);return Qr(Qd,_t,Sc)}function od(_t){var xa=_.getTokenPos();if(!!e.tokenIsIdentifierOrKeyword(v())){var ma=Kf();if(St(24)){var Va=od(!0),dn=ce.createModuleDeclaration(void 0,void 0,ma,Va,_t?4:void 0);return Qr(dn,xa)}return _t&&(ma.isInJSDocNamespace=!0),ma}}function Sf(_t){for(var xa=Dr(),ma,Va;ma=ki(function(){return sd(4,_t)});)Va=e.append(Va,ma);return wi(Va||[],xa)}function Em(_t,xa,ma,Va){var dn=od();ru();var Pn=K(ma),cs=Sf(ma),yc=ki(function(){if(y_(59)){var Oc=Wu(ma);if(Oc&&Oc.kind===339)return Oc}}),Sc=Qr(ce.createJSDocSignature(void 0,cs,yc),_t);return Pn||(Pn=d(_t,Dr(),ma,Va)),Qr(ce.createJSDocCallbackTag(xa,Sc,dn,Pn),_t)}function Pg(_t,xa){for(;!e.isIdentifier(_t)||!e.isIdentifier(xa);)if(!e.isIdentifier(_t)&&!e.isIdentifier(xa)&&_t.right.escapedText===xa.right.escapedText)_t=_t.left,xa=xa.left;else return!1;return _t.escapedText===xa.escapedText}function Hd(_t){return sd(1,_t)}function sd(_t,xa,ma){for(var Va=!0,dn=!1;;)switch(Oe()){case 59:if(Va){var Pn=Ng(_t,xa);return Pn&&(Pn.kind===338||Pn.kind===345)&&_t!==4&&ma&&(e.isIdentifier(Pn.name)||!Pg(ma,Pn.name.left))?!1:Pn}dn=!1;break;case 4:Va=!0,dn=!1;break;case 41:dn&&(Va=!1),dn=!0;break;case 79:Va=!1;break;case 1:return!1}}function Ng(_t,xa){e.Debug.assert(v()===59);var ma=_.getStartPos();Oe();var Va=Kf();ru();var dn;switch(Va.escapedText){case"type":return _t===1&&v_(ma,Va);case"prop":case"property":dn=1;break;case"arg":case"argument":case"param":dn=6;break;default:return!1}return _t&dn?ad(ma,Va,_t,xa):!1}function Fd(){var _t=Dr(),xa=y_(22);xa&&ru();var ma=Kf(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Va;if(xa&&(ru(),ri(63),Va=be(4194304,is),ri(23)),!e.nodeIsMissing(ma))return Qr(ce.createTypeParameterDeclaration(ma,void 0,Va),_t)}function ef(){var _t=Dr(),xa=[];do{ru();var ma=Fd();ma!==void 0&&xa.push(ma),m_()}while(y_(27));return wi(xa,_t)}function bv(_t,xa,ma,Va){var dn=v()===18?Hr():void 0,Pn=ef();return Qr(ce.createJSDocTemplateTag(xa,dn,Pn,d(_t,Dr(),ma,Va)),_t)}function y_(_t){return v()===_t?(Oe(),!0):!1}function zc(){var _t=Kf();for(St(22)&&ri(23);St(24);){var xa=Kf();St(22)&&ri(23),_t=Os(_t,xa)}return _t}function Kf(_t){if(!e.tokenIsIdentifierOrKeyword(v()))return Ct(79,!_t,_t||e.Diagnostics.Identifier_expected);he++;var xa=_.getTokenPos(),ma=_.getTextPos(),Va=v(),dn=tt(_.getTokenValue()),Pn=Qr(ce.createIdentifier(dn,void 0,Va),xa,ma);return Oe(),Pn}}})(Zl=l.JSDocParser||(l.JSDocParser={}))})(x||(x={}));var ie;(function(l){function _(ae,V,le,ke){if(ke=ke||e.Debug.shouldAssert(2),ce(ae,V,le,ke),e.textChangeRangeIsUnchanged(le))return ae;if(ae.statements.length===0)return x.parseSourceFile(ae.fileName,V,ae.languageVersion,void 0,!0,ae.scriptKind);var Ue=ae;e.Debug.assert(!Ue.hasBeenIncrementallyParsed),Ue.hasBeenIncrementallyParsed=!0,x.fixupParentReferences(Ue);var He=ae.text,ar=m(ae),gr=oe(ae,le);ce(ae,V,gr,ke),e.Debug.assert(gr.span.start<=le.span.start),e.Debug.assert(e.textSpanEnd(gr.span)===e.textSpanEnd(le.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(gr))===e.textSpanEnd(e.textChangeRangeNewSpan(le)));var me=e.textChangeRangeNewSpan(gr).length-gr.span.length;y(Ue,gr.span.start,e.textSpanEnd(gr.span),e.textSpanEnd(e.textChangeRangeNewSpan(gr)),me,He,V,ke);var Ge=x.parseSourceFile(ae.fileName,V,ae.languageVersion,ar,!0,ae.scriptKind);return Ge.commentDirectives=J(ae.commentDirectives,Ge.commentDirectives,gr.span.start,e.textSpanEnd(gr.span),me,He,V,ke),Ge.impliedNodeFormat=ae.impliedNodeFormat,Ge}l.updateSourceFile=_;function J(ae,V,le,ke,Ue,He,ar,gr){if(!ae)return V;for(var me,Ge=!1,er=0,he=ae;er<he.length;er++){var we=he[er],ye=we.range,Se=we.type;if(ye.end<le)me=e.append(me,we);else if(ye.pos>ke){Fe();var ge={range:{pos:ye.pos+Ue,end:ye.end+Ue},type:Se};me=e.append(me,ge),gr&&e.Debug.assert(He.substring(ye.pos,ye.end)===ar.substring(ge.range.pos,ge.range.end))}}return Fe(),me;function Fe(){Ge||(Ge=!0,me?V&&me.push.apply(me,V):me=V)}}function w(ae,V,le,ke,Ue,He){V?gr(ae):ar(ae);return;function ar(me){var Ge="";if(He&&j(me)&&(Ge=ke.substring(me.pos,me.end)),me._children&&(me._children=void 0),e.setTextRangePosEnd(me,me.pos+le,me.end+le),He&&j(me)&&e.Debug.assert(Ge===Ue.substring(me.pos,me.end)),H(me,ar,gr),e.hasJSDocNodes(me))for(var er=0,he=me.jsDoc;er<he.length;er++){var we=he[er];ar(we)}z(me,He)}function gr(me){me._children=void 0,e.setTextRangePosEnd(me,me.pos+le,me.end+le);for(var Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];ar(he)}}}function j(ae){switch(ae.kind){case 10:case 8:case 79:return!0}return!1}function U(ae,V,le,ke,Ue){e.Debug.assert(ae.end>=V,"Adjusting an element that was entirely before the change range"),e.Debug.assert(ae.pos<=le,"Adjusting an element that was entirely after the change range"),e.Debug.assert(ae.pos<=ae.end);var He=Math.min(ae.pos,ke),ar=ae.end>=le?ae.end+Ue:Math.min(ae.end,ke);e.Debug.assert(He<=ar),ae.parent&&(e.Debug.assertGreaterThanOrEqual(He,ae.parent.pos),e.Debug.assertLessThanOrEqual(ar,ae.parent.end)),e.setTextRangePosEnd(ae,He,ar)}function z(ae,V){if(V){var le=ae.pos,ke=function(gr){e.Debug.assert(gr.pos>=le),le=gr.end};if(e.hasJSDocNodes(ae))for(var Ue=0,He=ae.jsDoc;Ue<He.length;Ue++){var ar=He[Ue];ke(ar)}H(ae,ke),e.Debug.assert(le<=ae.end)}}function y(ae,V,le,ke,Ue,He,ar,gr){me(ae);return;function me(er){if(e.Debug.assert(er.pos<=er.end),er.pos>le){w(er,!1,Ue,He,ar,gr);return}var he=er.end;if(he>=V){if(er.intersectsChange=!0,er._children=void 0,U(er,V,le,ke,Ue),H(er,me,Ge),e.hasJSDocNodes(er))for(var we=0,ye=er.jsDoc;we<ye.length;we++){var Se=ye[we];me(Se)}z(er,gr);return}e.Debug.assert(he<V)}function Ge(er){if(e.Debug.assert(er.pos<=er.end),er.pos>le){w(er,!0,Ue,He,ar,gr);return}var he=er.end;if(he>=V){er.intersectsChange=!0,er._children=void 0,U(er,V,le,ke,Ue);for(var we=0,ye=er;we<ye.length;we++){var Se=ye[we];me(Se)}return}e.Debug.assert(he<V)}}function oe(ae,V){for(var le=1,ke=V.span.start,Ue=0;ke>0&&Ue<=le;Ue++){var He=ve(ae,ke);e.Debug.assert(He.pos<=ke);var ar=He.pos;ke=Math.max(0,ar-1)}var gr=e.createTextSpanFromBounds(ke,e.textSpanEnd(V.span)),me=V.newLength+(V.span.start-ke);return e.createTextChangeRange(gr,me)}function ve(ae,V){var le=ae,ke;if(H(ae,ar),ke){var Ue=He(ke);Ue.pos>le.pos&&(le=Ue)}return le;function He(gr){for(;;){var me=e.getLastChild(gr);if(me)gr=me;else return gr}}function ar(gr){if(!e.nodeIsMissing(gr))if(gr.pos<=V){if(gr.pos>=le.pos&&(le=gr),V<gr.end)return H(gr,ar),!0;e.Debug.assert(gr.end<=V),ke=gr}else return e.Debug.assert(gr.pos>V),!0}}function ce(ae,V,le,ke){var Ue=ae.text;if(le&&(e.Debug.assert(Ue.length-le.span.length+le.newLength===V.length),ke||e.Debug.shouldAssert(3))){var He=Ue.substr(0,le.span.start),ar=V.substr(0,le.span.start);e.Debug.assert(He===ar);var gr=Ue.substring(e.textSpanEnd(le.span),Ue.length),me=V.substring(e.textSpanEnd(e.textChangeRangeNewSpan(le)),V.length);e.Debug.assert(gr===me)}}function m(ae){var V=ae.statements,le=0;e.Debug.assert(le<V.length);var ke=V[le],Ue=-1;return{currentNode:function(ar){return ar!==Ue&&(ke&&ke.end===ar&&le<V.length-1&&(le++,ke=V[le]),(!ke||ke.pos!==ar)&&He(ar)),Ue=ar,e.Debug.assert(!ke||ke.pos===ar),ke}};function He(ar){V=void 0,le=-1,ke=void 0,H(ae,gr,me);return;function gr(Ge){return ar>=Ge.pos&&ar<Ge.end?(H(Ge,gr,me),!0):!1}function me(Ge){if(ar>=Ge.pos&&ar<Ge.end)for(var er=0;er<Ge.length;er++){var he=Ge[er];if(he){if(he.pos===ar)return V=Ge,le=er,ke=he,!0;if(he.pos<ar&&ar<he.end)return H(he,gr,me),!0}}return!1}}}l.createSyntaxCursor=m;var de;(function(ae){ae[ae.Value=-1]="Value"})(de||(de={}))})(ie||(ie={}));function _e(l){return e.fileExtensionIsOneOf(l,[".d.ts",".d.mts",".d.cts"])}e.isDeclarationFileName=_e;function Y(l,_){for(var J=[],w=0,j=e.getLeadingCommentRanges(_,0)||e.emptyArray;w<j.length;w++){var U=j[w],z=_.substring(U.pos,U.end);A(J,U,z)}l.pragmas=new e.Map;for(var y=0,oe=J;y<oe.length;y++){var ve=oe[y];if(l.pragmas.has(ve.name)){var ce=l.pragmas.get(ve.name);ce instanceof Array?ce.push(ve.args):l.pragmas.set(ve.name,[ce,ve.args]);continue}l.pragmas.set(ve.name,ve.args)}}e.processCommentPragmas=Y;function Z(l,_){l.checkJsDirective=void 0,l.referencedFiles=[],l.typeReferenceDirectives=[],l.libReferenceDirectives=[],l.amdDependencies=[],l.hasNoDefaultLib=!1,l.pragmas.forEach(function(J,w){switch(w){case"reference":{var j=l.referencedFiles,U=l.typeReferenceDirectives,z=l.libReferenceDirectives;e.forEach(e.toArray(J),function(ce){var m=ce.arguments,de=m.types,ae=m.lib,V=m.path;ce.arguments["no-default-lib"]?l.hasNoDefaultLib=!0:de?U.push({pos:de.pos,end:de.end,fileName:de.value}):ae?z.push({pos:ae.pos,end:ae.end,fileName:ae.value}):V?j.push({pos:V.pos,end:V.end,fileName:V.value}):_(ce.range.pos,ce.range.end-ce.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{l.amdDependencies=e.map(e.toArray(J),function(ce){return{name:ce.arguments.name,path:ce.arguments.path}});break}case"amd-module":{if(J instanceof Array)for(var y=0,oe=J;y<oe.length;y++){var ve=oe[y];l.moduleName&&_(ve.range.pos,ve.range.end-ve.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),l.moduleName=ve.arguments.name}else l.moduleName=J.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(J),function(ce){(!l.checkJsDirective||ce.range.pos>l.checkJsDirective.pos)&&(l.checkJsDirective={enabled:w==="ts-check",end:ce.range.end,pos:ce.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=Z;var k=new e.Map;function I(l){if(k.has(l))return k.get(l);var _=new RegExp("(\\s".concat(l,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return k.set(l,_),_}var ne=/^\/\/\/\s*<(\S+)\s.*?\/>/im,ee=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function A(l,_,J){var w=_.kind===2&&ne.exec(J);if(w){var j=w[1].toLowerCase(),U=e.commentPragmas[j];if(!U||!(U.kind&1))return;if(U.args){for(var z={},y=0,oe=U.args;y<oe.length;y++){var ve=oe[y],ce=I(ve.name),m=ce.exec(J);if(!m&&!ve.optional)return;if(m){var de=m[2]||m[3];if(ve.captureSpan){var ae=_.pos+m.index+m[1].length+1;z[ve.name]={value:de,pos:ae,end:ae+de.length}}else z[ve.name]=de}}l.push({name:j,args:{arguments:z,range:_}})}else l.push({name:j,args:{arguments:{},range:_}});return}var V=_.kind===2&&ee.exec(J);if(V)return f(l,_,2,V);if(_.kind===3)for(var le=/@(\S+)(\s+.*)?$/gim,ke=void 0;ke=le.exec(J);)f(l,_,4,ke)}function f(l,_,J,w){if(!!w){var j=w[1].toLowerCase(),U=e.commentPragmas[j];if(!(!U||!(U.kind&J))){var z=w[2],y=P(U,z);y!=="fail"&&l.push({name:j,args:{arguments:y,range:_}})}}}function P(l,_){if(!_)return{};if(!l.args)return{};for(var J=e.trimString(_).split(/\s+/),w={},j=0;j<l.args.length;j++){var U=l.args[j];if(!J[j]&&!U.optional)return"fail";if(U.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");w[U.name]=J[j]}return w}function D(l,_){return l.kind!==_.kind?!1:l.kind===79?l.escapedText===_.escapedText:l.kind===108?!0:l.name.escapedText===_.name.escapedText&&D(l.expression,_.expression)}e.tagNamesAreEquivalent=D})(Pe||(Pe={}));var Pe;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var a=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(a.entries(),function(We){var mr=We[0],Nr=We[1];return[""+Nr,mr]})));var O=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=O.map(function(We){return We[0]}),e.libMap=new e.Map(O),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:v},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:v},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0};var L=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0},{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:a,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=qe(qe([],e.commonOptionsWithBuild,!0),L,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(We){return!!We.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(We){return!!We.affectsSourceFile||!!We.affectsModuleResolution||!!We.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(We){return!!We.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(We){return e.hasProperty(We,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=qe(qe([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function W(We){var mr=new e.Map,Nr=new e.Map;return e.forEach(We,function(Ur){mr.set(Ur.name.toLowerCase(),Ur),Ur.shortName&&Nr.set(Ur.shortName,Ur.name)}),{optionsNameMap:mr,shortOptionNames:Nr}}e.createOptionNameMap=W;var N;function Q(){return N||(N=W(e.optionDeclarations))}e.getOptionsNameMap=Q;var pe={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:x};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function F(We){return We&&We.enableAutoDiscovery!==void 0&&We.enable===void 0?{enable:We.enableAutoDiscovery,include:We.include||[],exclude:We.exclude||[]}:We}e.convertEnableAutoDiscoveryToEnable=F;function g(We){return S(We,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=g;function S(We,mr){var Nr=e.arrayFrom(We.type.keys()).map(function(Ur){return"'".concat(Ur,"'")}).join(", ");return mr(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(We.name),Nr)}function H(We,mr,Nr){return Ji(We,e.trimString(mr||""),Nr)}e.parseCustomTypeOption=H;function se(We,mr,Nr){if(mr===void 0&&(mr=""),mr=e.trimString(mr),!e.startsWith(mr,"-")){if(mr==="")return[];var Ur=mr.split(",");switch(We.element.type){case"number":return e.mapDefined(Ur,function(si){return sr(We.element,parseInt(si),Nr)});case"string":return e.mapDefined(Ur,function(si){return sr(We.element,si||"",Nr)});default:return e.mapDefined(Ur,function(si){return H(We.element,si,Nr)})}}}e.parseListTypeOption=se;function p(We){return We.name}function C(We,mr,Nr,Ur){var si;if(!((si=mr.alternateMode)===null||si===void 0)&&si.getOptionsNameMap().optionsNameMap.has(We.toLowerCase()))return Nr(mr.alternateMode.diagnostic,We);var mi=e.getSpellingSuggestion(We,mr.optionDeclarations,p);return mi?Nr(mr.unknownDidYouMeanDiagnostic,Ur||We,mi.name):Nr(mr.unknownOptionDiagnostic,Ur||We)}function G(We,mr,Nr){var Ur={},si,mi=[],Ti=[];return hi(mr),{options:Ur,watchOptions:si,fileNames:mi,errors:Ti};function hi(Ui){for(var zi=0;zi<Ui.length;){var ri=Ui[zi];if(zi++,ri.charCodeAt(0)===64)ki(ri.slice(1));else if(ri.charCodeAt(0)===45){var Gi=ri.slice(ri.charCodeAt(1)===45?2:1),Rt=re(We.getOptionsNameMap,Gi,!0);if(Rt)zi=E(Ui,zi,We,Rt,Ur,Ti);else{var pa=re(_.getOptionsNameMap,Gi,!0);pa?zi=E(Ui,zi,_,pa,si||(si={}),Ti):Ti.push(C(Gi,We,e.createCompilerDiagnostic,ri))}}else mi.push(ri)}}function ki(Ui){var zi=A(Ui,Nr||function(pa){return e.sys.readFile(pa)});if(!e.isString(zi)){Ti.push(zi);return}for(var ri=[],Gi=0;;){for(;Gi<zi.length&&zi.charCodeAt(Gi)<=32;)Gi++;if(Gi>=zi.length)break;var Rt=Gi;if(zi.charCodeAt(Rt)===34){for(Gi++;Gi<zi.length&&zi.charCodeAt(Gi)!==34;)Gi++;Gi<zi.length?(ri.push(zi.substring(Rt+1,Gi)),Gi++):Ti.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Ui))}else{for(;zi.charCodeAt(Gi)>32;)Gi++;ri.push(zi.substring(Rt,Gi))}}hi(ri)}}e.parseCommandLineWorker=G;function E(We,mr,Nr,Ur,si,mi){if(Ur.isTSConfigOnly){var Ti=We[mr];Ti==="null"?(si[Ur.name]=void 0,mr++):Ur.type==="boolean"?Ti==="false"?(si[Ur.name]=sr(Ur,!1,mi),mr++):(Ti==="true"&&mr++,mi.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,Ur.name))):(mi.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,Ur.name)),Ti&&!e.startsWith(Ti,"-")&&mr++)}else if(!We[mr]&&Ur.type!=="boolean"&&mi.push(e.createCompilerDiagnostic(Nr.optionTypeMismatchDiagnostic,Ur.name,ae(Ur))),We[mr]!=="null")switch(Ur.type){case"number":si[Ur.name]=sr(Ur,parseInt(We[mr]),mi),mr++;break;case"boolean":var Ti=We[mr];si[Ur.name]=sr(Ur,Ti!=="false",mi),(Ti==="false"||Ti==="true")&&mr++;break;case"string":si[Ur.name]=sr(Ur,We[mr]||"",mi),mr++;break;case"list":var hi=se(Ur,We[mr],mi);si[Ur.name]=hi||[],hi&&mr++;break;default:si[Ur.name]=H(Ur,We[mr],mi),mr++;break}else si[Ur.name]=void 0,mr++;return mr}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:pe,getOptionsNameMap:Q,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function ue(We,mr){return G(e.compilerOptionsDidYouMeanDiagnostics,We,mr)}e.parseCommandLine=ue;function B(We,mr){return re(Q,We,mr)}e.getOptionFromName=B;function re(We,mr,Nr){Nr===void 0&&(Nr=!1),mr=mr.toLowerCase();var Ur=We(),si=Ur.optionsNameMap,mi=Ur.shortOptionNames;if(Nr){var Ti=mi.get(mr);Ti!==void 0&&(mr=Ti)}return si.get(mr)}var M;function x(){return M||(M=W(e.buildOpts))}var ie={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Q},_e={alternateMode:ie,getOptionsNameMap:x,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function Y(We){var mr=G(_e,We),Nr=mr.options,Ur=mr.watchOptions,si=mr.fileNames,mi=mr.errors,Ti=Nr;return si.length===0&&si.push("."),Ti.clean&&Ti.force&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),Ti.clean&&Ti.verbose&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),Ti.clean&&Ti.watch&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),Ti.watch&&Ti.dry&&mi.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:Ti,watchOptions:Ur,projects:si,errors:mi}}e.parseBuildCommand=Y;function Z(We){for(var mr=[],Nr=1;Nr<arguments.length;Nr++)mr[Nr-1]=arguments[Nr];var Ur=e.createCompilerDiagnostic.apply(void 0,arguments);return Ur.messageText}e.getDiagnosticText=Z;function k(We,mr,Nr,Ur,si,mi){var Ti=A(We,function(Ui){return Nr.readFile(Ui)});if(!e.isString(Ti)){Nr.onUnRecoverableConfigFileDiagnostic(Ti);return}var hi=e.parseJsonText(We,Ti),ki=Nr.getCurrentDirectory();return hi.path=e.toPath(We,ki,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames)),hi.resolvedPath=hi.path,hi.originalFileName=hi.fileName,cr(hi,Nr,e.getNormalizedAbsolutePath(e.getDirectoryPath(We),ki),mr,e.getNormalizedAbsolutePath(We,ki),void 0,mi,Ur,si)}e.getParsedCommandLineOfConfigFile=k;function I(We,mr){var Nr=A(We,mr);return e.isString(Nr)?ne(We,Nr):{config:{},error:Nr}}e.readConfigFile=I;function ne(We,mr){var Nr=e.parseJsonText(We,mr);return{config:ce(Nr,Nr.parseDiagnostics,!1,void 0),error:Nr.parseDiagnostics.length?Nr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=ne;function ee(We,mr){var Nr=A(We,mr);return e.isString(Nr)?e.parseJsonText(We,Nr):{fileName:We,parseDiagnostics:[Nr]}}e.readJsonConfigFile=ee;function A(We,mr){var Nr;try{Nr=mr(We)}catch(Ur){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,We,Ur.message)}return Nr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,We):Nr}e.tryReadFile=A;function f(We){return e.arrayToMap(We,p)}var P={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},D;function l(){return D||(D=W(e.optionsForWatch))}var _={getOptionsNameMap:l,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},J;function w(){return J||(J=f(e.optionDeclarations))}var j;function U(){return j||(j=f(e.optionsForWatch))}var z;function y(){return z||(z=f(e.typeAcquisitionDeclarations))}var oe;function ve(){return oe===void 0&&(oe={name:void 0,type:"object",elementOptions:f([{name:"compilerOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:U(),extraKeyDiagnostics:_},{name:"typingOptions",type:"object",elementOptions:y(),extraKeyDiagnostics:P},{name:"typeAcquisition",type:"object",elementOptions:y(),extraKeyDiagnostics:P},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),oe}function ce(We,mr,Nr,Ur){var si,mi=(si=We.statements[0])===null||si===void 0?void 0:si.expression,Ti=Nr?ve():void 0;if(mi&&mi.kind!==204){if(mr.push(e.createDiagnosticForNodeInSourceFile(We,mi,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(We.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(mi)){var hi=e.find(mi.elements,e.isObjectLiteralExpression);if(hi)return de(We,hi,mr,!0,Ti,Ur)}return{}}return de(We,mi,mr,!0,Ti,Ur)}function m(We,mr){var Nr;return de(We,(Nr=We.statements[0])===null||Nr===void 0?void 0:Nr.expression,mr,!0,void 0,void 0)}e.convertToObject=m;function de(We,mr,Nr,Ur,si,mi){if(!mr)return Ur?{}:void 0;return Ui(mr,si);function Ti(ri){return si&&si.elementOptions===ri}function hi(ri,Gi,Rt,pa){for(var xt=Ur?{}:void 0,ua=function(Hi){if(Hi.kind!==294)return Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi,e.Diagnostics.Property_assignment_expected)),"continue";Hi.questionToken&&Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),zi(Hi.name)||Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.name,e.Diagnostics.String_literal_with_double_quotes_expected));var Yi=e.isComputedNonLiteralName(Hi.name)?void 0:e.getTextOfPropertyName(Hi.name),yt=Yi&&e.unescapeLeadingUnderscores(Yi),gt=yt&&Gi?Gi.get(yt):void 0;yt&&Rt&&!gt&&(Gi?Nr.push(C(yt,Rt,function(Pi,Oi,wi){return e.createDiagnosticForNodeInSourceFile(We,Hi.name,Pi,Oi,wi)})):Nr.push(e.createDiagnosticForNodeInSourceFile(We,Hi.name,Rt.unknownOptionDiagnostic,yt)));var oa=Ui(Hi.initializer,gt);if(typeof yt<"u"&&(Ur&&(xt[yt]=oa),mi&&(pa||Ti(Gi)))){var Bt=V(gt,oa);pa?Bt&&mi.onSetValidOptionKeyValueInParent(pa,gt,oa):Ti(Gi)&&(Bt?mi.onSetValidOptionKeyValueInRoot(yt,Hi.name,oa,Hi.initializer):gt||mi.onSetUnknownOptionKeyValueInRoot(yt,Hi.name,oa,Hi.initializer))}},Vt=0,St=ri.properties;Vt<St.length;Vt++){var Ci=St[Vt];ua(Ci)}return xt}function ki(ri,Gi){if(!Ur){ri.forEach(function(Rt){return Ui(Rt,Gi)});return}return e.filter(ri.map(function(Rt){return Ui(Rt,Gi)}),function(Rt){return Rt!==void 0})}function Ui(ri,Gi){var Rt;switch(ri.kind){case 110:return yt(Gi&&Gi.type!=="boolean"),Yi(!0);case 95:return yt(Gi&&Gi.type!=="boolean"),Yi(!1);case 104:return yt(Gi&&Gi.name==="extends"),Yi(null);case 10:zi(ri)||Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.String_literal_with_double_quotes_expected)),yt(Gi&&e.isString(Gi.type)&&Gi.type!=="string");var pa=ri.text;if(Gi&&!e.isString(Gi.type)){var xt=Gi;xt.type.has(pa.toLowerCase())||(Nr.push(S(xt,function(gt,oa,Bt){return e.createDiagnosticForNodeInSourceFile(We,ri,gt,oa,Bt)})),Rt=!0)}return Yi(pa);case 8:return yt(Gi&&Gi.type!=="number"),Yi(Number(ri.text));case 218:if(ri.operator!==40||ri.operand.kind!==8)break;return yt(Gi&&Gi.type!=="number"),Yi(-Number(ri.operand.text));case 204:yt(Gi&&Gi.type!=="object");var ua=ri;if(Gi){var Vt=Gi,St=Vt.elementOptions,Ci=Vt.extraKeyDiagnostics,Hi=Vt.name;return Yi(hi(ua,St,Ci,Hi))}else return Yi(hi(ua,void 0,void 0,void 0));case 203:return yt(Gi&&Gi.type!=="list"),Yi(ki(ri.elements,Gi&&Gi.element))}Gi?yt(!0):Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Yi(gt){var oa;if(!Rt){var Bt=(oa=Gi==null?void 0:Gi.extraValidation)===null||oa===void 0?void 0:oa.call(Gi,gt);if(Bt){Nr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,qe([We,ri],Bt,!1)));return}}return gt}function yt(gt){gt&&(Nr.push(e.createDiagnosticForNodeInSourceFile(We,ri,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Gi.name,ae(Gi))),Rt=!0)}}function zi(ri){return e.isStringLiteral(ri)&&e.isStringDoubleQuoted(ri,We)}}e.convertToObjectWorker=de;function ae(We){return We.type==="list"?"Array":e.isString(We.type)?We.type:"string"}function V(We,mr){if(We){if(Ir(mr))return!0;if(We.type==="list")return e.isArray(mr);var Nr=e.isString(We.type)?We.type:"string";return typeof mr===Nr}return!1}function le(We,mr,Nr){var Ur,si,mi,Ti=e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),hi=e.map(e.filter(We.fileNames,!((si=(Ur=We.options.configFile)===null||Ur===void 0?void 0:Ur.configFileSpecs)===null||si===void 0)&&si.validatedIncludeSpecs?He(mr,We.options.configFile.configFileSpecs.validatedIncludeSpecs,We.options.configFile.configFileSpecs.validatedExcludeSpecs,Nr):e.returnTrue),function(ri){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(mr,Nr.getCurrentDirectory()),e.getNormalizedAbsolutePath(ri,Nr.getCurrentDirectory()),Ti)}),ki=me(We.options,{configFilePath:e.getNormalizedAbsolutePath(mr,Nr.getCurrentDirectory()),useCaseSensitiveFileNames:Nr.useCaseSensitiveFileNames}),Ui=We.watchOptions&&Ge(We.watchOptions),zi=Ve(Ve({compilerOptions:Ve(Ve({},ke(ki)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:Ui&&ke(Ui),references:e.map(We.projectReferences,function(ri){return Ve(Ve({},ri),{path:ri.originalPath?ri.originalPath:"",originalPath:void 0})}),files:e.length(hi)?hi:void 0},!((mi=We.options.configFile)===null||mi===void 0)&&mi.configFileSpecs?{include:Ue(We.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:We.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:We.compileOnSave?!0:void 0});return zi}e.convertToTSConfig=le;function ke(We){return Ve({},e.arrayFrom(We.entries()).reduce(function(mr,Nr){var Ur;return Ve(Ve({},mr),(Ur={},Ur[Nr[0]]=Nr[1],Ur))},{}))}function Ue(We){if(!!e.length(We)){if(e.length(We)!==1)return We;if(We[0]!=="**/*")return We}}function He(We,mr,Nr,Ur){if(!mr)return e.returnTrue;var si=e.getFileMatcherPatterns(We,Nr,mr,Ur.useCaseSensitiveFileNames,Ur.getCurrentDirectory()),mi=si.excludePattern&&e.getRegexFromPattern(si.excludePattern,Ur.useCaseSensitiveFileNames),Ti=si.includeFilePattern&&e.getRegexFromPattern(si.includeFilePattern,Ur.useCaseSensitiveFileNames);return Ti?mi?function(hi){return!(Ti.test(hi)&&!mi.test(hi))}:function(hi){return!Ti.test(hi)}:mi?function(hi){return mi.test(hi)}:e.returnTrue}function ar(We){if(!(We.type==="string"||We.type==="number"||We.type==="boolean"||We.type==="object"))return We.type==="list"?ar(We.element):We.type}function gr(We,mr){return e.forEachEntry(mr,function(Nr,Ur){if(Nr===We)return Ur})}function me(We,mr){return er(We,Q(),mr)}function Ge(We){return er(We,l())}function er(We,mr,Nr){var Ur=mr.optionsNameMap,si=new e.Map,mi=Nr&&e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames),Ti=function(ki){if(e.hasProperty(We,ki)){if(Ur.has(ki)&&(Ur.get(ki).category===e.Diagnostics.Command_line_Options||Ur.get(ki).category===e.Diagnostics.Output_Formatting))return"continue";var Ui=We[ki],zi=Ur.get(ki.toLowerCase());if(zi){var ri=ar(zi);ri?zi.type==="list"?si.set(ki,Ui.map(function(Gi){return gr(Gi,ri)})):si.set(ki,gr(Ui,ri)):Nr&&zi.isFilePath?si.set(ki,e.getRelativePathFromFile(Nr.configFilePath,e.getNormalizedAbsolutePath(Ui,e.getDirectoryPath(Nr.configFilePath)),mi)):si.set(ki,Ui)}}};for(var hi in We)Ti(hi);return si}function he(We,mr){var Nr=we(We);return si();function Ur(mi){return Array(mi+1).join(" ")}function si(){var mi=[],Ti=Ur(2);return L.forEach(function(hi){if(!!Nr.has(hi.name)){var ki=Nr.get(hi.name),Ui=Or(hi);ki!==Ui?mi.push("".concat(Ti).concat(hi.name,": ").concat(ki)):e.hasProperty(e.defaultInitCompilerOptions,hi.name)&&mi.push("".concat(Ti).concat(hi.name,": ").concat(Ui))}}),mi.join(mr)+mr}}e.getCompilerOptionsDiffValue=he;function we(We){var mr=e.extend(We,e.defaultInitCompilerOptions);return me(mr)}function ye(We,mr,Nr){var Ur=we(We);return Ti();function si(hi){return Array(hi+1).join(" ")}function mi(hi){var ki=hi.category,Ui=hi.name,zi=hi.isCommandLineOnly,ri=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!zi&&ki!==void 0&&(!ri.includes(ki)||Ur.has(Ui))}function Ti(){for(var hi=e.createMultiMap(),ki=0,Ui=e.optionDeclarations;ki<Ui.length;ki++){var zi=Ui[ki],ri=zi.category;mi(zi)&&hi.add(e.getLocaleSpecificMessage(ri),zi)}var Gi=0,Rt=0,pa=[];hi.forEach(function(oa,Bt){pa.length!==0&&pa.push({value:""}),pa.push({value:"/* ".concat(Bt," */")});for(var Pi=0,Oi=oa;Pi<Oi.length;Pi++){var wi=Oi[Pi],Qr=void 0;Ur.has(wi.name)?Qr='"'.concat(wi.name,'": ').concat(JSON.stringify(Ur.get(wi.name))).concat((Rt+=1)===Ur.size?"":","):Qr='// "'.concat(wi.name,'": ').concat(JSON.stringify(Or(wi)),","),pa.push({value:Qr,description:"/* ".concat(wi.description&&e.getLocaleSpecificMessage(wi.description)||wi.name," */")}),Gi=Math.max(Qr.length,Gi)}});var xt=si(2),ua=[];ua.push("{"),ua.push("".concat(xt,'"compilerOptions": {')),ua.push("".concat(xt).concat(xt,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),ua.push("");for(var Vt=0,St=pa;Vt<St.length;Vt++){var Ci=St[Vt],Hi=Ci.value,Yi=Ci.description,yt=Yi===void 0?"":Yi;ua.push(Hi&&"".concat(xt).concat(xt).concat(Hi).concat(yt&&si(Gi-Hi.length+2)+yt))}if(mr.length){ua.push("".concat(xt,"},")),ua.push("".concat(xt,'"files": ['));for(var gt=0;gt<mr.length;gt++)ua.push("".concat(xt).concat(xt).concat(JSON.stringify(mr[gt])).concat(gt===mr.length-1?"":","));ua.push("".concat(xt,"]"))}else ua.push("".concat(xt,"}"));return ua.push("}"),ua.join(Nr)+Nr}}e.generateTSConfig=ye;function Se(We,mr){var Nr={},Ur=Q().optionsNameMap;for(var si in We)e.hasProperty(We,si)&&(Nr[si]=ge(Ur.get(si.toLowerCase()),We[si],mr));return Nr.configFilePath&&(Nr.configFilePath=mr(Nr.configFilePath)),Nr}e.convertToOptionsWithAbsolutePaths=Se;function ge(We,mr,Nr){if(We&&!Ir(mr)){if(We.type==="list"){var Ur=mr;if(We.element.isFilePath&&Ur.length)return Ur.map(Nr)}else if(We.isFilePath)return Nr(mr)}return mr}function Fe(We,mr,Nr,Ur,si,mi,Ti,hi,ki){return Br(We,void 0,mr,Nr,Ur,ki,si,mi,Ti,hi)}e.parseJsonConfigFileContent=Fe;function cr(We,mr,Nr,Ur,si,mi,Ti,hi,ki){return Br(void 0,We,mr,Nr,Ur,ki,si,mi,Ti,hi)}e.parseJsonSourceFileConfigFileContent=cr;function ur(We,mr){mr&&Object.defineProperty(We,"configFile",{enumerable:!1,writable:!1,value:mr})}e.setConfigFileInOptions=ur;function Ir(We){return We==null}function dr(We,mr){return e.getDirectoryPath(e.getNormalizedAbsolutePath(We,mr))}function Br(We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui){si===void 0&&(si={}),hi===void 0&&(hi=[]),ki===void 0&&(ki=[]),e.Debug.assert(We===void 0&&mr!==void 0||We!==void 0&&mr===void 0);var zi=[],ri=Le(We,mr,Nr,Ur,Ti,hi,zi,Ui),Gi=ri.raw,Rt=e.extend(si,ri.options||{}),pa=mi&&ri.watchOptions?e.extend(mi,ri.watchOptions):ri.watchOptions||mi;Rt.configFilePath=Ti&&e.normalizeSlashes(Ti);var xt=Vt();mr&&(mr.configFileSpecs=xt),ur(Rt,mr);var ua=e.normalizePath(Ti?dr(Ti,Ur):Ur);return{options:Rt,watchOptions:pa,fileNames:St(ua),projectReferences:Ci(ua),typeAcquisition:ri.typeAcquisition||ei(),raw:Gi,errors:zi,wildcardDirectories:xe(xt,ua,Nr.useCaseSensitiveFileNames),compileOnSave:!!Gi.compileOnSave};function Vt(){var oa=yt("references",function(zn){return typeof zn=="object"},"object"),Bt=Hi(Yi("files"));if(Bt){var Pi=oa==="no-prop"||e.isArray(oa)&&oa.length===0,Oi=e.hasProperty(Gi,"extends");if(Bt.length===0&&Pi&&!Oi)if(mr){var wi=Ti||"tsconfig.json",Qr=e.Diagnostics.The_files_list_in_config_file_0_is_empty,Ct=e.firstDefined(e.getTsConfigPropArray(mr,"files"),function(zn){return zn.initializer}),tt=Ct?e.createDiagnosticForNodeInSourceFile(mr,Ct,Qr,wi):e.createCompilerDiagnostic(Qr,wi);zi.push(tt)}else gt(e.Diagnostics.The_files_list_in_config_file_0_is_empty,Ti||"tsconfig.json")}var ta=Hi(Yi("include")),Xa=Yi("exclude"),on=Hi(Xa);if(Xa==="no-prop"&&Gi.compilerOptions){var qr=Gi.compilerOptions.outDir,bn=Gi.compilerOptions.declarationDir;(qr||bn)&&(on=[qr,bn].filter(function(zn){return!!zn}))}Bt===void 0&&ta===void 0&&(ta=["**/*"]);var Rn,Sn;return ta&&(Rn=Me(ta,zi,!0,mr,"include")),on&&(Sn=Me(on,zi,!1,mr,"exclude")),{filesSpecs:Bt,includeSpecs:ta,excludeSpecs:on,validatedFilesSpec:e.filter(Bt,e.isString),validatedIncludeSpecs:Rn,validatedExcludeSpecs:Sn,pathPatterns:void 0}}function St(oa){var Bt=Be(xt,oa,Rt,Nr,ki);return Er(Bt,br(Gi),hi)&&zi.push(n(xt,Ti)),Bt}function Ci(oa){var Bt,Pi=yt("references",function(Ct){return typeof Ct=="object"},"object");if(e.isArray(Pi))for(var Oi=0,wi=Pi;Oi<wi.length;Oi++){var Qr=wi[Oi];typeof Qr.path!="string"?gt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Bt||(Bt=[])).push({path:e.getNormalizedAbsolutePath(Qr.path,oa),originalPath:Qr.path,prepend:Qr.prepend,circular:Qr.circular})}return Bt}function Hi(oa){return e.isArray(oa)?oa:void 0}function Yi(oa){return yt(oa,e.isString,"string")}function yt(oa,Bt,Pi){if(e.hasProperty(Gi,oa)&&!Ir(Gi[oa]))if(e.isArray(Gi[oa])){var Oi=Gi[oa];return!mr&&!e.every(Oi,Bt)&&zi.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,Pi)),Oi}else return gt(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,oa,"Array"),"not-array";return"no-prop"}function gt(oa,Bt,Pi){mr||zi.push(e.createCompilerDiagnostic(oa,Bt,Pi))}}function Tr(We){return We.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function n(We,mr){var Nr=We.includeSpecs,Ur=We.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,mr||"tsconfig.json",JSON.stringify(Nr||[]),JSON.stringify(Ur||[]))}function Er(We,mr,Nr){return We.length===0&&mr&&(!Nr||Nr.length===0)}function br(We){return!e.hasProperty(We,"files")&&!e.hasProperty(We,"references")}e.canJsonReportNoInputFiles=br;function Pr(We,mr,Nr,Ur,si){var mi=Ur.length;return Er(We,si)?Ur.push(n(Nr,mr)):e.filterMutate(Ur,function(Ti){return!Tr(Ti)}),mi!==Ur.length}e.updateErrorForNoInputFiles=Pr;function Ce(We){return!!We.options}function Le(We,mr,Nr,Ur,si,mi,Ti,hi){var ki;Ur=e.normalizeSlashes(Ur);var Ui=e.getNormalizedAbsolutePath(si||"",Ur);if(mi.indexOf(Ui)>=0)return Ti.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,qe(qe([],mi,!0),[Ui],!1).join(" -> "))),{raw:We||m(mr,Ti)};var zi=We?Xe(We,Nr,Ur,si,Ti):Cr(mr,Nr,Ur,si,Ti);if(!((ki=zi.options)===null||ki===void 0)&&ki.paths&&(zi.options.pathsBasePath=Ur),zi.extendedConfigPath){mi=mi.concat([Ui]);var ri=Jr(mr,zi.extendedConfigPath,Nr,mi,Ti,hi);if(ri&&Ce(ri)){var Gi=ri.raw,Rt=zi.raw,pa,xt=function(ua){!Rt[ua]&&Gi[ua]&&(Rt[ua]=e.map(Gi[ua],function(Vt){return e.isRootedDiskPath(Vt)?Vt:e.combinePaths(pa||(pa=e.convertToRelativePath(e.getDirectoryPath(zi.extendedConfigPath),Ur,e.createGetCanonicalFileName(Nr.useCaseSensitiveFileNames))),Vt)}))};xt("include"),xt("exclude"),xt("files"),Rt.compileOnSave===void 0&&(Rt.compileOnSave=Gi.compileOnSave),zi.options=e.assign({},ri.options,zi.options),zi.watchOptions=zi.watchOptions&&ri.watchOptions?e.assign({},ri.watchOptions,zi.watchOptions):zi.watchOptions||ri.watchOptions}}return zi}function Xe(We,mr,Nr,Ur,si){e.hasProperty(We,"excludes")&&si.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var mi=Kr(We.compilerOptions,Nr,si,Ur),Ti=li(We.typeAcquisition||We.typingOptions,Nr,si,Ur),hi=Si(We.watchOptions,Nr,si);We.compileOnSave=Rr(We,Nr,si);var ki;if(We.extends)if(!e.isString(We.extends))si.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var Ui=Ur?dr(Ur,Nr):Nr;ki=Lr(We.extends,mr,Ui,si,e.createCompilerDiagnostic)}return{raw:We,options:mi,watchOptions:hi,typeAcquisition:Ti,extendedConfigPath:ki}}function Cr(We,mr,Nr,Ur,si){var mi=or(Ur),Ti,hi,ki,Ui,zi,ri={onSetValidOptionKeyValueInParent:function(Rt,pa,xt){var ua;switch(Rt){case"compilerOptions":ua=mi;break;case"watchOptions":ua=ki||(ki={});break;case"typeAcquisition":ua=Ti||(Ti=ei(Ur));break;case"typingOptions":ua=hi||(hi=ei(Ur));break;default:e.Debug.fail("Unknown option")}ua[pa.name]=bt(pa,Nr,xt)},onSetValidOptionKeyValueInRoot:function(Rt,pa,xt,ua){switch(Rt){case"extends":var Vt=Ur?dr(Ur,Nr):Nr;Ui=Lr(xt,mr,Vt,si,function(St,Ci){return e.createDiagnosticForNodeInSourceFile(We,ua,St,Ci)});return}},onSetUnknownOptionKeyValueInRoot:function(Rt,pa,xt,ua){Rt==="excludes"&&si.push(e.createDiagnosticForNodeInSourceFile(We,pa,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(L,function(Vt){return Vt.name===Rt})&&(zi=e.append(zi,pa))}},Gi=ce(We,si,!0,ri);return Ti||(hi?Ti=hi.enableAutoDiscovery!==void 0?{enable:hi.enableAutoDiscovery,include:hi.include,exclude:hi.exclude}:hi:Ti=ei(Ur)),zi&&Gi&&Gi.compilerOptions===void 0&&si.push(e.createDiagnosticForNodeInSourceFile(We,zi[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(zi[0]))),{raw:Gi,options:mi,watchOptions:ki,typeAcquisition:Ti,extendedConfigPath:Ui}}function Lr(We,mr,Nr,Ur,si){if(We=e.normalizeSlashes(We),e.isRootedDiskPath(We)||e.startsWith(We,"./")||e.startsWith(We,"../")){var mi=e.getNormalizedAbsolutePath(We,Nr);if(!mr.fileExists(mi)&&!e.endsWith(mi,".json")&&(mi="".concat(mi,".json"),!mr.fileExists(mi))){Ur.push(si(e.Diagnostics.File_0_not_found,We));return}return mi}var Ti=e.nodeModuleNameResolver(We,e.combinePaths(Nr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},mr,void 0,void 0,!0);if(Ti.resolvedModule)return Ti.resolvedModule.resolvedFileName;Ur.push(si(e.Diagnostics.File_0_not_found,We))}function Jr(We,mr,Nr,Ur,si,mi){var Ti,hi=Nr.useCaseSensitiveFileNames?mr:e.toFileNameLowerCase(mr),ki,Ui,zi;if(mi&&(ki=mi.get(hi))?(Ui=ki.extendedResult,zi=ki.extendedConfig):(Ui=ee(mr,function(ri){return Nr.readFile(ri)}),Ui.parseDiagnostics.length||(zi=Le(void 0,Ui,Nr,e.getDirectoryPath(mr),e.getBaseFileName(mr),Ur,si,mi)),mi&&mi.set(hi,{extendedResult:Ui,extendedConfig:zi})),We&&(We.extendedSourceFiles=[Ui.fileName],Ui.extendedSourceFiles&&(Ti=We.extendedSourceFiles).push.apply(Ti,Ui.extendedSourceFiles)),Ui.parseDiagnostics.length){si.push.apply(si,Ui.parseDiagnostics);return}return zi}function Rr(We,mr,Nr){if(!e.hasProperty(We,e.compileOnSaveCommandLineOption.name))return!1;var Ur=ft(e.compileOnSaveCommandLineOption,We.compileOnSave,mr,Nr);return typeof Ur=="boolean"&&Ur}function ci(We,mr,Nr){var Ur=[],si=Kr(We,mr,Ur,Nr);return{options:si,errors:Ur}}e.convertCompilerOptionsFromJson=ci;function be(We,mr,Nr){var Ur=[],si=li(We,mr,Ur,Nr);return{options:si,errors:Ur}}e.convertTypeAcquisitionFromJson=be;function or(We){var mr=We&&e.getBaseFileName(We)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return mr}function Kr(We,mr,Nr,Ur){var si=or(Ur);return qi(w(),We,mr,si,e.compilerOptionsDidYouMeanDiagnostics,Nr),Ur&&(si.configFilePath=e.normalizeSlashes(Ur)),si}function ei(We){return{enable:!!We&&e.getBaseFileName(We)==="jsconfig.json",include:[],exclude:[]}}function li(We,mr,Nr,Ur){var si=ei(Ur),mi=F(We);return qi(y(),mi,mr,si,P,Nr),si}function Si(We,mr,Nr){return qi(U(),We,mr,void 0,_,Nr)}function qi(We,mr,Nr,Ur,si,mi){if(!!mr){for(var Ti in mr){var hi=We.get(Ti);hi?(Ur||(Ur={}))[hi.name]=ft(hi,mr[Ti],Nr,mi):mi.push(C(Ti,si,e.createCompilerDiagnostic))}return Ur}}function ft(We,mr,Nr,Ur){if(V(We,mr)){var si=We.type;if(si==="list"&&e.isArray(mr))return di(We,mr,Nr,Ur);if(!e.isString(si))return Ji(We,mr,Ur);var mi=sr(We,mr,Ur);return Ir(mi)?mi:aa(We,Nr,mi)}else Ur.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,We.name,ae(We)))}e.convertJsonOption=ft;function bt(We,mr,Nr){if(!Ir(Nr)){if(We.type==="list"){var Ur=We;return Ur.element.isFilePath||!e.isString(Ur.element.type)?e.filter(e.map(Nr,function(si){return bt(Ur.element,mr,si)}),function(si){return!!si}):Nr}else if(!e.isString(We.type))return We.type.get(e.isString(Nr)?Nr.toLowerCase():Nr);return aa(We,mr,Nr)}}function aa(We,mr,Nr){return We.isFilePath&&(Nr=e.getNormalizedAbsolutePath(Nr,mr),Nr===""&&(Nr=".")),Nr}function sr(We,mr,Nr){var Ur;if(!Ir(mr)){var si=(Ur=We.extraValidation)===null||Ur===void 0?void 0:Ur.call(We,mr);if(!si)return mr;Nr.push(e.createCompilerDiagnostic.apply(void 0,si))}}function Ji(We,mr,Nr){if(!Ir(mr)){var Ur=mr.toLowerCase(),si=We.type.get(Ur);if(si!==void 0)return sr(We,si,Nr);Nr.push(g(We))}}function di(We,mr,Nr,Ur){return e.filter(e.map(mr,function(si){return ft(We.element,si,Nr,Ur)}),function(si){return!!si})}var X=/(^|\/)\*\*\/?$/,Ye=/^[^*?]*(?=\/[^/]*[*?])/;function Be(We,mr,Nr,Ur,si){si===void 0&&(si=e.emptyArray),mr=e.normalizePath(mr);var mi=e.createGetCanonicalFileName(Ur.useCaseSensitiveFileNames),Ti=new e.Map,hi=new e.Map,ki=new e.Map,Ui=We.validatedFilesSpec,zi=We.validatedIncludeSpecs,ri=We.validatedExcludeSpecs,Gi=e.getSupportedExtensions(Nr,si),Rt=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Nr,Gi);if(Ui)for(var pa=0,xt=Ui;pa<xt.length;pa++){var ua=xt[pa],Vt=e.getNormalizedAbsolutePath(ua,mr);Ti.set(mi(Vt),Vt)}var St;if(zi&&zi.length>0)for(var Ci=function(oa){if(e.fileExtensionIs(oa,".json")){if(!St){var Bt=zi.filter(function(Ct){return e.endsWith(Ct,".json")}),Pi=e.map(e.getRegularExpressionsForWildcards(Bt,mr,"files"),function(Ct){return"^".concat(Ct,"$")});St=Pi?Pi.map(function(Ct){return e.getRegexFromPattern(Ct,Ur.useCaseSensitiveFileNames)}):e.emptyArray}var Oi=e.findIndex(St,function(Ct){return Ct.test(oa)});if(Oi!==-1){var wi=mi(oa);!Ti.has(wi)&&!ki.has(wi)&&ki.set(wi,oa)}return"continue"}if(Je(oa,Ti,hi,Gi,mi))return"continue";Oe(oa,hi,Gi,mi);var Qr=mi(oa);!Ti.has(Qr)&&!hi.has(Qr)&&hi.set(Qr,oa)},Hi=0,Yi=Ur.readDirectory(mr,e.flatten(Rt),ri,zi,void 0);Hi<Yi.length;Hi++){var Vt=Yi[Hi];Ci(Vt)}var yt=e.arrayFrom(Ti.values()),gt=e.arrayFrom(hi.values());return yt.concat(gt,e.arrayFrom(ki.values()))}e.getFileNamesFromConfigSpecs=Be;function Qe(We,mr,Nr,Ur,si){var mi=mr.validatedFilesSpec,Ti=mr.validatedIncludeSpecs,hi=mr.validatedExcludeSpecs;if(!e.length(Ti)||!e.length(hi))return!1;Nr=e.normalizePath(Nr);var ki=e.createGetCanonicalFileName(Ur);if(mi)for(var Ui=0,zi=mi;Ui<zi.length;Ui++){var ri=zi[Ui];if(ki(e.getNormalizedAbsolutePath(ri,Nr))===We)return!1}return Dr(We,hi,Ur,si,Nr)}e.isExcludedFile=Qe;function _r(We){var mr=e.startsWith(We,"**/")?0:We.indexOf("/**/");if(mr===-1)return!1;var Nr=e.endsWith(We,"/..")?We.length:We.lastIndexOf("/../");return Nr>mr}function hr(We,mr,Nr,Ur){return Dr(We,e.filter(mr,function(si){return!_r(si)}),Nr,Ur)}e.matchesExclude=hr;function Dr(We,mr,Nr,Ur,si){var mi=e.getRegularExpressionForWildcard(mr,e.combinePaths(e.normalizePath(Ur),si),"exclude"),Ti=mi&&e.getRegexFromPattern(mi,Nr);return Ti?Ti.test(We)?!0:!e.hasExtension(We)&&Ti.test(e.ensureTrailingDirectorySeparator(We)):!1}function Me(We,mr,Nr,Ur,si){return We.filter(function(Ti){if(!e.isString(Ti))return!1;var hi=v(Ti,Nr);return hi!==void 0&&mr.push(mi.apply(void 0,hi)),hi===void 0});function mi(Ti,hi){var ki=e.getTsConfigPropArrayElementValue(Ur,si,hi);return ki?e.createDiagnosticForNodeInSourceFile(Ur,ki,Ti,hi):e.createCompilerDiagnostic(Ti,hi)}}function v(We,mr){if(mr&&X.test(We))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,We];if(_r(We))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,We]}function xe(We,mr,Nr){var Ur=We.validatedIncludeSpecs,si=We.validatedExcludeSpecs,mi=e.getRegularExpressionForWildcard(si,mr,"exclude"),Ti=mi&&new RegExp(mi,Nr?"":"i"),hi={};if(Ur!==void 0){for(var ki=[],Ui=0,zi=Ur;Ui<zi.length;Ui++){var ri=zi[Ui],Gi=e.normalizePath(e.combinePaths(mr,ri));if(!(Ti&&Ti.test(Gi))){var Rt=ze(Gi,Nr);if(Rt){var pa=Rt.key,xt=Rt.flags,ua=hi[pa];(ua===void 0||ua<xt)&&(hi[pa]=xt,xt===1&&ki.push(pa))}}}for(var pa in hi)if(e.hasProperty(hi,pa))for(var Vt=0,St=ki;Vt<St.length;Vt++){var Ci=St[Vt];pa!==Ci&&e.containsPath(Ci,pa,mr,!Nr)&&delete hi[pa]}}return hi}function ze(We,mr){var Nr=Ye.exec(We);if(Nr){var Ur=We.indexOf("?"),si=We.indexOf("*"),mi=We.lastIndexOf(e.directorySeparator);return{key:mr?Nr[0]:e.toFileNameLowerCase(Nr[0]),flags:Ur!==-1&&Ur<mi||si!==-1&&si<mi?1:0}}if(e.isImplicitGlob(We.substring(We.lastIndexOf(e.directorySeparator)+1)))return{key:mr?We:e.toFileNameLowerCase(We),flags:1}}function Je(We,mr,Nr,Ur,si){var mi=e.forEach(Ur,function(zi){return e.fileExtensionIsOneOf(We,zi)?zi:void 0});if(!mi)return!1;for(var Ti=0,hi=mi;Ti<hi.length;Ti++){var ki=hi[Ti];if(e.fileExtensionIs(We,ki))return!1;var Ui=si(e.changeExtension(We,ki));if(mr.has(Ui)||Nr.has(Ui)){if(ki===".d.ts"&&(e.fileExtensionIs(We,".js")||e.fileExtensionIs(We,".jsx")))continue;return!0}}return!1}function Oe(We,mr,Nr,Ur){var si=e.forEach(Nr,function(ki){return e.fileExtensionIsOneOf(We,ki)?ki:void 0});if(!!si)for(var mi=si.length-1;mi>=0;mi--){var Ti=si[mi];if(e.fileExtensionIs(We,Ti))return;var hi=Ur(e.changeExtension(We,Ti));mr.delete(hi)}}function Fr(We){var mr={};for(var Nr in We)if(We.hasOwnProperty(Nr)){var Ur=B(Nr);Ur!==void 0&&(mr[Nr]=Xr(We[Nr],Ur))}return mr}e.convertCompilerOptionsForTelemetry=Fr;function Xr(We,mr){switch(mr.type){case"object":return"";case"string":return"";case"number":return typeof We=="number"?We:"";case"boolean":return typeof We=="boolean"?We:"";case"list":var Nr=mr.element;return e.isArray(We)?We.map(function(Ur){return Xr(Ur,Nr)}):"";default:return e.forEachEntry(mr.type,function(Ur,si){if(Ur===We)return si})}}function Or(We){switch(We.type){case"number":return 1;case"boolean":return!0;case"string":return We.isFilePath?"./":"";case"list":return[];case"object":return{};default:var mr=We.type.keys().next();return mr.done?e.Debug.fail("Expected 'option.type' to have entries."):mr.value}}})(Pe||(Pe={}));var Pe;(function(e){function a(Be){Be.trace(e.formatMessage.apply(void 0,arguments))}e.trace=a;function O(Be,Qe){return!!Be.traceResolution&&Qe.trace!==void 0}e.isTraceEnabled=O;function L(Be,Qe){var _r;if(Qe&&Be){var hr=Be.packageJsonContent;typeof hr.name=="string"&&typeof hr.version=="string"&&(_r={name:hr.name,subModuleName:Qe.path.slice(Be.packageDirectory.length+e.directorySeparator.length),version:hr.version})}return Qe&&{path:Qe.path,extension:Qe.ext,packageId:_r}}function W(Be){return L(void 0,Be)}function N(Be){if(Be)return e.Debug.assert(Be.packageId===void 0),{path:Be.path,ext:Be.extension}}var Q;(function(Be){Be[Be.TypeScript=0]="TypeScript",Be[Be.JavaScript=1]="JavaScript",Be[Be.Json=2]="Json",Be[Be.TSConfig=3]="TSConfig",Be[Be.DtsOnly=4]="DtsOnly"})(Q||(Q={}));function pe(Be){if(!!Be)return e.Debug.assert(e.extensionIsTS(Be.extension)),{fileName:Be.path,packageId:Be.packageId}}function F(Be,Qe,_r,hr){var Dr;return hr?((Dr=hr.failedLookupLocations).push.apply(Dr,_r),hr):{resolvedModule:Be&&{resolvedFileName:Be.path,originalPath:Be.originalPath===!0?void 0:Be.originalPath,extension:Be.extension,isExternalLibraryImport:Qe,packageId:Be.packageId},failedLookupLocations:_r}}function g(Be,Qe,_r,hr){if(!e.hasProperty(Be,Qe)){hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_does_not_have_a_0_field,Qe);return}var Dr=Be[Qe];if(typeof Dr!==_r||Dr===null){hr.traceEnabled&&a(hr.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,Qe,_r,Dr===null?"null":typeof Dr);return}return Dr}function S(Be,Qe,_r,hr){var Dr=g(Be,Qe,"string",hr);if(Dr!==void 0){if(!Dr){hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_had_a_falsy_0_field,Qe);return}var Me=e.normalizePath(e.combinePaths(_r,Dr));return hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,Qe,Dr,Me),Me}}function H(Be,Qe,_r){return S(Be,"typings",Qe,_r)||S(Be,"types",Qe,_r)}function se(Be,Qe,_r){return S(Be,"tsconfig",Qe,_r)}function p(Be,Qe,_r){return S(Be,"main",Qe,_r)}function C(Be,Qe){var _r=g(Be,"typesVersions","object",Qe);if(_r!==void 0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),_r}function G(Be,Qe){var _r=C(Be,Qe);if(_r!==void 0){if(Qe.traceEnabled)for(var hr in _r)e.hasProperty(_r,hr)&&!e.VersionRange.tryParse(hr)&&a(Qe.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,hr);var Dr=ue(_r);if(!Dr){Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Me=Dr.version,v=Dr.paths;if(typeof v!="object"){Qe.traceEnabled&&a(Qe.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Me,"']"),"object",typeof v);return}return Dr}}var E;function ue(Be){E||(E=new e.Version(e.version));for(var Qe in Be)if(!!e.hasProperty(Be,Qe)){var _r=e.VersionRange.tryParse(Qe);if(_r!==void 0&&_r.test(E))return{version:Qe,paths:Be[Qe]}}}e.getPackageJsonTypesVersionsPaths=ue;function B(Be,Qe){if(Be.typeRoots)return Be.typeRoots;var _r;if(Be.configFilePath?_r=e.getDirectoryPath(Be.configFilePath):Qe.getCurrentDirectory&&(_r=Qe.getCurrentDirectory()),_r!==void 0)return re(_r,Qe)}e.getEffectiveTypeRoots=B;function re(Be,Qe){if(!Qe.directoryExists)return[e.combinePaths(Be,M)];var _r;return e.forEachAncestorDirectory(e.normalizePath(Be),function(hr){var Dr=e.combinePaths(hr,M);Qe.directoryExists(Dr)&&(_r||(_r=[])).push(Dr)}),_r}var M=e.combinePaths("node_modules","@types");function x(Be,Qe,_r){var hr=typeof _r.useCaseSensitiveFileNames=="function"?_r.useCaseSensitiveFileNames():_r.useCaseSensitiveFileNames;return e.comparePaths(Be,Qe,!hr)===0}function ie(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr);Dr&&(_r=Dr.commandLine.options);var xe=Qe?e.getDirectoryPath(Qe):void 0,ze=xe?Me&&Me.getOrCreateCacheForDirectory(xe,Dr):void 0,Je=ze&&ze.get(Be,void 0);if(Je)return v&&(a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,Be,Qe),Dr&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Dr.sourceFile.fileName),a(hr,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,Be,xe),Ti(Je)),Je;var Oe=B(_r,hr);v&&(Qe===void 0?Oe===void 0?a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,Be):a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,Be,Oe):Oe===void 0?a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,Be,Qe):a(hr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,Be,Qe,Oe),Dr&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Dr.sourceFile.fileName));var Fr=[],Xr=_e(_r),Or={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:Fr,packageJsonInfoCache:Me,features:Xr,conditions:["node","require","types"]},We=hi(),mr=!0;We||(We=ki(),mr=!1);var Nr;if(We){var Ur=We.fileName,si=We.packageId,mi=_r.preserveSymlinks?Ur:ar(Ur,hr,v);Nr={primary:mr,resolvedFileName:mi,originalPath:x(Ur,mi,hr)?void 0:Ur,packageId:si,isExternalLibraryImport:me(Ur)}}return Je={resolvedTypeReferenceDirective:Nr,failedLookupLocations:Fr},ze==null||ze.set(Be,void 0,Je),v&&Ti(Je),Je;function Ti(Ui){var zi;!((zi=Ui.resolvedTypeReferenceDirective)===null||zi===void 0)&&zi.resolvedFileName?Ui.resolvedTypeReferenceDirective.packageId?a(hr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,Be,Ui.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Ui.resolvedTypeReferenceDirective.packageId),Ui.resolvedTypeReferenceDirective.primary):a(hr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,Be,Ui.resolvedTypeReferenceDirective.resolvedFileName,Ui.resolvedTypeReferenceDirective.primary):a(hr,e.Diagnostics.Type_reference_directive_0_was_not_resolved,Be)}function hi(){if(Oe&&Oe.length)return v&&a(hr,e.Diagnostics.Resolving_with_primary_search_path_0,Oe.join(", ")),e.firstDefined(Oe,function(Ui){var zi=e.combinePaths(Ui,Be),ri=e.getDirectoryPath(zi),Gi=e.directoryProbablyExists(ri,hr);return!Gi&&v&&a(hr,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ri),pe(cr(Q.DtsOnly,zi,!Gi,Or))});v&&a(hr,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ki(){var Ui=Qe&&e.getDirectoryPath(Qe);if(Ui!==void 0){v&&a(hr,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Ui);var zi;if(e.isExternalModuleNameRelative(Be)){var Gi=e.normalizePathAndParts(e.combinePaths(Ui,Be)).path;zi=gr(Q.DtsOnly,Gi,!1,Or,!0)}else{var ri=ci(Q.DtsOnly,Be,Ui,Or,void 0,void 0);zi=ri&&ri.value}return pe(zi)}else v&&a(hr,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=ie;function _e(Be){return e.getEmitModuleResolutionKind(Be)===e.ModuleResolutionKind.Node12?oe.Node12Default:e.getEmitModuleResolutionKind(Be)===e.ModuleResolutionKind.NodeNext?oe.NodeNextDefault:oe.None}function Y(Be,Qe,_r,hr,Dr){var Me={compilerOptions:_r,host:hr,traceEnabled:O(_r,hr),failedLookupLocations:[],packageJsonInfoCache:Dr==null?void 0:Dr.getPackageJsonInfoCache(),conditions:e.emptyArray,features:oe.None};return e.forEachAncestorDirectory(Qe,function(v){if(e.getBaseFileName(v)!=="node_modules"){var xe=e.combinePaths(v,"node_modules"),ze=e.combinePaths(xe,Be);return Br(ze,!1,Me)}})}e.resolvePackageNameToPackageJson=Y;function Z(Be,Qe){if(Be.types)return Be.types;var _r=[];if(Qe.directoryExists&&Qe.getDirectories){var hr=B(Be,Qe);if(hr)for(var Dr=0,Me=hr;Dr<Me.length;Dr++){var v=Me[Dr];if(Qe.directoryExists(v))for(var xe=0,ze=Qe.getDirectories(v);xe<ze.length;xe++){var Je=ze[xe],Oe=e.normalizePath(Je),Fr=e.combinePaths(v,Oe,"package.json"),Xr=Qe.fileExists(Fr)&&e.readJson(Fr,Qe).typings===null;if(!Xr){var Or=e.getBaseFileName(Oe);Or.charCodeAt(0)!==46&&_r.push(Or)}}}}return _r}e.getAutomaticTypeDirectiveNames=Z;function k(Be){var Qe=new e.Map,_r=new e.Map;return{getOwnMap:hr,redirectsMap:_r,getOrCreateMapOfCacheRedirects:v,clear:xe,setOwnOptions:Dr,setOwnMap:Me};function hr(){return Qe}function Dr(ze){Be=ze}function Me(ze){Qe=ze}function v(ze){if(!ze)return Qe;var Je=ze.sourceFile.path,Oe=_r.get(Je);return Oe||(Oe=!Be||e.optionsHaveModuleResolutionChanges(Be,ze.commandLine.options)?new e.Map:Qe,_r.set(Je,Oe)),Oe}function xe(){Qe.clear(),_r.clear()}}e.createCacheWithRedirects=k;function I(Be,Qe){var _r;return{getPackageJsonInfo:hr,setPackageJsonInfo:Dr,clear:Me,entries:v};function hr(xe){return _r==null?void 0:_r.get(e.toPath(xe,Be,Qe))}function Dr(xe,ze){(_r||(_r=new e.Map)).set(e.toPath(xe,Be,Qe),ze)}function Me(){_r=void 0}function v(){var xe=_r==null?void 0:_r.entries();return xe?e.arrayFrom(xe):[]}}function ne(Be,Qe,_r,hr){var Dr=Be.getOrCreateMapOfCacheRedirects(Qe),Me=Dr.get(_r);return Me||(Me=hr(),Dr.set(_r,Me)),Me}function ee(Be,Qe,_r){if(!!Be.configFile){if(Qe.redirectsMap.size===0)e.Debug.assert(!_r||_r.redirectsMap.size===0),e.Debug.assert(Qe.getOwnMap().size===0),e.Debug.assert(!_r||_r.getOwnMap().size===0),Qe.redirectsMap.set(Be.configFile.path,Qe.getOwnMap()),_r==null||_r.redirectsMap.set(Be.configFile.path,_r.getOwnMap());else{e.Debug.assert(!_r||_r.redirectsMap.size>0);var hr={sourceFile:Be.configFile,commandLine:{options:Be}};Qe.setOwnMap(Qe.getOrCreateMapOfCacheRedirects(hr)),_r==null||_r.setOwnMap(_r.getOrCreateMapOfCacheRedirects(hr))}Qe.setOwnOptions(Be),_r==null||_r.setOwnOptions(Be)}}function A(Be,Qe,_r){return{getOrCreateCacheForDirectory:Me,clear:hr,update:Dr};function hr(){_r.clear()}function Dr(v){ee(v,_r)}function Me(v,xe){var ze=e.toPath(v,Be,Qe);return ne(_r,xe,ze,function(){return f()})}}function f(){var Be=new e.Map,Qe=new e.Map,_r={get:function(Dr,Me){return Be.get(hr(Dr,Me))},set:function(Dr,Me,v){return Be.set(hr(Dr,Me),v),_r},delete:function(Dr,Me){return Be.delete(hr(Dr,Me)),_r},has:function(Dr,Me){return Be.has(hr(Dr,Me))},forEach:function(Dr){return Be.forEach(function(Me,v){var xe=Qe.get(v),ze=xe[0],Je=xe[1];return Dr(Me,ze,Je)})},size:function(){return Be.size}};return _r;function hr(Dr,Me){var v=Me===void 0?Dr:"".concat(Me,"|").concat(Dr);return Qe.set(v,[Dr,Me]),v}}e.createModeAwareCache=f;function P(Be,Qe,_r){e.Debug.assert(Qe.length===_r.length);for(var hr=f(),Dr=0;Dr<Qe.length;++Dr)hr.set(Qe[Dr],e.getModeForResolutionAtIndex(Be,Dr),_r[Dr]);return hr}e.zipToModeAwareCache=P;function D(Be,Qe,_r,hr,Dr){var Me=A(Be,Qe,hr||(hr=k(_r)));Dr||(Dr=k(_r));var v=I(Be,Qe);return Ve(Ve(Ve({},v),Me),{getOrCreateCacheForModuleName:Je,clear:xe,update:ze,getPackageJsonInfoCache:function(){return v}});function xe(){Me.clear(),Dr.clear(),v.clear()}function ze(Fr){ee(Fr,hr,Dr)}function Je(Fr,Xr,Or){return e.Debug.assert(!e.isExternalModuleNameRelative(Fr)),ne(Dr,Or,Xr===void 0?Fr:"".concat(Xr,"|").concat(Fr),Oe)}function Oe(){var Fr=new e.Map;return{get:Xr,set:Or};function Xr(mr){return Fr.get(e.toPath(mr,Be,Qe))}function Or(mr,Nr){var Ur=e.toPath(mr,Be,Qe);if(!Fr.has(Ur)){Fr.set(Ur,Nr);for(var si=Nr.resolvedModule&&(Nr.resolvedModule.originalPath||Nr.resolvedModule.resolvedFileName),mi=si&&We(Ur,si),Ti=Ur;Ti!==mi;){var hi=e.getDirectoryPath(Ti);if(hi===Ti||Fr.has(hi))break;Fr.set(hi,Nr),Ti=hi}}}function We(mr,Nr){for(var Ur=e.toPath(e.getDirectoryPath(Nr),Be,Qe),si=0,mi=Math.min(mr.length,Ur.length);si<mi&&mr.charCodeAt(si)===Ur.charCodeAt(si);)si++;if(si===mr.length&&(Ur.length===si||Ur[si]===e.directorySeparator))return mr;var Ti=e.getRootLength(mr);if(!(si<Ti)){var hi=mr.lastIndexOf(e.directorySeparator,si-1);if(hi!==-1)return mr.substr(0,Math.max(hi,Ti))}}}}e.createModuleResolutionCache=D;function l(Be,Qe,_r,hr,Dr){var Me=A(Be,Qe,Dr||(Dr=k(_r)));return hr||(hr=I(Be,Qe)),Ve(Ve(Ve({},hr),Me),{clear:v});function v(){Me.clear(),hr.clear()}}e.createTypeReferenceDirectiveResolutionCache=l;function _(Be,Qe,_r,hr){var Dr=e.getDirectoryPath(Qe),Me=_r&&_r.getOrCreateCacheForDirectory(Dr);if(!!Me)return Me.get(Be,hr)}e.resolveModuleNameFromCache=_;function J(Be,Qe,_r,hr,Dr,Me,v){var xe=O(_r,hr);Me&&(_r=Me.commandLine.options),xe&&(a(hr,e.Diagnostics.Resolving_module_0_from_1,Be,Qe),Me&&a(hr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Me.sourceFile.fileName));var ze=e.getDirectoryPath(Qe),Je=Dr&&Dr.getOrCreateCacheForDirectory(ze,Me),Oe=Je&&Je.get(Be,v);if(Oe)xe&&a(hr,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Be,ze);else{var Fr=_r.moduleResolution;if(Fr===void 0){switch(e.getEmitModuleKind(_r)){case e.ModuleKind.CommonJS:Fr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:Fr=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:Fr=e.ModuleResolutionKind.NodeNext;break;default:Fr=e.ModuleResolutionKind.Classic;break}xe&&a(hr,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[Fr])}else xe&&a(hr,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[Fr]);switch(e.perfLogger.logStartResolveModule(Be),Fr){case e.ModuleResolutionKind.Node12:Oe=ve(Be,Qe,_r,hr,Dr,Me,v);break;case e.ModuleResolutionKind.NodeNext:Oe=ce(Be,Qe,_r,hr,Dr,Me,v);break;case e.ModuleResolutionKind.NodeJs:Oe=Ue(Be,Qe,_r,hr,Dr,Me);break;case e.ModuleResolutionKind.Classic:Oe=di(Be,Qe,_r,hr,Dr,Me);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(Fr))}Oe&&Oe.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(Be,'" resolved to "').concat(Oe.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(Oe&&Oe.resolvedModule?""+Oe.resolvedModule.resolvedFileName:"null"),Je&&(Je.set(Be,v,Oe),e.isExternalModuleNameRelative(Be)||Dr.getOrCreateCacheForModuleName(Be,v,Me).set(ze,Oe))}return xe&&(Oe.resolvedModule?Oe.resolvedModule.packageId?a(hr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,Be,Oe.resolvedModule.resolvedFileName,e.packageIdToString(Oe.resolvedModule.packageId)):a(hr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,Be,Oe.resolvedModule.resolvedFileName):a(hr,e.Diagnostics.Module_name_0_was_not_resolved,Be)),Oe}e.resolveModuleName=J;function w(Be,Qe,_r,hr,Dr){var Me=j(Be,Qe,hr,Dr);return Me?Me.value:e.isExternalModuleNameRelative(Qe)?U(Be,Qe,_r,hr,Dr):z(Be,Qe,hr,Dr)}function j(Be,Qe,_r,hr){var Dr,Me=hr.compilerOptions,v=Me.baseUrl,xe=Me.paths,ze=Me.configFile;if(xe&&!e.pathIsRelative(Qe)){hr.traceEnabled&&(v&&a(hr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,v,Qe),a(hr.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,Qe));var Je=e.getPathsBasePath(hr.compilerOptions,hr.host),Oe=ze!=null&&ze.configFileSpecs?(Dr=ze.configFileSpecs).pathPatterns||(Dr.pathPatterns=e.tryParsePatterns(xe)):void 0;return li(Be,Qe,Je,xe,Oe,_r,!1,hr)}}function U(Be,Qe,_r,hr,Dr){if(!!Dr.compilerOptions.rootDirs){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,Qe);for(var Me=e.normalizePath(e.combinePaths(_r,Qe)),v,xe,ze=0,Je=Dr.compilerOptions.rootDirs;ze<Je.length;ze++){var Oe=Je[ze],Fr=e.normalizePath(Oe);e.endsWith(Fr,e.directorySeparator)||(Fr+=e.directorySeparator);var Xr=e.startsWith(Me,Fr)&&(xe===void 0||xe.length<Fr.length);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,Fr,Me,Xr),Xr&&(xe=Fr,v=Oe)}if(xe){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Me,xe);var Or=Me.substr(xe.length);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Or,xe,Me);var We=hr(Be,Me,!e.directoryProbablyExists(_r,Dr.host),Dr);if(We)return We;Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var mr=0,Nr=Dr.compilerOptions.rootDirs;mr<Nr.length;mr++){var Oe=Nr[mr];if(Oe!==v){var Ur=e.combinePaths(e.normalizePath(Oe),Or);Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Or,Oe,Ur);var si=e.getDirectoryPath(Ur),mi=hr(Be,Ur,!e.directoryProbablyExists(si,Dr.host),Dr);if(mi)return mi}}Dr.traceEnabled&&a(Dr.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function z(Be,Qe,_r,hr){var Dr=hr.compilerOptions.baseUrl;if(!!Dr){hr.traceEnabled&&a(hr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Dr,Qe);var Me=e.normalizePath(e.combinePaths(Dr,Qe));return hr.traceEnabled&&a(hr.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,Qe,Dr,Me),_r(Be,Me,!e.directoryProbablyExists(e.getDirectoryPath(Me),hr.host),hr)}}function y(Be,Qe,_r){var hr=ke(Be,Qe,_r),Dr=hr.resolvedModule,Me=hr.failedLookupLocations;if(!Dr)throw new Error("Could not resolve JS module '".concat(Be,"' starting at '").concat(Qe,"'. Looked in: ").concat(Me.join(", ")));return Dr.resolvedFileName}e.resolveJSModule=y;var oe;(function(Be){Be[Be.None=0]="None",Be[Be.Imports=2]="Imports",Be[Be.SelfName=4]="SelfName",Be[Be.Exports=8]="Exports",Be[Be.ExportsPatternTrailers=16]="ExportsPatternTrailers",Be[Be.AllFeatures=30]="AllFeatures",Be[Be.Node12Default=14]="Node12Default",Be[Be.NodeNextDefault=30]="NodeNextDefault",Be[Be.EsmMode=32]="EsmMode"})(oe||(oe={}));function ve(Be,Qe,_r,hr,Dr,Me,v){return m(oe.Node12Default,Be,Qe,_r,hr,Dr,Me,v)}function ce(Be,Qe,_r,hr,Dr,Me,v){return m(oe.NodeNextDefault,Be,Qe,_r,hr,Dr,Me,v)}function m(Be,Qe,_r,hr,Dr,Me,v,xe){var ze=e.getDirectoryPath(_r),Je=xe===e.ModuleKind.ESNext?oe.EsmMode:0;return He(Be|Je,Qe,ze,hr,Dr,Me,hr.resolveJsonModule?V:ae,v)}var de=[Q.JavaScript],ae=[Q.TypeScript,Q.JavaScript],V=qe(qe([],ae,!0),[Q.Json],!1),le=[Q.TSConfig];function ke(Be,Qe,_r){return He(oe.None,Be,Qe,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},_r,void 0,de,void 0)}function Ue(Be,Qe,_r,hr,Dr,Me,v){return He(oe.None,Be,e.getDirectoryPath(Qe),_r,hr,Dr,v?le:_r.resolveJsonModule?V:ae,Me)}e.nodeModuleNameResolver=Ue;function He(Be,Qe,_r,hr,Dr,Me,v,xe){var ze,Je,Oe=O(hr,Dr),Fr=[],Xr={compilerOptions:hr,host:Dr,traceEnabled:Oe,failedLookupLocations:Fr,packageJsonInfoCache:Me,features:Be,conditions:Be&oe.EsmMode?["node","import","types"]:["node","require","types"]},Or=e.forEach(v,function(mr){return We(mr)});return F((ze=Or==null?void 0:Or.value)===null||ze===void 0?void 0:ze.resolved,(Je=Or==null?void 0:Or.value)===null||Je===void 0?void 0:Je.isExternalLibraryImport,Fr,Xr.resultFromCache);function We(mr){var Nr=function(Gi,Rt,pa,xt){return gr(Gi,Rt,pa,xt,!0)},Ur=w(mr,Qe,_r,Nr,Xr);if(Ur)return Ye({resolved:Ur,isExternalLibraryImport:me(Ur.path)});if(e.isExternalModuleNameRelative(Qe)){var ki=e.normalizePathAndParts(e.combinePaths(_r,Qe)),Ui=ki.path,zi=ki.parts,ri=gr(mr,Ui,!1,Xr,!0);return ri&&Ye({resolved:ri,isExternalLibraryImport:e.contains(zi,"node_modules")})}else{var si;if(Be&oe.Imports&&e.startsWith(Qe,"#")&&(si=Cr(mr,Qe,_r,Xr,Me,xe)),!si&&Be&oe.SelfName&&(si=Le(mr,Qe,_r,Xr,Me,xe)),si||(Oe&&a(Dr,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,Qe,Q[mr]),si=ci(mr,Qe,_r,Xr,Me,xe)),!si)return;var mi=si.value;if(!hr.preserveSymlinks&&mi&&!mi.originalPath){var Ti=ar(mi.path,Dr,Oe),hi=x(Ti,mi.path,Dr)?void 0:mi.path;mi=Ve(Ve({},mi),{path:Ti,originalPath:hi})}return{value:mi&&{resolved:mi,isExternalLibraryImport:!0}}}}}function ar(Be,Qe,_r){if(!Qe.realpath)return Be;var hr=e.normalizePath(Qe.realpath(Be));return _r&&a(Qe,e.Diagnostics.Resolving_real_path_for_0_result_1,Be,hr),e.Debug.assert(Qe.fileExists(hr),"".concat(Be," linked to nonexistent file ").concat(hr)),hr}function gr(Be,Qe,_r,hr,Dr){if(hr.traceEnabled&&a(hr.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,Qe,Q[Be]),!e.hasTrailingDirectorySeparator(Qe)){if(!_r){var Me=e.getDirectoryPath(Qe);e.directoryProbablyExists(Me,hr.host)||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Me),_r=!0)}var v=we(Be,Qe,_r,hr);if(v){var xe=Dr?Ge(v.path):void 0,ze=xe?Br(xe,!1,hr):void 0;return L(ze,v)}}if(!_r){var Je=e.directoryProbablyExists(Qe,hr.host);Je||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Qe),_r=!0)}return cr(Be,Qe,_r,hr,Dr)}e.nodeModulesPathPart="/node_modules/";function me(Be){return e.stringContains(Be,e.nodeModulesPathPart)}e.pathContainsNodeModules=me;function Ge(Be){var Qe=e.normalizePath(Be),_r=Qe.lastIndexOf(e.nodeModulesPathPart);if(_r!==-1){var hr=_r+e.nodeModulesPathPart.length,Dr=er(Qe,hr);return Qe.charCodeAt(hr)===64&&(Dr=er(Qe,Dr)),Qe.slice(0,Dr)}}e.parseNodeModuleFromPath=Ge;function er(Be,Qe){var _r=Be.indexOf(e.directorySeparator,Qe+1);return _r===-1?Qe:_r}function he(Be,Qe,_r,hr){return W(we(Be,Qe,_r,hr))}function we(Be,Qe,_r,hr){if(Be===Q.Json||Be===Q.TSConfig){var Dr=e.tryRemoveExtension(Qe,".json"),Me=Dr?Qe.substring(Dr.length):"";return Dr===void 0&&Be===Q.Json?void 0:ge(Dr||Qe,Be,Me,_r,hr)}if(!(hr.features&oe.EsmMode)){var v=ge(Qe,Be,"",_r,hr);if(v)return v}return ye(Be,Qe,_r,hr)}function ye(Be,Qe,_r,hr){if(e.hasJSFileExtension(Qe)||e.fileExtensionIs(Qe,".json")&&hr.compilerOptions.resolveJsonModule){var Dr=e.removeFileExtension(Qe),Me=Qe.substring(Dr.length);return hr.traceEnabled&&a(hr.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,Qe,Me),ge(Dr,Be,Me,_r,hr)}}function Se(Be,Qe,_r,hr){if((Be===Q.TypeScript||Be===Q.DtsOnly)&&e.fileExtensionIsOneOf(Qe,[".d.ts",".d.cts",".d.mts"])){var Dr=Fe(Qe,_r,hr);return Dr!==void 0?{path:Qe,ext:e.forEach([".d.ts",".d.cts",".d.mts"],function(Me){return e.fileExtensionIs(Qe,Me)?Me:void 0})}:void 0}return ye(Be,Qe,_r,hr)}function ge(Be,Qe,_r,hr,Dr){if(!hr){var Me=e.getDirectoryPath(Be);Me&&(hr=!e.directoryProbablyExists(Me,Dr.host))}switch(Qe){case Q.DtsOnly:switch(_r){case".mjs":case".mts":case".d.mts":return v(".d.mts");case".cjs":case".cts":case".d.cts":return v(".d.cts");case".json":return Be+=".json",v(".d.ts");default:return v(".d.ts")}case Q.TypeScript:switch(_r){case".mjs":case".mts":case".d.mts":return v(".mts")||v(".d.mts");case".cjs":case".cts":case".d.cts":return v(".cts")||v(".d.cts");case".json":return Be+=".json",v(".d.ts");default:return v(".ts")||v(".tsx")||v(".d.ts")}case Q.JavaScript:switch(_r){case".mjs":case".mts":case".d.mts":return v(".mjs");case".cjs":case".cts":case".d.cts":return v(".cjs");case".json":return v(".json");default:return v(".js")||v(".jsx")}case Q.TSConfig:case Q.Json:return v(".json")}function v(xe){var ze=Fe(Be+xe,hr,Dr);return ze===void 0?void 0:{path:ze,ext:xe}}}function Fe(Be,Qe,_r){if(!Qe){if(_r.host.fileExists(Be))return _r.traceEnabled&&a(_r.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,Be),Be;_r.traceEnabled&&a(_r.host,e.Diagnostics.File_0_does_not_exist,Be)}_r.failedLookupLocations.push(Be)}function cr(Be,Qe,_r,hr,Dr){Dr===void 0&&(Dr=!0);var Me=Dr?Br(Qe,_r,hr):void 0,v=Me&&Me.packageJsonContent,xe=Me&&Me.versionPaths;return L(Me,Tr(Be,Qe,_r,hr,v,xe))}function ur(Be,Qe,_r,hr,Dr){if(!Dr&&Be.resolvedEntrypoints!==void 0)return Be.resolvedEntrypoints;var Me,v=Dr?Q.JavaScript:Q.TypeScript,xe=_e(Qe),ze={compilerOptions:Qe,host:_r,traceEnabled:O(Qe,_r),failedLookupLocations:[],packageJsonInfoCache:hr==null?void 0:hr.getPackageJsonInfoCache(),conditions:["node","require","types"],features:xe},Je=Tr(v,Be.packageDirectory,!1,ze,Be.packageJsonContent,Be.versionPaths);if(Me=e.append(Me,Je==null?void 0:Je.path),xe&oe.Exports&&Be.packageJsonContent.exports)for(var Oe=0,Fr=[["node","import","types"],["node","require","types"]];Oe<Fr.length;Oe++){var Xr=Fr[Oe],Or=Ve(Ve({},ze),{failedLookupLocations:[],conditions:Xr}),We=Ir(Be,Be.packageJsonContent.exports,Or,v);if(We)for(var mr=0,Nr=We;mr<Nr.length;mr++){var Ur=Nr[mr];Me=e.appendIfUnique(Me,Ur.path)}}return Be.resolvedEntrypoints=Me||!1}e.getEntrypointsFromPackageJsonInfo=ur;function Ir(Be,Qe,_r,hr){var Dr;if(e.isArray(Qe))for(var Me=0,v=Qe;Me<v.length;Me++){var xe=v[Me];Je(xe)}else if(typeof Qe=="object"&&Qe!==null&&Pr(Qe))for(var ze in Qe)Je(Qe[ze]);else Je(Qe);return Dr;function Je(Oe){var Fr,Xr;if(typeof Oe=="string"&&e.startsWith(Oe,"./")&&Oe.indexOf("*")===-1){var Or=e.getPathComponents(Oe).slice(2);if(Or.indexOf("..")>=0||Or.indexOf(".")>=0||Or.indexOf("node_modules")>=0)return!1;var We=e.combinePaths(Be.packageDirectory,Oe),mr=e.getNormalizedAbsolutePath(We,(Xr=(Fr=_r.host).getCurrentDirectory)===null||Xr===void 0?void 0:Xr.call(Fr)),Nr=Se(hr,mr,!1,_r);if(Nr)return Dr=e.appendIfUnique(Dr,Nr,function(hi,ki){return hi.path===ki.path}),!0}else if(Array.isArray(Oe))for(var Ur=0,si=Oe;Ur<si.length;Ur++){var mi=si[Ur],Ti=Je(mi);if(Ti)return!0}else if(typeof Oe=="object"&&Oe!==null)return e.forEach(e.getOwnKeys(Oe),function(hi){if(hi==="default"||e.contains(_r.conditions,hi)||Rr(_r.conditions,hi))return Je(Oe[hi]),!0})}}function dr(Be,Qe,_r,hr){var Dr={host:_r,compilerOptions:hr,traceEnabled:O(hr,_r),failedLookupLocations:[],packageJsonInfoCache:Qe,features:0,conditions:[]},Me=e.getPathComponents(Be);for(Me.pop();Me.length>0;){var v=Br(e.getPathFromPathComponents(Me),!1,Dr);if(v)return v;Me.pop()}}e.getPackageScopeForPath=dr;function Br(Be,Qe,_r){var hr,Dr,Me,v=_r.host,xe=_r.traceEnabled,ze=e.combinePaths(Be,"package.json");if(Qe){_r.failedLookupLocations.push(ze);return}var Je=(hr=_r.packageJsonInfoCache)===null||hr===void 0?void 0:hr.getPackageJsonInfo(ze);if(Je!==void 0){if(typeof Je!="boolean")return xe&&a(v,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,ze),Je;Je&&xe&&a(v,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,ze),_r.failedLookupLocations.push(ze);return}var Oe=e.directoryProbablyExists(Be,v);if(Oe&&v.fileExists(ze)){var Fr=e.readJson(ze,v);xe&&a(v,e.Diagnostics.Found_package_json_at_0,ze);var Xr=G(Fr,_r),Or={packageDirectory:Be,packageJsonContent:Fr,versionPaths:Xr,resolvedEntrypoints:void 0};return(Dr=_r.packageJsonInfoCache)===null||Dr===void 0||Dr.setPackageJsonInfo(ze,Or),Or}else Oe&&xe&&a(v,e.Diagnostics.File_0_does_not_exist,ze),(Me=_r.packageJsonInfoCache)===null||Me===void 0||Me.setPackageJsonInfo(ze,Oe),_r.failedLookupLocations.push(ze)}e.getPackageJsonInfo=Br;function Tr(Be,Qe,_r,hr,Dr,Me){var v;if(Dr)switch(Be){case Q.JavaScript:case Q.Json:v=p(Dr,Qe,hr);break;case Q.TypeScript:v=H(Dr,Qe,hr)||p(Dr,Qe,hr);break;case Q.DtsOnly:v=H(Dr,Qe,hr);break;case Q.TSConfig:v=se(Dr,Qe,hr);break;default:return e.Debug.assertNever(Be)}var xe=function(We,mr,Nr,Ur){var si=Fe(mr,Nr,Ur);if(si){var mi=n(We,si);if(mi)return W(mi);Ur.traceEnabled&&a(Ur.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,si)}var Ti=We===Q.DtsOnly?Q.TypeScript:We;return gr(Ti,mr,Nr,Ur,!1)},ze=v?!e.directoryProbablyExists(e.getDirectoryPath(v),hr.host):void 0,Je=_r||!e.directoryProbablyExists(Qe,hr.host),Oe=e.combinePaths(Qe,Be===Q.TSConfig?"tsconfig":"index");if(Me&&(!v||e.containsPath(Qe,v))){var Fr=e.getRelativePathFromDirectory(Qe,v||Oe,!1);hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Me.version,e.version,Fr);var Xr=li(Be,Fr,Qe,Me.paths,void 0,xe,ze||Je,hr);if(Xr)return N(Xr.value)}var Or=v&&N(xe(Be,v,ze,hr));if(Or)return Or;if(!(hr.features&oe.EsmMode))return we(Be,Oe,Je,hr)}function n(Be,Qe){var _r=e.tryGetExtensionFromPath(Qe);return _r!==void 0&&Er(Be,_r)?{path:Qe,ext:_r}:void 0}function Er(Be,Qe){switch(Be){case Q.JavaScript:return Qe===".js"||Qe===".jsx";case Q.TSConfig:case Q.Json:return Qe===".json";case Q.TypeScript:return Qe===".ts"||Qe===".tsx"||Qe===".d.ts";case Q.DtsOnly:return Qe===".d.ts"}}function br(Be){var Qe=Be.indexOf(e.directorySeparator);return Be[0]==="@"&&(Qe=Be.indexOf(e.directorySeparator,Qe+1)),Qe===-1?{packageName:Be,rest:""}:{packageName:Be.slice(0,Qe),rest:Be.slice(Qe+1)}}e.parsePackageName=br;function Pr(Be){return e.every(e.getOwnKeys(Be),function(Qe){return e.startsWith(Qe,".")})}e.allKeysStartWithDot=Pr;function Ce(Be){return!e.some(e.getOwnKeys(Be),function(Qe){return e.startsWith(Qe,".")})}function Le(Be,Qe,_r,hr,Dr,Me){var v,xe,ze=typeof hr.host.useCaseSensitiveFileNames=="function"?hr.host.useCaseSensitiveFileNames():hr.host.useCaseSensitiveFileNames,Je=e.toPath(e.combinePaths(_r,"dummy"),(xe=(v=hr.host).getCurrentDirectory)===null||xe===void 0?void 0:xe.call(v),e.createGetCanonicalFileName(ze===void 0?!0:ze)),Oe=dr(Je,hr.packageJsonInfoCache,hr.host,hr.compilerOptions);if(!(!Oe||!Oe.packageJsonContent.exports)&&typeof Oe.packageJsonContent.name=="string"){var Fr=e.getPathComponents(Qe),Xr=e.getPathComponents(Oe.packageJsonContent.name);if(!!e.every(Xr,function(We,mr){return Fr[mr]===We})){var Or=Fr.slice(Xr.length);return Xe(Oe,Be,e.length(Or)?".".concat(e.directorySeparator).concat(Or.join(e.directorySeparator)):".",hr,Dr,Me)}}}function Xe(Be,Qe,_r,hr,Dr,Me){if(!!Be.packageJsonContent.exports){if(_r==="."){var v=void 0;if(typeof Be.packageJsonContent.exports=="string"||Array.isArray(Be.packageJsonContent.exports)||typeof Be.packageJsonContent.exports=="object"&&Ce(Be.packageJsonContent.exports)?v=Be.packageJsonContent.exports:e.hasProperty(Be.packageJsonContent.exports,".")&&(v=Be.packageJsonContent.exports["."]),v){var xe=Jr(Qe,hr,Dr,Me,_r,Be,!1);return xe(v,"",!1)}}else if(Pr(Be.packageJsonContent.exports)){if(typeof Be.packageJsonContent.exports!="object")return hr.traceEnabled&&a(hr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,_r,Be.packageDirectory),Ye(void 0);var ze=Lr(Qe,hr,Dr,Me,_r,Be.packageJsonContent.exports,Be,!1);if(ze)return ze}return hr.traceEnabled&&a(hr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,_r,Be.packageDirectory),Ye(void 0)}}function Cr(Be,Qe,_r,hr,Dr,Me){var v,xe;if(Qe==="#"||e.startsWith(Qe,"#/"))return hr.traceEnabled&&a(hr.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,Qe),Ye(void 0);var ze=typeof hr.host.useCaseSensitiveFileNames=="function"?hr.host.useCaseSensitiveFileNames():hr.host.useCaseSensitiveFileNames,Je=e.toPath(e.combinePaths(_r,"dummy"),(xe=(v=hr.host).getCurrentDirectory)===null||xe===void 0?void 0:xe.call(v),e.createGetCanonicalFileName(ze===void 0?!0:ze)),Oe=dr(Je,hr.packageJsonInfoCache,hr.host,hr.compilerOptions);if(!Oe)return hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,Je),Ye(void 0);if(!Oe.packageJsonContent.imports)return hr.traceEnabled&&a(hr.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,Oe.packageDirectory),Ye(void 0);var Fr=Lr(Be,hr,Dr,Me,Qe,Oe.packageJsonContent.imports,Oe,!0);return Fr||(hr.traceEnabled&&a(hr.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,Qe,Oe.packageDirectory),Ye(void 0))}function Lr(Be,Qe,_r,hr,Dr,Me,v,xe){var ze=Jr(Be,Qe,_r,hr,Dr,v,xe);if(!e.endsWith(Dr,e.directorySeparator)&&Dr.indexOf("*")===-1&&e.hasProperty(Me,Dr)){var Je=Me[Dr];return ze(Je,"",!1)}for(var Oe=e.sort(e.filter(e.getOwnKeys(Me),function(Ur){return Ur.indexOf("*")!==-1||e.endsWith(Ur,"/")}),function(Ur,si){return Ur.length-si.length}),Fr=0,Xr=Oe;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(Qe.features&oe.ExportsPatternTrailers&&Nr(Or,Dr)){var Je=Me[Or],We=Or.indexOf("*"),mr=Dr.substring(Or.substring(0,We).length,Dr.length-(Or.length-1-We));return ze(Je,mr,!0)}else if(e.endsWith(Or,"*")&&e.startsWith(Dr,Or.substring(0,Or.length-1))){var Je=Me[Or],mr=Dr.substring(Or.length-1);return ze(Je,mr,!0)}else if(e.startsWith(Dr,Or)){var Je=Me[Or],mr=Dr.substring(Or.length);return ze(Je,mr,!1)}}function Nr(Ur,si){if(e.endsWith(Ur,"*"))return!1;var mi=Ur.indexOf("*");return mi===-1?!1:e.startsWith(si,Ur.substring(0,mi))&&e.endsWith(si,Ur.substring(mi+1))}}function Jr(Be,Qe,_r,hr,Dr,Me,v){return xe;function xe(ze,Je,Oe){var Fr,Xr;if(typeof ze=="string"){if(!Oe&&Je.length>0&&!e.endsWith(ze,"/"))return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);if(!e.startsWith(ze,"./")){if(v&&!e.startsWith(ze,"../")&&!e.startsWith(ze,"/")&&!e.isRootedDiskPath(ze)){var Or=Oe?ze.replace(/\*/g,Je):ze+Je,We=He(Qe.features,Or,Me.packageDirectory+"/",Qe.compilerOptions,Qe.host,_r,[Be],hr);return Ye(We.resolvedModule?{path:We.resolvedModule.resolvedFileName,extension:We.resolvedModule.extension,packageId:We.resolvedModule.packageId,originalPath:We.resolvedModule.originalPath}:void 0)}return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0)}var mr=e.pathIsRelative(ze)?e.getPathComponents(ze).slice(1):e.getPathComponents(ze),Nr=mr.slice(1);if(Nr.indexOf("..")>=0||Nr.indexOf(".")>=0||Nr.indexOf("node_modules")>=0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);var Ur=e.combinePaths(Me.packageDirectory,ze),si=e.getPathComponents(Je);if(si.indexOf("..")>=0||si.indexOf(".")>=0||si.indexOf("node_modules")>=0)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);var mi=e.getNormalizedAbsolutePath(Oe?Ur.replace(/\*/g,Je):Ur+Je,(Xr=(Fr=Qe.host).getCurrentDirectory)===null||Xr===void 0?void 0:Xr.call(Fr));return Ye(L(Me,Se(Be,mi,!1,Qe)))}else if(typeof ze=="object"&&ze!==null)if(Array.isArray(ze)){if(!e.length(ze))return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0);for(var zi=0,ri=ze;zi<ri.length;zi++){var Gi=ri[zi],We=xe(Gi,Je,Oe);if(We)return We}}else{for(var Ti=0,hi=e.getOwnKeys(ze);Ti<hi.length;Ti++){var ki=hi[Ti];if(ki==="default"||Qe.conditions.indexOf(ki)>=0||Rr(Qe.conditions,ki)){var Ui=ze[ki],We=xe(Ui,Je,Oe);if(We)return We}}return}else if(ze===null)return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Me.packageDirectory,Dr),Ye(void 0);return Qe.traceEnabled&&a(Qe.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Me.packageDirectory,Dr),Ye(void 0)}}function Rr(Be,Qe){if(Be.indexOf("types")===-1||!e.startsWith(Qe,"types@"))return!1;var _r=e.VersionRange.tryParse(Qe.substring(6));return _r?_r.test(e.version):!1}e.isApplicableVersionedTypesKey=Rr;function ci(Be,Qe,_r,hr,Dr,Me){return or(Be,Qe,_r,hr,!1,Dr,Me)}function be(Be,Qe,_r){return or(Q.DtsOnly,Be,Qe,_r,!0,void 0,void 0)}function or(Be,Qe,_r,hr,Dr,Me,v){var xe=Me&&Me.getOrCreateCacheForModuleName(Qe,hr.features===0?void 0:hr.features&oe.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,v);return e.forEachAncestorDirectory(e.normalizeSlashes(_r),function(ze){if(e.getBaseFileName(ze)!=="node_modules"){var Je=Ji(xe,Qe,ze,hr);return Je||Ye(Kr(Be,Qe,ze,hr,Dr,Me,v))}})}function Kr(Be,Qe,_r,hr,Dr,Me,v){var xe=e.combinePaths(_r,"node_modules"),ze=e.directoryProbablyExists(xe,hr.host);!ze&&hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,xe);var Je=Dr?void 0:ei(Be,Qe,xe,ze,hr,Me,v);if(Je)return Je;if(Be===Q.TypeScript||Be===Q.DtsOnly){var Oe=e.combinePaths(xe,"@types"),Fr=ze;return ze&&!e.directoryProbablyExists(Oe,hr.host)&&(hr.traceEnabled&&a(hr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Oe),Fr=!1),ei(Q.DtsOnly,qi(Qe,hr),Oe,Fr,hr,Me,v)}}function ei(Be,Qe,_r,hr,Dr,Me,v){var xe=e.normalizePath(e.combinePaths(_r,Qe)),ze=Br(xe,!hr,Dr);if(!(Dr.features&oe.Exports)&&ze){var Je=we(Be,xe,!hr,Dr);if(Je)return W(Je);var Oe=Tr(Be,xe,!hr,Dr,ze.packageJsonContent,ze.versionPaths);return L(ze,Oe)}var Fr=br(Qe),Xr=Fr.packageName,Or=Fr.rest,We=function(si,mi,Ti,hi){var ki;if(ze&&ze.packageJsonContent.exports&&hi.features&oe.Exports)return(ki=Xe(ze,si,e.combinePaths(".",Or),hi,Me,v))===null||ki===void 0?void 0:ki.value;var Ui=we(si,mi,Ti,hi)||Tr(si,mi,Ti,hi,ze&&ze.packageJsonContent,ze&&ze.versionPaths);return L(ze,Ui)};if(Or!==""){var mr=e.combinePaths(_r,Xr);if(ze=Br(mr,!hr,Dr),ze&&ze.versionPaths){Dr.traceEnabled&&a(Dr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,ze.versionPaths.version,e.version,Or);var Nr=hr&&e.directoryProbablyExists(mr,Dr.host),Ur=li(Be,Or,mr,ze.versionPaths.paths,void 0,We,!Nr,Dr);if(Ur)return Ur.value}}return We(Be,xe,!hr,Dr)}function li(Be,Qe,_r,hr,Dr,Me,v,xe){Dr||(Dr=e.tryParsePatterns(hr));var ze=e.matchPatternOrExact(Dr,Qe);if(ze){var Je=e.isString(ze)?void 0:e.matchedText(ze,Qe),Oe=e.isString(ze)?ze:e.patternText(ze);xe.traceEnabled&&a(xe.host,e.Diagnostics.Module_name_0_matched_pattern_1,Qe,Oe);var Fr=e.forEach(hr[Oe],function(Xr){var Or=Je?Xr.replace("*",Je):Xr,We=e.normalizePath(e.combinePaths(_r,Or));xe.traceEnabled&&a(xe.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,Xr,Or);var mr=e.tryGetExtensionFromPath(Xr);if(mr!==void 0){var Nr=Fe(We,v,xe);if(Nr!==void 0)return W({path:Nr,ext:mr})}return Me(Be,We,v||!e.directoryProbablyExists(e.getDirectoryPath(We),xe.host),xe)});return{value:Fr}}}var Si="__";function qi(Be,Qe){var _r=bt(Be);return Qe.traceEnabled&&_r!==Be&&a(Qe.host,e.Diagnostics.Scoped_package_detected_looking_in_0,_r),_r}function ft(Be){return"@types/".concat(bt(Be))}e.getTypesPackageName=ft;function bt(Be){if(e.startsWith(Be,"@")){var Qe=Be.replace(e.directorySeparator,Si);if(Qe!==Be)return Qe.slice(1)}return Be}e.mangleScopedPackageName=bt;function aa(Be){var Qe=e.removePrefix(Be,"@types/");return Qe!==Be?sr(Qe):Be}e.getPackageNameFromTypesPackageName=aa;function sr(Be){return e.stringContains(Be,Si)?"@"+Be.replace(Si,e.directorySeparator):Be}e.unmangleScopedPackageName=sr;function Ji(Be,Qe,_r,hr){var Dr=Be&&Be.get(_r);if(Dr)return hr.traceEnabled&&a(hr.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,Qe,_r),hr.resultFromCache=Dr,{value:Dr.resolvedModule&&{path:Dr.resolvedModule.resolvedFileName,originalPath:Dr.resolvedModule.originalPath||!0,extension:Dr.resolvedModule.extension,packageId:Dr.resolvedModule.packageId}}}function di(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr),xe=[],ze={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:xe,packageJsonInfoCache:Dr,features:oe.None,conditions:[]},Je=e.getDirectoryPath(Qe),Oe=Fr(Q.TypeScript)||Fr(Q.JavaScript);return F(Oe&&Oe.value,!1,xe,ze.resultFromCache);function Fr(Xr){var Or=w(Xr,Be,Je,he,ze);if(Or)return{value:Or};if(e.isExternalModuleNameRelative(Be)){var Nr=e.normalizePath(e.combinePaths(Je,Be));return Ye(he(Xr,Nr,!1,ze))}else{var We=Dr&&Dr.getOrCreateCacheForModuleName(Be,void 0,Me),mr=e.forEachAncestorDirectory(Je,function(Ur){var si=Ji(We,Be,Ur,ze);if(si)return si;var mi=e.normalizePath(e.combinePaths(Ur,Be));return Ye(he(Xr,mi,!1,ze))});if(mr)return mr;if(Xr===Q.TypeScript)return be(Be,Je,ze)}}}e.classicNameResolver=di;function X(Be,Qe,_r,hr,Dr,Me){var v=O(_r,hr);v&&a(hr,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,Qe,Be,Dr);var xe=[],ze={compilerOptions:_r,host:hr,traceEnabled:v,failedLookupLocations:xe,packageJsonInfoCache:Me,features:oe.None,conditions:[]},Je=Kr(Q.DtsOnly,Be,Dr,ze,!1,void 0,void 0);return F(Je,!0,xe,ze.resultFromCache)}e.loadModuleFromGlobalCache=X;function Ye(Be){return Be!==void 0?{value:Be}:void 0}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(E){E[E.NonInstantiated=0]="NonInstantiated",E[E.Instantiated=1]="Instantiated",E[E.ConstEnumOnly=2]="ConstEnumOnly"})(a=e.ModuleInstanceState||(e.ModuleInstanceState={}));function O(E,ue){return E.body&&!E.body.parent&&(e.setParent(E.body,E),e.setParentRecursive(E.body,!1)),E.body?L(E.body,ue):1}e.getModuleInstanceState=O;function L(E,ue){ue===void 0&&(ue=new e.Map);var B=e.getNodeId(E);if(ue.has(B))return ue.get(B)||0;ue.set(B,void 0);var re=W(E,ue);return ue.set(B,re),re}function W(E,ue){switch(E.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(E))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(E,1))return 0;break;case 271:var B=E;if(!B.moduleSpecifier&&B.exportClause&&B.exportClause.kind===272){for(var re=0,M=0,x=B.exportClause.elements;M<x.length;M++){var ie=x[M],_e=N(ie,ue);if(_e>re&&(re=_e),re===1)return re}return re}break;case 261:{var Y=0;return e.forEachChild(E,function(Z){var k=L(Z,ue);switch(k){case 0:return;case 2:Y=2;return;case 1:return Y=1,!0;default:e.Debug.assertNever(k)}}),Y}case 260:return O(E,ue);case 79:if(E.isInJSDocNamespace)return 0}return 1}function N(E,ue){for(var B=E.propertyName||E.name,re=E.parent;re;){if(e.isBlock(re)||e.isModuleBlock(re)||e.isSourceFile(re)){for(var M=re.statements,x=void 0,ie=0,_e=M;ie<_e.length;ie++){var Y=_e[ie];if(e.nodeHasName(Y,B)){Y.parent||(e.setParent(Y,re),e.setParentRecursive(Y,!1));var Z=L(Y,ue);if((x===void 0||Z>x)&&(x=Z),x===1)return x}}if(x!==void 0)return x}re=re.parent}return 1}var Q;(function(E){E[E.None=0]="None",E[E.IsContainer=1]="IsContainer",E[E.IsBlockScopedContainer=2]="IsBlockScopedContainer",E[E.IsControlFlowContainer=4]="IsControlFlowContainer",E[E.IsFunctionLike=8]="IsFunctionLike",E[E.IsFunctionExpression=16]="IsFunctionExpression",E[E.HasLocals=32]="HasLocals",E[E.IsInterface=64]="IsInterface",E[E.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(Q||(Q={}));function pe(E){return e.Debug.attachFlowNodeDebugInfo(E),E}var F=S();function g(E,ue){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+E.fileName),F(E,ue),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")}e.bindSourceFile=g;function S(){var E,ue,B,re,M,x,ie,_e,Y,Z,k,I,ne,ee,A,f,P,D,l,_,J,w,j=!1,U=0,z,y,oe={flags:1},ve={flags:1},ce=Oe();function m(De,zr,xi,et,je){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(De)||E,De,zr,xi,et,je)}function de(De,zr){E=De,ue=zr,B=e.getEmitScriptTarget(ue),w=ae(E,zr),y=new e.Set,U=0,z=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(oe),e.Debug.attachFlowNodeDebugInfo(ve),E.locals||(e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:E.path},!0),rn(E),e.tracing===null||e.tracing===void 0||e.tracing.pop(),E.symbolCount=U,E.classifiableNames=y,Pi()),E=void 0,ue=void 0,B=void 0,re=void 0,M=void 0,x=void 0,ie=void 0,_e=void 0,Y=void 0,Z=!1,k=void 0,I=void 0,ne=void 0,ee=void 0,A=void 0,f=void 0,P=void 0,l=void 0,_=!1,j=!1,J=0}return de;function ae(De,zr){return e.getStrictOptionValue(zr,"alwaysStrict")&&!De.isDeclarationFile?!0:!!De.externalModuleIndicator}function V(De,zr){return U++,new z(De,zr)}function le(De,zr,xi){De.flags|=xi,zr.symbol=De,De.declarations=e.appendIfUnique(De.declarations,zr),xi&1955&&!De.exports&&(De.exports=e.createSymbolTable()),xi&6240&&!De.members&&(De.members=e.createSymbolTable()),De.constEnumOnlyModule&&De.flags&304&&(De.constEnumOnlyModule=!1),xi&111551&&e.setValueDeclaration(De,zr)}function ke(De){if(De.kind===270)return De.isExportEquals?"export=":"default";var zr=e.getNameOfDeclaration(De);if(zr){if(e.isAmbientModule(De)){var xi=e.getTextOfIdentifierOrLiteral(zr);return e.isGlobalScopeAugmentation(De)?"__global":'"'.concat(xi,'"')}if(zr.kind===161){var et=zr.expression;if(e.isStringOrNumericLiteralLike(et))return e.escapeLeadingUnderscores(et.text);if(e.isSignedNumericLiteral(et))return e.tokenToString(et.operator)+et.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(zr)){var je=e.getContainingClass(De);if(!je)return;var ti=je.symbol;return e.getSymbolNameForPrivateIdentifier(ti,zr.escapedText)}return e.isPropertyNameLiteral(zr)?e.getEscapedTextOfIdentifierOrLiteral(zr):void 0}switch(De.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(e.getAssignmentDeclarationKind(De)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(De)?"__new":"__call";case 163:e.Debug.assert(De.parent.kind===315,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[De.parent.kind]:De.parent.kind,", expected JSDocFunctionType")});var mt=De.parent,Zt=mt.parameters.indexOf(De);return"arg"+Zt}}function Ue(De){return e.isNamedDeclaration(De)?e.declarationNameToString(De.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(ke(De)))}function He(De,zr,xi,et,je,ti,mt){e.Debug.assert(mt||!e.hasDynamicName(xi));var Zt=e.hasSyntacticModifier(xi,512)||e.isExportSpecifier(xi)&&xi.name.escapedText==="default",ln=mt?"__computed":Zt&&zr?"default":ke(xi),Ba;if(ln===void 0)Ba=V(0,"__missing");else if(Ba=De.get(ln),et&2885600&&y.add(ln),!Ba)De.set(ln,Ba=V(0,ln)),ti&&(Ba.isReplaceableByMethod=!0);else{if(ti&&!Ba.isReplaceableByMethod)return Ba;if(Ba.flags&je){if(Ba.isReplaceableByMethod)De.set(ln,Ba=V(0,ln));else if(!(et&3&&Ba.flags&67108864)){e.isNamedDeclaration(xi)&&e.setParent(xi.name,xi);var Oo=Ba.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,jr=!0;(Ba.flags&384||et&384)&&(Oo=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,jr=!1);var is=!1;e.length(Ba.declarations)&&(Zt||Ba.declarations&&Ba.declarations.length&&xi.kind===270&&!xi.isExportEquals)&&(Oo=e.Diagnostics.A_module_cannot_have_multiple_default_exports,jr=!1,is=!0);var hc=[];e.isTypeAliasDeclaration(xi)&&e.nodeIsMissing(xi.type)&&e.hasSyntacticModifier(xi,1)&&Ba.flags&2887656&&hc.push(m(xi,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(xi.name.escapedText)," }")));var nc=e.getNameOfDeclaration(xi)||xi;e.forEach(Ba.declarations,function(Xs,rc){var uu=e.getNameOfDeclaration(Xs)||Xs,Bc=m(uu,Oo,jr?Ue(Xs):void 0);E.bindDiagnostics.push(is?e.addRelatedInfo(Bc,m(nc,rc===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Bc),is&&hc.push(m(uu,e.Diagnostics.The_first_export_default_is_here))});var ns=m(nc,Oo,jr?Ue(xi):void 0);E.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,qe([ns],hc,!1))),Ba=V(0,ln)}}}return le(Ba,xi,et),Ba.parent?e.Debug.assert(Ba.parent===zr,"Existing symbol parent should match new one"):Ba.parent=zr,Ba}function ar(De,zr,xi){var et=!!(e.getCombinedModifierFlags(De)&1)||gr(De);if(zr&2097152)return De.kind===274||De.kind===264&&et?He(M.symbol.exports,M.symbol,De,zr,xi):He(M.locals,void 0,De,zr,xi);if(e.isJSDocTypeAlias(De)&&e.Debug.assert(e.isInJSFile(De)),!e.isAmbientModule(De)&&(et||M.flags&64)){if(!M.locals||e.hasSyntacticModifier(De,512)&&!ke(De))return He(M.symbol.exports,M.symbol,De,zr,xi);var je=zr&111551?1048576:0,ti=He(M.locals,void 0,De,je,xi);return ti.exportSymbol=He(M.symbol.exports,M.symbol,De,zr,xi),De.localSymbol=ti,ti}else return He(M.locals,void 0,De,zr,xi)}function gr(De){if(De.parent&&e.isModuleDeclaration(De)&&(De=De.parent),!e.isJSDocTypeAlias(De))return!1;if(!e.isJSDocEnumTag(De)&&!!De.fullName)return!0;var zr=e.getNameOfDeclaration(De);return zr?!!(e.isPropertyAccessEntityNameExpression(zr.parent)&&In(zr.parent)||e.isDeclaration(zr.parent)&&e.getCombinedModifierFlags(zr.parent)&1):!1}function me(De,zr){var xi=M,et=x,je=ie;if(zr&1?(De.kind!==213&&(x=M),M=ie=De,zr&32&&(M.locals=e.createSymbolTable()),Gi(M)):zr&2&&(ie=De,ie.locals=void 0),zr&4){var ti=k,mt=I,Zt=ne,ln=ee,Ba=P,Oo=l,jr=_,is=zr&16&&!e.hasSyntacticModifier(De,256)&&!De.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(De);is||(k=pe({flags:2}),zr&144&&(k.node=De)),ee=is||De.kind===170||De.kind===169||e.isInJSFile(De)&&(De.kind===255||De.kind===212)?dr():void 0,P=void 0,I=void 0,ne=void 0,l=void 0,_=!1,we(De),De.flags&=-2817,!(k.flags&1)&&zr&8&&e.nodeIsPresent(De.body)&&(De.flags|=256,_&&(De.flags|=512),De.endFlowNode=k),De.kind===303&&(De.flags|=J,De.endFlowNode=k),ee&&(Er(ee,k),k=Xe(ee),(De.kind===170||De.kind===169||e.isInJSFile(De)&&(De.kind===255||De.kind===212))&&(De.returnFlowNode=k)),is||(k=ti),I=mt,ne=Zt,ee=ln,P=Ba,l=Oo,_=jr}else zr&64?(Z=!1,we(De),De.flags=Z?De.flags|128:De.flags&-129):we(De);M=xi,x=et,ie=je}function Ge(De){er(De,function(zr){return zr.kind===255?rn(zr):void 0}),er(De,function(zr){return zr.kind!==255?rn(zr):void 0})}function er(De,zr){zr===void 0&&(zr=rn),De!==void 0&&e.forEach(De,zr)}function he(De){e.forEachChild(De,rn,er)}function we(De){var zr=j;if(j=!1,co(De)){he(De),Do(De),j=zr;return}switch(De.kind>=236&&De.kind<=252&&!ue.allowUnreachableCode&&(De.flowNode=k),De.kind){case 240:ei(De);break;case 239:li(De);break;case 241:Si(De);break;case 242:case 243:qi(De);break;case 238:ft(De);break;case 246:case 250:bt(De);break;case 245:case 244:Ji(De);break;case 251:di(De);break;case 248:X(De);break;case 262:Ye(De);break;case 288:Be(De);break;case 237:Qe(De);break;case 249:hr(De);break;case 218:xe(De);break;case 219:ze(De);break;case 220:if(e.isDestructuringAssignment(De)){j=zr,Je(De);return}ce(De);break;case 214:Fr(De);break;case 221:Xr(De);break;case 253:We(De);break;case 205:case 206:Ui(De);break;case 207:zi(De);break;case 229:ki(De);break;case 343:case 336:case 337:Nr(De);break;case 303:{Ge(De.statements),rn(De.endOfFileToken);break}case 234:case 261:Ge(De.statements);break;case 202:mr(De);break;case 204:case 203:case 294:case 224:j=zr;default:he(De);break}Do(De),j=zr}function ye(De){switch(De.kind){case 79:case 80:case 108:case 205:case 206:return ge(De);case 207:return Fe(De);case 211:case 229:return ye(De.expression);case 220:return ur(De);case 218:return De.operator===53&&ye(De.operand);case 215:return ye(De.expression)}return!1}function Se(De){return e.isDottedName(De)||(e.isPropertyAccessExpression(De)||e.isNonNullExpression(De)||e.isParenthesizedExpression(De))&&Se(De.expression)||e.isBinaryExpression(De)&&De.operatorToken.kind===27&&Se(De.right)||e.isElementAccessExpression(De)&&e.isStringOrNumericLiteralLike(De.argumentExpression)&&Se(De.expression)||e.isAssignmentExpression(De)&&Se(De.left)}function ge(De){return Se(De)||e.isOptionalChain(De)&&ge(De.expression)}function Fe(De){if(De.arguments)for(var zr=0,xi=De.arguments;zr<xi.length;zr++){var et=xi[zr];if(ge(et))return!0}return!!(De.expression.kind===205&&ge(De.expression.expression))}function cr(De,zr){return e.isTypeOfExpression(De)&&Ir(De.expression)&&e.isStringLiteralLike(zr)}function ur(De){switch(De.operatorToken.kind){case 63:case 75:case 76:case 77:return ge(De.left);case 34:case 35:case 36:case 37:return Ir(De.left)||Ir(De.right)||cr(De.right,De.left)||cr(De.left,De.right);case 102:return Ir(De.left);case 101:return ye(De.right);case 27:return ye(De.right)}return!1}function Ir(De){switch(De.kind){case 211:return Ir(De.expression);case 220:switch(De.operatorToken.kind){case 63:return Ir(De.left);case 27:return Ir(De.right)}}return ge(De)}function dr(){return pe({flags:4,antecedents:void 0})}function Br(){return pe({flags:8,antecedents:void 0})}function Tr(De,zr,xi){return pe({flags:1024,target:De,antecedents:zr,antecedent:xi})}function n(De){De.flags|=De.flags&2048?4096:2048}function Er(De,zr){!(zr.flags&1)&&!e.contains(De.antecedents,zr)&&((De.antecedents||(De.antecedents=[])).push(zr),n(zr))}function br(De,zr,xi){return zr.flags&1?zr:xi?(xi.kind===110&&De&64||xi.kind===95&&De&32)&&!e.isExpressionOfOptionalChainRoot(xi)&&!e.isNullishCoalesce(xi.parent)?oe:ye(xi)?(n(zr),pe({flags:De,antecedent:zr,node:xi})):zr:De&32?zr:oe}function Pr(De,zr,xi,et){return n(De),pe({flags:128,antecedent:De,switchStatement:zr,clauseStart:xi,clauseEnd:et})}function Ce(De,zr,xi){n(zr);var et=pe({flags:De,antecedent:zr,node:xi});return P&&Er(P,et),et}function Le(De,zr){return n(De),pe({flags:512,antecedent:De,node:zr})}function Xe(De){var zr=De.antecedents;return zr?zr.length===1?zr[0]:De:oe}function Cr(De){var zr=De.parent;switch(zr.kind){case 238:case 240:case 239:return zr.expression===De;case 241:case 221:return zr.condition===De}return!1}function Lr(De){for(;;)if(De.kind===211)De=De.expression;else if(De.kind===218&&De.operator===53)De=De.operand;else return De.kind===220&&(De.operatorToken.kind===55||De.operatorToken.kind===56||De.operatorToken.kind===60)}function Jr(De){return De=e.skipParentheses(De),e.isBinaryExpression(De)&&e.isLogicalOrCoalescingAssignmentOperator(De.operatorToken.kind)}function Rr(De){for(;e.isParenthesizedExpression(De.parent)||e.isPrefixUnaryExpression(De.parent)&&De.parent.operator===53;)De=De.parent;return!Cr(De)&&!Jr(De.parent)&&!Lr(De.parent)&&!(e.isOptionalChain(De.parent)&&De.parent.expression===De)}function ci(De,zr,xi,et){var je=A,ti=f;A=xi,f=et,De(zr),A=je,f=ti}function be(De,zr,xi){ci(rn,De,zr,xi),(!De||!Jr(De)&&!Lr(De)&&!(e.isOptionalChain(De)&&e.isOutermostOptionalChain(De)))&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function or(De,zr,xi){var et=I,je=ne;I=zr,ne=xi,rn(De),I=et,ne=je}function Kr(De,zr){for(var xi=l;xi&&De.parent.kind===249;)xi.continueTarget=zr,xi=xi.next,De=De.parent;return zr}function ei(De){var zr=Kr(De,Br()),xi=dr(),et=dr();Er(zr,k),k=zr,be(De.expression,xi,et),k=Xe(xi),or(De.statement,et,zr),Er(zr,k),k=Xe(et)}function li(De){var zr=Br(),xi=Kr(De,dr()),et=dr();Er(zr,k),k=zr,or(De.statement,et,xi),Er(xi,k),k=Xe(xi),be(De.expression,zr,et),k=Xe(et)}function Si(De){var zr=Kr(De,Br()),xi=dr(),et=dr();rn(De.initializer),Er(zr,k),k=zr,be(De.condition,xi,et),k=Xe(xi),or(De.statement,et,zr),rn(De.incrementor),Er(zr,k),k=Xe(et)}function qi(De){var zr=Kr(De,Br()),xi=dr();rn(De.expression),Er(zr,k),k=zr,De.kind===243&&rn(De.awaitModifier),Er(xi,k),rn(De.initializer),De.initializer.kind!==254&&Me(De.initializer),or(De.statement,xi,zr),Er(zr,k),k=Xe(xi)}function ft(De){var zr=dr(),xi=dr(),et=dr();be(De.expression,zr,xi),k=Xe(zr),rn(De.thenStatement),Er(et,k),k=Xe(xi),rn(De.elseStatement),Er(et,k),k=Xe(et)}function bt(De){rn(De.expression),De.kind===246&&(_=!0,ee&&Er(ee,k)),k=oe}function aa(De){for(var zr=l;zr;zr=zr.next)if(zr.name===De)return zr}function sr(De,zr,xi){var et=De.kind===245?zr:xi;et&&(Er(et,k),k=oe)}function Ji(De){if(rn(De.label),De.label){var zr=aa(De.label.escapedText);zr&&(zr.referenced=!0,sr(De,zr.breakTarget,zr.continueTarget))}else sr(De,I,ne)}function di(De){var zr=ee,xi=P,et=dr(),je=dr(),ti=dr();if(De.finallyBlock&&(ee=je),Er(ti,k),P=ti,rn(De.tryBlock),Er(et,k),De.catchClause&&(k=Xe(ti),ti=dr(),Er(ti,k),P=ti,rn(De.catchClause),Er(et,k)),ee=zr,P=xi,De.finallyBlock){var mt=dr();mt.antecedents=e.concatenate(e.concatenate(et.antecedents,ti.antecedents),je.antecedents),k=mt,rn(De.finallyBlock),k.flags&1?k=oe:(ee&&je.antecedents&&Er(ee,Tr(mt,je.antecedents,k)),P&&ti.antecedents&&Er(P,Tr(mt,ti.antecedents,k)),k=et.antecedents?Tr(mt,et.antecedents,k):oe)}else k=Xe(et)}function X(De){var zr=dr();rn(De.expression);var xi=I,et=D;I=zr,D=k,rn(De.caseBlock),Er(zr,k);var je=e.forEach(De.caseBlock.clauses,function(ti){return ti.kind===289});De.possiblyExhaustive=!je&&!zr.antecedents,je||Er(zr,Pr(D,De,0,0)),I=xi,D=et,k=Xe(zr)}function Ye(De){for(var zr=De.clauses,xi=ye(De.parent.expression),et=oe,je=0;je<zr.length;je++){for(var ti=je;!zr[je].statements.length&&je+1<zr.length;)rn(zr[je]),je++;var mt=dr();Er(mt,xi?Pr(D,De.parent,ti,je+1):D),Er(mt,et),k=Xe(mt);var Zt=zr[je];rn(Zt),et=k,!(k.flags&1)&&je!==zr.length-1&&ue.noFallthroughCasesInSwitch&&(Zt.fallthroughFlowNode=k)}}function Be(De){var zr=k;k=D,rn(De.expression),k=zr,er(De.statements)}function Qe(De){rn(De.expression),_r(De.expression)}function _r(De){if(De.kind===207){var zr=De;zr.expression.kind!==106&&e.isDottedName(zr.expression)&&(k=Le(k,zr))}}function hr(De){var zr=dr();l={next:l,name:De.label.escapedText,breakTarget:zr,continueTarget:void 0,referenced:!1},rn(De.label),rn(De.statement),!l.referenced&&!ue.allowUnusedLabels&&ro(e.unusedLabelIsError(ue),De.label,e.Diagnostics.Unused_label),l=l.next,Er(zr,k),k=Xe(zr)}function Dr(De){De.kind===220&&De.operatorToken.kind===63?Me(De.left):Me(De)}function Me(De){if(Se(De))k=Ce(16,k,De);else if(De.kind===203)for(var zr=0,xi=De.elements;zr<xi.length;zr++){var et=xi[zr];et.kind===224?Me(et.expression):Dr(et)}else if(De.kind===204)for(var je=0,ti=De.properties;je<ti.length;je++){var mt=ti[je];mt.kind===294?Dr(mt.initializer):mt.kind===295?Me(mt.name):mt.kind===296&&Me(mt.expression)}}function v(De,zr,xi){var et=dr();De.operatorToken.kind===55||De.operatorToken.kind===76?be(De.left,et,xi):be(De.left,zr,et),k=Xe(et),rn(De.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(De.operatorToken.kind)?(ci(rn,De.right,zr,xi),Me(De.left),Er(zr,br(32,k,De)),Er(xi,br(64,k,De))):be(De.right,zr,xi)}function xe(De){if(De.operator===53){var zr=A;A=f,f=zr,he(De),f=A,A=zr}else he(De),(De.operator===45||De.operator===46)&&Me(De.operand)}function ze(De){he(De),(De.operator===45||De.operator===46)&&Me(De.operand)}function Je(De){j?(j=!1,rn(De.operatorToken),rn(De.right),j=!0,rn(De.left)):(j=!0,rn(De.left),j=!1,rn(De.operatorToken),rn(De.right)),Me(De.left)}function Oe(){return e.createBinaryExpressionTrampoline(De,zr,xi,et,je,void 0);function De(mt,Zt){if(Zt){Zt.stackIndex++,e.setParent(mt,re);var ln=w;Qn(mt);var Ba=re;re=mt,Zt.skip=!1,Zt.inStrictModeStack[Zt.stackIndex]=ln,Zt.parentStack[Zt.stackIndex]=Ba}else Zt={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var Oo=mt.operatorToken.kind;if(Oo===55||Oo===56||Oo===60||e.isLogicalOrCoalescingAssignmentOperator(Oo)){if(Rr(mt)){var jr=dr();v(mt,jr,jr),k=Xe(jr)}else v(mt,A,f);Zt.skip=!0}return Zt}function zr(mt,Zt,ln){if(!Zt.skip){var Ba=ti(mt);return ln.operatorToken.kind===27&&_r(mt),Ba}}function xi(mt,Zt,ln){Zt.skip||rn(mt)}function et(mt,Zt,ln){if(!Zt.skip){var Ba=ti(mt);return ln.operatorToken.kind===27&&_r(mt),Ba}}function je(mt,Zt){if(!Zt.skip){var ln=mt.operatorToken.kind;if(e.isAssignmentOperator(ln)&&!e.isAssignmentTarget(mt)&&(Me(mt.left),ln===63&&mt.left.kind===206)){var Ba=mt.left;Ir(Ba.expression)&&(k=Ce(256,k,mt))}}var Oo=Zt.inStrictModeStack[Zt.stackIndex],jr=Zt.parentStack[Zt.stackIndex];Oo!==void 0&&(w=Oo),jr!==void 0&&(re=jr),Zt.skip=!1,Zt.stackIndex--}function ti(mt){if(mt&&e.isBinaryExpression(mt)&&!e.isDestructuringAssignment(mt))return mt;rn(mt)}}function Fr(De){he(De),De.expression.kind===205&&Me(De.expression)}function Xr(De){var zr=dr(),xi=dr(),et=dr();be(De.condition,zr,xi),k=Xe(zr),rn(De.questionToken),rn(De.whenTrue),Er(et,k),k=Xe(xi),rn(De.colonToken),rn(De.whenFalse),Er(et,k),k=Xe(et)}function Or(De){var zr=e.isOmittedExpression(De)?void 0:De.name;if(e.isBindingPattern(zr))for(var xi=0,et=zr.elements;xi<et.length;xi++){var je=et[xi];Or(je)}else k=Ce(16,k,De)}function We(De){he(De),(De.initializer||e.isForInOrOfStatement(De.parent.parent))&&Or(De)}function mr(De){e.isBindingPattern(De.name)?(er(De.decorators),er(De.modifiers),rn(De.dotDotDotToken),rn(De.propertyName),rn(De.initializer),rn(De.name)):he(De)}function Nr(De){rn(De.tagName),De.kind!==337&&De.fullName&&(e.setParent(De.fullName,De),e.setParentRecursive(De.fullName,!1)),typeof De.comment!="string"&&er(De.comment)}function Ur(De){he(De);var zr=e.getHostSignatureFromJSDoc(De);zr&&zr.kind!==168&&le(zr.symbol,zr,32)}function si(De,zr,xi){ci(rn,De,zr,xi),(!e.isOptionalChain(De)||e.isOutermostOptionalChain(De))&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function mi(De){switch(De.kind){case 205:rn(De.questionDotToken),rn(De.name);break;case 206:rn(De.questionDotToken),rn(De.argumentExpression);break;case 207:rn(De.questionDotToken),er(De.typeArguments),er(De.arguments);break}}function Ti(De,zr,xi){var et=e.isOptionalChainRoot(De)?dr():void 0;si(De.expression,et||zr,xi),et&&(k=Xe(et)),ci(mi,De,zr,xi),e.isOutermostOptionalChain(De)&&(Er(zr,br(32,k,De)),Er(xi,br(64,k,De)))}function hi(De){if(Rr(De)){var zr=dr();Ti(De,zr,zr),k=Xe(zr)}else Ti(De,A,f)}function ki(De){e.isOptionalChain(De)?hi(De):he(De)}function Ui(De){e.isOptionalChain(De)?hi(De):he(De)}function zi(De){if(e.isOptionalChain(De))hi(De);else{var zr=e.skipParentheses(De.expression);zr.kind===212||zr.kind===213?(er(De.typeArguments),er(De.arguments),rn(De.expression)):(he(De),De.expression.kind===106&&(k=Le(k,De)))}if(De.expression.kind===205){var xi=De.expression;e.isIdentifier(xi.name)&&Ir(xi.expression)&&e.isPushOrUnshiftIdentifier(xi.name)&&(k=Ce(256,k,De))}}function ri(De){switch(De.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(De))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return De.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(De.parent)||e.isClassStaticBlockDeclaration(De.parent)?0:2}return 0}function Gi(De){_e&&(_e.nextContainer=De),_e=De}function Rt(De,zr,xi){switch(M.kind){case 260:return ar(De,zr,xi);case 303:return xt(De,zr,xi);case 225:case 256:return pa(De,zr,xi);case 259:return He(M.symbol.exports,M.symbol,De,zr,xi);case 181:case 320:case 204:case 257:case 285:return He(M.symbol.members,M.symbol,De,zr,xi);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return He(M.locals,void 0,De,zr,xi)}}function pa(De,zr,xi){return e.isStatic(De)?He(M.symbol.exports,M.symbol,De,zr,xi):He(M.symbol.members,M.symbol,De,zr,xi)}function xt(De,zr,xi){return e.isExternalModule(E)?ar(De,zr,xi):He(E.locals,void 0,De,zr,xi)}function ua(De){var zr=e.isSourceFile(De)?De:e.tryCast(De.body,e.isModuleBlock);return!!zr&&zr.statements.some(function(xi){return e.isExportDeclaration(xi)||e.isExportAssignment(xi)})}function Vt(De){De.flags&8388608&&!ua(De)?De.flags|=64:De.flags&=-65}function St(De){if(Vt(De),e.isAmbientModule(De))if(e.hasSyntacticModifier(De,1)&&go(De,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(De))Ci(De);else{var zr=void 0;if(De.name.kind===10){var xi=De.name.text;zr=e.tryParsePattern(xi),zr===void 0&&go(De.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,xi)}var et=Rt(De,512,110735);E.patternAmbientModules=e.append(E.patternAmbientModules,zr&&!e.isString(zr)?{pattern:zr,symbol:et}:void 0)}else{var je=Ci(De);if(je!==0){var et=De.symbol;et.constEnumOnlyModule=!(et.flags&304)&&je===2&&et.constEnumOnlyModule!==!1}}}function Ci(De){var zr=O(De),xi=zr!==0;return Rt(De,xi?512:1024,xi?110735:0),zr}function Hi(De){var zr=V(131072,ke(De));le(zr,De,131072);var xi=V(2048,"__type");le(xi,De,2048),xi.members=e.createSymbolTable(),xi.members.set(zr.escapedName,zr)}function Yi(De){var zr;if(function(Ba){Ba[Ba.Property=1]="Property",Ba[Ba.Accessor=2]="Accessor"}(zr||(zr={})),w&&!e.isAssignmentTarget(De))for(var xi=new e.Map,et=0,je=De.properties;et<je.length;et++){var ti=je[et];if(!(ti.kind===296||ti.name.kind!==79)){var mt=ti.name,Zt=ti.kind===294||ti.kind===295||ti.kind===168?1:2,ln=xi.get(mt.escapedText);if(!ln){xi.set(mt.escapedText,Zt);continue}}}return oa(De,4096,"__object")}function yt(De){return oa(De,4096,"__jsxAttributes")}function gt(De,zr,xi){return Rt(De,zr,xi)}function oa(De,zr,xi){var et=V(zr,xi);return zr&106508&&(et.parent=M.symbol),le(et,De,zr),et}function Bt(De,zr,xi){switch(ie.kind){case 260:ar(De,zr,xi);break;case 303:if(e.isExternalOrCommonJsModule(M)){ar(De,zr,xi);break}default:ie.locals||(ie.locals=e.createSymbolTable(),Gi(ie)),He(ie.locals,void 0,De,zr,xi)}}function Pi(){if(!!Y){for(var De=M,zr=_e,xi=ie,et=re,je=k,ti=0,mt=Y;ti<mt.length;ti++){var Zt=mt[ti],ln=Zt.parent.parent;M=e.findAncestor(ln.parent,function(is){return!!(ri(is)&1)})||E,ie=e.getEnclosingBlockScopeContainer(ln)||E,k=pe({flags:2}),re=Zt,rn(Zt.typeExpression);var Ba=e.getNameOfDeclaration(Zt);if((e.isJSDocEnumTag(Zt)||!Zt.fullName)&&Ba&&e.isPropertyAccessEntityNameExpression(Ba.parent)){var Oo=In(Ba.parent);if(Oo){Fa(E.symbol,Ba.parent,Oo,!!e.findAncestor(Ba,function(is){return e.isPropertyAccessExpression(is)&&is.name.escapedText==="prototype"}),!1);var jr=M;switch(e.getAssignmentDeclarationPropertyAccessKind(Ba.parent)){case 1:case 2:e.isExternalOrCommonJsModule(E)?M=E:M=void 0;break;case 4:M=Ba.parent.expression;break;case 3:M=Ba.parent.expression.name;break;case 5:M=C(E,Ba.parent.expression)?E:e.isPropertyAccessExpression(Ba.parent.expression)?Ba.parent.expression.name:Ba.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}M&&ar(Zt,524288,788968),M=jr}}else e.isJSDocEnumTag(Zt)||!Zt.fullName||Zt.fullName.kind===79?(re=Zt.parent,Bt(Zt,524288,788968)):rn(Zt.fullName)}M=De,_e=zr,ie=xi,re=et,k=je}}function Oi(De){!E.parseDiagnostics.length&&!(De.flags&8388608)&&!(De.flags&4194304)&&!e.isIdentifierName(De)&&(w&&De.originalKeywordKind>=117&&De.originalKeywordKind<=125?E.bindDiagnostics.push(m(De,wi(De),e.declarationNameToString(De))):De.originalKeywordKind===132?e.isExternalModule(E)&&e.isInTopLevelContext(De)?E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(De))):De.flags&32768&&E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(De))):De.originalKeywordKind===125&&De.flags&8192&&E.bindDiagnostics.push(m(De,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(De))))}function wi(De){return e.getContainingClass(De)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Qr(De){De.escapedText==="#constructor"&&(E.parseDiagnostics.length||E.bindDiagnostics.push(m(De,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(De))))}function Ct(De){w&&e.isLeftHandSideExpression(De.left)&&e.isAssignmentOperator(De.operatorToken.kind)&&on(De,De.left)}function tt(De){w&&De.variableDeclaration&&on(De,De.variableDeclaration.name)}function ta(De){if(w&&De.expression.kind===79){var zr=e.getErrorSpanForNode(E,De.expression);E.bindDiagnostics.push(e.createFileDiagnostic(E,zr.start,zr.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Xa(De){return e.isIdentifier(De)&&(De.escapedText==="eval"||De.escapedText==="arguments")}function on(De,zr){if(zr&&zr.kind===79){var xi=zr;if(Xa(xi)){var et=e.getErrorSpanForNode(E,zr);E.bindDiagnostics.push(e.createFileDiagnostic(E,et.start,et.length,qr(De),e.idText(xi)))}}}function qr(De){return e.getContainingClass(De)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:E.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function bn(De){w&&on(De,De.name)}function Rn(De){return e.getContainingClass(De)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Sn(De){if(B<2&&ie.kind!==303&&ie.kind!==260&&!e.isFunctionLikeOrClassStaticBlockDeclaration(ie)){var zr=e.getErrorSpanForNode(E,De);E.bindDiagnostics.push(e.createFileDiagnostic(E,zr.start,zr.length,Rn(De)))}}function zn(De){B<1&&w&&De.numericLiteralFlags&32&&E.bindDiagnostics.push(m(De,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Zn(De){w&&on(De,De.operand)}function ho(De){w&&(De.operator===45||De.operator===46)&&on(De,De.operand)}function Vo(De){w&&go(De,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Cn(De){w&&e.getEmitScriptTarget(ue)>=2&&(e.isDeclarationStatement(De.statement)||e.isVariableStatement(De.statement))&&go(De.label,e.Diagnostics.A_label_is_not_allowed_here)}function go(De,zr,xi,et,je){var ti=e.getSpanOfTokenAtPosition(E,De.pos);E.bindDiagnostics.push(e.createFileDiagnostic(E,ti.start,ti.length,zr,xi,et,je))}function ro(De,zr,xi){Ko(De,zr,zr,xi)}function Ko(De,zr,xi,et){rs(De,{pos:e.getTokenPosOfNode(zr,E),end:xi.end},et)}function rs(De,zr,xi){var et=e.createFileDiagnostic(E,zr.pos,zr.end-zr.pos,xi);De?E.bindDiagnostics.push(et):E.bindSuggestionDiagnostics=e.append(E.bindSuggestionDiagnostics,Ve(Ve({},et),{category:e.DiagnosticCategory.Suggestion}))}function rn(De){if(!!De){e.setParent(De,re),e.tracing&&(De.tracingPath=E.path);var zr=w;if(Qn(De),De.kind>159){var xi=re;re=De;var et=ri(De);et===0?we(De):me(De,et),re=xi}else{var xi=re;De.kind===1&&(re=De),Do(De),re=xi}w=zr}}function Do(De){if(e.hasJSDocNodes(De))if(e.isInJSFile(De))for(var zr=0,xi=De.jsDoc;zr<xi.length;zr++){var et=xi[zr];rn(et)}else for(var je=0,ti=De.jsDoc;je<ti.length;je++){var et=ti[je];e.setParent(et,De),e.setParentRecursive(et,!1)}}function io(De){if(!w)for(var zr=0,xi=De;zr<xi.length;zr++){var et=xi[zr];if(!e.isPrologueDirective(et))return;if(pn(et)){w=!0;return}}}function pn(De){var zr=e.getSourceTextOfNodeFromSourceFile(E,De.expression);return zr==='"use strict"'||zr==="'use strict'"}function Qn(De){switch(De.kind){case 79:if(De.isInJSDocNamespace){for(var zr=De.parent;zr&&!e.isJSDocTypeAlias(zr);)zr=zr.parent;Bt(zr,524288,788968);break}case 108:return k&&(e.isExpression(De)||re.kind===295)&&(De.flowNode=k),Oi(De);case 160:k&&e.isPartOfTypeQuery(De)&&(De.flowNode=k);break;case 230:case 106:De.flowNode=k;break;case 80:return Qr(De);case 205:case 206:var xi=De;k&&Se(xi)&&(xi.flowNode=k),e.isSpecialPropertyDeclaration(xi)&&nr(xi),e.isInJSFile(xi)&&E.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(xi)&&!G(ie,"module")&&He(E.locals,void 0,xi.expression,134217729,111550);break;case 220:var et=e.getAssignmentDeclarationKind(De);switch(et){case 1:Ka(De);break;case 2:an(De);break;case 3:Ei(De.left,De);break;case 6:Gr(De);break;case 4:h(De);break;case 5:var je=De.left.expression;if(e.isInJSFile(De)&&e.isIdentifier(je)){var ti=G(ie,je.escapedText);if(e.isThisInitializedDeclaration(ti==null?void 0:ti.valueDeclaration)){h(De);break}}Nt(De);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return Ct(De);case 291:return tt(De);case 214:return ta(De);case 8:return zn(De);case 219:return Zn(De);case 218:return ho(De);case 247:return Vo(De);case 249:return Cn(De);case 191:Z=!0;return;case 176:break;case 162:return Mn(De);case 163:return ga(De);case 253:return $t(De);case 202:return De.flowNode=k,$t(De);case 166:case 165:return wo(De);case 294:case 295:return An(De,4,0);case 297:return An(De,8,900095);case 173:case 174:case 175:return Rt(De,131072,0);case 168:case 167:return An(De,8192|(De.questionToken?16777216:0),e.isObjectLiteralMethod(De)?0:103359);case 255:return xn(De);case 170:return Rt(De,16384,0);case 171:return An(De,32768,46015);case 172:return An(De,65536,78783);case 178:case 315:case 321:case 179:return Hi(De);case 181:case 320:case 194:return xo(De);case 330:return Ur(De);case 204:return Yi(De);case 212:case 213:return yn(De);case 207:var mt=e.getAssignmentDeclarationKind(De);switch(mt){case 7:return Ki(De);case 8:return Ht(De);case 9:return _i(De);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(De)&&mc(De);break;case 225:case 256:return w=!0,Hs(De);case 257:return Bt(De,64,788872);case 258:return Bt(De,524288,788968);case 259:return Mi(De);case 260:return St(De);case 285:return yt(De);case 284:return gt(De,4,0);case 264:case 267:case 269:case 274:return Rt(De,2097152,2097152);case 263:return Ms(De);case 266:return bi(De);case 271:return xr(De);case 270:return Ts(De);case 303:return io(De.statements),ds();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(De.parent))return;case 261:return io(De.statements);case 338:if(De.parent.kind===321)return ga(De);if(De.parent.kind!==320)break;case 345:var Zt=De,ln=Zt.isBracketed||Zt.typeExpression&&Zt.typeExpression.type.kind===314?16777220:4;return Rt(Zt,ln,0);case 343:case 336:case 337:return(Y||(Y=[])).push(De)}}function wo(De){return An(De,4|(De.questionToken?16777216:0),0)}function xo(De){return oa(De,2048,"__type")}function ds(){if(Vt(E),e.isExternalModule(E))No();else if(e.isJsonSourceFile(E)){No();var De=E.symbol;He(E.symbol.exports,E.symbol,E,4,67108863),E.symbol=De}}function No(){oa(E,512,'"'.concat(e.removeFileExtension(E.fileName),'"'))}function Ts(De){if(!M.symbol||!M.symbol.exports)oa(De,111551,ke(De));else{var zr=e.exportAssignmentIsAlias(De)?2097152:4,xi=He(M.symbol.exports,M.symbol,De,zr,67108863);De.isExportEquals&&e.setValueDeclaration(xi,De)}}function Ms(De){De.modifiers&&De.modifiers.length&&E.bindDiagnostics.push(m(De,e.Diagnostics.Modifiers_cannot_appear_here));var zr=e.isSourceFile(De.parent)?e.isExternalModule(De.parent)?De.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;zr?E.bindDiagnostics.push(m(De,zr)):(E.symbol.globalExports=E.symbol.globalExports||e.createSymbolTable(),He(E.symbol.globalExports,E.symbol,De,2097152,2097152))}function xr(De){!M.symbol||!M.symbol.exports?oa(De,8388608,ke(De)):De.exportClause?e.isNamespaceExport(De.exportClause)&&(e.setParent(De.exportClause,De),He(M.symbol.exports,M.symbol,De.exportClause,2097152,2097152)):He(M.symbol.exports,M.symbol,De,8388608,0)}function bi(De){De.name&&Rt(De,2097152,2097152)}function ut(De){return E.externalModuleIndicator?!1:(E.commonJsModuleIndicator||(E.commonJsModuleIndicator=De,No()),!0)}function Ht(De){if(!!ut(De)){var zr=Os(De.arguments[0],void 0,function(et,je){return je&&le(je,et,67110400),je});if(zr){var xi=1048580;He(zr.exports,zr,De,xi,0)}}}function Ka(De){if(!!ut(De)){var zr=Os(De.left.expression,void 0,function(je,ti){return ti&&le(ti,je,67110400),ti});if(zr){var xi=e.isAliasableExpression(De.right)&&(e.isExportsIdentifier(De.left.expression)||e.isModuleExportsAccessExpression(De.left.expression)),et=xi?2097152:1048580;e.setParent(De.left,De),He(zr.exports,zr,De.left,et,0)}}}function an(De){if(!!ut(De)){var zr=e.getRightMostAssignedExpression(De.right);if(!(e.isEmptyObjectLiteral(zr)||M===E&&C(E,zr))){if(e.isObjectLiteralExpression(zr)&&e.every(zr.properties,e.isShorthandPropertyAssignment)){e.forEach(zr.properties,Ke);return}var xi=e.exportAssignmentIsAlias(De)?2097152:1049092,et=He(E.symbol.exports,E.symbol,De,xi|67108864,0);e.setValueDeclaration(et,De)}}}function Ke(De){He(E.symbol.exports,E.symbol,De,69206016,0)}function h(De){e.Debug.assert(e.isInJSFile(De));var zr=e.isBinaryExpression(De)&&e.isPropertyAccessExpression(De.left)&&e.isPrivateIdentifier(De.left.name)||e.isPropertyAccessExpression(De)&&e.isPrivateIdentifier(De.name);if(!zr){var xi=e.getThisContainer(De,!1);switch(xi.kind){case 255:case 212:var et=xi.symbol;if(e.isBinaryExpression(xi.parent)&&xi.parent.operatorToken.kind===63){var je=xi.parent.left;e.isBindableStaticAccessExpression(je)&&e.isPrototypeAccess(je.expression)&&(et=Ds(je.expression.expression,x))}et&&et.valueDeclaration&&(et.members=et.members||e.createSymbolTable(),e.hasDynamicName(De)?Ee(De,et,et.members):He(et.members,et,De,67108868,0),le(et,et.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var ti=xi.parent,mt=e.isStatic(xi)?ti.symbol.exports:ti.symbol.members;e.hasDynamicName(De)?Ee(De,ti.symbol,mt):He(mt,ti.symbol,De,67108868,0,!0);break;case 303:if(e.hasDynamicName(De))break;xi.commonJsModuleIndicator?He(xi.symbol.exports,xi.symbol,De,1048580,0):Rt(De,1,111550);break;default:e.Debug.failBadSyntaxKind(xi)}}}function Ee(De,zr,xi){He(xi,zr,De,4,0,!0,!0),Re(De,zr)}function Re(De,zr){zr&&(zr.assignmentDeclarationMembers||(zr.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(De),De)}function nr(De){De.expression.kind===108?h(De):e.isBindableStaticAccessExpression(De)&&De.parent.parent.kind===303&&(e.isPrototypeAccess(De.expression)?Ei(De,De.parent):ca(De))}function Gr(De){e.setParent(De.left,De),e.setParent(De.right,De),so(De.left.expression,De.left,!1,!0)}function _i(De){var zr=Ds(De.arguments[0].expression);zr&&zr.valueDeclaration&&le(zr,zr.valueDeclaration,32),Ta(De,zr,!0)}function Ei(De,zr){var xi=De.expression,et=xi.expression;e.setParent(et,xi),e.setParent(xi,De),e.setParent(De,zr),so(et,De,!0,!0)}function Ki(De){var zr=Ds(De.arguments[0]),xi=De.parent.parent.kind===303;zr=Fa(zr,De.arguments[0],xi,!1,!1),Ta(De,zr,!1)}function Nt(De){var zr,xi=Ds(De.left.expression,M)||Ds(De.left.expression,ie);if(!(!e.isInJSFile(De)&&!e.isFunctionSymbol(xi))){var et=e.getLeftmostAccessExpression(De.left);if(!(e.isIdentifier(et)&&((zr=G(M,et.escapedText))===null||zr===void 0?void 0:zr.flags)&2097152))if(e.setParent(De.left,De),e.setParent(De.right,De),e.isIdentifier(De.left.expression)&&M===E&&C(E,De.left.expression))Ka(De);else if(e.hasDynamicName(De)){oa(De,67108868,"__computed");var je=Fa(xi,De.left.expression,In(De.left),!1,!1);Re(De,je)}else ca(e.cast(De.left,e.isBindableStaticNameExpression))}}function ca(De){e.Debug.assert(!e.isIdentifier(De)),e.setParent(De.expression,De),so(De.expression,De,!1,!1)}function Fa(De,zr,xi,et,je){if((De==null?void 0:De.flags)&2097152)return De;if(xi&&!et){var ti=67110400,mt=110735;De=Os(zr,De,function(Zt,ln,Ba){if(ln)return le(ln,Zt,ti),ln;var Oo=Ba?Ba.exports:E.jsGlobalAugmentations||(E.jsGlobalAugmentations=e.createSymbolTable());return He(Oo,Ba,Zt,ti,mt)})}return je&&De&&De.valueDeclaration&&le(De,De.valueDeclaration,32),De}function Ta(De,zr,xi){if(!(!zr||!as(zr))){var et=xi?zr.members||(zr.members=e.createSymbolTable()):zr.exports||(zr.exports=e.createSymbolTable()),je=0,ti=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(De))?(je=8192,ti=103359):e.isCallExpression(De)&&e.isBindableObjectDefinePropertyCall(De)&&(e.some(De.arguments[2].properties,function(mt){var Zt=e.getNameOfDeclaration(mt);return!!Zt&&e.isIdentifier(Zt)&&e.idText(Zt)==="set"})&&(je|=65540,ti|=78783),e.some(De.arguments[2].properties,function(mt){var Zt=e.getNameOfDeclaration(mt);return!!Zt&&e.isIdentifier(Zt)&&e.idText(Zt)==="get"})&&(je|=32772,ti|=46015)),je===0&&(je=4,ti=0),He(et,zr,De,je|67108864,ti&-67108865)}}function In(De){return e.isBinaryExpression(De.parent)?Ho(De.parent).parent.kind===303:De.parent.parent.kind===303}function so(De,zr,xi,et){var je=Ds(De,M)||Ds(De,ie),ti=In(zr);je=Fa(je,zr.expression,ti,xi,et),Ta(zr,je,xi)}function as(De){if(De.flags&1072)return!0;var zr=De.valueDeclaration;if(zr&&e.isCallExpression(zr))return!!e.getAssignedExpandoInitializer(zr);var xi=zr?e.isVariableDeclaration(zr)?zr.initializer:e.isBinaryExpression(zr)?zr.right:e.isPropertyAccessExpression(zr)&&e.isBinaryExpression(zr.parent)?zr.parent.right:void 0:void 0;if(xi=xi&&e.getRightMostAssignedExpression(xi),xi){var et=e.isPrototypeAccess(e.isVariableDeclaration(zr)?zr.name:e.isBinaryExpression(zr)?zr.left:zr);return!!e.getExpandoInitializer(e.isBinaryExpression(xi)&&(xi.operatorToken.kind===56||xi.operatorToken.kind===60)?xi.right:xi,et)}return!1}function Ho(De){for(;e.isBinaryExpression(De.parent);)De=De.parent;return De.parent}function Ds(De,zr){if(zr===void 0&&(zr=M),e.isIdentifier(De))return G(zr,De.escapedText);var xi=Ds(De.expression);return xi&&xi.exports&&xi.exports.get(e.getElementOrPropertyAccessName(De))}function Os(De,zr,xi){if(C(E,De))return E.symbol;if(e.isIdentifier(De))return xi(De,Ds(De),zr);var et=Os(De.expression,zr,xi),je=e.getNameOrArgument(De);return e.isPrivateIdentifier(je)&&e.Debug.fail("unexpected PrivateIdentifier"),xi(je,et&&et.exports&&et.exports.get(e.getElementOrPropertyAccessName(De)),et)}function mc(De){!E.commonJsModuleIndicator&&e.isRequireCall(De,!1)&&ut(De)}function Hs(De){if(De.kind===256)Bt(De,32,899503);else{var zr=De.name?De.name.escapedText:"__class";oa(De,32,zr),De.name&&y.add(De.name.escapedText)}var xi=De.symbol,et=V(4194308,"prototype"),je=xi.exports.get(et.escapedName);je&&(De.name&&e.setParent(De.name,De),E.bindDiagnostics.push(m(je.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(et)))),xi.exports.set(et.escapedName,et),et.parent=xi}function Mi(De){return e.isEnumConst(De)?Bt(De,128,899967):Bt(De,256,899327)}function $t(De){w&&on(De,De.name),e.isBindingPattern(De.name)||(e.isInJSFile(De)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(De)&&!e.getJSDocTypeTag(De)?Rt(De,2097152,2097152):e.isBlockOrCatchScoped(De)?Bt(De,2,111551):e.isParameterDeclaration(De)?Rt(De,1,111551):Rt(De,1,111550))}function ga(De){if(!(De.kind===338&&M.kind!==321)&&(w&&!(De.flags&8388608)&&on(De,De.name),e.isBindingPattern(De.name)?oa(De,1,"__"+De.parent.parameters.indexOf(De)):Rt(De,1,111551),e.isParameterPropertyDeclaration(De,De.parent))){var zr=De.parent.parent;He(zr.symbol.members,zr.symbol,De,4|(De.questionToken?16777216:0),0)}}function xn(De){!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),bn(De),w?(Sn(De),Bt(De,16,110991)):Rt(De,16,110991)}function yn(De){!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),k&&(De.flowNode=k),bn(De);var zr=De.name?De.name.escapedText:"__function";return oa(De,16,zr)}function An(De,zr,xi){return!E.isDeclarationFile&&!(De.flags&8388608)&&e.isAsyncFunction(De)&&(J|=2048),k&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(De)&&(De.flowNode=k),e.hasDynamicName(De)?oa(De,zr,"__computed"):Rt(De,zr,xi)}function Pa(De){var zr=e.findAncestor(De,function(xi){return xi.parent&&e.isConditionalTypeNode(xi.parent)&&xi.parent.extendsType===xi});return zr&&zr.parent}function Mn(De){if(e.isJSDocTemplateTag(De.parent)){var zr=e.getEffectiveContainerForJSDocTemplateTag(De.parent);zr?(zr.locals||(zr.locals=e.createSymbolTable()),He(zr.locals,void 0,De,262144,526824)):Rt(De,262144,526824)}else if(De.parent.kind===189){var xi=Pa(De.parent);xi?(xi.locals||(xi.locals=e.createSymbolTable()),He(xi.locals,void 0,De,262144,526824)):oa(De,262144,ke(De))}else Rt(De,262144,526824)}function ao(De){var zr=O(De);return zr===1||zr===2&&e.shouldPreserveConstEnums(ue)}function co(De){if(!(k.flags&1))return!1;if(k===oe){var zr=e.isStatementButNotDeclaration(De)&&De.kind!==235||De.kind===256||De.kind===260&&ao(De);if(zr&&(k=ve,!ue.allowUnreachableCode)){var xi=e.unreachableCodeIsError(ue)&&!(De.flags&8388608)&&(!e.isVariableStatement(De)||!!(e.getCombinedNodeFlags(De.declarationList)&3)||De.declarationList.declarations.some(function(et){return!!et.initializer}));H(De,function(et,je){return Ko(xi,et,je,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function H(E,ue){if(e.isStatement(E)&&se(E)&&e.isBlock(E.parent)){var B=E.parent.statements,re=e.sliceAfter(B,E);e.getRangesWhere(re,se,function(M,x){return ue(re[M],re[x-1])})}else ue(E,E)}function se(E){return!e.isFunctionDeclaration(E)&&!p(E)&&!e.isEnumDeclaration(E)&&!(e.isVariableStatement(E)&&!(e.getCombinedNodeFlags(E)&3)&&E.declarationList.declarations.some(function(ue){return!ue.initializer}))}function p(E){switch(E.kind){case 257:case 258:return!0;case 260:return O(E)!==1;case 259:return e.hasSyntacticModifier(E,2048);default:return!1}}function C(E,ue){for(var B=0,re=[ue];re.length&&B<100;){if(B++,ue=re.shift(),e.isExportsIdentifier(ue)||e.isModuleExportsAccessExpression(ue))return!0;if(e.isIdentifier(ue)){var M=G(E,ue.escapedText);if(!!M&&!!M.valueDeclaration&&e.isVariableDeclaration(M.valueDeclaration)&&!!M.valueDeclaration.initializer){var x=M.valueDeclaration.initializer;re.push(x),e.isAssignmentExpression(x,!0)&&(re.push(x.left),re.push(x.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=C;function G(E,ue){var B=E.locals&&E.locals.get(ue);return B?B.exportSymbol||B:e.isSourceFile(E)&&E.jsGlobalAugmentations&&E.jsGlobalAugmentations.has(ue)?E.jsGlobalAugmentations.get(ue):E.symbol&&E.symbol.exports&&E.symbol.exports.get(ue)}})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W,N,Q,pe,F,g,S,H){return se;function se(p){p===void 0&&(p=function(){return!0});var C=[],G=[];return{walkType:function(I){try{return E(I),{visitedTypes:e.getOwnValues(C),visitedSymbols:e.getOwnValues(G)}}finally{e.clear(C),e.clear(G)}},walkSymbol:function(I){try{return k(I),{visitedTypes:e.getOwnValues(C),visitedSymbols:e.getOwnValues(G)}}finally{e.clear(C),e.clear(G)}}};function E(I){if(!!I&&!C[I.id]){C[I.id]=I;var ne=k(I.symbol);if(!ne){if(I.flags&524288){var ee=I,A=ee.objectFlags;A&4&&ue(I),A&32&&ie(I),A&3&&Y(I),A&24&&Z(ee)}I.flags&262144&&B(I),I.flags&3145728&&re(I),I.flags&4194304&&M(I),I.flags&8388608&&x(I)}}}function ue(I){E(I.target),e.forEach(H(I),E)}function B(I){E(g(I))}function re(I){e.forEach(I.types,E)}function M(I){E(I.type)}function x(I){E(I.objectType),E(I.indexType),E(I.constraint)}function ie(I){E(I.typeParameter),E(I.constraintType),E(I.templateType),E(I.modifiersType)}function _e(I){var ne=L(I);ne&&E(ne.type),e.forEach(I.typeParameters,E);for(var ee=0,A=I.parameters;ee<A.length;ee++){var f=A[ee];k(f)}E(O(I)),E(W(I))}function Y(I){Z(I),e.forEach(I.typeParameters,E),e.forEach(N(I),E),E(I.thisType)}function Z(I){for(var ne=Q(I),ee=0,A=ne.indexInfos;ee<A.length;ee++){var f=A[ee];E(f.keyType),E(f.type)}for(var P=0,D=ne.callSignatures;P<D.length;P++){var l=D[P];_e(l)}for(var _=0,J=ne.constructSignatures;_<J.length;_++){var l=J[_];_e(l)}for(var w=0,j=ne.properties;w<j.length;w++){var U=j[w];k(U)}}function k(I){if(!I)return!1;var ne=e.getSymbolId(I);if(G[ne])return!1;if(G[ne]=I,!p(I))return!0;var ee=pe(I);return E(ee),I.exports&&I.exports.forEach(k),e.forEach(I.declarations,function(A){if(A.type&&A.type.kind===180){var f=A.type,P=F(S(f.exprName));k(P)}}),!1}}}e.createGetSymbolWalker=a})(Pe||(Pe={}));var Pe;(function(e){var a=/^".+"$/,O="(anonymous)",L=1,W=1,N=1,Q=1,pe;(function(y){y[y.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",y[y.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",y[y.AllowsStringInputFlag=4]="AllowsStringInputFlag",y[y.ForOfFlag=8]="ForOfFlag",y[y.YieldStarFlag=16]="YieldStarFlag",y[y.SpreadFlag=32]="SpreadFlag",y[y.DestructuringFlag=64]="DestructuringFlag",y[y.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",y[y.Element=1]="Element",y[y.Spread=33]="Spread",y[y.Destructuring=65]="Destructuring",y[y.ForOf=13]="ForOf",y[y.ForAwaitOf=15]="ForAwaitOf",y[y.YieldStar=17]="YieldStar",y[y.AsyncYieldStar=19]="AsyncYieldStar",y[y.GeneratorReturnType=1]="GeneratorReturnType",y[y.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(pe||(pe={}));var F;(function(y){y[y.Yield=0]="Yield",y[y.Return=1]="Return",y[y.Next=2]="Next"})(F||(F={}));var g;(function(y){y[y.Normal=0]="Normal",y[y.FunctionReturn=1]="FunctionReturn",y[y.GeneratorNext=2]="GeneratorNext",y[y.GeneratorYield=3]="GeneratorYield"})(g||(g={}));var S;(function(y){y[y.None=0]="None",y[y.TypeofEQString=1]="TypeofEQString",y[y.TypeofEQNumber=2]="TypeofEQNumber",y[y.TypeofEQBigInt=4]="TypeofEQBigInt",y[y.TypeofEQBoolean=8]="TypeofEQBoolean",y[y.TypeofEQSymbol=16]="TypeofEQSymbol",y[y.TypeofEQObject=32]="TypeofEQObject",y[y.TypeofEQFunction=64]="TypeofEQFunction",y[y.TypeofEQHostObject=128]="TypeofEQHostObject",y[y.TypeofNEString=256]="TypeofNEString",y[y.TypeofNENumber=512]="TypeofNENumber",y[y.TypeofNEBigInt=1024]="TypeofNEBigInt",y[y.TypeofNEBoolean=2048]="TypeofNEBoolean",y[y.TypeofNESymbol=4096]="TypeofNESymbol",y[y.TypeofNEObject=8192]="TypeofNEObject",y[y.TypeofNEFunction=16384]="TypeofNEFunction",y[y.TypeofNEHostObject=32768]="TypeofNEHostObject",y[y.EQUndefined=65536]="EQUndefined",y[y.EQNull=131072]="EQNull",y[y.EQUndefinedOrNull=262144]="EQUndefinedOrNull",y[y.NEUndefined=524288]="NEUndefined",y[y.NENull=1048576]="NENull",y[y.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",y[y.Truthy=4194304]="Truthy",y[y.Falsy=8388608]="Falsy",y[y.All=16777215]="All",y[y.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",y[y.BaseStringFacts=12582401]="BaseStringFacts",y[y.StringStrictFacts=16317953]="StringStrictFacts",y[y.StringFacts=16776705]="StringFacts",y[y.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",y[y.EmptyStringFacts=12582401]="EmptyStringFacts",y[y.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",y[y.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",y[y.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",y[y.BaseNumberFacts=12582146]="BaseNumberFacts",y[y.NumberStrictFacts=16317698]="NumberStrictFacts",y[y.NumberFacts=16776450]="NumberFacts",y[y.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",y[y.ZeroNumberFacts=12582146]="ZeroNumberFacts",y[y.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",y[y.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",y[y.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",y[y.BaseBigIntFacts=12581636]="BaseBigIntFacts",y[y.BigIntStrictFacts=16317188]="BigIntStrictFacts",y[y.BigIntFacts=16775940]="BigIntFacts",y[y.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",y[y.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",y[y.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",y[y.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",y[y.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",y[y.BaseBooleanFacts=12580616]="BaseBooleanFacts",y[y.BooleanStrictFacts=16316168]="BooleanStrictFacts",y[y.BooleanFacts=16774920]="BooleanFacts",y[y.FalseStrictFacts=12121864]="FalseStrictFacts",y[y.FalseFacts=12580616]="FalseFacts",y[y.TrueStrictFacts=7927560]="TrueStrictFacts",y[y.TrueFacts=16774920]="TrueFacts",y[y.SymbolStrictFacts=7925520]="SymbolStrictFacts",y[y.SymbolFacts=16772880]="SymbolFacts",y[y.ObjectStrictFacts=7888800]="ObjectStrictFacts",y[y.ObjectFacts=16736160]="ObjectFacts",y[y.FunctionStrictFacts=7880640]="FunctionStrictFacts",y[y.FunctionFacts=16728e3]="FunctionFacts",y[y.UndefinedFacts=9830144]="UndefinedFacts",y[y.NullFacts=9363232]="NullFacts",y[y.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",y[y.AllTypeofNE=556800]="AllTypeofNE",y[y.EmptyObjectFacts=16777215]="EmptyObjectFacts",y[y.OrFactsMask=8256]="OrFactsMask",y[y.AndFactsMask=16768959]="AndFactsMask"})(S||(S={}));var H=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),se=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),p;(function(y){y[y.Type=0]="Type",y[y.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",y[y.DeclaredType=2]="DeclaredType",y[y.ResolvedReturnType=3]="ResolvedReturnType",y[y.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",y[y.EnumTagType=5]="EnumTagType",y[y.ResolvedTypeArguments=6]="ResolvedTypeArguments",y[y.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(p||(p={}));var C;(function(y){y[y.Normal=0]="Normal",y[y.Contextual=1]="Contextual",y[y.Inferential=2]="Inferential",y[y.SkipContextSensitive=4]="SkipContextSensitive",y[y.SkipGenericFunctions=8]="SkipGenericFunctions",y[y.IsForSignatureHelp=16]="IsForSignatureHelp",y[y.RestBindingElement=32]="RestBindingElement"})(C||(C={}));var G;(function(y){y[y.BivariantCallback=1]="BivariantCallback",y[y.StrictCallback=2]="StrictCallback",y[y.IgnoreReturnTypes=4]="IgnoreReturnTypes",y[y.StrictArity=8]="StrictArity",y[y.Callback=3]="Callback"})(G||(G={}));var E;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.PropertyCheck=4]="PropertyCheck",y[y.InPropertyCheck=8]="InPropertyCheck"})(E||(E={}));var ue;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.Both=3]="Both"})(ue||(ue={}));var B;(function(y){y[y.IncludeReadonly=1]="IncludeReadonly",y[y.ExcludeReadonly=2]="ExcludeReadonly",y[y.IncludeOptional=4]="IncludeOptional",y[y.ExcludeOptional=8]="ExcludeOptional"})(B||(B={}));var re;(function(y){y[y.None=0]="None",y[y.Source=1]="Source",y[y.Target=2]="Target",y[y.Both=3]="Both"})(re||(re={}));var M;(function(y){y.resolvedExports="resolvedExports",y.resolvedMembers="resolvedMembers"})(M||(M={}));var x;(function(y){y[y.Local=0]="Local",y[y.Parameter=1]="Parameter"})(x||(x={}));var ie=e.and(_,l),_e;(function(y){y[y.GetAccessor=1]="GetAccessor",y[y.SetAccessor=2]="SetAccessor",y[y.PropertyAssignment=4]="PropertyAssignment",y[y.Method=8]="Method",y[y.PrivateStatic=16]="PrivateStatic",y[y.GetOrSetAccessor=3]="GetOrSetAccessor",y[y.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(_e||(_e={}));var Y;(function(y){y[y.None=0]="None",y[y.ExportValue=1]="ExportValue",y[y.ExportType=2]="ExportType",y[y.ExportNamespace=4]="ExportNamespace"})(Y||(Y={}));var Z;(function(y){y[y.None=0]="None",y[y.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",y[y.VoidIsNonOptional=2]="VoidIsNonOptional"})(Z||(Z={}));var k;(function(y){y[y.Uppercase=0]="Uppercase",y[y.Lowercase=1]="Lowercase",y[y.Capitalize=2]="Capitalize",y[y.Uncapitalize=3]="Uncapitalize"})(k||(k={}));var I=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function ne(){}function ee(){this.flags=0}function A(y){return y.id||(y.id=W,W++),y.id}e.getNodeId=A;function f(y){return y.id||(y.id=L,L++),y.id}e.getSymbolId=f;function P(y,oe){var ve=e.getModuleInstanceState(y);return ve===1||oe&&ve===2}e.isInstantiatedModule=P;function D(y,oe){var ve=e.memoize(function(){var r=new e.Map;return y.getSourceFiles().forEach(function(i){!i.resolvedModules||i.resolvedModules.forEach(function(t){t&&t.packageId&&r.set(t.packageId.name,t.extension===".d.ts"||!!r.get(t.packageId.name))})}),r}),ce,m,de,ae=e.objectAllocator.getSymbolConstructor(),V=e.objectAllocator.getTypeConstructor(),le=e.objectAllocator.getSignatureConstructor(),ke=0,Ue=0,He=0,ar=0,gr=0,me=0,Ge=0,er,he=e.createSymbolTable(),we=[1],ye=y.getCompilerOptions(),Se=e.getEmitScriptTarget(ye),ge=e.getEmitModuleKind(ye),Fe=e.getUseDefineForClassFields(ye),cr=e.getAllowSyntheticDefaultImports(ye),ur=e.getStrictOptionValue(ye,"strictNullChecks"),Ir=e.getStrictOptionValue(ye,"strictFunctionTypes"),dr=e.getStrictOptionValue(ye,"strictBindCallApply"),Br=e.getStrictOptionValue(ye,"strictPropertyInitialization"),Tr=e.getStrictOptionValue(ye,"noImplicitAny"),n=e.getStrictOptionValue(ye,"noImplicitThis"),Er=e.getStrictOptionValue(ye,"useUnknownInCatchVariables"),br=!!ye.keyofStringsOnly,Pr=ye.suppressExcessPropertyErrors?0:16384,Ce=ye.exactOptionalPropertyTypes,Le=U7(),Xe=n9(),Cr=Pd(),Lr=e.createSymbolTable(),Jr=bo(4,"undefined");Jr.declarations=[];var Rr=bo(1536,"globalThis",8);Rr.exports=Lr,Rr.declarations=[],Lr.set(Rr.escapedName,Rr);var ci=bo(4,"arguments"),be=bo(4,"require"),or,Kr={getNodeCount:function(){return e.sum(y.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(y.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(y.getSourceFiles(),"symbolCount")+Ue},getTypeCount:function(){return ke},getInstantiationCount:function(){return ar},getRelationCacheSizes:function(){return{assignable:Sr.size,identity:nt.size,subtype:Te.size,strictSubtype:vr.size}},isUndefinedSymbol:function(r){return r===Jr},isArgumentsSymbol:function(r){return r===ci},isUnknownSymbol:function(r){return r===hr},getMergedSymbol:Wn,getDiagnostics:x6,getGlobalDiagnostics:bM,getRecursionIdentity:Qv,getUnmatchedProperties:qD,getTypeOfSymbolAtLocation:function(r,i){var t=e.getParseTreeNode(i);return t?tw(r,t):Oe},getTypeOfSymbol:Jt,getSymbolsOfParameterPropertyDeclaration:function(r,i){var t=e.getParseTreeNode(r,e.isParameter);return t===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):fp(t,e.escapeLeadingUnderscores(i))},getDeclaredTypeOfSymbol:Io,getPropertiesOfType:_o,getPropertyOfType:function(r,i){return tn(r,e.escapeLeadingUnderscores(i))},getPrivateIdentifierPropertyOfType:function(r,i,t){var o=e.getParseTreeNode(t);if(!!o){var s=e.escapeLeadingUnderscores(i),u=Zh(s,o);return u?Tb(r,u):void 0}},getTypeOfPropertyOfType:function(r,i){return ai(r,e.escapeLeadingUnderscores(i))},getIndexInfoOfType:function(r,i){return kc(r,i===0?ki:Ui)},getIndexInfosOfType:Js,getSignaturesOfType:za,getIndexTypeOfType:function(r,i){return fl(r,i===0?ki:Ui)},getIndexType:function(r){return Ll(r)},getBaseTypes:zc,getBaseTypeOfLiteralType:Bl,getWidenedType:Hc,getTypeFromTypeNode:function(r){var i=e.getParseTreeNode(r,e.isTypeNode);return i?Ua(i):Oe},getParameterType:Hu,getParameterIdentifierNameAtPosition:y7,getPromisedTypeOfPromise:nv,getAwaitedType:function(r){return zd(r)},getReturnTypeOfSignature:So,isNullableType:$h,getNullableType:Eh,getNonNullableType:C_,getNonOptionalType:FD,getTypeArguments:Co,typeToTypeNode:Cr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Cr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Cr.signatureToSignatureDeclaration,symbolToEntityName:Cr.symbolToEntityName,symbolToExpression:Cr.symbolToExpression,symbolToTypeParameterDeclarations:Cr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Cr.symbolToParameterDeclaration,typeParameterToDeclaration:Cr.typeParameterToDeclaration,getSymbolsInScope:function(r,i){var t=e.getParseTreeNode(r);return t?SM(t,i):[]},getSymbolAtLocation:function(r){var i=e.getParseTreeNode(r);return i?Xu(i,!0):void 0},getIndexInfosAtLocation:function(r){var i=e.getParseTreeNode(r);return i?PM(i):void 0},getShorthandAssignmentValueSymbol:function(r){var i=e.getParseTreeNode(r);return i?NM(i):void 0},getExportSpecifierLocalTargetSymbol:function(r){var i=e.getParseTreeNode(r,e.isExportSpecifier);return i?IM(i):void 0},getExportSymbolOfSymbol:function(r){return Wn(r.exportSymbol||r)},getTypeAtLocation:function(r){var i=e.getParseTreeNode(r);return i?Wp(i):Oe},getTypeOfAssignmentPattern:function(r){var i=e.getParseTreeNode(r,e.isAssignmentPattern);return i&&P0(i)||Oe},getPropertySymbolOfDestructuringAssignment:function(r){var i=e.getParseTreeNode(r,e.isIdentifier);return i?wM(i):void 0},signatureToString:function(r,i,t,o){return kl(r,e.getParseTreeNode(i),t,o)},typeToString:function(r,i,t){return ht(r,e.getParseTreeNode(i),t)},symbolToString:function(r,i,t,o){return Ga(r,e.getParseTreeNode(i),t,o)},typePredicateToString:function(r,i,t){return Al(r,e.getParseTreeNode(i),t)},writeSignature:function(r,i,t,o,s){return kl(r,e.getParseTreeNode(i),t,o,s)},writeType:function(r,i,t,o){return ht(r,e.getParseTreeNode(i),t,o)},writeSymbol:function(r,i,t,o,s){return Ga(r,e.getParseTreeNode(i),t,o,s)},writeTypePredicate:function(r,i,t,o){return Al(r,e.getParseTreeNode(i),t,o)},getAugmentedPropertiesOfType:gS,getRootSymbols:N6,getSymbolOfExpando:c0,getContextualType:function(r,i){var t=e.getParseTreeNode(r,e.isExpression);if(!!t){var o=e.findAncestor(t,e.isCallLikeExpression),s=o&&Da(o).resolvedSignature;if(i&4&&o){var u=t;do Da(u).skipDirectInference=!0,u=u.parent;while(u&&u!==o);Da(o).resolvedSignature=void 0}var T=Su(t,i);if(i&4&&o){var u=t;do Da(u).skipDirectInference=void 0,u=u.parent;while(u&&u!==o);Da(o).resolvedSignature=s}return T}},getContextualTypeForObjectLiteralElement:function(r){var i=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return i?ub(i):void 0},getContextualTypeForArgumentAtIndex:function(r,i){var t=e.getParseTreeNode(r,e.isCallLikeExpression);return t&&cb(t,i)},getContextualTypeForJsxAttribute:function(r){var i=e.getParseTreeNode(r,e.isJsxAttributeLike);return i&&aC(i)},isContextSensitive:_l,getTypeOfPropertyOfContextualType:yd,getFullyQualifiedName:ts,getResolvedSignature:function(r,i,t){return ei(r,i,t,0)},getResolvedSignatureForSignatureHelp:function(r,i,t){return ei(r,i,t,16)},getExpandedParameters:Av,hasEffectiveRestParameter:Ul,containsArgumentsReference:L1,getConstantValue:function(r){var i=e.getParseTreeNode(r,M6);return i?vS(i):void 0},isValidPropertyAccess:function(r,i){var t=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!t&&w5(t,e.escapeLeadingUnderscores(i))},isValidPropertyAccessForCompletions:function(r,i,t){var o=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!o&&wC(o,i,t)},getSignatureFromDeclaration:function(r){var i=e.getParseTreeNode(r,e.isFunctionLike);return i?Ku(i):void 0},isImplementationOfOverload:function(r){var i=e.getParseTreeNode(r,e.isFunctionLike);return i?O6(i):void 0},getImmediateAliasedSymbol:db,getAliasedSymbol:zo,getEmitResolver:Vn,getExportsOfModule:_f,getExportsAndPropertiesOfModule:Vl,forEachExportAndPropertyOfModule:j_,getSymbolWalker:e.createGetSymbolWalker(jN,wu,So,zc,Vu,Jt,dl,qc,e.getFirstIdentifier,Co),getAmbientModules:Q9,getJsxIntrinsicTagNamesAt:_5,isOptionalParameter:function(r){var i=e.getParseTreeNode(r,e.isParameter);return i?ud(i):!1},tryGetMemberInModuleExports:function(r,i){return Uf(e.escapeLeadingUnderscores(r),i)},tryGetMemberInModuleExportsAndProperties:function(r,i){return Sp(e.escapeLeadingUnderscores(r),i)},tryFindAmbientModule:function(r){return Ug(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return Ug(r,!1)},getApparentType:$,getUnionType:ba,isTypeAssignableTo:oo,createAnonymousType:_s,createSignature:Pu,createSymbol:bo,createIndexInfo:Fl,getAnyType:function(){return xe},getStringType:function(){return ki},getNumberType:function(){return Ui},createPromiseType:dy,createArrayType:tc,getElementTypeOfArrayType:AD,getBooleanType:function(){return xt},getFalseType:function(r){return r?ri:Gi},getTrueType:function(r){return r?Rt:pa},getVoidType:function(){return Vt},getUndefinedType:function(){return Nr},getNullType:function(){return Ti},getESSymbolType:function(){return ua},getNeverType:function(){return St},getOptionalType:function(){return si},getPromiseType:function(){return zv(!1)},getPromiseLikeType:function(){return nx(!1)},isSymbolAccessible:mf,isArrayType:_c,isTupleType:Ln,isArrayLikeType:ap,isTypeInvalidDueToUnionDiscriminant:Qy,getExactOptionalProperties:R8,getAllPossiblePropertiesOfTypes:Yy,getSuggestedSymbolForNonexistentProperty:Cb,getSuggestionForNonexistentProperty:kb,getSuggestedSymbolForNonexistentJSXAttribute:NC,getSuggestedSymbolForNonexistentSymbol:function(r,i,t){return Ab(r,e.escapeLeadingUnderscores(i),t)},getSuggestionForNonexistentSymbol:function(r,i,t){return A5(r,e.escapeLeadingUnderscores(i),t)},getSuggestedSymbolForNonexistentModule:r0,getSuggestionForNonexistentExport:P5,getSuggestedSymbolForNonexistentClassMember:PC,getBaseConstraintOfType:Cc,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?H_(r):void 0},resolveName:function(r,i,t,o){return os(i,e.escapeLeadingUnderscores(r),t,void 0,void 0,!1,o)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(no(r))},getJsxFragmentFactory:function(r){var i=hS(r);return i&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(i).escapedText)},getAccessibleSymbolChain:Xl,getTypePredicateOfSignature:wu,resolveExternalModuleName:function(r){var i=e.getParseTreeNode(r,e.isExpression);return i&&ko(i,i,!0)},resolveExternalModuleSymbol:Fs,tryGetThisTypeAt:function(r,i){var t=e.getParseTreeNode(r);return t&&tb(t,i)},getTypeArgumentConstraint:function(r){var i=e.getParseTreeNode(r,e.isTypeNode);return i&&gO(i)},getSuggestionDiagnostics:function(r,i){var t=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(t,ye,y))return e.emptyArray;var o;try{return ce=i,pS(t),e.Debug.assert(!!(Da(t).flags&1)),o=e.addRange(o,ha.getDiagnostics(t.fileName)),zk(T6(t),function(s,u,T){!e.containsParseError(s)&&!S6(u,!!(s.flags&8388608))&&(o||(o=[])).push(Ve(Ve({},T),{category:e.DiagnosticCategory.Suggestion}))}),o||e.emptyArray}finally{ce=void 0}},runWithCancellationToken:function(r,i){try{return ce=r,i(Kr)}finally{ce=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Sf,isDeclarationVisible:sc,isPropertyAccessible:Nb,getTypeOnlyAliasDeclaration:gu,getMemberOverrideModifierStatus:JF};function ei(r,i,t,o){var s=e.getParseTreeNode(r,e.isCallLikeExpression);or=t;var u=s?sm(s,i,o):void 0;return or=void 0,u}var li=new e.Map,Si=new e.Map,qi=new e.Map,ft=new e.Map,bt=new e.Map,aa=new e.Map,sr=new e.Map,Ji=new e.Map,di=new e.Map,X=new e.Map,Ye=new e.Map,Be=new e.Map,Qe=[],_r=new e.Map,hr=bo(4,"unknown"),Dr=bo(0,"__resolving__"),Me=new e.Map,v=new e.Map,xe=ss(1,"any"),ze=ss(1,"any"),Je=ss(1,"any"),Oe=ss(1,"error"),Fr=ss(1,"unresolved"),Xr=ss(1,"any",131072),Or=ss(1,"intrinsic"),We=ss(2,"unknown"),mr=ss(2,"unknown"),Nr=ss(32768,"undefined"),Ur=ur?Nr:ss(32768,"undefined",131072),si=ss(32768,"undefined"),mi=Ce?ss(32768,"undefined"):Nr,Ti=ss(65536,"null"),hi=ur?Ti:ss(65536,"null",131072),ki=ss(4,"string"),Ui=ss(8,"number"),zi=ss(64,"bigint"),ri=ss(512,"false"),Gi=ss(512,"false"),Rt=ss(512,"true"),pa=ss(512,"true");Rt.regularType=pa,Rt.freshType=Rt,pa.regularType=pa,pa.freshType=Rt,ri.regularType=Gi,ri.freshType=ri,Gi.regularType=Gi,Gi.freshType=ri;var xt=ba([Gi,pa]),ua=ss(4096,"symbol"),Vt=ss(16384,"void"),St=ss(131072,"never"),Ci=ss(131072,"never"),Hi=ss(131072,"never",524288),Yi=ss(131072,"never"),yt=ss(131072,"never"),gt=ss(67108864,"object"),oa=ba([ki,Ui]),Bt=ba([ki,Ui,ua]),Pi=br?ki:Bt,Oi=ba([Ui,zi]),wi=ba([ki,Ui,xt,zi,Ti,Nr]),Qr=_d(function(r){return r.flags&262144?f8(r):r}),Ct=_d(function(r){return r.flags&262144?Je:r}),tt=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),ta=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);ta.objectFlags|=2048;var Xa=bo(2048,"__type");Xa.members=e.createSymbolTable();var on=_s(Xa,he,e.emptyArray,e.emptyArray,e.emptyArray),qr=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);qr.instantiations=new e.Map;var bn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray);bn.objectFlags|=524288;var Rn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),Sn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),zn=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray),Zn=vu(),ho=vu();ho.constraint=Zn;var Vo=vu(),Cn=tg(1,"<<unresolved>>",0,xe),go=Pu(void 0,void 0,void 0,e.emptyArray,xe,void 0,0,0),ro=Pu(void 0,void 0,void 0,e.emptyArray,Oe,void 0,0,0),Ko=Pu(void 0,void 0,void 0,e.emptyArray,xe,void 0,0,0),rs=Pu(void 0,void 0,void 0,e.emptyArray,Ci,void 0,0,0),rn=Fl(Ui,ki,!0),Do=new e.Map,io={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},pn=e_(xe,xe,xe),Qn=e_(xe,xe,We),wo=e_(St,xe,Nr),xo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:t3,getGlobalIterableType:i3,getGlobalIterableIteratorType:a3,getGlobalGeneratorType:n3,resolveIterationType:zd,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ds={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:o3,getGlobalIterableType:ox,getGlobalIterableIteratorType:s3,getGlobalGeneratorType:c3,resolveIterationType:function(r,i){return r},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},No,Ts=new e.Map,Ms=!1,xr,bi,ut,Ht,Ka,an,Ke,h,Ee,Re,nr,Gr,_i,Ei,Ki,Nt,ca,Fa,Ta,In,so,as,Ho,Ds,Os,mc,Hs,Mi,$t,ga,xn,yn,An,Pa,Mn,ao,co,De,zr,xi,et,je,ti,mt,Zt=new e.Map,ln=0,Ba=0,Oo=0,jr=!1,is=0,hc,nc,ns,Xs=Ou(""),rc=xf(0),uu=cD({negative:!1,base10Value:"0"}),Bc=[],Qu=[],uo=[],Xc=0,Ru=10,Dc=[],Yu=[],lu=[],qa=[],Bu=[],$u=[],au=[],Vr=[],fi=[],Ni=[],rt=[],Tt=[],Dt=[],jt=[],na=[],Za=[],ya=e.createDiagnosticCollection(),ha=e.createDiagnosticCollection(),Ja=new e.Map(e.getEntries({string:ki,number:Ui,bigint:zi,boolean:xt,symbol:ua,undefined:Nr})),Eo=Ad(),Hn,lo,Kn,Te=new e.Map,vr=new e.Map,Sr=new e.Map,Di=new e.Map,nt=new e.Map,_a=new e.Map,Na=e.createSymbolTable();Na.set(Jr.escapedName,Jr);var wn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ye.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return o9(),Kr;function no(r){if(r){var i=e.getSourceFileOfNode(r);if(i)if(e.isJsxOpeningFragment(r)){if(i.localJsxFragmentNamespace)return i.localJsxFragmentNamespace;var t=i.pragmas.get("jsxfrag");if(t){var o=e.isArray(t)?t[0]:t;if(i.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Se),e.visitNode(i.localJsxFragmentFactory,vo),i.localJsxFragmentFactory)return i.localJsxFragmentNamespace=e.getFirstIdentifier(i.localJsxFragmentFactory).escapedText}var s=hS(r);if(s)return i.localJsxFragmentFactory=s,i.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var u=Go(i);if(u)return i.localJsxNamespace=u}}return Hn||(Hn="React",ye.jsxFactory?(lo=e.parseIsolatedEntityName(ye.jsxFactory,Se),e.visitNode(lo,vo),lo&&(Hn=e.getFirstIdentifier(lo).escapedText)):ye.reactNamespace&&(Hn=e.escapeLeadingUnderscores(ye.reactNamespace))),lo||(lo=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Hn)),"createElement")),Hn}function Go(r){if(r.localJsxNamespace)return r.localJsxNamespace;var i=r.pragmas.get("jsx");if(i){var t=e.isArray(i)?i[0]:i;if(r.localJsxFactory=e.parseIsolatedEntityName(t.arguments.factory,Se),e.visitNode(r.localJsxFactory,vo),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function vo(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,vo,e.nullTransformationContext)}function Vn(r,i){return x6(r,i),Xe}function to(r,i,t,o,s,u){var T=r?e.createDiagnosticForNode(r,i,t,o,s,u):e.createCompilerDiagnostic(i,t,o,s,u),q=ya.lookup(T);return q||(ya.add(T),T)}function Jo(r,i,t,o,s,u,T){var q=Wr(i,t,o,s,u,T);return q.skippedOn=r,q}function Xo(r,i,t,o,s,u){return r?e.createDiagnosticForNode(r,i,t,o,s,u):e.createCompilerDiagnostic(i,t,o,s,u)}function Wr(r,i,t,o,s,u){var T=Xo(r,i,t,o,s,u);return ya.add(T),T}function Ws(r,i){r?ya.add(i):ha.add(Ve(Ve({},i),{category:e.DiagnosticCategory.Suggestion}))}function nu(r,i,t,o,s,u,T){if(i.pos<0||i.end<0){if(!r)return;var q=e.getSourceFileOfNode(i);Ws(r,"message"in t?e.createFileDiagnostic(q,0,0,t,o,s,u,T):e.createDiagnosticForFileFromMessageChain(q,t));return}Ws(r,"message"in t?e.createDiagnosticForNode(i,t,o,s,u,T):e.createDiagnosticForNodeFromMessageChain(i,t))}function Tu(r,i,t,o,s,u,T){var q=Wr(r,t,o,s,u,T);if(i){var fe=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(q,fe)}return q}function oc(r,i){var t=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return t&&e.addRelatedInfo(i,e.createDiagnosticForNode(t,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),ha.add(i),i}function Qc(r){return!!(Yh(r)&134217728)}function fu(r,i,t){var o=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,t);return oc(i,o)}function lp(r,i,t,o){var s=t?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,t):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,o);return oc(i,s)}function bo(r,i,t){Ue++;var o=new ae(r|33554432,i);return o.checkFlags=t||0,o}function w_(r){var i=0;return r&2&&(i|=111551),r&1&&(i|=111550),r&4&&(i|=0),r&8&&(i|=900095),r&16&&(i|=110991),r&32&&(i|=899503),r&64&&(i|=788872),r&256&&(i|=899327),r&128&&(i|=899967),r&512&&(i|=110735),r&8192&&(i|=103359),r&32768&&(i|=46015),r&65536&&(i|=78783),r&262144&&(i|=526824),r&524288&&(i|=788968),r&2097152&&(i|=2097152),i}function i_(r,i){i.mergeId||(i.mergeId=N,N++),Dc[i.mergeId]=r}function Ls(r){var i=bo(r.flags,r.escapedName);return i.declarations=r.declarations?r.declarations.slice():[],i.parent=r.parent,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),r.members&&(i.members=new e.Map(r.members)),r.exports&&(i.exports=new e.Map(r.exports)),i_(i,r),i}function hl(r,i,t){if(t===void 0&&(t=!1),!(r.flags&w_(i.flags))||(i.flags|r.flags)&67108864){if(i===r)return r;if(!(r.flags&33554432)){var o=Qo(r);if(o===hr)return i;r=Ls(o)}i.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!i.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=i.flags,i.valueDeclaration&&e.setValueDeclaration(r,i.valueDeclaration),e.addRange(r.declarations,i.declarations),i.members&&(r.members||(r.members=e.createSymbolTable()),Yc(r.members,i.members,t)),i.exports&&(r.exports||(r.exports=e.createSymbolTable()),Yc(r.exports,i.exports,t)),t||i_(r,i)}else if(r.flags&1024)r!==Rr&&Wr(i.declarations&&e.getNameOfDeclaration(i.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ga(r));else{var s=!!(r.flags&384||i.flags&384),u=!!(r.flags&2||i.flags&2),T=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:u?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,q=i.declarations&&e.getSourceFileOfNode(i.declarations[0]),fe=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),Ne=e.isPlainJsFile(q,ye.checkJs),$e=e.isPlainJsFile(fe,ye.checkJs),Ze=Ga(i);if(q&&fe&&No&&!s&&q!==fe){var lr=e.comparePaths(q.path,fe.path)===-1?q:fe,yr=lr===q?fe:q,Zr=e.getOrUpdate(No,"".concat(lr.path,"|").concat(yr.path),function(){return{firstFile:lr,secondFile:yr,conflictingSymbols:new e.Map}}),ui=e.getOrUpdate(Zr.conflictingSymbols,Ze,function(){return{isBlockScoped:u,firstFileLocations:[],secondFileLocations:[]}});Ne||Ii(ui.firstFileLocations,i),$e||Ii(ui.secondFileLocations,r)}else Ne||xu(i,T,Ze,r),$e||xu(r,T,Ze,i)}return r;function Ii(Fi,Ri){if(Ri.declarations)for(var Xi=0,ea=Ri.declarations;Xi<ea.length;Xi++){var lt=ea[Xi];e.pushIfUnique(Fi,lt)}}}function xu(r,i,t,o){e.forEach(r.declarations,function(s){tf(s,i,t,o.declarations)})}function tf(r,i,t,o){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,u=to(s,i,t),T=function($e){var Ze=(e.getExpandoInitializer($e,!1)?e.getNameOfExpando($e):e.getNameOfDeclaration($e))||$e;if(Ze===s)return"continue";u.relatedInformation=u.relatedInformation||[];var lr=e.createDiagnosticForNode(Ze,e.Diagnostics._0_was_also_declared_here,t),yr=e.createDiagnosticForNode(Ze,e.Diagnostics.and_here);if(e.length(u.relatedInformation)>=5||e.some(u.relatedInformation,function(Zr){return e.compareDiagnostics(Zr,yr)===0||e.compareDiagnostics(Zr,lr)===0}))return"continue";e.addRelatedInfo(u,e.length(u.relatedInformation)?yr:lr)},q=0,fe=o||e.emptyArray;q<fe.length;q++){var Ne=fe[q];T(Ne)}}function If(r,i){if(!(r!=null&&r.size))return i;if(!(i!=null&&i.size))return r;var t=e.createSymbolTable();return Yc(t,r),Yc(t,i),t}function Yc(r,i,t){t===void 0&&(t=!1),i.forEach(function(o,s){var u=r.get(s);r.set(s,u?hl(u,o,t):o)})}function Vs(r){var i,t,o,s=r.parent;if(((i=s.symbol.declarations)===null||i===void 0?void 0:i[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))Yc(Lr,s.symbol.exports);else{var u=r.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=xc(r,r,u,!0);if(!T)return;if(T=Fs(T),T.flags&1920)if(e.some(bi,function(Zr){return T===Zr.symbol})){var q=hl(s.symbol,T,!0);ut||(ut=new e.Map),ut.set(r.text,q)}else{if(((t=T.exports)===null||t===void 0?void 0:t.get("__export"))&&((o=s.symbol.exports)===null||o===void 0?void 0:o.size))for(var fe=$d(T,"resolvedExports"),Ne=0,$e=e.arrayFrom(s.symbol.exports.entries());Ne<$e.length;Ne++){var Ze=$e[Ne],lr=Ze[0],yr=Ze[1];fe.has(lr)&&!T.exports.has(lr)&&hl(fe.get(lr),yr)}hl(T,s.symbol)}else Wr(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function Zu(r,i,t){i.forEach(function(s,u){var T=r.get(u);T?e.forEach(T.declarations,o(e.unescapeLeadingUnderscores(u),t)):r.set(u,s)});function o(s,u){return function(T){return ya.add(e.createDiagnosticForNode(T,u,s))}}}function Ma(r){if(r.flags&33554432)return r;var i=f(r);return Yu[i]||(Yu[i]=new ne)}function Da(r){var i=A(r);return lu[i]||(lu[i]=new ee)}function Ju(r){return r.kind===303&&!e.isExternalOrCommonJsModule(r)}function Pc(r,i,t){if(t){var o=Wn(r.get(i));if(o){if(e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here."),o.flags&t)return o;if(o.flags&2097152){var s=zo(o);if(s===hr||s.flags&t)return o}}}}function fp(r,i){var t=r.parent,o=r.parent.parent,s=Pc(t.locals,i,111551),u=Pc(Il(o.symbol),i,111551);return s&&u?[s,u]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function wf(r,i){var t=e.getSourceFileOfNode(r),o=e.getSourceFileOfNode(i),s=e.getEnclosingBlockScopeContainer(r);if(t!==o){if(ge&&(t.externalModuleIndicator||o.externalModuleIndicator)||!e.outFile(ye)||im(i)||r.flags&8388608||Ne(i,r))return!0;var u=y.getSourceFiles();return u.indexOf(t)<=u.indexOf(o)}if(r.pos<=i.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(i.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===202){var T=e.getAncestor(i,202);return T?e.findAncestor(T,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<T.pos:wf(e.getAncestor(r,253),i)}else{if(r.kind===253)return!fe(r,i);if(e.isClassDeclaration(r))return!e.findAncestor(i,function(Ze){return e.isComputedPropertyName(Ze)&&Ze.parent.parent===r});if(e.isPropertyDeclaration(r))return!$e(r,i,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(ye)===99&&Fe&&e.getContainingClass(r)===e.getContainingClass(i)&&Ne(i,r))}return!0}if(i.parent.kind===274||i.parent.kind===270&&i.parent.isExportEquals||i.kind===270&&i.isExportEquals||!!(i.flags&4194304)||im(i)||q())return!0;if(Ne(i,r))return e.getEmitScriptTarget(ye)===99&&Fe&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!$e(r,i,!0):!0;return!1;function q(){return!!e.findAncestor(i,function(Ze){return e.isInterfaceDeclaration(Ze)||e.isTypeAliasDeclaration(Ze)})}function fe(Ze,lr){switch(Ze.parent.parent.kind){case 236:case 241:case 243:if(L_(lr,Ze,s))return!0;break}var yr=Ze.parent.parent;return e.isForInOrOfStatement(yr)&&L_(lr,yr.expression,s)}function Ne(Ze,lr){return!!e.findAncestor(Ze,function(yr){if(yr===s)return"quit";if(e.isFunctionLike(yr))return!0;if(e.isClassStaticBlockDeclaration(yr))return lr.pos<Ze.pos;var Zr=e.tryCast(yr.parent,e.isPropertyDeclaration);if(Zr){var ui=Zr.initializer===yr;if(ui)if(e.isStatic(yr.parent)){if(lr.kind===168)return!0;if(e.isPropertyDeclaration(lr)&&e.getContainingClass(Ze)===e.getContainingClass(lr)){var Ii=lr.name;if(e.isIdentifier(Ii)||e.isPrivateIdentifier(Ii)){var Fi=Jt(It(lr)),Ri=e.filter(lr.parent.members,e.isClassStaticBlockDeclaration);if(VF(Ii,Fi,Ri,lr.parent.pos,yr.pos))return!0}}}else{var Xi=lr.kind===166&&!e.isStatic(lr);if(!Xi||e.getContainingClass(Ze)!==e.getContainingClass(lr))return!0}}return!1})}function $e(Ze,lr,yr){if(lr.end>Ze.end)return!1;var Zr=e.findAncestor(lr,function(ui){if(ui===Ze)return"quit";switch(ui.kind){case 213:return!0;case 166:return yr&&(e.isPropertyDeclaration(Ze)&&ui.parent===Ze.parent||e.isParameterPropertyDeclaration(Ze,Ze.parent)&&ui.parent===Ze.parent.parent)?"quit":!0;case 234:switch(ui.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}});return Zr===void 0}}function Xp(r,i,t){var o=e.getEmitScriptTarget(ye),s=i;if(e.isParameter(t)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&o>=2){var u=Da(s);return u.declarationRequiresScopeChange===void 0&&(u.declarationRequiresScopeChange=e.forEach(s.parameters,T)||!1),!u.declarationRequiresScopeChange}return!1;function T(fe){return q(fe.name)||!!fe.initializer&&q(fe.initializer)}function q(fe){switch(fe.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return q(fe.name);case 166:return e.hasStaticModifier(fe)?o<99||!Fe:q(fe.name);default:return e.isNullishCoalesce(fe)||e.isOptionalChain(fe)?o<7:e.isBindingElement(fe)&&fe.dotDotDotToken&&e.isObjectBindingPattern(fe.parent)?o<4:e.isTypeNode(fe)?!1:e.forEachChild(fe,q)||!1}}}function os(r,i,t,o,s,u,T,q){return T===void 0&&(T=!1),q===void 0&&(q=!0),el(r,i,t,o,s,u,T,q,Pc)}function el(r,i,t,o,s,u,T,q,fe){var Ne,$e,Ze,lr=r,yr,Zr,ui,Ii,Fi,Ri=!1,Xi=r,ea,lt=!1;e:for(;r;){if(r.locals&&!Ju(r)&&(yr=fe(r.locals,i,t))){var Ia=!0;if(e.isFunctionLike(r)&&Zr&&Zr!==r.body?(t&yr.flags&788968&&Zr.kind!==318&&(Ia=yr.flags&262144?Zr===r.type||Zr.kind===163||Zr.kind===338||Zr.kind===339||Zr.kind===162:!1),t&yr.flags&3&&(Xp(yr,r,Zr)?Ia=!1:yr.flags&1&&(Ia=Zr.kind===163||Zr===r.type&&!!e.findAncestor(yr.valueDeclaration,e.isParameter)))):r.kind===188&&(Ia=Zr===r.trueType),Ia)break e;yr=void 0}switch(Ri=Ri||O_(r,Zr),r.kind){case 303:if(!e.isExternalOrCommonJsModule(r))break;lt=!0;case 260:var fa=((Ne=It(r))===null||Ne===void 0?void 0:Ne.exports)||he;if(r.kind===303||e.isModuleDeclaration(r)&&r.flags&8388608&&!e.isGlobalScopeAugmentation(r)){if(yr=fa.get("default")){var Dn=e.getLocalSymbolForExportDefault(yr);if(Dn&&yr.flags&t&&Dn.escapedName===i)break e;yr=void 0}var Ra=fa.get(i);if(Ra&&Ra.flags===2097152&&(e.getDeclarationOfKind(Ra,274)||e.getDeclarationOfKind(Ra,273)))break}if(i!=="default"&&(yr=fe(fa,i,t&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!(($e=yr.declarations)===null||$e===void 0)&&$e.some(e.isJSDocTypeAlias)))yr=void 0;else break e;break;case 259:if(yr=fe(((Ze=It(r))===null||Ze===void 0?void 0:Ze.exports)||he,i,t&8))break e;break;case 166:if(!e.isStatic(r)){var Bn=Gl(r.parent);Bn&&Bn.locals&&fe(Bn.locals,i,t&111551)&&(Ii=r)}break;case 256:case 225:case 257:if(yr=fe(It(r).members||he,i,t&788968)){if(!F_(yr,r)){yr=void 0;break}if(Zr&&e.isStatic(Zr)){Wr(Xi,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===225&&t&32){var Jn=r.name;if(Jn&&i===Jn.escapedText){yr=r.symbol;break e}}break;case 227:if(Zr===r.expression&&r.parent.token===94){var On=r.parent.parent;if(e.isClassLike(On)&&(yr=fe(It(On).members,i,t&788968))){o&&Wr(Xi,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 161:if(ea=r.parent.parent,(e.isClassLike(ea)||ea.kind===257)&&(yr=fe(It(ea).members,i,t&788968))){Wr(Xi,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 213:if(e.getEmitScriptTarget(ye)>=2)break;case 168:case 170:case 171:case 172:case 255:if(t&3&&i==="arguments"){yr=ci;break e}break;case 212:if(t&3&&i==="arguments"){yr=ci;break e}if(t&16){var Ao=r.name;if(Ao&&i===Ao.escapedText){yr=r.symbol;break e}}break;case 164:r.parent&&r.parent.kind===163&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===256)&&(r=r.parent);break;case 343:case 336:case 337:var $i=e.getJSDocRoot(r);$i&&(r=$i.parent);break;case 163:Zr&&(Zr===r.initializer||Zr===r.name&&e.isBindingPattern(Zr))&&(Fi||(Fi=r));break;case 202:Zr&&(Zr===r.initializer||Zr===r.name&&e.isBindingPattern(Zr))&&e.isParameterDeclaration(r)&&!Fi&&(Fi=r);break;case 189:if(t&262144){var Vi=r.typeParameter.name;if(Vi&&i===Vi.escapedText){yr=r.typeParameter.symbol;break e}}break}t_(r)&&(ui=r),Zr=r,r=e.isJSDocTemplateTag(r)?e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent:(e.isJSDocParameterTag(r)||e.isJSDocReturnTag(r))&&e.getHostSignatureFromJSDoc(r)||r.parent}if(u&&yr&&(!ui||yr!==ui.symbol)&&(yr.isReferenced|=t),!yr){if(Zr&&(e.Debug.assert(Zr.kind===303),Zr.commonJsModuleIndicator&&i==="exports"&&t&Zr.symbol.flags))return Zr.symbol;T||(yr=fe(Lr,i,t))}if(!yr&&lr&&e.isInJSFile(lr)&&lr.parent&&e.isRequireCall(lr.parent,!1))return be;if(!yr){if(o&&oe&&(!Xi||!Ff(Xi,i,s)&&!M_(Xi)&&!Qp(Xi,i,t)&&!gp(Xi,i)&&!Yp(Xi,i,t)&&!Cd(Xi,i,t)&&!pp(Xi,i,t))){var Ot=void 0;if(q&&Xc<Ru){Ot=Ab(lr,i,t);var Wa=(Ot==null?void 0:Ot.valueDeclaration)&&e.isAmbientModule(Ot.valueDeclaration)&&e.isGlobalScopeAugmentation(Ot.valueDeclaration);if(Wa&&(Ot=void 0),Ot){var Qt=Ga(Ot),Qa=Eb(lr,Ot,!1),En=t===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:Qa?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Gn=Xo(Xi,En,Nc(s),Qt);Ws(!Qa,Gn),Ot.valueDeclaration&&e.addRelatedInfo(Gn,e.createDiagnosticForNode(Ot.valueDeclaration,e.Diagnostics._0_is_declared_here,Qt))}}if(!Ot&&s){var ia=C5(s);ia?Wr(Xi,o,Nc(s),ia):Wr(Xi,o,Nc(s))}Xc++}return}if(o&&oe){if(Ii&&!(e.getEmitScriptTarget(ye)===99&&Fe)){var Xn=Ii.name;Wr(Xi,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Xn),Nc(s));return}if(Xi&&(t&2||(t&32||t&384)&&(t&111551)===111551)){var ii=$c(yr);(ii.flags&2||ii.flags&32||ii.flags&384)&&mp(ii,Xi)}if(yr&<&&(t&111551)===111551&&!(lr.flags&4194304)){var Ar=Wn(yr);e.length(Ar.declarations)&&e.every(Ar.declarations,function(qt){return e.isNamespaceExportDeclaration(qt)||e.isSourceFile(qt)&&!!qt.symbol.globalExports})&&nu(!ye.allowUmdGlobalAccess,Xi,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(i))}if(yr&&Fi&&!Ri&&(t&111551)===111551){var Pt=Wn(Og(yr)),$i=e.getRootDeclaration(Fi);Pt===It(Fi)?Wr(Xi,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(Fi.name)):Pt.valueDeclaration&&Pt.valueDeclaration.pos>Fi.pos&&$i.parent.locals&&fe($i.parent.locals,Pt.escapedName,t)===Pt&&Wr(Xi,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Fi.name),e.declarationNameToString(Xi))}if(yr&&Xi&&t&111551&&yr.flags&2097152&&!(yr.flags&111551)&&!e.isValidTypeOnlyAliasUseSite(Xi)){var pt=gu(yr);if(pt){var En=pt.kind===274?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Xt=e.unescapeLeadingUnderscores(i);Of(Wr(Xi,En,Xt),pt,Xt)}}}return yr}function Of(r,i,t){return i?e.addRelatedInfo(r,e.createDiagnosticForNode(i,i.kind===274?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,t)):r}function O_(r,i){return r.kind!==213&&r.kind!==212?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===166&&!e.isStatic(r))&&(!i||i!==r.name):i&&i===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,256)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function t_(r){switch(r.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function Nc(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function F_(r,i){if(r.declarations)for(var t=0,o=r.declarations;t<o.length;t++){var s=o[t];if(s.kind===162){var u=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(u===i)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Ff(r,i,t){if(!e.isIdentifier(r)||r.escapedText!==i||C6(r)||im(r))return!1;for(var o=e.getThisContainer(r,!1),s=o;s;){if(e.isClassLike(s.parent)){var u=It(s.parent);if(!u)break;var T=Jt(u);if(tn(T,i))return Wr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Nc(t),Ga(u)),!0;if(s===o&&!e.isStatic(s)){var q=Io(u).thisType;if(tn(q,i))return Wr(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Nc(t)),!0}}s=s.parent}return!1}function M_(r){var i=_p(r);return i&&Ps(i,64,!0)?(Wr(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(i)),!0):!1}function _p(r){switch(r.kind){case 79:case 205:return r.parent?_p(r.parent):void 0;case 227:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function Qp(r,i,t){var o=1920|(e.isInJSFile(r)?111551:0);if(t===o){var s=Qo(os(r,i,788968&~o,void 0,void 0,!1)),u=r.parent;if(s){if(e.isQualifiedName(u)){e.Debug.assert(u.left===r,"Should only be resolving left side of qualified name as a namespace");var T=u.right.escapedText,q=tn(Io(s),T);if(q)return Wr(u,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(i),e.unescapeLeadingUnderscores(T)),!0}return Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(i)),!0}}return!1}function pp(r,i,t){if(t&788584){var o=Qo(os(r,i,111127,void 0,void 0,!1));if(o&&!(o.flags&1920))return Wr(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(i)),!0}return!1}function dp(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function gp(r,i){return dp(i)&&r.parent.kind===274?(Wr(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,i),!0):!1}function Yp(r,i,t){if(t&111551){if(dp(i))return Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(i)),!0;var o=Qo(os(r,i,788544,void 0,void 0,!1));if(o&&!(o.flags&1024)){var s=e.unescapeLeadingUnderscores(i);return a_(i)?Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,s):$p(r,o)?Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Wr(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function $p(r,i){var t=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(t&&t.members.length===1){var o=Io(i);return!!(o.flags&1048576)&&Dg(o,384,!0)}return!1}function a_(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Cd(r,i,t){if(t&111127){var o=Qo(os(r,i,1024,void 0,void 0,!1));if(o)return Wr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(i)),!0}else if(t&788544){var o=Qo(os(r,i,1536,void 0,void 0,!1));if(o)return Wr(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(i)),!0}return!1}function mp(r,i){var t;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var o=(t=r.declarations)===null||t===void 0?void 0:t.find(function(T){return e.isBlockOrCatchScoped(T)||e.isClassLike(T)||T.kind===259});if(o===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(o.flags&8388608)&&!wf(o,i)){var s=void 0,u=e.declarationNameToString(e.getNameOfDeclaration(o));r.flags&2?s=Wr(i,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,u):r.flags&32?s=Wr(i,e.Diagnostics.Class_0_used_before_its_declaration,u):r.flags&256?s=Wr(i,e.Diagnostics.Enum_0_used_before_its_declaration,u):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(ye)&&(s=Wr(i,e.Diagnostics.Enum_0_used_before_its_declaration,u))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,u))}}}function L_(r,i,t){return!!i&&!!e.findAncestor(r,function(o){return o===i||(o===t||e.isFunctionLike(o)&&!e.getImmediatelyInvokedFunctionExpression(o)?"quit":!1)})}function rl(r){switch(r.kind){case 264:return r;case 266:return r.parent;case 267:return r.parent.parent;case 269:return r.parent.parent.parent;default:return}}function ju(r){return r.declarations&&e.findLast(r.declarations,_u)}function _u(r){return r.kind===264||r.kind===263||r.kind===266&&!!r.name||r.kind===267||r.kind===273||r.kind===269||r.kind===274||r.kind===270&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&Eu(r.parent.right)||r.kind===295||r.kind===294&&Eu(r.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)}function Eu(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&ml(r)}function Dl(r,i){var t=Rf(r);if(t){var o=e.getLeftmostAccessExpression(t.expression).arguments[0];return e.isIdentifier(t.name)?Qo(tn(FT(o),t.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===276){var s=ko(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),u=Fs(s);return jc(r,s,u,!1),u}var T=Kt(r.moduleReference,i);return Zp(r,T),T}function Zp(r,i){if(jc(r,void 0,i,!1)&&!r.isTypeOnly){var t=gu(It(r)),o=t.kind===274,s=o?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,u=o?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,T=e.unescapeLeadingUnderscores(t.name.escapedText);e.addRelatedInfo(Wr(r.moduleReference,s),e.createDiagnosticForNode(t,u,T))}}function Wl(r,i,t,o){var s=r.exports.get("export="),u=s?tn(Jt(s),i):r.exports.get(i),T=Qo(u,o);return jc(t,u,T,!1),T}function ed(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,512)||e.isExportSpecifier(r)}function n_(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function vp(r,i){return r===e.ModuleKind.ESNext&&i===e.ModuleKind.CommonJS}function o_(r){var i=n_(r);return i===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function R_(r,i,t,o){var s=r&&n_(o);if(r&&s!==void 0){var u=vp(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||u)return u}if(!cr)return!1;if(!r||r.isDeclarationFile){var T=Wl(i,"default",void 0,!0);return!(T&&e.some(T.declarations,ed)||Wl(i,e.escapeLeadingUnderscores("__esModule"),void 0,t))}return e.isSourceFileJS(r)?!r.externalModuleIndicator&&!Wl(i,e.escapeLeadingUnderscores("__esModule"),void 0,t):ff(i)}function af(r,i){var t,o=ko(r,r.parent.moduleSpecifier);if(o){var s=void 0;e.isShorthandAmbientModuleSymbol(o)?s=o:s=Wl(o,"default",r,i);var u=(t=o.declarations)===null||t===void 0?void 0:t.find(e.isSourceFile),T=o_(r.parent.moduleSpecifier),q=R_(u,o,i,r.parent.moduleSpecifier);if(!s&&!q&&!T)if(ff(o)){var fe=ge>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",Ne=o.exports.get("export="),$e=Ne.valueDeclaration,Ze=Wr(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ga(o),fe);$e&&e.addRelatedInfo(Ze,e.createDiagnosticForNode($e,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,fe))}else yp(o,r);else if(q||T){var lr=Fs(o,i)||Qo(o,i);return jc(r,o,lr,!1),lr}return jc(r,s,void 0,!1),s}}function yp(r,i){var t,o,s;if(!((t=r.exports)===null||t===void 0)&&t.has(i.symbol.escapedName))Wr(i.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ga(r),Ga(i.symbol));else{var u=Wr(i.name,e.Diagnostics.Module_0_has_no_default_export,Ga(r)),T=(o=r.exports)===null||o===void 0?void 0:o.get("__export");if(T){var q=(s=T.declarations)===null||s===void 0?void 0:s.find(function(fe){var Ne,$e;return!!(e.isExportDeclaration(fe)&&fe.moduleSpecifier&&(($e=(Ne=ko(fe,fe.moduleSpecifier))===null||Ne===void 0?void 0:Ne.exports)===null||$e===void 0?void 0:$e.has("default")))});q&&e.addRelatedInfo(u,e.createDiagnosticForNode(q,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function B_(r,i){var t=r.parent.parent.moduleSpecifier,o=ko(r,t),s=su(o,t,i,!1);return jc(r,o,s,!1),s}function kd(r,i){var t=r.parent.moduleSpecifier,o=t&&ko(r,t),s=t&&su(o,t,i,!1);return jc(r,o,s,!1),s}function Mf(r,i){if(r===hr&&i===hr)return hr;if(r.flags&790504)return r;var t=bo(r.flags|i.flags,r.escapedName);return t.declarations=e.deduplicate(e.concatenate(r.declarations,i.declarations),e.equateValues),t.parent=r.parent||i.parent,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),i.members&&(t.members=new e.Map(i.members)),r.exports&&(t.exports=new e.Map(r.exports)),t}function hp(r,i,t,o){if(r.flags&1536){var s=Ns(r).get(i.escapedText),u=Qo(s,o);return jc(t,s,u,!1),u}}function ic(r,i){if(r.flags&3){var t=r.valueDeclaration.type;if(t)return Qo(tn(Ua(t),i))}}function Jc(r,i,t){var o,s;t===void 0&&(t=!1);var u=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,T=ko(r,u),q=!e.isPropertyAccessExpression(i)&&i.propertyName||i.name;if(!!e.isIdentifier(q)){var fe=q.escapedText==="default"&&!!(ye.allowSyntheticDefaultImports||e.getESModuleInterop(ye)),Ne=su(T,u,!1,fe);if(Ne&&q.escapedText){if(e.isShorthandAmbientModuleSymbol(T))return T;var $e=void 0;T&&T.exports&&T.exports.get("export=")?$e=tn(Jt(Ne),q.escapedText,!0):$e=ic(Ne,q.escapedText),$e=Qo($e,t);var Ze=hp(Ne,q,i,t);if(Ze===void 0&&q.escapedText==="default"){var lr=(o=T.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);(o_(u)||R_(lr,T,t,u))&&(Ze=Fs(T,t)||Qo(T,t))}var yr=Ze&&$e&&Ze!==$e?Mf($e,Ze):Ze||$e;if(!yr){var Zr=ts(T,r),ui=e.declarationNameToString(q),Ii=r0(q,Ne);if(Ii!==void 0){var Fi=Ga(Ii),Ri=Wr(q,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Zr,ui,Fi);Ii.valueDeclaration&&e.addRelatedInfo(Ri,e.createDiagnosticForNode(Ii.valueDeclaration,e.Diagnostics._0_is_declared_here,Fi))}else!((s=T.exports)===null||s===void 0)&&s.has("default")?Wr(q,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Zr,ui):Lf(r,q,ui,T,Zr)}return yr}}}function Lf(r,i,t,o,s){var u,T,q=(T=(u=o.valueDeclaration)===null||u===void 0?void 0:u.locals)===null||T===void 0?void 0:T.get(i.escapedText),fe=o.exports;if(q){var Ne=fe==null?void 0:fe.get("export=");if(Ne)Uu(Ne,q)?nf(r,i,t,s):Wr(i,e.Diagnostics.Module_0_has_no_exported_member_1,s,t);else{var $e=fe?e.find(Bv(fe),function(lr){return!!Uu(lr,q)}):void 0,Ze=$e?Wr(i,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,t,Ga($e)):Wr(i,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,t);q.declarations&&e.addRelatedInfo.apply(void 0,qe([Ze],e.map(q.declarations,function(lr,yr){return e.createDiagnosticForNode(lr,yr===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,t)}),!1))}}else Wr(i,e.Diagnostics.Module_0_has_no_exported_member_1,s,t)}function nf(r,i,t,o){if(ge>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(ye)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Wr(i,s,t)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(ye)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Wr(i,s,t)}else{var s=e.getESModuleInterop(ye)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Wr(i,s,t,t,o)}}function s_(r,i){var t=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,o=Rf(t),s=Jc(t,o||r,i),u=r.propertyName||r.name;return o&&s&&e.isIdentifier(u)?Qo(tn(Jt(s),u.escapedText),i):(jc(r,void 0,s,!1),s)}function Rf(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function c_(r,i){var t=Fs(r.parent.symbol,i);return jc(r,void 0,t,!1),t}function Cu(r,i,t){var o=r.parent.parent.moduleSpecifier?Jc(r.parent.parent,r,t):Ps(r.propertyName||r.name,i,!1,t);return jc(r,void 0,o,!1),o}function Tc(r,i){var t=e.isExportAssignment(r)?r.expression:r.right,o=pu(t,i);return jc(r,void 0,o,!1),o}function pu(r,i){if(e.isClassExpression(r))return js(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var t=Ps(r,901119,!0,i);return t||(js(r),Da(r).resolvedSymbol)}}function du(r,i){var t=r.initializer;return pu(t,i)}function bl(r,i){if(!!(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63))return pu(r.parent.right,i)}function of(r,i){switch(i===void 0&&(i=!1),r.kind){case 264:case 253:return Dl(r,i);case 266:return af(r,i);case 267:return B_(r,i);case 273:return kd(r,i);case 269:case 202:return s_(r,i);case 274:return Cu(r,901119,i);case 270:case 220:return Tc(r,i);case 263:return c_(r,i);case 295:return Ps(r.name,901119,!0,i);case 294:return du(r,i);case 206:case 205:return bl(r,i);default:return e.Debug.fail()}}function il(r,i){return i===void 0&&(i=901119),r?(r.flags&(2097152|i))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Qo(r,i){return!i&&il(r)?zo(r):r}function zo(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var i=Ma(r);if(i.target)i.target===Dr&&(i.target=hr);else{i.target=Dr;var t=ju(r);if(!t)return e.Debug.fail();var o=of(t);i.target===Dr?i.target=o||hr:Wr(t,e.Diagnostics.Circular_definition_of_import_alias_0,Ga(r))}return i.target}function Ro(r){var i=Ma(r);if(i.target!==Dr)return zo(r)}function jc(r,i,t,o){if(!r||e.isPropertyAccessExpression(r))return!1;var s=It(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var u=Ma(s);return u.typeOnlyDeclaration=r,!0}var T=Ma(s);return Bf(T,i,o)||Bf(T,t,o)}function Bf(r,i,t){var o,s,u;if(i&&(r.typeOnlyDeclaration===void 0||t&&r.typeOnlyDeclaration===!1)){var T=(s=(o=i.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:i,q=T.declarations&&e.find(T.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(u=q!=null?q:Ma(T).typeOnlyDeclaration)!==null&&u!==void 0?u:!1}return!!r.typeOnlyDeclaration}function gu(r){if(!!(r.flags&2097152)){var i=Ma(r);return i.typeOnlyDeclaration||void 0}}function Jf(r){var i=It(r),t=zo(i);if(t){var o=t===hr||t.flags&111551&&!fv(t)&&!gu(i);o&&jf(i)}}function jf(r){var i=Ma(r);if(!i.referenced){i.referenced=!0;var t=ju(r);if(!t)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(t)){var o=Qo(r);(o===hr||o.flags&111551)&&js(t.moduleReference)}}}function sf(r){var i=Ma(r);i.constEnumReferenced||(i.constEnumReferenced=!0)}function Kt(r,i){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===160?Ps(r,1920,!1,i):(e.Debug.assert(r.parent.kind===264),Ps(r,901119,!1,i))}function ts(r,i){return r.parent?ts(r.parent,i)+"."+Ga(r):Ga(r,i,void 0,20)}function mn(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function Sl(r){var i=e.getFirstIdentifier(r),t=os(i,i.escapedText,111551,void 0,i,!0);if(!!t){for(;e.isQualifiedName(i.parent);){var o=Jt(t);if(t=tn(o,i.parent.right.escapedText),!t)return;i=i.parent}return t}}function Ps(r,i,t,o,s){if(!e.nodeIsMissing(r)){var u=1920|(e.isInJSFile(r)?i&111551:0),T;if(r.kind===79){var q=i===u||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:CE(e.getFirstIdentifier(r)),fe=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?tl(r,i):void 0;if(T=Wn(os(s||r,r.escapedText,i,t||fe?void 0:q,r,!0,!1)),!T)return Wn(fe)}else if(r.kind===160||r.kind===205){var Ne=r.kind===160?r.left:r.expression,$e=r.kind===160?r.right:r.name,Ze=Ps(Ne,u,t,!1,s);if(!Ze||e.nodeIsMissing($e))return;if(Ze===hr)return Ze;if(Ze.valueDeclaration&&e.isInJSFile(Ze.valueDeclaration)&&e.isVariableDeclaration(Ze.valueDeclaration)&&Ze.valueDeclaration.initializer&&rk(Ze.valueDeclaration.initializer)){var lr=Ze.valueDeclaration.initializer.arguments[0],yr=ko(lr,lr);if(yr){var Zr=Fs(yr);Zr&&(Ze=Zr)}}if(T=Wn(Pc(Ns(Ze),$e.escapedText,i)),!T){if(!t){var ui=ts(Ze),Ii=e.declarationNameToString($e),Fi=r0($e,Ze);if(Fi){Wr($e,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,ui,Ii,Ga(Fi));return}var Ri=e.isQualifiedName(r)&&mn(r),Xi=Ht&&i&788968&&Ri&&!e.isTypeOfExpression(Ri.parent)&&Sl(Ri);if(Xi){Wr(Ri,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(Ri));return}if(i&1920&&e.isQualifiedName(r.parent)){var ea=Wn(Pc(Ns(Ze),$e.escapedText,788968));if(ea){Wr(r.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ga(ea),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Wr($e,e.Diagnostics.Namespace_0_has_no_exported_member_1,ui,Ii)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(T)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(T.flags&2097152||r.parent.kind===270)&&jc(e.getAliasDeclarationFromName(r),T,void 0,!0),T.flags&i||o?T:zo(T)}}function tl(r,i){if(ch(r.parent)){var t=Ut(r.parent);if(t)return os(t,r.escapedText,i,void 0,r,!0)}}function Ut(r){var i=e.findAncestor(r,function(u){return e.isJSDocNode(u)||u.flags&4194304?e.isJSDocTypeAlias(u):"quit"});if(!i){var t=e.getJSDocHost(r);if(t&&e.isExpressionStatement(t)&&e.isPrototypePropertyAssignment(t.expression)){var o=It(t.expression.left);if(o)return Dp(o)}if(t&&e.isFunctionExpression(t)&&e.isPrototypePropertyAssignment(t.parent)&&e.isExpressionStatement(t.parent.parent)){var o=It(t.parent.left);if(o)return Dp(o)}if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent)===6){var o=It(t.parent.parent.left);if(o)return Dp(o)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var o=It(s);return o&&o.valueDeclaration}}}function Dp(r){var i=r.parent.valueDeclaration;if(!!i){var t=e.isAssignmentDeclaration(i)?e.getAssignedExpandoInitializer(i):e.hasOnlyExpressionInitializer(i)?e.getDeclaredExpandoInitializer(i):void 0;return t||i}}function cf(r){var i=r.valueDeclaration;if(!(!i||!e.isInJSFile(i)||r.flags&524288||e.getExpandoInitializer(i,!1))){var t=e.isVariableDeclaration(i)?e.getDeclaredExpandoInitializer(i):e.getAssignedExpandoInitializer(i);if(t){var o=It(t);if(o)return Lb(o,r)}}}function ko(r,i,t){var o=e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Classic,s=o?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return xc(r,i,t?void 0:s)}function xc(r,i,t,o){return o===void 0&&(o=!1),e.isStringLiteralLike(i)?ou(r,i.text,t,i,o):void 0}function ou(r,i,t,o,s){var u,T,q,fe,Ne,$e,Ze;if(s===void 0&&(s=!1),e.startsWith(i,"@types/")){var lr=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,yr=e.removePrefix(i,"@types/");Wr(o,lr,yr,i)}var Zr=Ug(i,!0);if(Zr)return Zr;var ui=e.getSourceFileOfNode(r),Ii=e.isStringLiteralLike(r)?r:((u=e.findAncestor(r,e.isImportCall))===null||u===void 0?void 0:u.arguments[0])||((T=e.findAncestor(r,e.isImportDeclaration))===null||T===void 0?void 0:T.moduleSpecifier)||((q=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||q===void 0?void 0:q.moduleReference.expression)||((fe=e.findAncestor(r,e.isExportDeclaration))===null||fe===void 0?void 0:fe.moduleSpecifier)||((Ne=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||Ne===void 0?void 0:Ne.name)||(($e=e.isLiteralImportTypeNode(r)?r:void 0)===null||$e===void 0?void 0:$e.argument.literal),Fi=Ii&&e.isStringLiteralLike(Ii)?e.getModeForUsageLocation(ui,Ii):ui.impliedNodeFormat,Ri=e.getResolvedModule(ui,i,Fi),Xi=Ri&&e.getResolutionDiagnostic(ye,Ri),ea=Ri&&(!Xi||Xi===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&y.getSourceFile(Ri.resolvedFileName);if(ea){if(Xi&&Wr(o,Xi,i,Ri.resolvedFileName),ea.symbol){if(Ri.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(Ri.extension)&&uf(!1,o,Ri,i),e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.NodeNext){var lt=ui.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration);lt&&ea.impliedNodeFormat===e.ModuleKind.ESNext&&Wr(o,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,i),Fi===e.ModuleKind.ESNext&&ye.resolveJsonModule&&Ri.extension===".json"&&Wr(o,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)}return Wn(ea.symbol)}t&&Wr(o,e.Diagnostics.File_0_is_not_a_module,ea.fileName);return}if(bi){var Ia=e.findBestPatternMatch(bi,function(Wa){return Wa.pattern},i);if(Ia){var fa=ut&&ut.get(i);return Wn(fa||Ia.symbol)}}if(Ri&&!e.resolutionExtensionIsTSOrJson(Ri.extension)&&Xi===void 0||Xi===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var lr=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Wr(o,lr,i,Ri.resolvedFileName)}else uf(Tr&&!!t,o,Ri,i);return}if(t){if(Ri){var Dn=y.getProjectReferenceRedirect(Ri.resolvedFileName);if(Dn){Wr(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,Dn,Ri.resolvedFileName);return}}if(Xi)Wr(o,Xi,i,Ri.resolvedFileName);else{var Ra=e.tryExtractTSExtension(i),Bn=e.pathIsRelative(i)&&!e.hasExtension(i),Jn=e.getEmitModuleResolutionKind(ye),On=Jn===e.ModuleResolutionKind.Node12||Jn===e.ModuleResolutionKind.NodeNext;if(Ra){var lr=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Ao=e.removeExtension(i,Ra),$i=Ao;ge>=e.ModuleKind.ES2015&&($i+=Ra===".mts"?".mjs":Ra===".cts"?".cjs":".js"),Wr(o,lr,Ra,$i)}else if(!ye.resolveJsonModule&&e.fileExtensionIs(i,".json")&&e.getEmitModuleResolutionKind(ye)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(ye))Wr(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,i);else if(Fi===e.ModuleKind.ESNext&&On&&Bn){var Vi=e.getNormalizedAbsolutePath(i,e.getDirectoryPath(ui.path)),Ot=(Ze=wn.find(function(Wa){var Qt=Wa[0],Qa=Wa[1];return y.fileExists(Vi+Qt)}))===null||Ze===void 0?void 0:Ze[1];Ot?Wr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,i+Ot):Wr(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Wr(o,t,i)}}}function uf(r,i,t,o){var s=t.packageId,u=t.resolvedFileName,T=!e.isExternalModuleNameRelative(o)&&s?bp(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s.name,e.mangleScopedPackageName(s.name)):ql(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,o):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,o,e.mangleScopedPackageName(s.name)):void 0;nu(r,i,e.chainDiagnosticMessages(T,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,u))}function bp(r){return ve().has(e.getTypesPackageName(r))}function ql(r){return!!ve().get(r)}function Fs(r,i){if(r!=null&&r.exports){var t=Qo(r.exports.get("export="),i),o=J_(Wn(t),Wn(r));return Wn(o)||r}}function J_(r,i){if(!r||r===hr||r===i||i.exports.size===1||r.flags&2097152)return r;var t=Ma(r);if(t.cjsExportMerged)return t.cjsExportMerged;var o=r.flags&33554432?r:Ls(r);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),i.exports.forEach(function(s,u){u!=="export="&&o.exports.set(u,o.exports.has(u)?hl(o.exports.get(u),s):s)}),Ma(o).cjsExportMerged=o,t.cjsExportMerged=o}function su(r,i,t,o){var s=Fs(r,t);if(!t&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,303)){var u=ge>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Wr(i,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,u),s}var T=i.parent;if(e.isImportDeclaration(T)&&e.getNamespaceDeclarationNode(T)||e.isImportCall(T)){var q=e.isImportCall(T)?T.arguments[0]:T.moduleSpecifier,fe=Jt(s),Ne=ZC(fe,s,r,q);if(Ne)return lf(s,Ne,T);if(e.getESModuleInterop(ye)){var $e=Ys(fe,0);if((!$e||!$e.length)&&($e=Ys(fe,1)),$e&&$e.length||tn(fe,"default",!0)){var Ze=ek(fe,s,r,q);return lf(s,Ze,T)}}}}return s}function lf(r,i,t){var o=bo(r.flags,r.escapedName);o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,o.target=r,o.originatingImport=t,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new e.Map(r.members)),r.exports&&(o.exports=new e.Map(r.exports));var s=Vu(i);return o.type=_s(o,s.members,e.emptyArray,e.emptyArray,s.indexInfos),o}function ff(r){return r.exports.get("export=")!==void 0}function _f(r){return Bv(al(r))}function Vl(r){var i=_f(r),t=Fs(r);if(t!==r){var o=Jt(t);Tl(o)&&e.addRange(i,_o(o))}return i}function j_(r,i){var t=al(r);t.forEach(function(u,T){pf(T)||i(u,T)});var o=Fs(r);if(o!==r){var s=Jt(o);Tl(s)&&k1(s,function(u,T){i(u,T)})}}function Uf(r,i){var t=al(i);if(t)return t.get(r)}function Sp(r,i){var t=Uf(r,i);if(t)return t;var o=Fs(i);if(o!==i){var s=Jt(o);return Tl(s)?tn(s,r):void 0}}function Tl(r){return!(r.flags&131068||e.getObjectFlags(r)&1||_c(r)||Ln(r))}function Ns(r){return r.flags&6256?$d(r,"resolvedExports"):r.flags&1536?al(r):r.exports||he}function al(r){var i=Ma(r);return i.resolvedExports||(i.resolvedExports=Kl(r))}function U_(r,i,t,o){!i||i.forEach(function(s,u){if(u!=="default"){var T=r.get(u);if(!T)r.set(u,s),t&&o&&t.set(u,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(t&&o&&T&&Qo(T)!==Qo(s)){var q=t.get(u);q.exportsWithDuplicate?q.exportsWithDuplicate.push(o):q.exportsWithDuplicate=[o]}}})}function Kl(r){var i=[];return r=Fs(r),t(r)||he;function t(o){if(!!(o&&o.exports&&e.pushIfUnique(i,o))){var s=new e.Map(o.exports),u=o.exports.get("__export");if(u){var T=e.createSymbolTable(),q=new e.Map;if(u.declarations)for(var fe=0,Ne=u.declarations;fe<Ne.length;fe++){var $e=Ne[fe],Ze=ko($e,$e.moduleSpecifier),lr=t(Ze);U_(T,lr,q,$e)}q.forEach(function(yr,Zr){var ui=yr.exportsWithDuplicate;if(!(Zr==="export="||!(ui&&ui.length)||s.has(Zr)))for(var Ii=0,Fi=ui;Ii<Fi.length;Ii++){var Ri=Fi[Ii];ya.add(e.createDiagnosticForNode(Ri,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,q.get(Zr).specifierText,e.unescapeLeadingUnderscores(Zr)))}}),U_(s,T)}return s}}}function Wn(r){var i;return r&&r.mergeId&&(i=Dc[r.mergeId])?i:r}function It(r){return Wn(r.symbol&&Og(r.symbol))}function Rs(r){return Wn(r.parent&&Og(r.parent))}function u_(r,i){var t=e.getSourceFileOfNode(i),o=A(t),s=Ma(r),u;if(s.extendedContainersByFile&&(u=s.extendedContainersByFile.get(o)))return u;if(t&&t.imports){for(var T=0,q=t.imports;T<q.length;T++){var fe=q[T];if(!e.nodeIsSynthesized(fe)){var Ne=ko(i,fe,!0);if(!!Ne){var $e=zf(Ne,r);!$e||(u=e.append(u,Ne))}}}if(e.length(u))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,u),u}if(s.extendedContainers)return s.extendedContainers;for(var Ze=y.getSourceFiles(),lr=0,yr=Ze;lr<yr.length;lr++){var Zr=yr[lr];if(!!e.isExternalModule(Zr)){var ui=It(Zr),$e=zf(ui,r);!$e||(u=e.append(u,ui))}}return s.extendedContainers=u||e.emptyArray}function xs(r,i,t){var o=Rs(r);if(o&&!(r.flags&262144)){var s=e.mapDefined(o.declarations,$e),u=i&&u_(r,i),T=Tp(o,t);if(i&&o.flags&Hl(t)&&Xl(o,i,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),u),T);var q=!(o.flags&Hl(t))&&o.flags&788968&&Io(o).flags&524288&&t===111551?gf(i,function(Ze){return e.forEachEntry(Ze,function(lr){if(lr.flags&Hl(t)&&Jt(lr)===Io(o))return lr})}):void 0,fe=q?qe(qe([q],s,!0),[o],!1):qe(qe([],s,!0),[o],!1);return fe=e.append(fe,T),fe=e.addRange(fe,u),fe}var Ne=e.mapDefined(r.declarations,function(Ze){if(!e.isAmbientModule(Ze)&&Ze.parent&&Cl(Ze.parent))return It(Ze.parent);if(e.isClassExpression(Ze)&&e.isBinaryExpression(Ze.parent)&&Ze.parent.operatorToken.kind===63&&e.isAccessExpression(Ze.parent.left)&&e.isEntityNameExpression(Ze.parent.left.expression))return e.isModuleExportsAccessExpression(Ze.parent.left)||e.isExportsIdentifier(Ze.parent.left.expression)?It(e.getSourceFileOfNode(Ze)):(js(Ze.parent.left.expression),Da(Ze.parent.left.expression).resolvedSymbol)});if(!e.length(Ne))return;return e.mapDefined(Ne,function(Ze){return zf(Ze,r)?Ze:void 0});function $e(Ze){return o&&mu(Ze,o)}}function Tp(r,i){var t=!!e.length(r.declarations)&&e.first(r.declarations);if(i&111551&&t&&t.parent&&e.isVariableDeclaration(t.parent)&&(e.isObjectLiteralExpression(t)&&t===t.parent.initializer||e.isTypeLiteralNode(t)&&t===t.parent.type))return It(t.parent)}function mu(r,i){var t=f_(r),o=t&&t.exports&&t.exports.get("export=");return o&&Uu(o,i)?t:void 0}function zf(r,i){if(r===Rs(i))return i;var t=r.exports&&r.exports.get("export=");if(t&&Uu(t,i))return r;var o=Ns(r),s=o.get(i.escapedName);return s&&Uu(s,i)?s:e.forEachEntry(o,function(u){if(Uu(u,i))return u})}function Uu(r,i){if(Wn(Qo(Wn(r)))===Wn(Qo(Wn(i))))return r}function $c(r){return Wn(r&&(r.flags&1048576)!==0?r.exportSymbol:r)}function Wf(r){return!!(r.flags&111551||r.flags&2097152&&zo(r).flags&111551&&!gu(r))}function Gl(r){for(var i=r.members,t=0,o=i;t<o.length;t++){var s=o[t];if(s.kind===170&&e.nodeIsPresent(s.body))return s}}function bs(r){var i=new V(Kr,r);return ke++,i.id=ke,oe&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(i)),i}function zu(r){return new V(Kr,r)}function ss(r,i,t){t===void 0&&(t=0);var o=bs(r);return o.intrinsicName=i,o.objectFlags=t,o}function Uc(r,i){var t=bs(524288);return t.objectFlags=r,t.symbol=i,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function Ad(){return ba(e.arrayFrom(H.keys(),Ou))}function vu(r){var i=bs(262144);return r&&(i.symbol=r),i}function pf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function df(r){var i;return r.forEach(function(t,o){xp(t,o)&&(i||(i=[])).push(t)}),i||e.emptyArray}function xp(r,i){return!pf(i)&&Wf(r)}function l_(r){var i=df(r),t=J1(r);return t?e.concatenate(i,[t]):i}function Ic(r,i,t,o,s){var u=r;return u.members=i,u.properties=e.emptyArray,u.callSignatures=t,u.constructSignatures=o,u.indexInfos=s,i!==he&&(u.properties=df(i)),u}function _s(r,i,t,o,s){return Ic(Uc(16,r),i,t,o,s)}function xl(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var i=e.filter(r.constructSignatures,function(o){return!(o.flags&4)});if(r.constructSignatures===i)return r;var t=_s(r.symbol,r.members,r.callSignatures,e.some(i)?i:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=t,t.objectTypeWithoutAbstractConstructSignatures=t,t}function gf(r,i){for(var t,o=function(T){if(T.locals&&!Ju(T)&&(t=i(T.locals,void 0,!0,T)))return{value:t};switch(T.kind){case 303:if(!e.isExternalOrCommonJsModule(T))break;case 260:var q=It(T);if(t=i((q==null?void 0:q.exports)||he,void 0,!0,T))return{value:t};break;case 256:case 225:case 257:var fe;if((It(T).members||he).forEach(function(Ne,$e){Ne.flags&788968&&(fe||(fe=e.createSymbolTable())).set($e,Ne)}),fe&&(t=i(fe,void 0,!1,T)))return{value:t};break}},s=r;s;s=s.parent){var u=o(s);if(typeof u=="object")return u.value}return i(Lr,void 0,!0)}function Hl(r){return r===111551?111551:1920}function Xl(r,i,t,o,s){if(s===void 0&&(s=new e.Map),!(r&&!z_(r)))return;var u=Ma(r),T=u.accessibleChainCache||(u.accessibleChainCache=new e.Map),q=gf(i,function(Fi,Ri,Xi,ea){return ea}),fe="".concat(o?0:1,"|").concat(q&&A(q),"|").concat(t);if(T.has(fe))return T.get(fe);var Ne=f(r),$e=s.get(Ne);$e||s.set(Ne,$e=[]);var Ze=gf(i,lr);return T.set(fe,Ze),Ze;function lr(Fi,Ri,Xi){if(!!e.pushIfUnique($e,Fi)){var ea=ui(Fi,Ri,Xi);return $e.pop(),ea}}function yr(Fi,Ri){return!Ep(Fi,i,Ri)||!!Xl(Fi.parent,i,Hl(Ri),o,s)}function Zr(Fi,Ri,Xi){return(r===(Ri||Fi)||Wn(r)===Wn(Ri||Fi))&&!e.some(Fi.declarations,Cl)&&(Xi||yr(Wn(Fi),t))}function ui(Fi,Ri,Xi){if(Zr(Fi.get(r.escapedName),void 0,Ri))return[r];var ea=e.forEachEntry(Fi,function(lt){if(lt.flags&2097152&<.escapedName!=="export="&<.escapedName!=="default"&&!(e.isUMDExportSymbol(lt)&&i&&e.isExternalModule(e.getSourceFileOfNode(i)))&&(!o||e.some(lt.declarations,e.isExternalModuleImportEqualsDeclaration))&&(Xi?!e.some(lt.declarations,e.isNamespaceReexportDeclaration):!0)&&(Ri||!e.getDeclarationOfKind(lt,274))){var Ia=zo(lt),fa=Ii(lt,Ia,Ri);if(fa)return fa}if(lt.escapedName===r.escapedName&<.exportSymbol&&Zr(Wn(lt.exportSymbol),void 0,Ri))return[r]});return ea||(Fi===Lr?Ii(Rr,Rr,Ri):void 0)}function Ii(Fi,Ri,Xi){if(Zr(Fi,Ri,Xi))return[Fi];var ea=Ns(Ri),lt=ea&&lr(ea,!0);if(lt&&yr(Fi,Hl(t)))return[Fi].concat(lt)}}function Ep(r,i,t){var o=!1;return gf(i,function(s){var u=Wn(s.get(r.escapedName));return u?u===r?!0:(u=u.flags&2097152&&!e.getDeclarationOfKind(u,274)?zo(u):u,u.flags&t?(o=!0,!0):!1):!1}),o}function z_(r){if(r.declarations&&r.declarations.length){for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i];switch(o.kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}function El(r,i){var t=Ql(r,i,788968,!1,!0);return t.accessibility===0}function Cp(r,i){var t=Ql(r,i,111551,!1,!0);return t.accessibility===0}function Zc(r,i,t){var o=Ql(r,i,t,!1,!1);return o.accessibility===0}function kp(r,i,t,o,s,u){if(!!e.length(r)){for(var T,q=!1,fe=0,Ne=r;fe<Ne.length;fe++){var $e=Ne[fe],Ze=Xl($e,i,o,!1);if(Ze){T=$e;var lr=W_(Ze[0],s);if(lr)return lr}if(u&&e.some($e.declarations,Cl)){if(s){q=!0;continue}return{accessibility:0}}var yr=xs($e,i,o),Zr=kp(yr,i,t,t===$e?Hl(o):o,s,u);if(Zr)return Zr}if(q)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Ga(t,i,o),errorModuleName:T!==t?Ga(T,i,1920):void 0}}}function mf(r,i,t,o){return Ql(r,i,t,o,!0)}function Ql(r,i,t,o,s){if(r&&i){var u=kp([r],i,r,t,o,s);if(u)return u;var T=e.forEach(r.declarations,f_);if(T){var q=f_(i);if(T!==q)return{accessibility:2,errorSymbolName:Ga(r,i,t),errorModuleName:Ga(T),errorNode:e.isInJSFile(i)?i:void 0}}return{accessibility:1,errorSymbolName:Ga(r,i,t)}}return{accessibility:0}}function f_(r){var i=e.findAncestor(r,qf);return i&&It(i)}function qf(r){return e.isAmbientModule(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Cl(r){return e.isModuleWithStringLiteralName(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function W_(r,i){var t;if(!e.every(e.filter(r.declarations,function(u){return u.kind!==79}),o))return;return{accessibility:0,aliasesToMakeVisible:t};function o(u){var T,q;if(!sc(u)){var fe=rl(u);return fe&&!e.hasSyntacticModifier(fe,1)&&sc(fe.parent)?s(u,fe):e.isVariableDeclaration(u)&&e.isVariableStatement(u.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent,1)&&sc(u.parent.parent.parent)?s(u,u.parent.parent):e.isLateVisibilityPaintedStatement(u)&&!e.hasSyntacticModifier(u,1)&&sc(u.parent)?s(u,u):r.flags&2097152&&e.isBindingElement(u)&&e.isInJSFile(u)&&((T=u.parent)===null||T===void 0?void 0:T.parent)&&e.isVariableDeclaration(u.parent.parent)&&((q=u.parent.parent.parent)===null||q===void 0?void 0:q.parent)&&e.isVariableStatement(u.parent.parent.parent.parent)&&!e.hasSyntacticModifier(u.parent.parent.parent.parent,1)&&u.parent.parent.parent.parent.parent&&sc(u.parent.parent.parent.parent.parent)?s(u,u.parent.parent.parent.parent):!1}return!0}function s(u,T){return i&&(Da(u).isVisible=!0,t=e.appendIfUnique(t,T)),!0}}function nl(r,i){var t;r.parent.kind===180||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)||r.parent.kind===161?t=1160127:r.kind===160||r.kind===205||r.parent.kind===264?t=1920:t=788968;var o=e.getFirstIdentifier(r),s=os(i,o.escapedText,t,void 0,void 0,!1);return s&&s.flags&262144&&t&788968?{accessibility:0}:s&&W_(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(o),errorNode:o}}function Ga(r,i,t,o,s){o===void 0&&(o=4);var u=70221824;o&2&&(u|=128),o&1&&(u|=512),o&8&&(u|=16384),o&16&&(u|=134217728);var T=o&4?Cr.symbolToExpression:Cr.symbolToEntityName;return s?q(s).getText():e.usingSingleLineStringWriter(q);function q(fe){var Ne=T(r,t,i,u),$e=(i==null?void 0:i.kind)===303?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),Ze=i&&e.getSourceFileOfNode(i);return $e.writeNode(4,Ne,Ze,fe),fe}}function kl(r,i,t,o,s){return t===void 0&&(t=0),s?u(s).getText():e.usingSingleLineStringWriter(u);function u(T){var q;t&262144?q=o===1?179:178:q=o===1?174:173;var fe=Cr.signatureToSignatureDeclaration(r,q,i,q_(t)|70221824|512),Ne=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),$e=i&&e.getSourceFileOfNode(i);return Ne.writeNode(4,fe,$e,e.getTrailingSemicolonDeferringWriter(T)),T}}function ht(r,i,t,o){t===void 0&&(t=1064960),o===void 0&&(o=e.createTextWriter(""));var s=ye.noErrorTruncation||t&1,u=Cr.typeToTypeNode(r,i,q_(t)|70221824|(s?1:0),o);if(u===void 0)return e.Debug.fail("should always get typenode");var T={removeComments:r!==Fr},q=e.createPrinter(T),fe=i&&e.getSourceFileOfNode(i);q.writeNode(4,u,fe,o);var Ne=o.getText(),$e=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return $e&&Ne&&Ne.length>=$e?Ne.substr(0,$e-3)+"...":Ne}function __(r,i){var t=ol(r.symbol)?ht(r,r.symbol.valueDeclaration):ht(r),o=ol(i.symbol)?ht(i,i.symbol.valueDeclaration):ht(i);return t===o&&(t=Yl(r),o=Yl(i)),[t,o]}function Yl(r){return ht(r,void 0,64)}function ol(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!_l(r.valueDeclaration)}function q_(r){return r===void 0&&(r=0),r&814775659}function rd(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Pn(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function Pd(){return{typeToTypeNode:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return o(ii,Xt)})},indexInfoToIndexSignatureDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Ne(ii,Xt,void 0)})},signatureToSignatureDeclaration:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return $e(ii,Ar,qt)})},symbolToEntityName:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return Bn(ii,qt,Ar,!1)})},symbolToExpression:function(ii,Ar,Pt,pt,Xt){return r(Pt,pt,Xt,function(qt){return Jn(ii,qt,Ar)})},symbolToTypeParameterDeclarations:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Ri(ii,Xt)})},symbolToParameterDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return Zr(ii,Xt)})},typeParameterToDeclaration:function(ii,Ar,Pt,pt){return r(Ar,Pt,pt,function(Xt){return yr(ii,Xt)})},symbolTableToDeclarationStatements:function(ii,Ar,Pt,pt,Xt){return r(Ar,Pt,pt,function(qt){return Xn(ii,qt,Xt)})}};function r(ii,Ar,Pt,pt){var Xt,qt;e.Debug.assert(ii===void 0||(ii.flags&8)===0);var Yt={enclosingDeclaration:ii,flags:Ar||0,tracker:Pt&&Pt.trackSymbol?Pt:{trackSymbol:function(){return!1},moduleResolverHost:Ar&134217728?{getCommonSourceDirectory:y.getCommonSourceDirectory?function(){return y.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return y.getCurrentDirectory()},getSymlinkCache:e.maybeBind(y,y.getSymlinkCache),getPackageJsonInfoCache:function(){var Ft;return(Ft=y.getPackageJsonInfoCache)===null||Ft===void 0?void 0:Ft.call(y)},useCaseSensitiveFileNames:e.maybeBind(y,y.useCaseSensitiveFileNames),redirectTargetsMap:y.redirectTargetsMap,getProjectReferenceRedirect:function(Ft){return y.getProjectReferenceRedirect(Ft)},isSourceOfProjectReferenceRedirect:function(Ft){return y.isSourceOfProjectReferenceRedirect(Ft)},fileExists:function(Ft){return y.fileExists(Ft)},getFileIncludeReasons:function(){return y.getFileIncludeReasons()},readFile:y.readFile?function(Ft){return y.readFile(Ft)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Yt.tracker=i(Yt,Yt.tracker);var va=pt(Yt);return Yt.truncating&&Yt.flags&1&&((qt=(Xt=Yt.tracker)===null||Xt===void 0?void 0:Xt.reportTruncationError)===null||qt===void 0||qt.call(Xt)),Yt.encounteredError?void 0:va}function i(ii,Ar){var Pt=Ar.trackSymbol;return Ve(Ve({},Ar),{reportCyclicStructureError:pt(Ar.reportCyclicStructureError),reportInaccessibleThisError:pt(Ar.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:pt(Ar.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:pt(Ar.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:pt(Ar.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:pt(Ar.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:pt(Ar.reportNonSerializableProperty),trackSymbol:Pt&&function(){for(var Xt=[],qt=0;qt<arguments.length;qt++)Xt[qt]=arguments[qt];var Yt=Pt.apply(void 0,Xt);return Yt&&(ii.reportedDiagnostic=!0),Yt}});function pt(Xt){return Xt&&function(){for(var qt=[],Yt=0;Yt<arguments.length;Yt++)qt[Yt]=arguments[Yt];return ii.reportedDiagnostic=!0,Xt.apply(void 0,qt)}}}function t(ii){return ii.truncating?ii.truncating:ii.truncating=ii.approximateLength>(ii.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(ii,Ar){ce&&ce.throwIfCancellationRequested&&ce.throwIfCancellationRequested();var Pt=Ar.flags&8388608;if(Ar.flags&=-8388609,!ii){if(!(Ar.flags&262144)){Ar.encounteredError=!0;return}return Ar.approximateLength+=3,e.factory.createKeywordTypeNode(130)}if(Ar.flags&536870912||(ii=Lt(ii)),ii.flags&1)return ii.aliasSymbol?e.factory.createTypeReferenceNode(Ia(ii.aliasSymbol),q(ii.aliasTypeArguments,Ar)):ii===Fr?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(Ar.approximateLength+=3,e.factory.createKeywordTypeNode(ii===Or?138:130));if(ii.flags&2)return e.factory.createKeywordTypeNode(154);if(ii.flags&4)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(ii.flags&8)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(ii.flags&64)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(ii.flags&16&&!ii.aliasSymbol)return Ar.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(ii.flags&1024&&!(ii.flags&1048576)){var pt=Rs(ii.symbol),Xt=fa(pt,Ar,788968);if(Io(pt)===ii)return Xt;var qt=e.symbolName(ii.symbol);return e.isIdentifierText(qt,0)?N_(Xt,e.factory.createTypeReferenceNode(qt,void 0)):e.isImportTypeNode(Xt)?(Xt.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Xt,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(qt)))):e.isTypeReferenceNode(Xt)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Xt.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(qt))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(ii.flags&1056)return fa(ii.symbol,Ar,788968);if(ii.flags&128)return Ar.approximateLength+=ii.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(ii.value,!!(Ar.flags&268435456)),16777216));if(ii.flags&256){var Yt=ii.value;return Ar.approximateLength+=(""+Yt).length,e.factory.createLiteralTypeNode(Yt<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Yt)):e.factory.createNumericLiteral(Yt))}if(ii.flags&2048)return Ar.approximateLength+=e.pseudoBigIntToString(ii.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(ii.value));if(ii.flags&512)return Ar.approximateLength+=ii.intrinsicName.length,e.factory.createLiteralTypeNode(ii.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(ii.flags&8192){if(!(Ar.flags&1048576)){if(Cp(ii.symbol,Ar.enclosingDeclaration))return Ar.approximateLength+=6,fa(ii.symbol,Ar,111551);Ar.tracker.reportInaccessibleUniqueSymbolError&&Ar.tracker.reportInaccessibleUniqueSymbolError()}return Ar.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(ii.flags&16384)return Ar.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(ii.flags&32768)return Ar.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(ii.flags&65536)return Ar.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(ii.flags&131072)return Ar.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(ii.flags&4096)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(ii.flags&67108864)return Ar.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(e.isThisTypeParameter(ii))return Ar.flags&4194304&&(!Ar.encounteredError&&!(Ar.flags&32768)&&(Ar.encounteredError=!0),Ar.tracker.reportInaccessibleThisError&&Ar.tracker.reportInaccessibleThisError()),Ar.approximateLength+=4,e.factory.createThisTypeNode();if(!Pt&&ii.aliasSymbol&&(Ar.flags&16384||El(ii.aliasSymbol,Ar.enclosingDeclaration))){var va=q(ii.aliasTypeArguments,Ar);return pf(ii.aliasSymbol.escapedName)&&!(ii.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),va):fa(ii.aliasSymbol,Ar,788968,va)}var Ft=e.getObjectFlags(ii);if(Ft&4)return e.Debug.assert(!!(ii.flags&524288)),ii.node?vs(ii,Us):Us(ii);if(ii.flags&262144||Ft&3){if(ii.flags&262144&&e.contains(Ar.inferTypeParameters,ii))return Ar.approximateLength+=e.symbolName(ii.symbol).length+6,e.factory.createInferTypeNode(lr(ii,Ar,void 0));if(Ar.flags&4&&ii.flags&262144&&!El(ii.symbol,Ar.enclosingDeclaration)){var pi=Ra(ii,Ar);return Ar.approximateLength+=e.idText(pi).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(pi)),void 0)}return ii.symbol?fa(ii.symbol,Ar,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(ii.flags&1048576&&ii.origin&&(ii=ii.origin),ii.flags&3145728){var Ai=ii.flags&1048576?id(ii.types):ii.types;if(e.length(Ai)===1)return o(Ai[0],Ar);var Qi=q(Ai,Ar,!0);if(Qi&&Qi.length>0)return ii.flags&1048576?e.factory.createUnionTypeNode(Qi):e.factory.createIntersectionTypeNode(Qi);!Ar.encounteredError&&!(Ar.flags&262144)&&(Ar.encounteredError=!0);return}if(Ft&48)return e.Debug.assert(!!(ii.flags&524288)),gc(ii);if(ii.flags&4194304){var it=ii.type;Ar.approximateLength+=6;var st=o(it,Ar);return e.factory.createTypeOperatorNode(140,st)}if(ii.flags&134217728){var kt=ii.texts,Ha=ii.types,Tn=e.factory.createTemplateHead(kt[0]),Ca=e.factory.createNodeArray(e.map(Ha,function(Ya,qn){return e.factory.createTemplateLiteralTypeSpan(o(Ya,Ar),(qn<Ha.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(kt[qn+1]))}));return Ar.approximateLength+=2,e.factory.createTemplateLiteralType(Tn,Ca)}if(ii.flags&268435456){var kn=o(ii.type,Ar);return fa(ii.symbol,Ar,788968,[kn])}if(ii.flags&8388608){var mo=o(ii.objectType,Ar),st=o(ii.indexType,Ar);return Ar.approximateLength+=2,e.factory.createIndexedAccessTypeNode(mo,st)}if(ii.flags&16777216)return vs(ii,function(Ya){return Po(Ya)});if(ii.flags&33554432)return o(ii.baseType,Ar);return e.Debug.fail("Should be unreachable.");function Po(Ya){var qn=o(Ya.checkType,Ar),fs=Ar.inferTypeParameters;Ar.inferTypeParameters=Ya.root.inferTypeParameters;var yo=o(Ya.extendsType,Ar);Ar.inferTypeParameters=fs;var ec=ms(ep(Ya)),oi=ms(rp(Ya));return Ar.approximateLength+=15,e.factory.createConditionalTypeNode(qn,yo,ec,oi)}function ms(Ya){var qn,fs,yo;return Ya.flags&1048576?!((qn=Ar.visitedTypes)===null||qn===void 0)&&qn.has(Gu(Ya))?(Ar.flags&131072||(Ar.encounteredError=!0,(yo=(fs=Ar.tracker)===null||fs===void 0?void 0:fs.reportCyclicStructureError)===null||yo===void 0||yo.call(fs)),s(Ar)):vs(Ya,function(ec){return o(ec,Ar)}):o(Ya,Ar)}function Wo(Ya){e.Debug.assert(!!(Ya.flags&524288));var qn=Ya.declaration.readonlyToken?e.factory.createToken(Ya.declaration.readonlyToken.kind):void 0,fs=Ya.declaration.questionToken?e.factory.createToken(Ya.declaration.questionToken.kind):void 0,yo;Mg(Ya)?yo=e.factory.createTypeOperatorNode(140,o(Lg(Ya),Ar)):yo=o(Iu(Ya),Ar);var ec=lr(Nu(Ya),Ar,yo),oi=Ya.declaration.nameType?o(h_(Ya),Ar):void 0,yi=o(_g(wl(Ya),!!(ll(Ya)&4)),Ar),Bi=e.factory.createMappedTypeNode(qn,ec,oi,fs,yi,void 0);return Ar.approximateLength+=10,e.setEmitFlags(Bi,1)}function gc(Ya){var qn,fs=Ya.id,yo=Ya.symbol;if(yo){var ec=rd(Ya)?788968:111551;if(ml(yo.valueDeclaration))return fa(yo,Ar,ec);if(yo.flags&32&&!_n(yo)&&!(yo.valueDeclaration&&yo.valueDeclaration.kind===225&&Ar.flags&2048)||yo.flags&896||yi())return fa(yo,Ar,ec);if(!((qn=Ar.visitedTypes)===null||qn===void 0)&&qn.has(fs)){var oi=Nd(Ya);return oi?fa(oi,Ar,788968):s(Ar)}else return vs(Ya,vl)}else return vl(Ya);function yi(){var Bi,ct=!!(yo.flags&8192)&&e.some(yo.declarations,function(Gt){return e.isStatic(Gt)}),at=!!(yo.flags&16)&&(yo.parent||e.forEach(yo.declarations,function(Gt){return Gt.parent.kind===303||Gt.parent.kind===261}));if(ct||at)return(!!(Ar.flags&4096)||((Bi=Ar.visitedTypes)===null||Bi===void 0?void 0:Bi.has(fs)))&&(!(Ar.flags&8)||Cp(yo,Ar.enclosingDeclaration))}}function vs(Ya,qn){var fs,yo,ec=Ya.id,oi=e.getObjectFlags(Ya)&16&&Ya.symbol&&Ya.symbol.flags&32,yi=e.getObjectFlags(Ya)&4&&Ya.node?"N"+A(Ya.node):Ya.flags&16777216?"N"+A(Ya.root.node):Ya.symbol?(oi?"+":"")+f(Ya.symbol):void 0;Ar.visitedTypes||(Ar.visitedTypes=new e.Set),yi&&!Ar.symbolDepth&&(Ar.symbolDepth=new e.Map);var Bi=Ar.enclosingDeclaration&&Da(Ar.enclosingDeclaration),ct="".concat(Gu(Ya),"|").concat(Ar.flags);Bi&&(Bi.serializedTypes||(Bi.serializedTypes=new e.Map));var at=(fs=Bi==null?void 0:Bi.serializedTypes)===null||fs===void 0?void 0:fs.get(ct);if(at)return at.truncating&&(Ar.truncating=!0),Ar.approximateLength+=at.addedLength,$a(at);var Gt;if(yi){if(Gt=Ar.symbolDepth.get(yi)||0,Gt>10)return s(Ar);Ar.symbolDepth.set(yi,Gt+1)}Ar.visitedTypes.add(ec);var Wt=Ar.approximateLength,Et=qn(Ya),wa=Ar.approximateLength-Wt;return!Ar.reportedDiagnostic&&!Ar.encounteredError&&(Ar.truncating&&(Et.truncating=!0),Et.addedLength=wa,(yo=Bi==null?void 0:Bi.serializedTypes)===null||yo===void 0||yo.set(ct,Et)),Ar.visitedTypes.delete(ec),yi&&Ar.symbolDepth.set(yi,Gt),Et;function $a(jn){return!e.nodeIsSynthesized(jn)&&e.getParseTreeNode(jn)===jn?jn:e.setTextRange(e.factory.cloneNode(e.visitEachChild(jn,$a,e.nullTransformationContext)),jn)}}function vl(Ya){if(Fc(Ya)||Ya.containsError)return Wo(Ya);var qn=Vu(Ya);if(!qn.properties.length&&!qn.indexInfos.length){if(!qn.callSignatures.length&&!qn.constructSignatures.length)return Ar.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(qn.callSignatures.length===1&&!qn.constructSignatures.length){var fs=qn.callSignatures[0],yo=$e(fs,178,Ar);return yo}if(qn.constructSignatures.length===1&&!qn.callSignatures.length){var fs=qn.constructSignatures[0],yo=$e(fs,179,Ar);return yo}}var ec=e.filter(qn.constructSignatures,function(Gt){return!!(Gt.flags&4)});if(e.some(ec)){var oi=e.map(ec,qg),yi=qn.callSignatures.length+(qn.constructSignatures.length-ec.length)+qn.indexInfos.length+(Ar.flags&2048?e.countWhere(qn.properties,function(Gt){return!(Gt.flags&4194304)}):e.length(qn.properties));return yi&&oi.push(xl(qn)),o(To(oi),Ar)}var Bi=Ar.flags;Ar.flags|=4194304;var ct=dv(qn);Ar.flags=Bi;var at=e.factory.createTypeLiteralNode(ct);return Ar.approximateLength+=2,e.setEmitFlags(at,Ar.flags&1024?0:1),at}function Us(Ya){var qn=Co(Ya);if(Ya.target===h||Ya.target===Ee){if(Ar.flags&2){var fs=o(qn[0],Ar);return e.factory.createTypeReferenceNode(Ya.target===h?"Array":"ReadonlyArray",[fs])}var yo=o(qn[0],Ar),ec=e.factory.createArrayTypeNode(yo);return Ya.target===h?ec:e.factory.createTypeOperatorNode(144,ec)}else if(Ya.target.objectFlags&8){if(qn=e.sameMap(qn,function(Uo,ps){return _g(Uo,!!(Ya.target.elementFlags[ps]&2))}),qn.length>0){var oi=Q_(Ya),yi=q(qn.slice(0,oi),Ar);if(yi){if(Ya.target.labeledElementDeclarations)for(var Bi=0;Bi<yi.length;Bi++){var ct=Ya.target.elementFlags[Bi];yi[Bi]=e.factory.createNamedTupleMember(ct&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(l0(Ya.target.labeledElementDeclarations[Bi]))),ct&2?e.factory.createToken(57):void 0,ct&4?e.factory.createArrayTypeNode(yi[Bi]):yi[Bi])}else for(var Bi=0;Bi<Math.min(oi,yi.length);Bi++){var ct=Ya.target.elementFlags[Bi];yi[Bi]=ct&12?e.factory.createRestTypeNode(ct&4?e.factory.createArrayTypeNode(yi[Bi]):yi[Bi]):ct&2?e.factory.createOptionalTypeNode(yi[Bi]):yi[Bi]}var at=e.setEmitFlags(e.factory.createTupleTypeNode(yi),1);return Ya.target.readonly?e.factory.createTypeOperatorNode(144,at):at}}if(Ar.encounteredError||Ar.flags&524288){var at=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ya.target.readonly?e.factory.createTypeOperatorNode(144,at):at}Ar.encounteredError=!0;return}else{if(Ar.flags&2048&&Ya.symbol.valueDeclaration&&e.isClassLike(Ya.symbol.valueDeclaration)&&!Cp(Ya.symbol,Ar.enclosingDeclaration))return gc(Ya);var Gt=Ya.target.outerTypeParameters,Bi=0,Wt=void 0;if(Gt)for(var Et=Gt.length;Bi<Et;){var wa=Bi,$a=UT(Gt[Bi]);do Bi++;while(Bi<Et&&UT(Gt[Bi])===$a);if(!e.rangeEquals(Gt,qn,wa,Bi)){var jn=q(qn.slice(wa,Bi),Ar),Fn=Ar.flags;Ar.flags|=16;var Yn=fa($a,Ar,788968,jn);Ar.flags=Fn,Wt=Wt?N_(Wt,Yn):Yn}}var Ss=void 0;if(qn.length>0){var ys=(Ya.target.typeParameters||e.emptyArray).length;Ss=q(qn.slice(Bi,ys),Ar)}var ct=Ar.flags;Ar.flags|=16;var ks=fa(Ya.symbol,Ar,788968,Ss);return Ar.flags=ct,Wt?N_(Wt,ks):ks}}function N_(Ya,qn){if(e.isImportTypeNode(Ya)){var fs=Ya.typeArguments,yo=Ya.qualifier;yo&&(e.isIdentifier(yo)?yo=e.factory.updateIdentifier(yo,fs):yo=e.factory.updateQualifiedName(yo,yo.left,e.factory.updateIdentifier(yo.right,fs))),fs=qn.typeArguments;for(var ec=pv(qn),oi=0,yi=ec;oi<yi.length;oi++){var Bi=yi[oi];yo=yo?e.factory.createQualifiedName(yo,Bi):Bi}return e.factory.updateImportTypeNode(Ya,Ya.argument,yo,fs,Ya.isTypeOf)}else{var fs=Ya.typeArguments,ct=Ya.typeName;e.isIdentifier(ct)?ct=e.factory.updateIdentifier(ct,fs):ct=e.factory.updateQualifiedName(ct,ct.left,e.factory.updateIdentifier(ct.right,fs)),fs=qn.typeArguments;for(var ec=pv(qn),at=0,Gt=ec;at<Gt.length;at++){var Bi=Gt[at];ct=e.factory.createQualifiedName(ct,Bi)}return e.factory.updateTypeReferenceNode(Ya,ct,fs)}}function pv(Ya){for(var qn=Ya.typeName,fs=[];!e.isIdentifier(qn);)fs.unshift(qn.right),qn=qn.left;return fs.unshift(qn),fs}function dv(Ya){if(t(Ar))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var qn=[],fs=0,yo=Ya.callSignatures;fs<yo.length;fs++){var ec=yo[fs];qn.push($e(ec,173,Ar))}for(var oi=0,yi=Ya.constructSignatures;oi<yi.length;oi++){var ec=yi[oi];ec.flags&4||qn.push($e(ec,174,Ar))}for(var Bi=0,ct=Ya.indexInfos;Bi<ct.length;Bi++){var at=ct[Bi];qn.push(Ne(at,Ar,Ya.objectFlags&1024?s(Ar):void 0))}var Gt=Ya.properties;if(!Gt)return qn;for(var Wt=0,Et=0,wa=Gt;Et<wa.length;Et++){var $a=wa[Et];if(Wt++,Ar.flags&2048){if($a.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol($a)&24&&Ar.tracker.reportPrivateInBaseOfClassExpression&&Ar.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores($a.escapedName))}if(t(Ar)&&Wt+2<Gt.length-1){qn.push(e.factory.createPropertySignature(void 0,"... ".concat(Gt.length-Wt," more ..."),void 0,void 0)),T(Gt[Gt.length-1],Ar,qn);break}T($a,Ar,qn)}return qn.length?qn:void 0}}function s(ii){return ii.approximateLength+=3,ii.flags&1?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function u(ii,Ar){var Pt;return!!(e.getCheckFlags(ii)&8192)&&(e.contains(Ar.reverseMappedStack,ii)||((Pt=Ar.reverseMappedStack)===null||Pt===void 0?void 0:Pt[0])&&!(e.getObjectFlags(e.last(Ar.reverseMappedStack).propertyType)&16))}function T(ii,Ar,Pt){var pt,Xt,qt=!!(e.getCheckFlags(ii)&8192),Yt=u(ii,Ar)?xe:Df(ii),va=Ar.enclosingDeclaration;if(Ar.enclosingDeclaration=void 0,Ar.tracker.trackSymbol&&e.getCheckFlags(ii)&4096&&Yd(ii.escapedName))if(ii.declarations){var Ft=e.first(ii.declarations);if(wg(Ft))if(e.isBinaryExpression(Ft)){var pi=e.getNameOfDeclaration(Ft);pi&&e.isElementAccessExpression(pi)&&e.isPropertyAccessEntityNameExpression(pi.argumentExpression)&&ui(pi.argumentExpression,va,Ar)}else ui(Ft.name.expression,va,Ar)}else!((pt=Ar.tracker)===null||pt===void 0)&&pt.reportNonSerializableProperty&&Ar.tracker.reportNonSerializableProperty(Ga(ii));Ar.enclosingDeclaration=ii.valueDeclaration||((Xt=ii.declarations)===null||Xt===void 0?void 0:Xt[0])||va;var Ai=$i(ii,Ar);Ar.enclosingDeclaration=va,Ar.approximateLength+=e.symbolName(ii).length+1;var Qi=ii.flags&16777216?e.factory.createToken(57):void 0;if(ii.flags&8208&&!Gf(Yt).length&&!zl(ii))for(var it=za(pc(Yt,function(ms){return!(ms.flags&32768)}),0),st=0,kt=it;st<kt.length;st++){var Ha=kt[st],Tn=$e(Ha,167,Ar,{name:Ai,questionToken:Qi});Pt.push(Po(Tn))}else{var Ca=void 0;u(ii,Ar)?Ca=s(Ar):(qt&&(Ar.reverseMappedStack||(Ar.reverseMappedStack=[]),Ar.reverseMappedStack.push(ii)),Ca=Yt?Qa(Ar,Yt,ii,va):e.factory.createKeywordTypeNode(130),qt&&Ar.reverseMappedStack.pop());var kn=zl(ii)?[e.factory.createToken(144)]:void 0;kn&&(Ar.approximateLength+=9);var mo=e.factory.createPropertySignature(kn,Ai,Qi,Ca);Pt.push(Po(mo))}function Po(ms){var Wo;if(e.some(ii.declarations,function(vl){return vl.kind===345})){var gc=(Wo=ii.declarations)===null||Wo===void 0?void 0:Wo.find(function(vl){return vl.kind===345}),vs=e.getTextOfJSDocComment(gc.comment);vs&&e.setSyntheticLeadingComments(ms,[{kind:3,text:`*
|
|
* `+vs.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ii.valueDeclaration&&e.setCommentRange(ms,ii.valueDeclaration);return ms}}function q(ii,Ar,Pt){if(e.some(ii)){if(t(Ar))if(Pt){if(ii.length>2)return[o(ii[0],Ar),e.factory.createTypeReferenceNode("... ".concat(ii.length-2," more ..."),void 0),o(ii[ii.length-1],Ar)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var pt=!(Ar.flags&64),Xt=pt?e.createUnderscoreEscapedMultiMap():void 0,qt=[],Yt=0,va=0,Ft=ii;va<Ft.length;va++){var pi=Ft[va];if(Yt++,t(Ar)&&Yt+2<ii.length-1){qt.push(e.factory.createTypeReferenceNode("... ".concat(ii.length-Yt," more ..."),void 0));var Ai=o(ii[ii.length-1],Ar);Ai&&qt.push(Ai);break}Ar.approximateLength+=2;var Qi=o(pi,Ar);Qi&&(qt.push(Qi),Xt&&e.isIdentifierTypeReference(Qi)&&Xt.add(Qi.typeName.escapedText,[pi,qt.length-1]))}if(Xt){var it=Ar.flags;Ar.flags|=64,Xt.forEach(function(st){if(!e.arrayIsHomogeneous(st,function(mo,Po){var ms=mo[0],Wo=Po[0];return fe(ms,Wo)}))for(var kt=0,Ha=st;kt<Ha.length;kt++){var Tn=Ha[kt],Ca=Tn[0],kn=Tn[1];qt[kn]=o(Ca,Ar)}}),Ar.flags=it}return qt}}function fe(ii,Ar){return ii===Ar||!!ii.symbol&&ii.symbol===Ar.symbol||!!ii.aliasSymbol&&ii.aliasSymbol===Ar.aliasSymbol}function Ne(ii,Ar,Pt){var pt=e.getNameFromIndexInfo(ii)||"x",Xt=o(ii.keyType,Ar),qt=e.factory.createParameterDeclaration(void 0,void 0,void 0,pt,void 0,Xt,void 0);return Pt||(Pt=o(ii.type||xe,Ar)),!ii.type&&!(Ar.flags&2097152)&&(Ar.encounteredError=!0),Ar.approximateLength+=pt.length+4,e.factory.createIndexSignature(void 0,ii.isReadonly?[e.factory.createToken(144)]:void 0,[qt],Pt)}function $e(ii,Ar,Pt,pt){var Xt,qt,Yt,va,Ft=Pt.flags&256;Ft&&(Pt.flags&=-257),Pt.approximateLength+=3;var pi,Ai;Pt.flags&32&&ii.target&&ii.mapper&&ii.target.typeParameters?Ai=ii.target.typeParameters.map(function(gc){return o(gn(gc,ii.mapper),Pt)}):pi=ii.typeParameters&&ii.typeParameters.map(function(gc){return yr(gc,Pt)});var Qi=Av(ii,!0)[0],it=(e.some(Qi,function(gc){return gc!==Qi[Qi.length-1]&&!!(e.getCheckFlags(gc)&32768)})?ii.parameters:Qi).map(function(gc){return Zr(gc,Pt,Ar===170,pt==null?void 0:pt.privateSymbolVisitor,pt==null?void 0:pt.bundledImports)}),st=Ze(ii,Pt);st&&it.unshift(st);var kt,Ha=wu(ii);if(Ha){var Tn=Ha.kind===2||Ha.kind===3?e.factory.createToken(128):void 0,Ca=Ha.kind===1||Ha.kind===3?e.setEmitFlags(e.factory.createIdentifier(Ha.parameterName),16777216):e.factory.createThisTypeNode(),kn=Ha.type&&o(Ha.type,Pt);kt=e.factory.createTypePredicateNode(Tn,Ca,kn)}else{var mo=So(ii);mo&&!(Ft&&At(mo))?kt=En(Pt,mo,ii,pt==null?void 0:pt.privateSymbolVisitor,pt==null?void 0:pt.bundledImports):Ft||(kt=e.factory.createKeywordTypeNode(130))}var Po=pt==null?void 0:pt.modifiers;if(Ar===179&&ii.flags&4){var ms=e.modifiersToFlags(Po);Po=e.factory.createModifiersFromModifierFlags(ms|128)}var Wo=Ar===173?e.factory.createCallSignature(pi,it,kt):Ar===174?e.factory.createConstructSignature(pi,it,kt):Ar===167?e.factory.createMethodSignature(Po,(Xt=pt==null?void 0:pt.name)!==null&&Xt!==void 0?Xt:e.factory.createIdentifier(""),pt==null?void 0:pt.questionToken,pi,it,kt):Ar===168?e.factory.createMethodDeclaration(void 0,Po,void 0,(qt=pt==null?void 0:pt.name)!==null&&qt!==void 0?qt:e.factory.createIdentifier(""),void 0,pi,it,kt,void 0):Ar===170?e.factory.createConstructorDeclaration(void 0,Po,it,void 0):Ar===171?e.factory.createGetAccessorDeclaration(void 0,Po,(Yt=pt==null?void 0:pt.name)!==null&&Yt!==void 0?Yt:e.factory.createIdentifier(""),it,kt,void 0):Ar===172?e.factory.createSetAccessorDeclaration(void 0,Po,(va=pt==null?void 0:pt.name)!==null&&va!==void 0?va:e.factory.createIdentifier(""),it,void 0):Ar===175?e.factory.createIndexSignature(void 0,Po,it,kt):Ar===315?e.factory.createJSDocFunctionType(it,kt):Ar===178?e.factory.createFunctionTypeNode(pi,it,kt!=null?kt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Ar===179?e.factory.createConstructorTypeNode(Po,pi,it,kt!=null?kt:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Ar===255?e.factory.createFunctionDeclaration(void 0,Po,void 0,pt!=null&&pt.name?e.cast(pt.name,e.isIdentifier):e.factory.createIdentifier(""),pi,it,kt,void 0):Ar===212?e.factory.createFunctionExpression(Po,void 0,pt!=null&&pt.name?e.cast(pt.name,e.isIdentifier):e.factory.createIdentifier(""),pi,it,kt,e.factory.createBlock([])):Ar===213?e.factory.createArrowFunction(Po,pi,it,kt,void 0,e.factory.createBlock([])):e.Debug.assertNever(Ar);return Ai&&(Wo.typeArguments=e.factory.createNodeArray(Ai)),Wo}function Ze(ii,Ar){if(ii.thisParameter)return Zr(ii.thisParameter,Ar);if(ii.declaration){var Pt=e.getJSDocThisTag(ii.declaration);if(Pt&&Pt.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,o(Ua(Pt.typeExpression),Ar))}}function lr(ii,Ar,Pt){var pt=Ar.flags;Ar.flags&=-513;var Xt=Ra(ii,Ar),qt=H_(ii),Yt=qt&&o(qt,Ar);return Ar.flags=pt,e.factory.createTypeParameterDeclaration(Xt,Pt,Yt)}function yr(ii,Ar,Pt){Pt===void 0&&(Pt=qc(ii));var pt=Pt&&o(Pt,Ar);return lr(ii,Ar,pt)}function Zr(ii,Ar,Pt,pt,Xt){var qt=e.getDeclarationOfKind(ii,163);!qt&&!e.isTransientSymbol(ii)&&(qt=e.getDeclarationOfKind(ii,338));var Yt=Jt(ii);qt&&F6(qt)&&(Yt=$f(Yt)),Ar.flags&1073741824&&qt&&!e.isJSDocParameterTag(qt)&&GM(qt)&&(Yt=$s(Yt,524288));var va=Qa(Ar,Yt,ii,Ar.enclosingDeclaration,pt,Xt),Ft=!(Ar.flags&8192)&&Pt&&qt&&qt.modifiers?qt.modifiers.map(e.factory.cloneNode):void 0,pi=qt&&e.isRestParameter(qt)||e.getCheckFlags(ii)&32768,Ai=pi?e.factory.createToken(25):void 0,Qi=qt&&qt.name?qt.name.kind===79?e.setEmitFlags(e.factory.cloneNode(qt.name),16777216):qt.name.kind===160?e.setEmitFlags(e.factory.cloneNode(qt.name.right),16777216):Ha(qt.name):e.symbolName(ii),it=qt&&ud(qt)||e.getCheckFlags(ii)&16384,st=it?e.factory.createToken(57):void 0,kt=e.factory.createParameterDeclaration(void 0,Ft,Ai,Qi,st,va,void 0);return Ar.approximateLength+=e.symbolName(ii).length+3,kt;function Ha(Tn){return Ca(Tn);function Ca(kn){Ar.tracker.trackSymbol&&e.isComputedPropertyName(kn)&&xv(kn)&&ui(kn.expression,Ar.enclosingDeclaration,Ar);var mo=e.visitEachChild(kn,Ca,e.nullTransformationContext,void 0,Ca);return e.isBindingElement(mo)&&(mo=e.factory.updateBindingElement(mo,mo.dotDotDotToken,mo.propertyName,mo.name,void 0)),e.nodeIsSynthesized(mo)||(mo=e.factory.cloneNode(mo)),e.setEmitFlags(mo,16777217)}}}function ui(ii,Ar,Pt){if(!!Pt.tracker.trackSymbol){var pt=e.getFirstIdentifier(ii),Xt=os(pt,pt.escapedText,1160127,void 0,void 0,!0);Xt&&Pt.tracker.trackSymbol(Xt,Ar,111551)}}function Ii(ii,Ar,Pt,pt){return Ar.tracker.trackSymbol(ii,Ar.enclosingDeclaration,Pt),Fi(ii,Ar,Pt,pt)}function Fi(ii,Ar,Pt,pt){var Xt,qt=ii.flags&262144;return!qt&&(Ar.enclosingDeclaration||Ar.flags&64)&&!(Ar.flags&134217728)?(Xt=e.Debug.checkDefined(Yt(ii,Pt,!0)),e.Debug.assert(Xt&&Xt.length>0)):Xt=[ii],Xt;function Yt(va,Ft,pi){var Ai=Xl(va,Ar.enclosingDeclaration,Ft,!!(Ar.flags&128)),Qi;if(!Ai||Ep(Ai[0],Ar.enclosingDeclaration,Ai.length===1?Ft:Hl(Ft))){var it=xs(Ai?Ai[0]:va,Ar.enclosingDeclaration,Ft);if(e.length(it)){Qi=it.map(function(Po){return e.some(Po.declarations,Cl)?lt(Po,Ar):void 0});var st=it.map(function(Po,ms){return ms});st.sort(mo);for(var kt=st.map(function(Po){return it[Po]}),Ha=0,Tn=kt;Ha<Tn.length;Ha++){var Ca=Tn[Ha],kn=Yt(Ca,Hl(Ft),!1);if(kn){if(Ca.exports&&Ca.exports.get("export=")&&Uu(Ca.exports.get("export="),va)){Ai=kn;break}Ai=kn.concat(Ai||[zf(Ca,va)||va]);break}}}}if(Ai)return Ai;if(pi||!(va.flags&6144))return!pi&&!pt&&!!e.forEach(va.declarations,Cl)?void 0:[va];function mo(Po,ms){var Wo=Qi[Po],gc=Qi[ms];if(Wo&&gc){var vs=e.pathIsRelative(gc);return e.pathIsRelative(Wo)===vs?e.moduleSpecifiers.countPathComponents(Wo)-e.moduleSpecifiers.countPathComponents(gc):vs?-1:1}return 0}}}function Ri(ii,Ar){var Pt,pt=Tg(ii);return pt.flags&524384&&(Pt=e.factory.createNodeArray(e.map(Sf(ii),function(Xt){return yr(Xt,Ar)}))),Pt}function Xi(ii,Ar,Pt){var pt;e.Debug.assert(ii&&0<=Ar&&Ar<ii.length);var Xt=ii[Ar],qt=f(Xt);if(!(!((pt=Pt.typeParameterSymbolList)===null||pt===void 0)&&pt.has(qt))){(Pt.typeParameterSymbolList||(Pt.typeParameterSymbolList=new e.Set)).add(qt);var Yt;if(Pt.flags&512&&Ar<ii.length-1){var va=Xt,Ft=ii[Ar+1];if(e.getCheckFlags(Ft)&1){var pi=Em(va.flags&2097152?zo(va):va);Yt=q(e.map(pi,function(Ai){return ip(Ai,Ft.mapper)}),Pt)}else Yt=Ri(Xt,Pt)}return Yt}}function ea(ii){return e.isIndexedAccessTypeNode(ii.objectType)?ea(ii.objectType):ii}function lt(ii,Ar){var Pt,pt=e.getDeclarationOfKind(ii,303);if(!pt){var Xt=e.firstDefined(ii.declarations,function(Ha){return mu(Ha,ii)});Xt&&(pt=e.getDeclarationOfKind(Xt,303))}if(pt&&pt.moduleName!==void 0)return pt.moduleName;if(!pt){if(Ar.tracker.trackReferencedAmbientModule){var qt=e.filter(ii.declarations,e.isAmbientModule);if(e.length(qt))for(var Yt=0,va=qt;Yt<va.length;Yt++){var Ft=va[Yt];Ar.tracker.trackReferencedAmbientModule(Ft,ii)}}if(a.test(ii.escapedName))return ii.escapedName.substring(1,ii.escapedName.length-1)}if(!Ar.enclosingDeclaration||!Ar.tracker.moduleResolverHost)return a.test(ii.escapedName)?ii.escapedName.substring(1,ii.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(ii)).fileName;var pi=e.getSourceFileOfNode(e.getOriginalNode(Ar.enclosingDeclaration)),Ai=Ma(ii),Qi=Ai.specifierCache&&Ai.specifierCache.get(pi.path);if(!Qi){var it=!!e.outFile(ye),st=Ar.tracker.moduleResolverHost,kt=it?Ve(Ve({},ye),{baseUrl:st.getCommonSourceDirectory()}):ye;Qi=e.first(e.moduleSpecifiers.getModuleSpecifiers(ii,Kr,kt,pi,st,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":void 0})),(Pt=Ai.specifierCache)!==null&&Pt!==void 0||(Ai.specifierCache=new e.Map),Ai.specifierCache.set(pi.path,Qi)}return Qi}function Ia(ii){var Ar=e.factory.createIdentifier(e.unescapeLeadingUnderscores(ii.escapedName));return ii.parent?e.factory.createQualifiedName(Ia(ii.parent),Ar):Ar}function fa(ii,Ar,Pt,pt){var Xt=Ii(ii,Ar,Pt,!(Ar.flags&16384)),qt=Pt===111551;if(e.some(Xt[0].declarations,Cl)){var Yt=Xt.length>1?Ha(Xt,Xt.length-1,1):void 0,va=pt||Xi(Xt,0,Ar),Ft=lt(Xt[0],Ar);!(Ar.flags&67108864)&&e.getEmitModuleResolutionKind(ye)!==e.ModuleResolutionKind.Classic&&Ft.indexOf("/node_modules/")>=0&&(Ar.encounteredError=!0,Ar.tracker.reportLikelyUnsafeImportRequiredError&&Ar.tracker.reportLikelyUnsafeImportRequiredError(Ft));var pi=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Ft));if(Ar.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ar.tracker.trackExternalModuleSymbolOfImportTypeNode(Xt[0]),Ar.approximateLength+=Ft.length+10,!Yt||e.isEntityName(Yt)){if(Yt){var Ai=e.isIdentifier(Yt)?Yt:Yt.right;Ai.typeArguments=void 0}return e.factory.createImportTypeNode(pi,Yt,va,qt)}else{var Qi=ea(Yt),it=Qi.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(pi,it,va,qt),Qi.indexType)}}var st=Ha(Xt,Xt.length-1,0);if(e.isIndexedAccessTypeNode(st))return st;if(qt)return e.factory.createTypeQueryNode(st);var Ai=e.isIdentifier(st)?st:st.right,kt=Ai.typeArguments;return Ai.typeArguments=void 0,e.factory.createTypeReferenceNode(st,kt);function Ha(Tn,Ca,kn){var mo=Ca===Tn.length-1?pt:Xi(Tn,Ca,Ar),Po=Tn[Ca],ms=Tn[Ca-1],Wo;if(Ca===0)Ar.flags|=16777216,Wo=sl(Po,Ar),Ar.approximateLength+=(Wo?Wo.length:0)+1,Ar.flags^=16777216;else if(ms&&Ns(ms)){var gc=Ns(ms);e.forEachEntry(gc,function(Us,N_){if(Uu(Us,Po)&&!Yd(N_)&&N_!=="export=")return Wo=e.unescapeLeadingUnderscores(N_),!0})}if(Wo||(Wo=sl(Po,Ar)),Ar.approximateLength+=Wo.length+1,!(Ar.flags&16)&&ms&&Il(ms)&&Il(ms).get(Po.escapedName)&&Uu(Il(ms).get(Po.escapedName),Po)){var vs=Ha(Tn,Ca-1,kn);return e.isIndexedAccessTypeNode(vs)?e.factory.createIndexedAccessTypeNode(vs,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Wo))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(vs,mo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Wo)))}var vl=e.setEmitFlags(e.factory.createIdentifier(Wo,mo),16777216);if(vl.symbol=Po,Ca>kn){var vs=Ha(Tn,Ca-1,kn);return e.isEntityName(vs)?e.factory.createQualifiedName(vs,vl):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return vl}}function Dn(ii,Ar,Pt){var pt=os(Ar.enclosingDeclaration,ii,788968,void 0,ii,!1);return pt?!(pt.flags&262144&&pt===Pt.symbol):!1}function Ra(ii,Ar){var Pt,pt;if(Ar.flags&4&&Ar.typeParameterNames){var Xt=Ar.typeParameterNames.get(Gu(ii));if(Xt)return Xt}var qt=Bn(ii.symbol,Ar,788968,!0);if(!(qt.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Ar.flags&4){for(var Yt=qt.escapedText,va=((Pt=Ar.typeParameterNamesByTextNextNameCount)===null||Pt===void 0?void 0:Pt.get(Yt))||0,Ft=Yt;((pt=Ar.typeParameterNamesByText)===null||pt===void 0?void 0:pt.has(Ft))||Dn(Ft,Ar,ii);)va++,Ft="".concat(Yt,"_").concat(va);Ft!==Yt&&(qt=e.factory.createIdentifier(Ft,qt.typeArguments)),(Ar.typeParameterNamesByTextNextNameCount||(Ar.typeParameterNamesByTextNextNameCount=new e.Map)).set(Yt,va),(Ar.typeParameterNames||(Ar.typeParameterNames=new e.Map)).set(Gu(ii),qt),(Ar.typeParameterNamesByText||(Ar.typeParameterNamesByText=new e.Set)).add(Yt)}return qt}function Bn(ii,Ar,Pt,pt){var Xt=Ii(ii,Ar,Pt);return pt&&Xt.length!==1&&!Ar.encounteredError&&!(Ar.flags&65536)&&(Ar.encounteredError=!0),qt(Xt,Xt.length-1);function qt(Yt,va){var Ft=Xi(Yt,va,Ar),pi=Yt[va];va===0&&(Ar.flags|=16777216);var Ai=sl(pi,Ar);va===0&&(Ar.flags^=16777216);var Qi=e.setEmitFlags(e.factory.createIdentifier(Ai,Ft),16777216);return Qi.symbol=pi,va>0?e.factory.createQualifiedName(qt(Yt,va-1),Qi):Qi}}function Jn(ii,Ar,Pt){var pt=Ii(ii,Ar,Pt);return Xt(pt,pt.length-1);function Xt(qt,Yt){var va=Xi(qt,Yt,Ar),Ft=qt[Yt];Yt===0&&(Ar.flags|=16777216);var pi=sl(Ft,Ar);Yt===0&&(Ar.flags^=16777216);var Ai=pi.charCodeAt(0);if(e.isSingleOrDoubleQuote(Ai)&&e.some(Ft.declarations,Cl))return e.factory.createStringLiteral(lt(Ft,Ar));var Qi=Ai===35?pi.length>1&&e.isIdentifierStart(pi.charCodeAt(1),Se):e.isIdentifierStart(Ai,Se);if(Yt===0||Qi){var it=e.setEmitFlags(e.factory.createIdentifier(pi,va),16777216);return it.symbol=Ft,Yt>0?e.factory.createPropertyAccessExpression(Xt(qt,Yt-1),it):it}else{Ai===91&&(pi=pi.substring(1,pi.length-1),Ai=pi.charCodeAt(0));var st=void 0;return e.isSingleOrDoubleQuote(Ai)&&!(Ft.flags&8)?st=e.factory.createStringLiteral(e.stripQuotes(pi).replace(/\\./g,function(kt){return kt.substring(1)}),Ai===39):""+ +pi===pi&&(st=e.factory.createNumericLiteral(+pi)),st||(st=e.setEmitFlags(e.factory.createIdentifier(pi,va),16777216),st.symbol=Ft),e.factory.createElementAccessExpression(Xt(qt,Yt-1),st)}}}function On(ii){var Ar=e.getNameOfDeclaration(ii);return!!Ar&&e.isStringLiteral(Ar)}function Ao(ii){var Ar=e.getNameOfDeclaration(ii);return!!(Ar&&e.isStringLiteral(Ar)&&(Ar.singleQuote||!e.nodeIsSynthesized(Ar)&&e.startsWith(e.getTextOfNode(Ar,!1),"'")))}function $i(ii,Ar){var Pt=!!e.length(ii.declarations)&&e.every(ii.declarations,Ao),pt=Vi(ii,Ar,Pt);if(pt)return pt;var Xt=e.unescapeLeadingUnderscores(ii.escapedName),qt=!!e.length(ii.declarations)&&e.every(ii.declarations,On);return e.createPropertyNameNodeForIdentifierOrLiteral(Xt,e.getEmitScriptTarget(ye),Pt,qt)}function Vi(ii,Ar,Pt){var pt=Ma(ii).nameType;if(pt){if(pt.flags&384){var Xt=""+pt.value;return!e.isIdentifierText(Xt,e.getEmitScriptTarget(ye))&&!e.isNumericLiteralName(Xt)?e.factory.createStringLiteral(Xt,!!Pt):e.isNumericLiteralName(Xt)&&e.startsWith(Xt,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Xt)):e.createPropertyNameNodeForIdentifierOrLiteral(Xt,e.getEmitScriptTarget(ye))}if(pt.flags&8192)return e.factory.createComputedPropertyName(Jn(pt.symbol,Ar,111551))}}function Ot(ii){var Ar=Ve({},ii);return Ar.typeParameterNames&&(Ar.typeParameterNames=new e.Map(Ar.typeParameterNames)),Ar.typeParameterNamesByText&&(Ar.typeParameterNamesByText=new e.Set(Ar.typeParameterNamesByText)),Ar.typeParameterSymbolList&&(Ar.typeParameterSymbolList=new e.Set(Ar.typeParameterSymbolList)),Ar.tracker=i(Ar,Ar.tracker),Ar}function Wa(ii,Ar){return ii.declarations&&e.find(ii.declarations,function(Pt){return!!e.getEffectiveTypeAnnotationNode(Pt)&&(!Ar||!!e.findAncestor(Pt,function(pt){return pt===Ar}))})}function Qt(ii,Ar){return!(e.getObjectFlags(Ar)&4)||!e.isTypeReferenceNode(ii)||e.length(ii.typeArguments)>=Ol(Ar.target.typeParameters)}function Qa(ii,Ar,Pt,pt,Xt,qt){if(!ra(Ar)&&pt){var Yt=Wa(Pt,pt);if(Yt&&!e.isFunctionLikeDeclaration(Yt)&&!e.isGetAccessorDeclaration(Yt)){var va=e.getEffectiveTypeAnnotationNode(Yt);if(Ua(va)===Ar&&Qt(va,Ar)){var Ft=ia(ii,va,Xt,qt);if(Ft)return Ft}}}var pi=ii.flags;Ar.flags&8192&&Ar.symbol===Pt&&(!ii.enclosingDeclaration||e.some(Pt.declarations,function(Qi){return e.getSourceFileOfNode(Qi)===e.getSourceFileOfNode(ii.enclosingDeclaration)}))&&(ii.flags|=1048576);var Ai=o(Ar,ii);return ii.flags=pi,Ai}function En(ii,Ar,Pt,pt,Xt){if(!ra(Ar)&&ii.enclosingDeclaration){var qt=Pt.declaration&&e.getEffectiveReturnTypeNode(Pt.declaration);if(!!e.findAncestor(qt,function(pi){return pi===ii.enclosingDeclaration})&&qt){var Yt=Ua(qt),va=Yt.flags&262144&&Yt.isThisType?gn(Yt,Pt.mapper):Yt;if(va===Ar&&Qt(qt,Ar)){var Ft=ia(ii,qt,pt,Xt);if(Ft)return Ft}}}return o(Ar,ii)}function Gn(ii,Ar,Pt){var pt,Xt,qt=!1,Yt=e.getFirstIdentifier(ii);if(e.isInJSFile(ii)&&(e.isExportsIdentifier(Yt)||e.isModuleExportsAccessExpression(Yt.parent)||e.isQualifiedName(Yt.parent)&&e.isModuleIdentifier(Yt.parent.left)&&e.isExportsIdentifier(Yt.parent.right)))return qt=!0,{introducesError:qt,node:ii};var va=Ps(Yt,67108863,!0,!0);if(va&&(mf(va,Ar.enclosingDeclaration,67108863,!1).accessibility!==0?qt=!0:((Xt=(pt=Ar.tracker)===null||pt===void 0?void 0:pt.trackSymbol)===null||Xt===void 0||Xt.call(pt,va,Ar.enclosingDeclaration,67108863),Pt==null||Pt(va)),e.isIdentifier(ii))){var Ft=Io(va),pi=va.flags&262144&&!El(Ft.symbol,Ar.enclosingDeclaration)?Ra(Ft,Ar):e.factory.cloneNode(ii);return pi.symbol=va,{introducesError:qt,node:e.setEmitFlags(e.setOriginalNode(pi,ii),16777216)}}return{introducesError:qt,node:ii}}function ia(ii,Ar,Pt,pt){ce&&ce.throwIfCancellationRequested&&ce.throwIfCancellationRequested();var Xt=!1,qt=e.getSourceFileOfNode(Ar),Yt=e.visitNode(Ar,va);if(Xt)return;return Yt===Ar?e.setTextRange(e.factory.cloneNode(Ar),Ar):Yt;function va(Ft){if(e.isJSDocAllType(Ft)||Ft.kind===317)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(Ft))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(Ft))return e.factory.createUnionTypeNode([e.visitNode(Ft.type,va),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(Ft))return e.factory.createUnionTypeNode([e.visitNode(Ft.type,va),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(Ft))return e.visitNode(Ft.type,va);if(e.isJSDocVariadicType(Ft))return e.factory.createArrayTypeNode(e.visitNode(Ft.type,va));if(e.isJSDocTypeLiteral(Ft))return e.factory.createTypeLiteralNode(e.map(Ft.jsDocPropertyTags,function(Ca){var kn=e.isIdentifier(Ca.name)?Ca.name:Ca.name.right,mo=ai(Ua(Ft),kn.escapedText),Po=mo&&Ca.typeExpression&&Ua(Ca.typeExpression.type)!==mo?o(mo,ii):void 0;return e.factory.createPropertySignature(void 0,kn,Ca.isBracketed||Ca.typeExpression&&e.isJSDocOptionalType(Ca.typeExpression.type)?e.factory.createToken(57):void 0,Po||Ca.typeExpression&&e.visitNode(Ca.typeExpression.type,va)||e.factory.createKeywordTypeNode(130))}));if(e.isTypeReferenceNode(Ft)&&e.isIdentifier(Ft.typeName)&&Ft.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(130),Ft);if((e.isExpressionWithTypeArguments(Ft)||e.isTypeReferenceNode(Ft))&&e.isJSDocIndexSignature(Ft))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(Ft.typeArguments[0],va))],e.visitNode(Ft.typeArguments[1],va))]);if(e.isJSDocFunctionType(Ft))if(e.isJSDocConstructSignature(Ft)){var pi;return e.factory.createConstructorTypeNode(Ft.modifiers,e.visitNodes(Ft.typeParameters,va),e.mapDefined(Ft.parameters,function(Ca,kn){return Ca.name&&e.isIdentifier(Ca.name)&&Ca.name.escapedText==="new"?(pi=Ca.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,kt(Ca),Ha(Ca,kn),Ca.questionToken,e.visitNode(Ca.type,va),void 0)}),e.visitNode(pi||Ft.type,va)||e.factory.createKeywordTypeNode(130))}else return e.factory.createFunctionTypeNode(e.visitNodes(Ft.typeParameters,va),e.map(Ft.parameters,function(Ca,kn){return e.factory.createParameterDeclaration(void 0,void 0,kt(Ca),Ha(Ca,kn),Ca.questionToken,e.visitNode(Ca.type,va),void 0)}),e.visitNode(Ft.type,va)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(Ft)&&e.isInJSDoc(Ft)&&(!Qt(Ft,Ua(Ft))||QT(Ft)||hr===Gg(Ft,788968,!0)))return e.setOriginalNode(o(Ua(Ft),ii),Ft);if(e.isLiteralImportTypeNode(Ft)){var Ai=Da(Ft).resolvedSymbol;return e.isInJSDoc(Ft)&&Ai&&(!Ft.isTypeOf&&!(Ai.flags&788968)||!(e.length(Ft.typeArguments)>=Ol(Sf(Ai))))?e.setOriginalNode(o(Ua(Ft),ii),Ft):e.factory.updateImportTypeNode(Ft,e.factory.updateLiteralTypeNode(Ft.argument,Tn(Ft,Ft.argument.literal)),Ft.qualifier,e.visitNodes(Ft.typeArguments,va,e.isTypeNode),Ft.isTypeOf)}if(e.isEntityName(Ft)||e.isEntityNameExpression(Ft)){var Qi=Gn(Ft,ii,Pt),it=Qi.introducesError,st=Qi.node;if(Xt=Xt||it,st!==Ft)return st}return qt&&e.isTupleTypeNode(Ft)&&e.getLineAndCharacterOfPosition(qt,Ft.pos).line===e.getLineAndCharacterOfPosition(qt,Ft.end).line&&e.setEmitFlags(Ft,1),e.visitEachChild(Ft,va,e.nullTransformationContext);function kt(Ca){return Ca.dotDotDotToken||(Ca.type&&e.isJSDocVariadicType(Ca.type)?e.factory.createToken(25):void 0)}function Ha(Ca,kn){return Ca.name&&e.isIdentifier(Ca.name)&&Ca.name.escapedText==="this"?"this":kt(Ca)?"args":"arg".concat(kn)}function Tn(Ca,kn){if(pt){if(ii.tracker&&ii.tracker.moduleResolverHost){var mo=DS(Ca);if(mo){var Po=e.createGetCanonicalFileName(!!y.useCaseSensitiveFileNames),ms={getCanonicalFileName:Po,getCurrentDirectory:function(){return ii.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return ii.tracker.moduleResolverHost.getCommonSourceDirectory()}},Wo=e.getResolvedExternalModuleName(ms,mo);return e.factory.createStringLiteral(Wo)}}}else if(ii.tracker&&ii.tracker.trackExternalModuleSymbolOfImportTypeNode){var gc=xc(kn,kn,void 0);gc&&ii.tracker.trackExternalModuleSymbolOfImportTypeNode(gc)}return kn}}}function Xn(ii,Ar,Pt){var pt=$a(e.factory.createPropertyDeclaration,168,!0),Xt=$a(function(gi,Mt,ka,sa,da){return e.factory.createPropertySignature(Mt,ka,sa,da)},167,!1),qt=Ar.enclosingDeclaration,Yt=[],va=new e.Set,Ft=[],pi=Ar;Ar=Ve(Ve({},pi),{usedSymbolNames:new e.Set(pi.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Ve(Ve({},pi.tracker),{trackSymbol:function(gi,Mt,ka){var sa=mf(gi,Mt,ka,!1);if(sa.accessibility===0){var da=Fi(gi,Ar,ka);gi.flags&4||vs(da[0])}else if(pi.tracker&&pi.tracker.trackSymbol)return pi.tracker.trackSymbol(gi,Mt,ka);return!1}})}),Ar.tracker=i(Ar,Ar.tracker),e.forEachEntry(ii,function(gi,Mt){var ka=e.unescapeLeadingUnderscores(Mt);As(gi,ka)});var Ai=!Pt,Qi=ii.get("export=");return Qi&&ii.size>1&&Qi.flags&2097152&&(ii=e.createSymbolTable(),ii.set("export=",Qi)),ms(ii),Ca(Yt);function it(gi){return!!gi&&gi.kind===79}function st(gi){return e.isVariableStatement(gi)?e.filter(e.map(gi.declarationList.declarations,e.getNameOfDeclaration),it):e.filter([e.getNameOfDeclaration(gi)],it)}function kt(gi){var Mt=e.find(gi,e.isExportAssignment),ka=e.findIndex(gi,e.isModuleDeclaration),sa=ka!==-1?gi[ka]:void 0;if(sa&&Mt&&Mt.isExportEquals&&e.isIdentifier(Mt.expression)&&e.isIdentifier(sa.name)&&e.idText(sa.name)===e.idText(Mt.expression)&&sa.body&&e.isModuleBlock(sa.body)){var da=e.filter(gi,function(nn){return!!(e.getEffectiveModifierFlags(nn)&1)}),cn=sa.name,un=sa.body;if(e.length(da)&&(sa=e.factory.updateModuleDeclaration(sa,sa.decorators,sa.modifiers,sa.name,un=e.factory.updateModuleBlock(un,e.factory.createNodeArray(qe(qe([],sa.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(da,function(nn){return st(nn)}),function(nn){return e.factory.createExportSpecifier(!1,void 0,nn)})),void 0)],!1)))),gi=qe(qe(qe([],gi.slice(0,ka),!0),[sa],!1),gi.slice(ka+1),!0)),!e.find(gi,function(nn){return nn!==sa&&e.nodeHasName(nn,cn)})){Yt=[];var Nn=!e.some(un.statements,function(nn){return e.hasSyntacticModifier(nn,1)||e.isExportAssignment(nn)||e.isExportDeclaration(nn)});e.forEach(un.statements,function(nn){Us(nn,Nn?1:0)}),gi=qe(qe([],e.filter(gi,function(nn){return nn!==sa&&nn!==Mt}),!0),Yt,!0)}}return gi}function Ha(gi){var Mt=e.filter(gi,function(en){return e.isExportDeclaration(en)&&!en.moduleSpecifier&&!!en.exportClause&&e.isNamedExports(en.exportClause)});if(e.length(Mt)>1){var ka=e.filter(gi,function(en){return!e.isExportDeclaration(en)||!!en.moduleSpecifier||!en.exportClause});gi=qe(qe([],ka,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Mt,function(en){return e.cast(en.exportClause,e.isNamedExports).elements})),void 0)],!1)}var sa=e.filter(gi,function(en){return e.isExportDeclaration(en)&&!!en.moduleSpecifier&&!!en.exportClause&&e.isNamedExports(en.exportClause)});if(e.length(sa)>1){var da=e.group(sa,function(en){return e.isStringLiteral(en.moduleSpecifier)?">"+en.moduleSpecifier.text:">"});if(da.length!==sa.length)for(var cn=function(en){en.length>1&&(gi=qe(qe([],e.filter(gi,function(po){return en.indexOf(po)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(en,function(po){return e.cast(po.exportClause,e.isNamedExports).elements})),en[0].moduleSpecifier)],!1))},un=0,Nn=da;un<Nn.length;un++){var nn=Nn[un];cn(nn)}}return gi}function Tn(gi){var Mt=e.findIndex(gi,function(da){return e.isExportDeclaration(da)&&!da.moduleSpecifier&&!da.assertClause&&!!da.exportClause&&e.isNamedExports(da.exportClause)});if(Mt>=0){var ka=gi[Mt],sa=e.mapDefined(ka.exportClause.elements,function(da){if(!da.propertyName){var cn=e.indicesOf(gi),un=e.filter(cn,function(po){return e.nodeHasName(gi[po],da.name)});if(e.length(un)&&e.every(un,function(po){return kn(gi[po])})){for(var Nn=0,nn=un;Nn<nn.length;Nn++){var en=nn[Nn];gi[en]=mo(gi[en])}return}}return da});e.length(sa)?gi[Mt]=e.factory.updateExportDeclaration(ka,ka.decorators,ka.modifiers,ka.isTypeOnly,e.factory.updateNamedExports(ka.exportClause,sa),ka.moduleSpecifier,ka.assertClause):e.orderedRemoveItemAt(gi,Mt)}return gi}function Ca(gi){return gi=kt(gi),gi=Ha(gi),gi=Tn(gi),qt&&(e.isSourceFile(qt)&&e.isExternalOrCommonJsModule(qt)||e.isModuleDeclaration(qt))&&(!e.some(gi,e.isExternalModuleIndicator)||!e.hasScopeMarker(gi)&&e.some(gi,e.needsScopeMarker))&&gi.push(e.createEmptyExports(e.factory)),gi}function kn(gi){return e.isEnumDeclaration(gi)||e.isVariableStatement(gi)||e.isFunctionDeclaration(gi)||e.isClassDeclaration(gi)||e.isModuleDeclaration(gi)&&!e.isExternalModuleAugmentation(gi)&&!e.isGlobalScopeAugmentation(gi)||e.isInterfaceDeclaration(gi)||ky(gi)}function mo(gi){var Mt=(e.getEffectiveModifierFlags(gi)|1)&-3;return e.factory.updateModifiers(gi,Mt)}function Po(gi){var Mt=e.getEffectiveModifierFlags(gi)&-2;return e.factory.updateModifiers(gi,Mt)}function ms(gi,Mt,ka){Mt||Ft.push(new e.Map),gi.forEach(function(sa){Wo(sa,!1,!!ka)}),Mt||(Ft[Ft.length-1].forEach(function(sa){Wo(sa,!0,!!ka)}),Ft.pop())}function Wo(gi,Mt,ka){var sa=Wn(gi);if(!va.has(f(sa))){va.add(f(sa));var da=!Mt;if(da||!!e.length(gi.declarations)&&e.some(gi.declarations,function(Nn){return!!e.findAncestor(Nn,function(nn){return nn===qt})})){var cn=Ar;Ar=Ot(Ar);var un=gc(gi,Mt,ka);return Ar.reportedDiagnostic&&(pi.reportedDiagnostic=Ar.reportedDiagnostic),Ar=cn,un}}}function gc(gi,Mt,ka){var sa,da,cn=e.unescapeLeadingUnderscores(gi.escapedName),un=gi.escapedName==="default";if(Mt&&!(Ar.flags&131072)&&e.isStringANonContextualKeyword(cn)&&!un){Ar.encounteredError=!0;return}var Nn=un&&!!(gi.flags&-113||gi.flags&16&&e.length(_o(Jt(gi))))&&!(gi.flags&2097152),nn=!Nn&&!Mt&&e.isStringANonContextualKeyword(cn)&&!un;(Nn||nn)&&(Mt=!0);var en=(Mt?0:1)|(un&&!Nn?512:0),po=gi.flags&1536&&gi.flags&7&&gi.escapedName!=="export=",Mo=po&&wa(Jt(gi),gi);if((gi.flags&8208||Mo)&&yo(Jt(gi),gi,As(gi,cn),en),gi.flags&524288&&N_(gi,cn,en),gi.flags&7&&gi.escapedName!=="export="&&!(gi.flags&4194304)&&!(gi.flags&32)&&!Mo)if(ka){var hs=Et(gi);hs&&(nn=!1,Nn=!1)}else{var qo=Jt(gi),Lo=As(gi,cn);if(!(gi.flags&16)&&wa(qo,gi))yo(qo,gi,Lo,en);else{var Gs=gi.flags&2?ty(gi)?2:1:void 0,Ac=Nn||!(gi.flags&4)?Lo:Uo(Lo,gi),zs=gi.declarations&&e.find(gi.declarations,function(Eg){return e.isVariableDeclaration(Eg)});zs&&e.isVariableDeclarationList(zs.parent)&&zs.parent.declarations.length===1&&(zs=zs.parent.parent);var Mu=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isPropertyAccessExpression);if(Mu&&e.isBinaryExpression(Mu.parent)&&e.isIdentifier(Mu.parent.right)&&((da=qo.symbol)===null||da===void 0?void 0:da.valueDeclaration)&&e.isSourceFile(qo.symbol.valueDeclaration)){var qd=Lo===Mu.parent.right.escapedText?void 0:Mu.parent.right;Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,qd,Lo)])),0),Ar.tracker.trackSymbol(qo.symbol,Ar.enclosingDeclaration,111551)}else{var Sd=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Ac,void 0,Qa(Ar,qo,gi,qt,vs,Pt))],Gs)),zs);Us(Sd,Ac!==Lo?en&-2:en),Ac!==Lo&&!Mt&&(Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Ac,Lo)])),0),nn=!1,Nn=!1)}}}if(gi.flags&384&&fs(gi,cn,en),gi.flags&32&&(gi.flags&4&&gi.valueDeclaration&&e.isBinaryExpression(gi.valueDeclaration.parent)&&e.isClassExpression(gi.valueDeclaration.parent.right)?Gt(gi,As(gi,cn),en):ct(gi,As(gi,cn),en)),(gi.flags&1536&&(!po||Ya(gi))||Mo)&&qn(gi,cn,en),gi.flags&64&&!(gi.flags&32)&&pv(gi,cn,en),gi.flags&2097152&&Gt(gi,As(gi,cn),en),gi.flags&4&&gi.escapedName==="export="&&Et(gi),gi.flags&8388608&&gi.declarations)for(var Vp=0,I_=gi.declarations;Vp<I_.length;Vp++){var Td=I_[Vp],r_=ko(Td,Td.moduleSpecifier);!r_||Us(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(lt(r_,Ar))),0)}Nn?Us(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(As(gi,cn))),0):nn&&Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,As(gi,cn),cn)])),0)}function vs(gi){if(!e.some(gi.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(Ft[Ft.length-1]),Uo(e.unescapeLeadingUnderscores(gi.escapedName),gi);var Mt=!!(gi.flags&2097152)&&!e.some(gi.declarations,function(ka){return!!e.findAncestor(ka,e.isExportDeclaration)||e.isNamespaceExport(ka)||e.isImportEqualsDeclaration(ka)&&!e.isExternalModuleReference(ka.moduleReference)});Ft[Mt?0:Ft.length-1].set(f(gi),gi)}}function vl(gi){return e.isSourceFile(gi)&&(e.isExternalOrCommonJsModule(gi)||e.isJsonSourceFile(gi))||e.isAmbientModule(gi)&&!e.isGlobalScopeAugmentation(gi)}function Us(gi,Mt){if(e.canHaveModifiers(gi)){var ka=0,sa=Ar.enclosingDeclaration&&(e.isJSDocTypeAlias(Ar.enclosingDeclaration)?e.getSourceFileOfNode(Ar.enclosingDeclaration):Ar.enclosingDeclaration);Mt&1&&sa&&(vl(sa)||e.isModuleDeclaration(sa))&&kn(gi)&&(ka|=1),Ai&&!(ka&1)&&(!sa||!(sa.flags&8388608))&&(e.isEnumDeclaration(gi)||e.isVariableStatement(gi)||e.isFunctionDeclaration(gi)||e.isClassDeclaration(gi)||e.isModuleDeclaration(gi))&&(ka|=2),Mt&512&&(e.isClassDeclaration(gi)||e.isInterfaceDeclaration(gi)||e.isFunctionDeclaration(gi))&&(ka|=512),ka&&(gi=e.factory.updateModifiers(gi,ka|e.getEffectiveModifierFlags(gi)))}Yt.push(gi)}function N_(gi,Mt,ka){var sa,da=cs(gi),cn=Ma(gi).typeParameters,un=e.map(cn,function(hs){return yr(hs,Ar)}),Nn=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isJSDocTypeAlias),nn=e.getTextOfJSDocComment(Nn?Nn.comment||Nn.parent.comment:void 0),en=Ar.flags;Ar.flags|=8388608;var po=Ar.enclosingDeclaration;Ar.enclosingDeclaration=Nn;var Mo=Nn&&Nn.typeExpression&&e.isJSDocTypeExpression(Nn.typeExpression)&&ia(Ar,Nn.typeExpression.type,vs,Pt)||o(da,Ar);Us(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,As(gi,Mt),un,Mo),nn?[{kind:3,text:`*
|
|
* `+nn.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),ka),Ar.flags=en,Ar.enclosingDeclaration=po}function pv(gi,Mt,ka){var sa=Pn(gi),da=Sf(gi),cn=e.map(da,function(qo){return yr(qo,Ar)}),un=zc(sa),Nn=e.length(un)?To(un):void 0,nn=e.flatMap(_o(sa),function(qo){return jn(qo,Nn)}),en=Fn(0,sa,Nn,173),po=Fn(1,sa,Nn,174),Mo=Yn(sa,Nn),hs=e.length(un)?[e.factory.createHeritageClause(94,e.mapDefined(un,function(qo){return ys(qo,111551)}))]:void 0;Us(e.factory.createInterfaceDeclaration(void 0,void 0,As(gi,Mt),cn,hs,qe(qe(qe(qe([],Mo,!0),po,!0),en,!0),nn,!0)),ka)}function dv(gi){return gi.exports?e.filter(e.arrayFrom(gi.exports.values()),yi):[]}function Ya(gi){return e.every(dv(gi),function(Mt){return!(Qo(Mt).flags&111551)})}function qn(gi,Mt,ka){var sa=dv(gi),da=e.arrayToMultiMap(sa,function(po){return po.parent&&po.parent===gi?"real":"merged"}),cn=da.get("real")||e.emptyArray,un=da.get("merged")||e.emptyArray;if(e.length(cn)){var Nn=As(gi,Mt);oi(cn,Nn,ka,!!(gi.flags&67108880))}if(e.length(un)){var nn=e.getSourceFileOfNode(Ar.enclosingDeclaration),Nn=As(gi,Mt),en=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(un,function(Mo){return Mo.escapedName!=="export="}),function(Mo){var hs,qo,Lo=e.unescapeLeadingUnderscores(Mo.escapedName),Gs=As(Mo,Lo),Ac=Mo.declarations&&ju(Mo);if(nn&&(Ac?nn!==e.getSourceFileOfNode(Ac):!e.some(Mo.declarations,function(qd){return e.getSourceFileOfNode(qd)===nn}))){(qo=(hs=Ar.tracker)===null||hs===void 0?void 0:hs.reportNonlocalAugmentation)===null||qo===void 0||qo.call(hs,nn,gi,Mo);return}var zs=Ac&&of(Ac,!0);vs(zs||Mo);var Mu=zs?As(zs,e.unescapeLeadingUnderscores(zs.escapedName)):Gs;return e.factory.createExportSpecifier(!1,Lo===Mu?void 0:Mu,Lo)})))]);Us(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Nn),en,16),0)}}function fs(gi,Mt,ka){Us(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(qb(gi)?2048:0),As(gi,Mt),e.map(e.filter(_o(Jt(gi)),function(sa){return!!(sa.flags&8)}),function(sa){var da=sa.declarations&&sa.declarations[0]&&e.isEnumMember(sa.declarations[0])?vS(sa.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(sa.escapedName),da===void 0?void 0:typeof da=="string"?e.factory.createStringLiteral(da):e.factory.createNumericLiteral(da))})),ka)}function yo(gi,Mt,ka,sa){for(var da=za(gi,0),cn=0,un=da;cn<un.length;cn++){var Nn=un[cn],nn=$e(Nn,255,Ar,{name:e.factory.createIdentifier(ka),privateSymbolVisitor:vs,bundledImports:Pt});Us(e.setTextRange(nn,ec(Nn)),sa)}if(!(Mt.flags&1536&&!!Mt.exports&&!!Mt.exports.size)){var en=e.filter(_o(gi),yi);oi(en,ka,sa,!0)}}function ec(gi){if(gi.declaration&&gi.declaration.parent){if(e.isBinaryExpression(gi.declaration.parent)&&e.getAssignmentDeclarationKind(gi.declaration.parent)===5)return gi.declaration.parent;if(e.isVariableDeclaration(gi.declaration.parent)&&gi.declaration.parent.parent)return gi.declaration.parent.parent}return gi.declaration}function oi(gi,Mt,ka,sa){if(e.length(gi)){var da=e.arrayToMultiMap(gi,function(Lo){return!e.length(Lo.declarations)||e.some(Lo.declarations,function(Gs){return e.getSourceFileOfNode(Gs)===e.getSourceFileOfNode(Ar.enclosingDeclaration)})?"local":"remote"}),cn=da.get("local")||e.emptyArray,un=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(Mt),e.factory.createModuleBlock([]),16);e.setParent(un,qt),un.locals=e.createSymbolTable(gi),un.symbol=gi[0].parent;var Nn=Yt;Yt=[];var nn=Ai;Ai=!1;var en=Ve(Ve({},Ar),{enclosingDeclaration:un}),po=Ar;Ar=en,ms(e.createSymbolTable(cn),sa,!0),Ar=po,Ai=nn;var Mo=Yt;Yt=Nn;var hs=e.map(Mo,function(Lo){return e.isExportAssignment(Lo)&&!Lo.isExportEquals&&e.isIdentifier(Lo.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Lo.expression,e.factory.createIdentifier("default"))])):Lo}),qo=e.every(hs,function(Lo){return e.hasSyntacticModifier(Lo,1)})?e.map(hs,Po):hs;un=e.factory.updateModuleDeclaration(un,un.decorators,un.modifiers,un.name,e.factory.createModuleBlock(qo)),Us(un,ka)}}function yi(gi){return!!(gi.flags&2887656)||!(gi.flags&4194304||gi.escapedName==="prototype"||gi.valueDeclaration&&e.isStatic(gi.valueDeclaration)&&e.isClassLike(gi.valueDeclaration.parent))}function Bi(gi){var Mt=e.mapDefined(gi,function(ka){var sa,da=Ar.enclosingDeclaration;Ar.enclosingDeclaration=ka;var cn=ka.expression;if(e.isEntityNameExpression(cn)){if(e.isIdentifier(cn)&&e.idText(cn)==="")return Nn(void 0);var un=void 0;if(sa=Gn(cn,Ar,vs),un=sa.introducesError,cn=sa.node,un)return Nn(void 0)}return Nn(e.factory.createExpressionWithTypeArguments(cn,e.map(ka.typeArguments,function(nn){return ia(Ar,nn,vs,Pt)||o(Ua(nn),Ar)})));function Nn(nn){return Ar.enclosingDeclaration=da,nn}});if(Mt.length===gi.length)return Mt}function ct(gi,Mt,ka){var sa,da,cn=(sa=gi.declarations)===null||sa===void 0?void 0:sa.find(e.isClassLike),un=Ar.enclosingDeclaration;Ar.enclosingDeclaration=cn||un;var Nn=Sf(gi),nn=e.map(Nn,function(tu){return yr(tu,Ar)}),en=Pn(gi),po=zc(en),Mo=cn&&e.getEffectiveImplementsTypeNodes(cn),hs=Mo&&Bi(Mo)||e.mapDefined(bv(en),ks),qo=Jt(gi),Lo=!!(!((da=qo.symbol)===null||da===void 0)&&da.valueDeclaration)&&e.isClassLike(qo.symbol.valueDeclaration),Gs=Lo?ef(qo):xe,Ac=qe(qe([],e.length(po)?[e.factory.createHeritageClause(94,e.map(po,function(tu){return Ss(tu,Gs,Mt)}))]:[],!0),e.length(hs)?[e.factory.createHeritageClause(117,hs)]:[],!0),zs=zF(en,po,_o(en)),Mu=e.filter(zs,function(tu){var xd=tu.valueDeclaration;return!!xd&&!(e.isNamedDeclaration(xd)&&e.isPrivateIdentifier(xd.name))}),qd=e.some(zs,function(tu){var xd=tu.valueDeclaration;return!!xd&&e.isNamedDeclaration(xd)&&e.isPrivateIdentifier(xd.name)}),Sd=qd?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,Vp=e.flatMap(Mu,function(tu){return pt(tu,!1,po[0])}),I_=e.flatMap(e.filter(_o(qo),function(tu){return!(tu.flags&4194304)&&tu.escapedName!=="prototype"&&!yi(tu)}),function(tu){return pt(tu,!0,Gs)}),Td=!Lo&&!!gi.valueDeclaration&&e.isInJSFile(gi.valueDeclaration)&&!e.some(za(qo,1)),r_=Td?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Fn(1,qo,Gs,170),Eg=Yn(en,po[0]);Ar.enclosingDeclaration=un,Us(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,Mt,nn,Ac,qe(qe(qe(qe(qe([],Eg,!0),I_,!0),r_,!0),Vp,!0),Sd,!0)),gi.declarations&&e.filter(gi.declarations,function(tu){return e.isClassDeclaration(tu)||e.isClassExpression(tu)})[0]),ka)}function at(gi){return e.firstDefined(gi,function(Mt){if(e.isImportSpecifier(Mt)||e.isExportSpecifier(Mt))return e.idText(Mt.propertyName||Mt.name);if(e.isBinaryExpression(Mt)||e.isExportAssignment(Mt)){var ka=e.isExportAssignment(Mt)?Mt.expression:Mt.right;if(e.isPropertyAccessExpression(ka))return e.idText(ka.name)}if(_u(Mt)){var sa=e.getNameOfDeclaration(Mt);if(sa&&e.isIdentifier(sa))return e.idText(sa)}})}function Gt(gi,Mt,ka){var sa,da,cn,un,Nn,nn=ju(gi);if(!nn)return e.Debug.fail();var en=Wn(of(nn,!0));if(!!en){var po=e.isShorthandAmbientModuleSymbol(en)&&at(gi.declarations)||e.unescapeLeadingUnderscores(en.escapedName);po==="export="&&(e.getESModuleInterop(ye)||ye.allowSyntheticDefaultImports)&&(po="default");var Mo=As(en,po);switch(vs(en),nn.kind){case 202:if(((da=(sa=nn.parent)===null||sa===void 0?void 0:sa.parent)===null||da===void 0?void 0:da.kind)===253){var hs=lt(en.parent||en,Ar),qo=nn.propertyName;Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,qo&&e.isIdentifier(qo)?e.factory.createIdentifier(e.idText(qo)):void 0,e.factory.createIdentifier(Mt))])),e.factory.createStringLiteral(hs),void 0),0);break}e.Debug.failBadSyntaxKind(((cn=nn.parent)===null||cn===void 0?void 0:cn.parent)||nn,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:((Nn=(un=nn.parent)===null||un===void 0?void 0:un.parent)===null||Nn===void 0?void 0:Nn.kind)===220&&Wt(e.unescapeLeadingUnderscores(gi.escapedName),Mo);break;case 253:if(e.isPropertyAccessExpression(nn.initializer)){var Lo=nn.initializer,Gs=e.factory.createUniqueName(Mt),Ac=lt(en.parent||en,Ar);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,Gs,e.factory.createExternalModuleReference(e.factory.createStringLiteral(Ac))),0),Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mt),e.factory.createQualifiedName(Gs,Lo.name)),ka);break}case 264:if(en.escapedName==="export="&&e.some(en.declarations,e.isJsonSourceFile)){Et(gi);break}var zs=!(en.flags&512)&&!e.isVariableDeclaration(nn);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mt),zs?Bn(en,Ar,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(lt(en,Ar)))),zs?ka:0);break;case 263:Us(e.factory.createNamespaceExportDeclaration(e.idText(nn.name)),0);break;case 266:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(Mt),void 0),e.factory.createStringLiteral(lt(en.parent||en,Ar)),void 0),0);break;case 267:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Mt))),e.factory.createStringLiteral(lt(en,Ar)),void 0),0);break;case 273:Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(Mt)),e.factory.createStringLiteral(lt(en,Ar))),0);break;case 269:Us(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Mt!==po?e.factory.createIdentifier(po):void 0,e.factory.createIdentifier(Mt))])),e.factory.createStringLiteral(lt(en.parent||en,Ar)),void 0),0);break;case 274:var Mu=nn.parent.parent.moduleSpecifier;Wt(e.unescapeLeadingUnderscores(gi.escapedName),Mu?po:Mo,Mu&&e.isStringLiteralLike(Mu)?e.factory.createStringLiteral(Mu.text):void 0);break;case 270:Et(gi);break;case 220:case 205:case 206:gi.escapedName==="default"||gi.escapedName==="export="?Et(gi):Wt(Mt,Mo);break;default:return e.Debug.failBadSyntaxKind(nn,"Unhandled alias declaration kind in symbol serializer!")}}}function Wt(gi,Mt,ka){Us(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,gi!==Mt?Mt:void 0,gi)]),ka),0)}function Et(gi){if(gi.flags&4194304)return!1;var Mt=e.unescapeLeadingUnderscores(gi.escapedName),ka=Mt==="export=",sa=Mt==="default",da=ka||sa,cn=gi.declarations&&ju(gi),un=cn&&of(cn,!0);if(un&&e.length(un.declarations)&&e.some(un.declarations,function(Lo){return e.getSourceFileOfNode(Lo)===e.getSourceFileOfNode(qt)})){var Nn=cn&&(e.isExportAssignment(cn)||e.isBinaryExpression(cn)?e.getExportAssignmentExpression(cn):e.getPropertyAssignmentAliasLikeExpression(cn)),nn=Nn&&e.isEntityNameExpression(Nn)?rM(Nn):void 0,en=nn&&Ps(nn,67108863,!0,!0,qt);(en||un)&&vs(en||un);var po=Ar.tracker.trackSymbol;if(Ar.tracker.trackSymbol=function(){return!1},da)Yt.push(e.factory.createExportAssignment(void 0,void 0,ka,Jn(un,Ar,67108863)));else if(nn===Nn&&nn)Wt(Mt,e.idText(nn));else if(Nn&&e.isClassExpression(Nn))Wt(Mt,As(un,e.symbolName(un)));else{var Mo=Uo(Mt,gi);Us(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(Mo),Bn(un,Ar,67108863,!1)),0),Wt(Mt,Mo)}return Ar.tracker.trackSymbol=po,!0}else{var Mo=Uo(Mt,gi),hs=Hc(Jt(Wn(gi)));if(wa(hs,gi))yo(hs,gi,Mo,da?0:1);else{var qo=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Mo,void 0,Qa(Ar,hs,gi,qt,vs,Pt))],2));Us(qo,un&&un.flags&4&&un.escapedName==="export="?2:Mt===Mo?1:0)}return da?(Yt.push(e.factory.createExportAssignment(void 0,void 0,ka,e.factory.createIdentifier(Mo))),!0):Mt!==Mo?(Wt(Mt,Mo),!0):!1}}function wa(gi,Mt){var ka=e.getSourceFileOfNode(Ar.enclosingDeclaration);return e.getObjectFlags(gi)&48&&!e.length(Js(gi))&&!rd(gi)&&!!(e.length(e.filter(_o(gi),yi))||e.length(za(gi,0)))&&!e.length(za(gi,1))&&!Wa(Mt,qt)&&!(gi.symbol&&e.some(gi.symbol.declarations,function(sa){return e.getSourceFileOfNode(sa)!==ka}))&&!e.some(_o(gi),function(sa){return Yd(sa.escapedName)})&&!e.some(_o(gi),function(sa){return e.some(sa.declarations,function(da){return e.getSourceFileOfNode(da)!==ka})})&&e.every(_o(gi),function(sa){return e.isIdentifierText(e.symbolName(sa),Se)})}function $a(gi,Mt,ka){return function(da,cn,un){var Nn,nn,en,po,Mo,hs=e.getDeclarationModifierFlagsFromSymbol(da),qo=!!(hs&8);if(cn&&da.flags&2887656)return[];if(da.flags&4194304||un&&tn(un,da.escapedName)&&zl(tn(un,da.escapedName))===zl(da)&&(da.flags&16777216)===(tn(un,da.escapedName).flags&16777216)&&Qf(Jt(da),ai(un,da.escapedName)))return[];var Lo=hs&-257|(cn?32:0),Gs=$i(da,Ar),Ac=(Nn=da.declarations)===null||Nn===void 0?void 0:Nn.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(da.flags&98304&&ka){var zs=[];if(da.flags&65536&&zs.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Lo),Gs,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,qo?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt))],void 0),((nn=da.declarations)===null||nn===void 0?void 0:nn.find(e.isSetAccessor))||Ac)),da.flags&32768){var Mu=hs&8;zs.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Lo),Gs,[],Mu?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt),void 0),((en=da.declarations)===null||en===void 0?void 0:en.find(e.isGetAccessor))||Ac))}return zs}else if(da.flags&98311)return e.setTextRange(gi(void 0,e.factory.createModifiersFromModifierFlags((zl(da)?64:0)|Lo),Gs,da.flags&16777216?e.factory.createToken(57):void 0,qo?void 0:Qa(Ar,Jt(da),da,qt,vs,Pt),void 0),((po=da.declarations)===null||po===void 0?void 0:po.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||Ac);if(da.flags&8208){var qd=Jt(da),Sd=za(qd,0);if(Lo&8)return e.setTextRange(gi(void 0,e.factory.createModifiersFromModifierFlags((zl(da)?64:0)|Lo),Gs,da.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((Mo=da.declarations)===null||Mo===void 0?void 0:Mo.find(e.isFunctionLikeDeclaration))||Sd[0]&&Sd[0].declaration||da.declarations&&da.declarations[0]);for(var Vp=[],I_=0,Td=Sd;I_<Td.length;I_++){var r_=Td[I_],Eg=$e(r_,Mt,Ar,{name:Gs,questionToken:da.flags&16777216?e.factory.createToken(57):void 0,modifiers:Lo?e.factory.createModifiersFromModifierFlags(Lo):void 0}),tu=r_.declaration&&e.isPrototypePropertyAssignment(r_.declaration.parent)?r_.declaration.parent:r_.declaration;Vp.push(e.setTextRange(Eg,tu))}return Vp}return e.Debug.fail("Unhandled class member kind! ".concat(da.__debugFlags||da.flags))}}function jn(gi,Mt){return Xt(gi,!1,Mt)}function Fn(gi,Mt,ka,sa){var da=za(Mt,gi);if(gi===1){if(!ka&&e.every(da,function(zs){return e.length(zs.parameters)===0}))return[];if(ka){var cn=za(ka,1);if(!e.length(cn)&&e.every(da,function(zs){return e.length(zs.parameters)===0}))return[];if(cn.length===da.length){for(var un=!1,Nn=0;Nn<cn.length;Nn++)if(!Yv(da[Nn],cn[Nn],!1,!1,!0,jm)){un=!0;break}if(!un)return[]}}for(var nn=0,en=0,po=da;en<po.length;en++){var Mo=po[en];Mo.declaration&&(nn|=e.getSelectedEffectiveModifierFlags(Mo.declaration,24))}if(nn)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(nn),[],void 0),da[0].declaration)]}for(var hs=[],qo=0,Lo=da;qo<Lo.length;qo++){var Gs=Lo[qo],Ac=$e(Gs,sa,Ar);hs.push(e.setTextRange(Ac,Gs.declaration))}return hs}function Yn(gi,Mt){for(var ka=[],sa=0,da=Js(gi);sa<da.length;sa++){var cn=da[sa];if(Mt){var un=kc(Mt,cn.keyType);if(un&&Qf(cn.type,un.type))continue}ka.push(Ne(cn,Ar,void 0))}return ka}function Ss(gi,Mt,ka){var sa=ys(gi,111551);if(sa)return sa;var da=Uo("".concat(ka,"_base")),cn=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(da,void 0,o(Mt,Ar))],2));return Us(cn,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(da),void 0)}function ys(gi,Mt){var ka,sa;if(gi.target&&Zc(gi.target.symbol,qt,Mt)?(ka=e.map(Co(gi),function(da){return o(da,Ar)}),sa=Jn(gi.target.symbol,Ar,788968)):gi.symbol&&Zc(gi.symbol,qt,Mt)&&(sa=Jn(gi.symbol,Ar,788968)),sa)return e.factory.createExpressionWithTypeArguments(sa,ka)}function ks(gi){var Mt=ys(gi,788968);if(Mt)return Mt;if(gi.symbol)return e.factory.createExpressionWithTypeArguments(Jn(gi.symbol,Ar,788968),void 0)}function Uo(gi,Mt){var ka,sa,da=Mt?f(Mt):void 0;if(da&&Ar.remappedSymbolNames.has(da))return Ar.remappedSymbolNames.get(da);Mt&&(gi=ps(Mt,gi));for(var cn=0,un=gi;!((ka=Ar.usedSymbolNames)===null||ka===void 0)&&ka.has(gi);)cn++,gi="".concat(un,"_").concat(cn);return(sa=Ar.usedSymbolNames)===null||sa===void 0||sa.add(gi),da&&Ar.remappedSymbolNames.set(da,gi),gi}function ps(gi,Mt){if(Mt==="default"||Mt==="__class"||Mt==="__function"){var ka=Ar.flags;Ar.flags|=16777216;var sa=sl(gi,Ar);Ar.flags=ka,Mt=sa.length>0&&e.isSingleOrDoubleQuote(sa.charCodeAt(0))?e.stripQuotes(sa):sa}return Mt==="default"?Mt="_default":Mt==="export="&&(Mt="_exports"),Mt=e.isIdentifierText(Mt,Se)&&!e.isStringANonContextualKeyword(Mt)?Mt:"_"+Mt.replace(/[^a-zA-Z0-9]/g,"_"),Mt}function As(gi,Mt){var ka=f(gi);return Ar.remappedSymbolNames.has(ka)?Ar.remappedSymbolNames.get(ka):(Mt=ps(gi,Mt),Ar.remappedSymbolNames.set(ka,Mt),Mt)}}}function Al(r,i,t,o){return t===void 0&&(t=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(u){var T=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(128):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Cr.typeToTypeNode(r.type,i,q_(t)|70221824|512)),q=e.createPrinter({removeComments:!0}),fe=i&&e.getSourceFileOfNode(i);return q.writeNode(4,T,fe,u),u}}function id(r){for(var i=[],t=0,o=0;o<r.length;o++){var s=r[o];if(t|=s.flags,!(s.flags&98304)){if(s.flags&1536){var u=s.flags&512?xt:cu(s);if(u.flags&1048576){var T=u.types.length;if(o+T<=r.length&&Vc(r[o+T-1])===Vc(u.types[T-1])){i.push(u),o+=T-1;continue}}}i.push(s)}}return t&65536&&i.push(Ti),t&32768&&i.push(Nr),i||r}function p_(r){return r===8?"private":r===16?"protected":"public"}function Nd(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var i=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(i.kind===258)return It(i)}}function V_(r){return r&&r.parent&&r.parent.kind===261&&e.isExternalModuleAugmentation(r.parent.parent)}function yu(r){return r.kind===303||e.isAmbientModule(r)}function d_(r,i){var t=Ma(r).nameType;if(t){if(t.flags&384){var o=""+t.value;return!e.isIdentifierText(o,e.getEmitScriptTarget(ye))&&!e.isNumericLiteralName(o)?'"'.concat(e.escapeString(o,34),'"'):e.isNumericLiteralName(o)&&e.startsWith(o,"-")?"[".concat(o,"]"):o}if(t.flags&8192)return"[".concat(sl(t.symbol,i),"]")}}function sl(r,i){if(i&&r.escapedName==="default"&&!(i.flags&16384)&&(!(i.flags&16777216)||!r.declarations||i.enclosingDeclaration&&e.findAncestor(r.declarations[0],yu)!==e.findAncestor(i.enclosingDeclaration,yu)))return"default";if(r.declarations&&r.declarations.length){var t=e.firstDefined(r.declarations,function(q){return e.getNameOfDeclaration(q)?q:void 0}),o=t&&e.getNameOfDeclaration(t);if(t&&o){if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t))return e.symbolName(r);if(e.isComputedPropertyName(o)&&!(e.getCheckFlags(r)&4096)){var s=Ma(r).nameType;if(s&&s.flags&384){var u=d_(r,i);if(u!==void 0)return u}}return e.declarationNameToString(o)}if(t||(t=r.declarations[0]),t.parent&&t.parent.kind===253)return e.declarationNameToString(t.parent.name);switch(t.kind){case 225:case 212:case 213:return i&&!i.encounteredError&&!(i.flags&131072)&&(i.encounteredError=!0),t.kind===225?"(Anonymous class)":"(Anonymous function)"}}var T=d_(r,i);return T!==void 0?T:e.symbolName(r)}function sc(r){if(r){var i=Da(r);return i.isVisible===void 0&&(i.isVisible=!!t()),i.isVisible}return!1;function t(){switch(r.kind){case 336:case 343:case 337:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 202:return sc(r.parent.parent);case 253:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(r))return!0;var o=b(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==264&&o.kind!==303&&o.flags&8388608)?Ju(o):sc(o);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(r,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return sc(r.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:return!1;default:return!1}}}function Vf(r,i){var t;r.parent&&r.parent.kind===270?t=os(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===274&&(t=Cu(r.parent,2998271));var o,s;return t&&(s=new e.Set,s.add(f(t)),u(t.declarations)),o;function u(T){e.forEach(T,function(q){var fe=rl(q)||q;if(i?Da(q).isVisible=!0:(o=o||[],e.pushIfUnique(o,fe)),e.isInternalModuleImportEqualsDeclaration(q)){var Ne=q.moduleReference,$e=e.getFirstIdentifier(Ne),Ze=os(q,$e.escapedText,901119,void 0,void 0,!1);Ze&&s&&e.tryAddToSet(s,f(Ze))&&u(Ze.declarations)}})}}function ku(r,i){var t=vf(r,i);if(t>=0){for(var o=Bc.length,s=t;s<o;s++)Qu[s]=!1;return!1}return Bc.push(r),Qu.push(!0),uo.push(i),!0}function vf(r,i){for(var t=Bc.length-1;t>=0;t--){if(td(Bc[t],uo[t]))return-1;if(Bc[t]===r&&uo[t]===i)return t}return-1}function td(r,i){switch(i){case 0:return!!Ma(r).type;case 5:return!!Da(r).resolvedEnumType;case 2:return!!Ma(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved}return e.Debug.assertNever(i)}function eu(){return Bc.pop(),uo.pop(),Qu.pop()}function b(r){return e.findAncestor(e.getRootDeclaration(r),function(i){switch(i.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}}).parent}function rr(r){var i=Io(Rs(r));return i.typeParameters?Hf(i,e.map(i.typeParameters,function(t){return xe})):i}function ai(r,i){var t=tn(r,i);return t?Jt(t):void 0}function Wi(r,i){var t;return ai(r,i)||((t=Np(r,i))===null||t===void 0?void 0:t.type)||We}function At(r){return r&&(r.flags&1)!==0}function ra(r){return r===Oe||!!(r.flags&1&&r.aliasSymbol)}function La(r,i){if(i!==0)return Zl(r,!1,i);var t=It(r);return t&&Ma(t).type||Zl(r,!1,i)}function fn(r,i,t){if(r=pc(r,function(ui){return!(ui.flags&98304)}),r.flags&131072)return tt;if(r.flags&1048576)return Cs(r,function(ui){return fn(ui,i,t)});for(var o=ba(e.map(i,$_)),s=[],u=[],T=0,q=_o(r);T<q.length;T++){var fe=q[T],Ne=Hg(fe,8576);!oo(Ne,o)&&!(e.getDeclarationModifierFlagsFromSymbol(fe)&24)&&ph(fe)?s.push(fe):u.push(Ne)}if(Md(r)||fd(o)){if(u.length&&(o=ba(qe([o],u,!0))),o.flags&131072)return r;var $e=_3();return $e?Kg($e,[r,o]):Oe}for(var Ze=e.createSymbolTable(),lr=0,yr=s;lr<yr.length;lr++){var fe=yr[lr];Ze.set(fe.escapedName,sD(fe,!1))}var Zr=_s(t,Ze,e.emptyArray,e.emptyArray,Js(r));return Zr.objectFlags|=8388608,Zr}function Bo(r){return!!(r.flags&465829888)&&ls(Cc(r)||We,32768)}function Yo(r){var i=dg(r,Bo)?Cs(r,function(t){return t.flags&465829888?rg(t):t}):r;return $s(i,524288)}function jo(r,i){var t=cc(r);return t?op(t,i):i}function cc(r){var i=qs(r);if(i&&i.flowNode){var t=uc(r);if(t){var o=e.setTextRange(e.parseNodeFactory.createStringLiteral(t),r),s=e.isLeftHandSideExpression(i)?i:e.parseNodeFactory.createParenthesizedExpression(i),u=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,o),r);return e.setParent(o,u),e.setParent(u,r),s!==i&&e.setParent(s,u),u.flowNode=i.flowNode,u}}}function qs(r){var i=r.parent.parent;switch(i.kind){case 202:case 294:return cc(i);case 203:return cc(r.parent);case 253:return i.initializer;case 220:return i.right}}function uc(r){var i=r.parent;return r.kind===202&&i.kind===200?hu(r.propertyName||r.name):r.kind===294||r.kind===295?hu(r.name):""+i.elements.indexOf(r)}function hu(r){var i=$_(r);return i.flags&384?""+i.value:void 0}function $l(r){var i=r.dotDotDotToken?32:0,t=La(r.parent.parent,i);return t&&Qs(r,t)}function Qs(r,i){if(At(i))return i;var t=r.parent;ur&&r.flags&8388608&&e.isParameterDeclaration(r)?i=C_(i):ur&&t.parent.initializer&&!(np(LE(t.parent.initializer))&65536)&&(i=$s(i,524288));var o;if(t.kind===200)if(r.dotDotDotToken){if(i=Lt(i),i.flags&2||!oy(i))return Wr(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Oe;for(var s=[],u=0,T=t.elements;u<T.length;u++){var q=T[u];q.dotDotDotToken||s.push(q.propertyName||q.name)}o=fn(i,s,r.symbol)}else{var fe=r.propertyName||r.name,Ne=$_(fe),$e=Mc(i,Ne,32,fe);o=jo(r,$e)}else{var Ze=P_(65|(r.dotDotDotToken?0:128),i,Nr,t),lr=t.elements.indexOf(r);if(r.dotDotDotToken)o=kf(i,Ln)?Cs(i,function(Zr){return Mm(Zr,lr)}):tc(Ze);else if(ap(i)){var Ne=xf(lr),yr=32|(tm(r)?16:0),$e=Z_(i,Ne,yr,r.name)||Oe;o=jo(r,$e)}else o=Ze}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?ur&&!(Fu(vy(r,0))&32768)?Yo(o):o:Kb(r,ba([Yo(o),vy(r,0)],2)):o}function Au(r){var i=e.getJSDocType(r);if(i)return Ua(i)}function Id(r){var i=e.skipParentheses(r,!0);return i.kind===104||i.kind===79&&dl(i)===Jr}function K_(r){var i=e.skipParentheses(r,!0);return i.kind===203&&i.elements.length===0}function Ec(r,i,t){return i===void 0&&(i=!1),t===void 0&&(t=!0),ur&&t?$f(r,i):r}function Zl(r,i,t){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===242){var o=Ll(Sb(hn(r.parent.parent.expression,t)));return o.flags&4456448?xx(o):ki}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===243){var s=r.parent.parent;return Ty(s)||xe}if(e.isBindingPattern(r.parent))return $l(r);var u=e.isPropertyDeclaration(r)||e.isPropertySignature(r),T=i&&(u&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||Nm(r))||zg(r)),q=bc(r);if(q)return Ec(q,u,T);if((Tr||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&8388608)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||Id(r.initializer)))return ze;if(r.initializer&&K_(r.initializer))return Nt}if(e.isParameter(r)){var fe=r.parent;if(fe.kind===172&&Pp(fe)){var Ne=e.getDeclarationOfKind(It(r.parent),171);if(Ne){var $e=Ku(Ne),Ze=TS(fe);return Ze&&r===Ze?(e.Debug.assert(!Ze.type),Jt($e.thisParameter)):So($e)}}if(e.isInJSFile(r)){var lr=th(fe,r);if(lr)return lr}var yr=r.symbol.escapedName==="this"?ZE(fe):eC(r);if(yr)return Ec(yr,!1,T)}if(e.hasOnlyExpressionInitializer(r)&&!!r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var Zr=ja(r,It(r),e.getDeclaredExpandoInitializer(r));if(Zr)return Zr}var yr=Kb(r,vy(r,t));return Ec(yr,u,T)}if(e.isPropertyDeclaration(r)&&(Tr||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var Ii=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),yr=Ii.length?Li(r.symbol,Ii):e.getEffectiveModifierFlags(r)&2?Sh(r.symbol):void 0;return yr&&Ec(yr,!0,T)}else{var ui=Gl(r.parent),yr=ui?ot(r.symbol,ui):e.getEffectiveModifierFlags(r)&2?Sh(r.symbol):void 0;return yr&&Ec(yr,!0,T)}if(e.isJsxAttribute(r))return Rt;if(e.isBindingPattern(r.name))return cl(r.name,!1,!0)}function Ie(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var i=Ma(r);return i.isConstructorDeclaredProperty===void 0&&(i.isConstructorDeclaredProperty=!1,i.isConstructorDeclaredProperty=!!Hr(r)&&e.every(r.declarations,function(t){return e.isBinaryExpression(t)&&Vh(t)&&(t.left.kind!==206||e.isStringOrNumericLiteralLike(t.left.argumentExpression))&&!Oa(void 0,t,r,t)})),i.isConstructorDeclaredProperty}return!1}function kr(r){var i=r.valueDeclaration;return i&&e.isPropertyDeclaration(i)&&!e.getEffectiveTypeAnnotationNode(i)&&!i.initializer&&(Tr||e.isInJSFile(i))}function Hr(r){if(!!r.declarations)for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i],s=e.getThisContainer(o,!1);if(s&&(s.kind===170||ml(s)))return s}}function vi(r){var i=e.getSourceFileOfNode(r.declarations[0]),t=e.unescapeLeadingUnderscores(r.escapedName),o=r.declarations.every(function(u){return e.isInJSFile(u)&&e.isAccessExpression(u)&&e.isModuleExportsAccessExpression(u.expression)}),s=o?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),t):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),t);return o&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,i),s.flowNode=i.endFlowNode,op(s,ze,Nr)}function Li(r,i){for(var t=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=0,s=i;o<s.length;o++){var u=s[o],T=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(T.expression,T),e.setParent(T,u),T.flowNode=u.returnFlowNode;var q=zt(T,r);if(Tr&&(q===ze||q===Nt)&&Wr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ga(r),ht(q)),!kf(q,$h))return uv(q)}}function ot(r,i){var t=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(o.expression,o),e.setParent(o,i),o.flowNode=i.returnFlowNode;var s=zt(o,r);return Tr&&(s===ze||s===Nt)&&Wr(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ga(r),ht(s)),kf(s,$h)?void 0:uv(s)}function zt(r,i){var t=(i==null?void 0:i.valueDeclaration)&&(!kr(i)||e.getEffectiveModifierFlags(i.valueDeclaration)&2)&&Sh(i)||Nr;return op(r,ze,t)}function la(r,i){var t=e.getAssignedExpandoInitializer(r.valueDeclaration);if(t){var o=e.getJSDocTypeTag(t);if(o&&o.typeExpression)return Ua(o.typeExpression);var s=r.valueDeclaration&&ja(r.valueDeclaration,r,t);return s||Lp(js(t))}var u,T=!1,q=!1;if(Ie(r)&&(u=ot(r,Hr(r))),!u){var fe=void 0;if(r.declarations){for(var Ne=void 0,$e=0,Ze=r.declarations;$e<Ze.length;$e++){var lr=Ze[$e],yr=e.isBinaryExpression(lr)||e.isCallExpression(lr)?lr:e.isAccessExpression(lr)?e.isBinaryExpression(lr.parent)?lr.parent:lr:void 0;if(!!yr){var Zr=e.isAccessExpression(yr)?e.getAssignmentDeclarationPropertyAccessKind(yr):e.getAssignmentDeclarationKind(yr);(Zr===4||e.isBinaryExpression(yr)&&Vh(yr,Zr))&&(fo(yr)?T=!0:q=!0),e.isCallExpression(yr)||(Ne=Oa(Ne,yr,r,lr)),Ne||(fe||(fe=[])).push(e.isBinaryExpression(yr)||e.isCallExpression(yr)?eo(r,i,yr,Zr):St)}}u=Ne}if(!u){if(!e.length(fe))return Oe;var ui=T&&r.declarations?es(fe,r.declarations):void 0;if(q){var Ii=Sh(r);Ii&&((ui||(ui=[])).push(Ii),T=!0)}var Fi=e.some(ui,function(Xi){return!!(Xi.flags&-98305)})?ui:fe;u=ba(Fi,2)}}var Ri=Hc(Ec(u,!1,q&&!T));return r.valueDeclaration&&pc(Ri,function(Xi){return!!(Xi.flags&-98305)})===St?(Rp(r.valueDeclaration,xe),xe):Ri}function ja(r,i,t){var o,s;if(!(!e.isInJSFile(r)||!t||!e.isObjectLiteralExpression(t)||t.properties.length)){for(var u=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var T=It(r);!((o=T==null?void 0:T.exports)===null||o===void 0)&&o.size&&Yc(u,T.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var q=It(r);!((s=q==null?void 0:q.exports)===null||s===void 0)&&s.size&&Yc(u,q.exports);var fe=_s(i,u,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,fe}}function Oa(r,i,t,o){var s,u=e.getEffectiveTypeAnnotationNode(i.parent);if(u){var T=Hc(Ua(u));if(r)!ra(r)&&!ra(T)&&!Qf(r,T)&&Gk(void 0,r,o,T);else return T}if(!((s=t.parent)===null||s===void 0)&&s.valueDeclaration){var q=e.getEffectiveTypeAnnotationNode(t.parent.valueDeclaration);if(q){var fe=tn(Ua(q),t.escapedName);if(fe)return Df(fe)}}return r}function eo(r,i,t,o){if(e.isCallExpression(t)){if(i)return Jt(i);var s=js(t.arguments[2]),u=ai(s,"value");if(u)return u;var T=ai(s,"get");if(T){var q=jd(T);if(q)return So(q)}var fe=ai(s,"set");if(fe){var Ne=jd(fe);if(Ne)return Bb(Ne)}return xe}if($o(t.left,t.right))return xe;var $e=i?Jt(i):Lp(js(t.right));if($e.flags&524288&&o===2&&r.escapedName==="export="){var Ze=Vu($e),lr=e.createSymbolTable();e.copyEntries(Ze.members,lr);var yr=lr.size;i&&!i.exports&&(i.exports=e.createSymbolTable()),(i||r).exports.forEach(function(ui,Ii){var Fi,Ri=lr.get(Ii);if(Ri&&Ri!==ui)if(ui.flags&111551&&Ri.flags&111551){if(ui.valueDeclaration&&Ri.valueDeclaration&&e.getSourceFileOfNode(ui.valueDeclaration)!==e.getSourceFileOfNode(Ri.valueDeclaration)){var Xi=e.unescapeLeadingUnderscores(ui.escapedName),ea=((Fi=e.tryCast(Ri.valueDeclaration,e.isNamedDeclaration))===null||Fi===void 0?void 0:Fi.name)||Ri.valueDeclaration;e.addRelatedInfo(Wr(ui.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,Xi),e.createDiagnosticForNode(ea,e.Diagnostics._0_was_also_declared_here,Xi)),e.addRelatedInfo(Wr(ea,e.Diagnostics.Duplicate_identifier_0,Xi),e.createDiagnosticForNode(ui.valueDeclaration,e.Diagnostics._0_was_also_declared_here,Xi))}var lt=bo(ui.flags|Ri.flags,Ii);lt.type=ba([Jt(ui),Jt(Ri)]),lt.valueDeclaration=Ri.valueDeclaration,lt.declarations=e.concatenate(Ri.declarations,ui.declarations),lr.set(Ii,lt)}else lr.set(Ii,hl(ui,Ri));else lr.set(Ii,ui)});var Zr=_s(yr!==lr.size?void 0:Ze.symbol,lr,Ze.callSignatures,Ze.constructSignatures,Ze.indexInfos);return Zr.objectFlags|=e.getObjectFlags($e)&8192,Zr.symbol&&Zr.symbol.flags&32&&$e===Pn(Zr.symbol)&&(Zr.objectFlags|=16777216),Zr}return ND($e)?(Rp(t,Ki),Ki):$e}function $o(r,i){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(i,function(t){return Ks(r,t)})}function fo(r){var i=e.getThisContainer(r,!1);return i.kind===170||i.kind===255||i.kind===212&&!e.isPrototypePropertyAssignment(i.parent)}function es(r,i){return e.Debug.assert(r.length===i.length),r.filter(function(t,o){var s=i[o],u=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return u&&fo(u)})}function Es(r,i,t){if(r.initializer){var o=e.isBindingPattern(r.name)?cl(r.name,!0,!1):We;return Ec(Kb(r,vy(r,0,o)))}return e.isBindingPattern(r.name)?cl(r.name,i,t):(t&&!wc(r)&&Rp(r,xe),i?Xr:xe)}function vc(r,i,t){var o=e.createSymbolTable(),s,u=262272;e.forEach(r.elements,function(q){var fe=q.propertyName||q.name;if(q.dotDotDotToken){s=Fl(ki,xe,!1);return}var Ne=$_(fe);if(!ul(Ne)){u|=512;return}var $e=Nl(Ne),Ze=4|(q.initializer?16777216:0),lr=bo(Ze,$e);lr.type=Es(q,i,t),lr.bindingElement=q,o.set(lr.escapedName,lr)});var T=_s(void 0,o,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return T.objectFlags|=u,i&&(T.pattern=r,T.objectFlags|=262144),T}function lc(r,i,t){var o=r.elements,s=e.lastOrUndefined(o),u=s&&s.kind===202&&s.dotDotDotToken?s:void 0;if(o.length===0||o.length===1&&u)return Se>=2?d3(xe):Ki;var T=e.map(o,function($e){return e.isOmittedExpression($e)?xe:Es($e,i,t)}),q=e.findLastIndex(o,function($e){return!($e===u||e.isOmittedExpression($e)||tm($e))},o.length-1)+1,fe=e.map(o,function($e,Ze){return $e===u?4:Ze>=q?2:1}),Ne=Ml(T,fe);return i&&(Ne=zT(Ne),Ne.pattern=r,Ne.objectFlags|=262144),Ne}function cl(r,i,t){return i===void 0&&(i=!1),t===void 0&&(t=!1),r.kind===200?vc(r,i,t):lc(r,i,t)}function Is(r,i){return g_(Zl(r,!0,0),r,i)}function yf(r){var i=It(r),t=e3(!1);return t&&i&&i===t}function g_(r,i,t){return r?(r.flags&4096&&yf(i.parent)&&(r=uD(i)),t&&Nh(i,r),r.flags&8192&&(e.isBindingElement(i)||!i.type)&&r.symbol!==It(i)&&(r=ua),Hc(r)):(r=e.isParameter(i)&&i.dotDotDotToken?Ki:xe,t&&(wc(i)||Rp(i,r)),r)}function wc(r){var i=e.getRootDeclaration(r),t=i.kind===163?i.parent:i;return g0(t)}function bc(r){var i=e.getEffectiveTypeAnnotationNode(r);if(i)return Ua(i)}function ru(r){var i=Ma(r);if(!i.type){var t=m_(r);i.type||(i.type=t)}return i.type}function m_(r){if(r.flags&4194304)return rr(r);if(r===be)return xe;if(r.flags&134217728&&r.valueDeclaration){var i=It(e.getSourceFileOfNode(r.valueDeclaration)),t=bo(i.flags,"exports");t.declarations=i.declarations?i.declarations.slice():[],t.parent=r,t.target=i,i.valueDeclaration&&(t.valueDeclaration=i.valueDeclaration),i.members&&(t.members=new e.Map(i.members)),i.exports&&(t.exports=new e.Map(i.exports));var o=e.createSymbolTable();return o.set("exports",t),_s(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var u=e.getEffectiveTypeAnnotationNode(s);if(u===void 0)return Er?We:xe;var T=Wp(u);return At(T)||T===We?T:Oe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Hc(Lp(hn(s.statements[0].expression))):tt;if(!ku(r,0))return r.flags&512&&!(r.flags&67108864)?Zo(r):v_(r);var q;if(s.kind===270)q=g_(bc(s)||js(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))q=la(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&9136)return Zo(r);q=e.isBinaryExpression(s.parent)?la(r):bc(s)||xe}else if(e.isPropertyAssignment(s))q=bc(s)||Sk(s);else if(e.isJsxAttribute(s))q=bc(s)||uC(s);else if(e.isShorthandPropertyAssignment(s))q=bc(s)||fm(s.name,0);else if(e.isObjectLiteralMethod(s))q=bc(s)||Tk(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))q=Is(s,!0);else if(e.isEnumDeclaration(s))q=Zo(r);else if(e.isEnumMember(s))q=ad(r);else if(e.isAccessor(s))q=dt(r)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return eu()?q:r.flags&512&&!(r.flags&67108864)?Zo(r):v_(r)}function Wu(r){if(r)if(r.kind===171){var i=e.getEffectiveReturnTypeNode(r);return i}else{var t=e.getEffectiveSetAccessorTypeAnnotationNode(r);return t}}function d(r){var i=Wu(r);return i&&Ua(i)}function K(r){var i=TS(r);return i&&i.symbol}function Ae(r){return ld(Ku(r))}function tr(r){var i=Ma(r);return i.type||(i.type=Zi(r)||e.Debug.fail("Read type of accessor must always produce a type"))}function $r(r){var i=Ma(r);return i.writeType||(i.writeType=Zi(r,!0))}function Zi(r,i){if(i===void 0&&(i=!1),!ku(r,0))return Oe;var t=dt(r,i);if(!eu()&&(t=xe,Tr)){var o=e.getDeclarationOfKind(r,171);Wr(o,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ga(r))}return t}function dt(r,i){i===void 0&&(i=!1);var t=e.getDeclarationOfKind(r,171),o=e.getDeclarationOfKind(r,172);if(i){var s=d(o);if(s)return Ne(s,r)}if(t&&e.isInJSFile(t)){var u=Au(t);if(u)return Ne(u,r)}var T=d(t);if(T)return Ne(T,r);var q=d(o);if(q)return q;if(t&&t.body){var fe=f0(t);return Ne(fe,r)}if(o)return g0(o)||nu(Tr,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ga(r)),xe;if(t)return e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),g0(t)||nu(Tr,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ga(r)),xe;return;function Ne($e,Ze){if(e.getCheckFlags(Ze)&1){var lr=Ma(Ze);return gn($e,lr.mapper)}return $e}}function _n(r){var i=ef(Pn(r));return i.flags&8650752?i:i.flags&2097152?e.find(i.types,function(t){return!!(t.flags&8650752)}):void 0}function Zo(r){var i=Ma(r),t=i;if(!i.type){var o=r.valueDeclaration&&c0(r.valueDeclaration,!1);if(o){var s=Lb(r,o);s&&(r=i=s)}t.type=i.type=Bs(r)}return i.type}function Bs(r){var i=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return xe;if(i&&(i.kind===220||e.isAccessExpression(i)&&i.parent.kind===220))return la(r);if(r.flags&512&&i&&e.isSourceFile(i)&&i.commonJsModuleIndicator){var t=Fs(r);if(t!==r){if(!ku(r,0))return Oe;var o=Wn(r.exports.get("export=")),s=la(o,o===t?void 0:t);return eu()?s:v_(r)}}var u=Uc(16,r);if(r.flags&32){var T=_n(r);return T?To([u,T]):u}else return ur&&r.flags&16777216?$f(u):u}function ad(r){var i=Ma(r);return i.type||(i.type=G_(r))}function hf(r){var i=Ma(r);if(!i.type){var t=zo(r),o=r.declarations&&of(ju(r),!0),s=e.firstDefined(o==null?void 0:o.declarations,function(u){return e.isExportAssignment(u)?bc(u):void 0});i.type=(o==null?void 0:o.declarations)&&C0(o.declarations)&&r.declarations.length?vi(o):C0(r.declarations)?ze:s||(t.flags&111551?Jt(t):Oe)}return i.type}function Ag(r){var i=Ma(r);if(!i.type){if(!ku(r,0))return i.type=Oe;var t=gn(Jt(i.target),i.mapper);eu()||(t=v_(r)),i.type=t}return i.type}function v_(r){var i=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(i)?(Wr(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ga(r)),Oe):(Tr&&(i.kind!==163||i.initializer)&&Wr(r.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ga(r)),xe)}function hv(r){var i=Ma(r);return i.type||(e.Debug.assertIsDefined(i.deferralParent),e.Debug.assertIsDefined(i.deferralConstituents),i.type=i.deferralParent.flags&1048576?ba(i.deferralConstituents):To(i.deferralConstituents)),i.type}function Dv(r){var i=Ma(r);return!i.writeType&&i.deferralWriteConstituents&&(e.Debug.assertIsDefined(i.deferralParent),e.Debug.assertIsDefined(i.deferralConstituents),i.writeType=i.deferralParent.flags&1048576?ba(i.deferralWriteConstituents):To(i.deferralWriteConstituents)),i.writeType}function Ap(r){var i=e.getCheckFlags(r);if(i&65536){var t=Dv(r);if(t)return t}if(r.flags&33554432){var t=r.writeType;if(t)return t}return wd(r)}function wd(r){if(r.flags&98304){var i=$r(r);if(i)return i}return Jt(r)}function Jt(r){var i=e.getCheckFlags(r);return i&65536?hv(r):i&1?Ag(r):i&262144?E1(r):i&8192?yI(r):r.flags&7?ru(r):r.flags&9136?Zo(r):r.flags&8?ad(r):r.flags&98304?tr(r):r.flags&2097152?hf(r):Oe}function Df(r){return _g(Jt(r),!!(r.flags&16777216))}function qu(r,i){return r!==void 0&&i!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===i}function bf(r){return e.getObjectFlags(r)&4?r.target:r}function nd(r,i){return t(r);function t(o){if(e.getObjectFlags(o)&7){var s=bf(o);return s===i||e.some(zc(s),t)}else if(o.flags&2097152)return e.some(o.types,t);return!1}}function Gd(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];r=e.appendIfUnique(r,Tf(It(s)))}return r}function Od(r,i){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var t=e.getAssignmentDeclarationKind(r);if(t===6||t===3){var o=It(r.left);o&&o.parent&&!e.findAncestor(o.parent.valueDeclaration,function(fe){return r===fe})&&(r=o.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:{var s=Od(r,i);if(r.kind===194)return e.append(s,Tf(It(r.typeParameter)));if(r.kind===188)return e.concatenate(s,Ox(r));var u=Gd(s,e.getEffectiveTypeParameterDeclarations(r)),T=i&&(r.kind===256||r.kind===225||r.kind===257||ml(r))&&Pn(It(r)).thisType;return T?e.append(u,T):u}case 338:var q=e.getParameterSymbolFromJSDoc(r);q&&(r=q.valueDeclaration);break;case 318:{var s=Od(r,i);return r.tags?Gd(s,e.flatMap(r.tags,function(Ne){return e.isJSDocTemplateTag(Ne)?Ne.typeParameters:void 0})):s}}}}function od(r){var i=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,257);return e.Debug.assert(!!i,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Od(i)}function Sf(r){if(!!r.declarations){for(var i,t=0,o=r.declarations;t<o.length;t++){var s=o[t];if(s.kind===257||s.kind===256||s.kind===225||ml(s)||e.isTypeAlias(s)){var u=s;i=Gd(i,e.getEffectiveTypeParameterDeclarations(u))}}return i}}function Em(r){return e.concatenate(od(r),Sf(r))}function Pg(r){var i=za(r,1);if(i.length===1){var t=i[0];if(!t.typeParameters&&t.parameters.length===1&&U(t)){var o=$m(t.parameters[0]);return At(o)||AD(o)===xe}}return!1}function Hd(r){if(za(r,1).length>0)return!0;if(r.flags&8650752){var i=Cc(r);return!!i&&Pg(i)}return!1}function sd(r){var i=e.getClassLikeDeclarationOfSymbol(r.symbol);return i&&e.getEffectiveBaseTypeNode(i)}function Ng(r,i,t){var o=e.length(i),s=e.isInJSFile(t);return e.filter(za(r,1),function(u){return(s||o>=Ol(u.typeParameters))&&o<=e.length(u.typeParameters)})}function Fd(r,i,t){var o=Ng(r,i,t),s=e.map(i,Ua);return e.sameMap(o,function(u){return e.some(u.typeParameters)?jv(u,s,e.isInJSFile(t)):u})}function ef(r){if(!r.resolvedBaseConstructorType){var i=e.getClassLikeDeclarationOfSymbol(r.symbol),t=i&&e.getEffectiveBaseTypeNode(i),o=sd(r);if(!o)return r.resolvedBaseConstructorType=Nr;if(!ku(r,1))return Oe;var s=hn(o.expression);if(t&&o!==t&&(e.Debug.assert(!t.typeArguments),hn(t.expression)),s.flags&2621440&&Vu(s),!eu())return Wr(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ga(r.symbol)),r.resolvedBaseConstructorType=Oe;if(!(s.flags&1)&&s!==hi&&!Hd(s)){var u=Wr(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ht(s));if(s.flags&262144){var T=Vg(s),q=We;if(T){var fe=za(T,1);fe[0]&&(q=So(fe[0]))}s.symbol.declarations&&e.addRelatedInfo(u,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ga(s.symbol),ht(q)))}return r.resolvedBaseConstructorType=Oe}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function bv(r){var i=e.emptyArray;if(r.symbol.declarations)for(var t=0,o=r.symbol.declarations;t<o.length;t++){var s=o[t],u=e.getEffectiveImplementsTypeNodes(s);if(!!u)for(var T=0,q=u;T<q.length;T++){var fe=q[T],Ne=Ua(fe);ra(Ne)||(i===e.emptyArray?i=[Ne]:i.push(Ne))}}return i}function y_(r,i){Wr(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ht(i,void 0,2))}function zc(r){if(!r.baseTypesResolved){if(ku(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[Kf(r)]:r.symbol.flags&96?(r.symbol.flags&32&&_t(r),r.symbol.flags&64&&Va(r)):e.Debug.fail("type must be class or interface"),!eu()&&r.symbol.declarations))for(var i=0,t=r.symbol.declarations;i<t.length;i++){var o=t[i];(o.kind===256||o.kind===257)&&y_(o,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Kf(r){var i=e.sameMap(r.typeParameters,function(t,o){return r.elementFlags[o]&8?Mc(t,Ui):t});return tc(ba(i||e.emptyArray),r.readonly)}function _t(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var i=$(ef(r));if(!(i.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var t=sd(r),o,s=i.symbol?Io(i.symbol):void 0;if(i.symbol&&i.symbol.flags&32&&xa(s))o=WT(t,i.symbol);else if(i.flags&1)o=i;else{var u=Fd(i,t.typeArguments,t);if(!u.length)return Wr(t.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;o=So(u[0])}if(ra(o))return r.resolvedBaseTypes=e.emptyArray;var T=Lt(o);if(!ma(T)){var q=us(void 0,o),fe=e.chainDiagnosticMessages(q,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ht(T));return ya.add(e.createDiagnosticForNodeFromMessageChain(t.expression,fe)),r.resolvedBaseTypes=e.emptyArray}return r===T||nd(T,r)?(Wr(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ht(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[T])}function xa(r){var i=r.outerTypeParameters;if(i){var t=i.length-1,o=Co(r);return i[t].symbol!==o[t].symbol}return!0}function ma(r){if(r.flags&262144){var i=Cc(r);if(i)return ma(i)}return!!(r.flags&67633153&&!Fc(r)||r.flags&2097152&&e.every(r.types,ma))}function Va(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var i=0,t=r.symbol.declarations;i<t.length;i++){var o=t[i];if(o.kind===257&&e.getInterfaceBaseTypeNodes(o))for(var s=0,u=e.getInterfaceBaseTypeNodes(o);s<u.length;s++){var T=u[s],q=Lt(Ua(T));ra(q)||(ma(q)?r!==q&&!nd(q,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[q]:r.resolvedBaseTypes.push(q):y_(o,r):Wr(T,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function dn(r){if(!r.declarations)return!0;for(var i=0,t=r.declarations;i<t.length;i++){var o=t[i];if(o.kind===257){if(o.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(o);if(s)for(var u=0,T=s;u<T.length;u++){var q=T[u];if(e.isEntityNameExpression(q.expression)){var fe=Ps(q.expression,788968,!0);if(!fe||!(fe.flags&64)||Pn(fe).thisType)return!1}}}}return!0}function Pn(r){var i=Ma(r),t=i;if(!i.declaredType){var o=r.flags&32?1:2,s=Lb(r,r.valueDeclaration&&c7(r.valueDeclaration));s&&(r=i=s);var u=t.declaredType=i.declaredType=Uc(o,r),T=od(r),q=Sf(r);(T||q||o===1||!dn(r))&&(u.objectFlags|=4,u.typeParameters=e.concatenate(T,q),u.outerTypeParameters=T,u.localTypeParameters=q,u.instantiations=new e.Map,u.instantiations.set(bu(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=vu(r),u.thisType.isThisType=!0,u.thisType.constraint=u)}return i.declaredType}function cs(r){var i,t=Ma(r);if(!t.declaredType){if(!ku(r,2))return Oe;var o=e.Debug.checkDefined((i=r.declarations)===null||i===void 0?void 0:i.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(o)?o.typeExpression:o.type,u=s?Ua(s):Oe;if(eu()){var T=Sf(r);T&&(t.typeParameters=T,t.instantiations=new e.Map,t.instantiations.set(bu(T),u))}else u=Oe,o.kind===337?Wr(o.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Ga(r)):Wr(e.isNamedDeclaration(o)?o.name:o||o,e.Diagnostics.Type_alias_0_circularly_references_itself,Ga(r));t.declaredType=u}return t.declaredType}function yc(r){return e.isStringLiteralLike(r)?!0:r.kind===220?yc(r.left)&&yc(r.right):!1}function Sc(r){var i=r.initializer;if(!i)return!(r.flags&8388608);switch(i.kind){case 10:case 8:case 14:return!0;case 218:return i.operator===40&&i.operand.kind===8;case 79:return e.nodeIsMissing(i)||!!It(r.parent).exports.get(i.escapedText);case 220:return yc(i);default:return!1}}function Oc(r){var i=Ma(r);if(i.enumKind!==void 0)return i.enumKind;var t=!1;if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var u=s[o];if(u.kind===259)for(var T=0,q=u.members;T<q.length;T++){var fe=q[T];if(fe.initializer&&e.isStringLiteralLike(fe.initializer))return i.enumKind=1;Sc(fe)||(t=!0)}}return i.enumKind=t?0:1}function cu(r){return r.flags&1024&&!(r.flags&1048576)?Io(Rs(r.symbol)):r}function Pl(r){var i=Ma(r);if(i.declaredType)return i.declaredType;if(Oc(r)===1){He++;var t=[];if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var u=s[o];if(u.kind===259)for(var T=0,q=u.members;T<q.length;T++){var fe=q[T],Ne=w0(fe),$e=sg(t8(Ne!==void 0?Ne:0,He,It(fe)));Ma(It(fe)).declaredType=$e,t.push(Vc($e))}}if(t.length){var Ze=ba(t,1,r,void 0);return Ze.flags&1048576&&(Ze.flags|=1024,Ze.symbol=r),i.declaredType=Ze}}var lr=bs(32);return lr.symbol=r,i.declaredType=lr}function G_(r){var i=Ma(r);if(!i.declaredType){var t=Pl(Rs(r));i.declaredType||(i.declaredType=t)}return i.declaredType}function Tf(r){var i=Ma(r);return i.declaredType||(i.declaredType=vu(r))}function Xd(r){var i=Ma(r);return i.declaredType||(i.declaredType=Io(zo(r)))}function Io(r){return Qd(r)||Oe}function Qd(r){if(r.flags&96)return Pn(r);if(r.flags&524288)return cs(r);if(r.flags&262144)return Tf(r);if(r.flags&384)return Pl(r);if(r.flags&8)return G_(r);if(r.flags&2097152)return Xd(r)}function Ig(r){switch(r.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return Ig(r.elementType);case 177:return!r.typeArguments||r.typeArguments.every(Ig)}return!1}function p1(r){var i=e.getEffectiveConstraintOfTypeParameter(r);return!i||Ig(i)}function Ry(r){var i=e.getEffectiveTypeAnnotationNode(r);return i?Ig(i):!e.hasInitializer(r)}function d1(r){var i=e.getEffectiveReturnTypeNode(r),t=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===170||!!i&&Ig(i))&&r.parameters.every(Ry)&&t.every(p1)}function g1(r){if(r.declarations&&r.declarations.length===1){var i=r.declarations[0];if(i)switch(i.kind){case 166:case 165:return Ry(i);case 168:case 167:case 170:case 171:case 172:return d1(i)}}return!1}function By(r,i,t){for(var o=e.createSymbolTable(),s=0,u=r;s<u.length;s++){var T=u[s];o.set(T.escapedName,t&&g1(T)?T:lD(T,i))}return o}function Sv(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];!r.has(s.escapedName)&&!Jy(s)&&r.set(s.escapedName,s)}}function Jy(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function Tv(r){if(!r.declaredProperties){var i=r.symbol,t=Il(i);r.declaredProperties=df(t),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=Ip(t.get("__call")),r.declaredConstructSignatures=Ip(t.get("__new")),r.declaredIndexInfos=BT(i)}return r}function ul(r){return!!(r.flags&8576)}function xv(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var i=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(i)&&ul(e.isComputedPropertyName(r)?Zf(r):js(i))}function Yd(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function wg(r){var i=e.getNameOfDeclaration(r);return!!i&&xv(i)}function Pp(r){return!e.hasDynamicName(r)||wg(r)}function jy(r){return e.isDynamicName(r)&&!xv(r)}function Nl(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function Uy(r,i,t){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=t,Ma(i.symbol).lateSymbol=r,r.declarations?i.symbol.isReplaceableByMethod||r.declarations.push(i):r.declarations=[i],t&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==i.kind)&&(r.valueDeclaration=i)}function Ev(r,i,t,o){e.Debug.assert(!!o.symbol,"The member is expected to have a symbol.");var s=Da(o);if(!s.resolvedSymbol){s.resolvedSymbol=o.symbol;var u=e.isBinaryExpression(o)?o.left:o.name,T=e.isElementAccessExpression(u)?js(u.argumentExpression):Zf(u);if(ul(T)){var q=Nl(T),fe=o.symbol.flags,Ne=t.get(q);Ne||t.set(q,Ne=bo(0,q,4096));var $e=i&&i.get(q);if(Ne.flags&w_(fe)||$e){var Ze=$e?e.concatenate($e.declarations,Ne.declarations):Ne.declarations,lr=!(T.flags&8192)&&e.unescapeLeadingUnderscores(q)||e.declarationNameToString(u);e.forEach(Ze,function(yr){return Wr(e.getNameOfDeclaration(yr)||yr,e.Diagnostics.Property_0_was_also_declared_here,lr)}),Wr(u||o,e.Diagnostics.Duplicate_property_0,lr),Ne=bo(0,q,4096)}return Ne.nameType=T,Uy(Ne,o,fe),Ne.parent?e.Debug.assert(Ne.parent===r,"Existing symbol parent should match new one"):Ne.parent=r,s.resolvedSymbol=Ne}}return s.resolvedSymbol}function $d(r,i){var t=Ma(r);if(!t[i]){var o=i==="resolvedExports",s=o?r.flags&1536?Kl(r):r.exports:r.members;t[i]=s||he;for(var u=e.createSymbolTable(),T=0,q=r.declarations||e.emptyArray;T<q.length;T++){var fe=q[T],Ne=e.getMembersOfDeclaration(fe);if(Ne)for(var $e=0,Ze=Ne;$e<Ze.length;$e++){var lr=Ze[$e];o===e.hasStaticModifier(lr)&&wg(lr)&&Ev(r,s,u,lr)}}var yr=r.assignmentDeclarationMembers;if(yr)for(var Zr=e.arrayFrom(yr.values()),ui=0,Ii=Zr;ui<Ii.length;ui++){var lr=Ii[ui],Fi=e.getAssignmentDeclarationKind(lr),Ri=Fi===3||e.isBinaryExpression(lr)&&Vh(lr,Fi)||Fi===9||Fi===6;o===!Ri&&wg(lr)&&Ev(r,s,u,lr)}t[i]=If(s,u)||he}return t[i]}function Il(r){return r.flags&6256?$d(r,"resolvedMembers"):r.members||he}function Og(r){if(r.flags&106500&&r.escapedName==="__computed"){var i=Ma(r);if(!i.lateSymbol&&e.some(r.declarations,wg)){var t=Wn(r.parent);e.some(r.declarations,e.hasStaticModifier)?Ns(t):Il(t)}return i.lateSymbol||(i.lateSymbol=r)}return r}function Wc(r,i,t){if(e.getObjectFlags(r)&4){var o=r.target,s=Co(r);if(e.length(o.typeParameters)===e.length(s)){var u=Hf(o,e.concatenate(s,[i||o.thisType]));return t?$(u):u}}else if(r.flags&2097152){var T=e.sameMap(r.types,function(q){return Wc(q,i,t)});return T!==r.types?To(T):r}return t?$(r):r}function Cv(r,i,t,o){var s,u,T,q,fe;e.rangeEquals(t,o,0,t.length)?(u=i.symbol?Il(i.symbol):e.createSymbolTable(i.declaredProperties),T=i.declaredCallSignatures,q=i.declaredConstructSignatures,fe=i.declaredIndexInfos):(s=Kc(t,o),u=By(i.declaredProperties,s,t.length===1),T=mh(i.declaredCallSignatures,s),q=mh(i.declaredConstructSignatures,s),fe=Jx(i.declaredIndexInfos,s));var Ne=zc(i);if(Ne.length){i.symbol&&u===Il(i.symbol)&&(u=e.createSymbolTable(i.declaredProperties)),Ic(r,u,T,q,fe);for(var $e=e.lastOrUndefined(o),Ze=0,lr=Ne;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=$e?Wc(gn(yr,s),$e):yr;Sv(u,_o(Zr)),T=e.concatenate(T,za(Zr,0)),q=e.concatenate(q,za(Zr,1));var ui=Zr!==xe?Js(Zr):[Fl(ki,xe,!1)];fe=e.concatenate(fe,e.filter(ui,function(Ii){return!Du(fe,Ii.keyType)}))}}Ic(r,u,T,q,fe)}function kv(r){Cv(r,Tv(r),e.emptyArray,e.emptyArray)}function zy(r){var i=Tv(r.target),t=e.concatenate(i.typeParameters,[i.thisType]),o=Co(r),s=o.length===t.length?o:e.concatenate(o,[r]);Cv(r,i,t,s)}function Pu(r,i,t,o,s,u,T,q){var fe=new le(Kr,q);return fe.declaration=r,fe.typeParameters=i,fe.parameters=o,fe.thisParameter=t,fe.resolvedReturnType=s,fe.resolvedTypePredicate=u,fe.minArgumentCount=T,fe.resolvedMinArgumentCount=void 0,fe.target=void 0,fe.mapper=void 0,fe.compositeSignatures=void 0,fe.compositeKind=void 0,fe}function Zd(r){var i=Pu(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return i.target=r.target,i.mapper=r.mapper,i.compositeSignatures=r.compositeSignatures,i.compositeKind=r.compositeKind,i}function Wy(r,i){var t=Zd(r);return t.compositeSignatures=i,t.compositeKind=1048576,t.target=void 0,t.mapper=void 0,t}function m1(r,i){if((r.flags&24)===i)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var t=i===8?"inner":"outer";return r.optionalCallSignatureCache[t]||(r.optionalCallSignatureCache[t]=v1(r,i))}function v1(r,i){e.Debug.assert(i===8||i===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var t=Zd(r);return t.flags|=i,t}function Av(r,i){if(U(r)){var t=r.parameters.length-1,o=Jt(r.parameters[t]);if(Ln(o))return[s(o,t)];if(!i&&o.flags&1048576&&e.every(o.types,Ln))return e.map(o.types,function(u){return s(u,t)})}return[r.parameters];function s(u,T){var q=Co(u),fe=u.target.labeledElementDeclarations,Ne=e.map(q,function($e,Ze){var lr=!!fe&&l0(fe[Ze]),yr=lr||cm(r,T+Ze,u),Zr=u.target.elementFlags[Ze],ui=Zr&12?32768:Zr&2?16384:0,Ii=bo(1,yr,ui);return Ii.type=Zr&4?tc($e):$e,Ii});return e.concatenate(r.parameters.slice(0,T),Ne)}}function y1(r){var i=ef(r),t=za(i,1),o=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!o&&e.hasSyntacticModifier(o,128);if(t.length===0)return[Pu(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var u=sd(r),T=e.isInJSFile(u),q=uh(u),fe=e.length(q),Ne=[],$e=0,Ze=t;$e<Ze.length;$e++){var lr=Ze[$e],yr=Ol(lr.typeParameters),Zr=e.length(lr.typeParameters);if(T||fe>=yr&&fe<=Zr){var ui=Zr?ah(lr,S_(q,lr.typeParameters,yr,T)):Zd(lr);ui.typeParameters=r.localTypeParameters,ui.resolvedReturnType=r,ui.flags=s?ui.flags|4:ui.flags&-5,Ne.push(ui)}}return Ne}function Pv(r,i,t,o,s){for(var u=0,T=r;u<T.length;u++){var q=T[u];if(Yv(q,i,t,o,s,t?S8:jm))return q}}function Cm(r,i,t){if(i.typeParameters){if(t>0)return;for(var o=1;o<r.length;o++)if(!Pv(r[o],i,!1,!1,!1))return;return[i]}for(var s,o=0;o<r.length;o++){var u=o===t?i:Pv(r[o],i,!0,!1,!0);if(!u)return;s=e.appendIfUnique(s,u)}return s}function Nv(r){for(var i,t,o=0;o<r.length;o++){if(r[o].length===0)return e.emptyArray;r[o].length>1&&(t=t===void 0?o:-1);for(var s=0,u=r[o];s<u.length;s++){var T=u[s];if(!i||!Pv(i,T,!1,!1,!0)){var q=Cm(r,T,o);if(q){var fe=T;if(q.length>1){var Ne=T.thisParameter,$e=e.forEach(q,function(Xi){return Xi.thisParameter});if($e){var Ze=To(e.mapDefined(q,function(Xi){return Xi.thisParameter&&Jt(Xi.thisParameter)}));Ne=Jd($e,Ze)}fe=Wy(T,q),fe.thisParameter=Ne}(i||(i=[])).push(fe)}}}}if(!e.length(i)&&t!==-1){for(var lr=r[t!==void 0?t:0],yr=lr.slice(),Zr=function(Xi){if(Xi!==lr){var ea=Xi[0];if(e.Debug.assert(!!ea,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),yr=!!ea.typeParameters&&e.some(yr,function(lt){return!!lt.typeParameters&&!Iv(ea.typeParameters,lt.typeParameters)})?void 0:e.map(yr,function(lt){return D1(lt,ea)}),!yr)return"break"}},ui=0,Ii=r;ui<Ii.length;ui++){var Fi=Ii[ui],Ri=Zr(Fi);if(Ri==="break")break}i=yr}return i||e.emptyArray}function Iv(r,i){if(e.length(r)!==e.length(i))return!1;if(!r||!i)return!0;for(var t=Kc(i,r),o=0;o<r.length;o++){var s=r[o],u=i[o];if(s!==u&&!Qf(Vg(s)||We,gn(Vg(u)||We,t)))return!1}return!0}function qy(r,i,t){if(!r||!i)return r||i;var o=To([Jt(r),gn(Jt(i),t)]);return Jd(r,o)}function h1(r,i,t){for(var o=Lc(r),s=Lc(i),u=o>=s?r:i,T=u===r?i:r,q=u===r?o:s,fe=Ul(r)||Ul(i),Ne=fe&&!Ul(u),$e=new Array(q+(Ne?1:0)),Ze=0;Ze<q;Ze++){var lr=hd(u,Ze);u===i&&(lr=gn(lr,t));var yr=hd(T,Ze)||We;T===i&&(yr=gn(yr,t));var Zr=To([lr,yr]),ui=fe&&!Ne&&Ze===q-1,Ii=Ze>=jl(u)&&Ze>=jl(T),Fi=Ze>=o?void 0:cm(r,Ze),Ri=Ze>=s?void 0:cm(i,Ze),Xi=Fi===Ri?Fi:Fi?Ri?void 0:Fi:Ri,ea=bo(1|(Ii&&!ui?16777216:0),Xi||"arg".concat(Ze));ea.type=ui?tc(Zr):Zr,$e[Ze]=ea}if(Ne){var lt=bo(1,"args");lt.type=tc(Hu(T,q)),T===i&&(lt.type=gn(lt.type,t)),$e[q]=lt}return $e}function D1(r,i){var t=r.typeParameters||i.typeParameters,o;r.typeParameters&&i.typeParameters&&(o=Kc(i.typeParameters,r.typeParameters));var s=r.declaration,u=h1(r,i,o),T=qy(r.thisParameter,i.thisParameter,o),q=Math.max(r.minArgumentCount,i.minArgumentCount),fe=Pu(s,t,T,u,void 0,void 0,q,(r.flags|i.flags)&39);return fe.compositeKind=1048576,fe.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[i]),o&&(fe.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?pd(r.mapper,o):o),fe}function Vy(r){var i=Js(r[0]);if(i){for(var t=[],o=function(q){var fe=q.keyType;e.every(r,function(Ne){return!!kc(Ne,fe)})&&t.push(Fl(fe,ba(e.map(r,function(Ne){return fl(Ne,fe)})),e.some(r,function(Ne){return kc(Ne,fe).isReadonly})))},s=0,u=i;s<u.length;s++){var T=u[s];o(T)}return t}return e.emptyArray}function b1(r){var i=Nv(e.map(r.types,function(s){return s===Ka?[ro]:za(s,0)})),t=Nv(e.map(r.types,function(s){return za(s,1)})),o=Vy(r.types);Ic(r,he,i,t,o)}function eg(r,i){return r?i?To([r,i]):r:i}function Ky(r){var i=e.countWhere(r,function(s){return za(s,1).length>0}),t=e.map(r,Pg);if(i>0&&i===e.countWhere(t,function(s){return s})){var o=t.indexOf(!0);t[o]=!1}return t}function wv(r,i,t,o){for(var s=[],u=0;u<i.length;u++)u===o?s.push(r):t[u]&&s.push(So(za(i[u],1)[0]));return To(s)}function Fg(r){for(var i,t,o,s=r.types,u=Ky(s),T=e.countWhere(u,function(Ne){return Ne}),q=function(Ne){var $e=r.types[Ne];if(!u[Ne]){var Ze=za($e,1);Ze.length&&T>0&&(Ze=e.map(Ze,function(lr){var yr=Zd(lr);return yr.resolvedReturnType=wv(So(lr),s,u,Ne),yr})),t=Ov(t,Ze)}i=Ov(i,za($e,0)),o=e.reduceLeft(Js($e),function(lr,yr){return Fv(lr,yr,!1)},o)},fe=0;fe<s.length;fe++)q(fe);Ic(r,he,i||e.emptyArray,t||e.emptyArray,o||e.emptyArray)}function Ov(r,i){for(var t=function(T){(!r||e.every(r,function(q){return!Yv(q,T,!1,!1,!1,jm)}))&&(r=e.append(r,T))},o=0,s=i;o<s.length;o++){var u=s[o];t(u)}return r}function Fv(r,i,t){if(r)for(var o=0;o<r.length;o++){var s=r[o];if(s.keyType===i.keyType)return r[o]=Fl(s.keyType,t?ba([s.type,i.type]):To([s.type,i.type]),t?s.isReadonly||i.isReadonly:s.isReadonly&&i.isReadonly),r}return e.append(r,i)}function S1(r){var i=Wn(r.symbol);if(r.target){Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var t=By(Gf(r.target),r.mapper,!1),o=mh(za(r.target,0),r.mapper),s=mh(za(r.target,1),r.mapper),u=Jx(Js(r.target),r.mapper);Ic(r,t,o,s,u)}else if(i.flags&2048){Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var t=Il(i),o=Ip(t.get("__call")),s=Ip(t.get("__new")),u=BT(i);Ic(r,t,o,s,u)}else{var t=he,u=void 0;if(i.exports&&(t=Ns(i),i===Rr)){var T=new e.Map;t.forEach(function(Zr){Zr.flags&418||T.set(Zr.escapedName,Zr)}),t=T}var q=void 0;if(Ic(r,t,e.emptyArray,e.emptyArray,e.emptyArray),i.flags&32){var fe=Pn(i),Ne=ef(fe);Ne.flags&11272192?(t=e.createSymbolTable(l_(t)),Sv(t,_o(Ne))):Ne===xe&&(q=Fl(ki,xe,!1))}var $e=J1(t);if($e?u=JT($e):(q&&(u=e.append(u,q)),i.flags&384&&(Io(i).flags&32||e.some(r.properties,function(Zr){return!!(Jt(Zr).flags&296)}))&&(u=e.append(u,rn))),Ic(r,t,e.emptyArray,e.emptyArray,u||e.emptyArray),i.flags&8208&&(r.callSignatures=Ip(i)),i.flags&32){var Ze=Pn(i),s=i.members?Ip(i.members.get("__constructor")):e.emptyArray;i.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(r.callSignatures,function(ui){return ml(ui.declaration)?Pu(ui.declaration,ui.typeParameters,ui.thisParameter,ui.parameters,Ze,void 0,ui.minArgumentCount,ui.flags&39):void 0}))),s.length||(s=y1(Ze)),r.constructSignatures=s}}}function Gy(r,i,t){return gn(r,Kc([i.indexType,i.objectType],[xf(0),Ml([t])]))}function T1(r){for(var i=kc(r.source,ki),t=ll(r.mappedType),o=!(t&1),s=t&4?0:16777216,u=i?[Fl(ki,wh(i.type,r.mappedType,r.constraintType),o&&i.isReadonly)]:e.emptyArray,T=e.createSymbolTable(),q=0,fe=_o(r.source);q<fe.length;q++){var Ne=fe[q],$e=8192|(o&&zl(Ne)?8:0),Ze=bo(4|Ne.flags&s,Ne.escapedName,$e);if(Ze.declarations=Ne.declarations,Ze.nameType=Ma(Ne).nameType,Ze.propertyType=Jt(Ne),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var lr=r.constraintType.type.objectType,yr=Gy(r.mappedType,r.constraintType.type,lr);Ze.mappedType=yr,Ze.constraintType=Ll(lr)}else Ze.mappedType=r.mappedType,Ze.constraintType=r.constraintType;T.set(Ne.escapedName,Ze)}Ic(r,T,e.emptyArray,e.emptyArray,u)}function cd(r){if(r.flags&4194304){var i=$(r.type);return em(i)?px(i):Ll(i)}if(r.flags&16777216){if(r.root.isDistributive){var t=r.checkType,o=cd(t);if(o!==t)return dD(r,cg(r.root.checkType,o,r.mapper))}return r}return r.flags&1048576?Cs(r,cd):r.flags&2097152?To(e.sameMap(r.types,cd)):r}function km(r){return e.getCheckFlags(r)&4096}function Mv(r,i,t,o){for(var s=0,u=_o(r);s<u.length;s++){var T=u[s];o(Hg(T,i))}if(r.flags&1)o(ki);else for(var q=0,fe=Js(r);q<fe.length;q++){var Ne=fe[q];(!t||Ne.keyType.flags&134217732)&&o(Ne.keyType)}}function x1(r){var i=e.createSymbolTable(),t;Ic(r,he,e.emptyArray,e.emptyArray,e.emptyArray);var o=Nu(r),s=Iu(r),u=h_(r.target||r),T=wl(r.target||r),q=$(Lg(r)),fe=ll(r),Ne=br?128:8576;Mg(r)?Mv(q,Ne,br,$e):md(cd(s),$e),Ic(r,i,e.emptyArray,e.emptyArray,t||e.emptyArray);function $e(lr){var yr=u?gn(u,Jm(r.mapper,o,lr)):lr;md(yr,function(Zr){return Ze(lr,Zr)})}function Ze(lr,yr){if(ul(yr)){var Zr=Nl(yr),ui=i.get(Zr);if(ui)ui.nameType=ba([ui.nameType,yr]),ui.keyType=ba([ui.keyType,lr]);else{var Ii=ul(lr)?tn(q,Nl(lr)):void 0,Fi=!!(fe&4||!(fe&8)&&Ii&&Ii.flags&16777216),Ri=!!(fe&1||!(fe&2)&&Ii&&zl(Ii)),Xi=ur&&!Fi&&Ii&&Ii.flags&16777216,ea=Ii?km(Ii):0,lt=bo(4|(Fi?16777216:0),Zr,ea|262144|(Ri?8:0)|(Xi?524288:0));lt.mappedType=r,lt.nameType=yr,lt.keyType=lr,Ii&&(lt.syntheticOrigin=Ii,lt.declarations=u?void 0:Ii.declarations),i.set(Zr,lt)}}else if(nh(yr)||yr.flags&33){var Ia=yr.flags&5?ki:yr.flags&40?Ui:yr,fa=gn(T,Jm(r.mapper,o,lr)),Dn=Fl(Ia,fa,!!(fe&1));t=Fv(t,Dn,!0)}}}function E1(r){if(!r.type){var i=r.mappedType;if(!ku(r,0))return i.containsError=!0,Oe;var t=wl(i.target||i),o=Jm(i.mapper,Nu(i),r.keyType),s=gn(t,o),u=ur&&r.flags&16777216&&!ls(s,49152)?$f(s,!0):r.checkFlags&524288?MD(s):s;eu()||(Wr(er,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ga(r),ht(i)),u=Oe),r.type=u}return r.type}function Nu(r){return r.typeParameter||(r.typeParameter=Tf(It(r.declaration.typeParameter)))}function Iu(r){return r.constraintType||(r.constraintType=qc(Nu(r))||Oe)}function h_(r){return r.declaration.nameType?r.nameType||(r.nameType=gn(Ua(r.declaration.nameType),r.mapper)):void 0}function wl(r){return r.templateType||(r.templateType=r.declaration.type?gn(Ec(Ua(r.declaration.type),!0,!!(ll(r)&4)),r.mapper):Oe)}function Hy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function Mg(r){var i=Hy(r);return i.kind===192&&i.operator===140}function Lg(r){if(!r.modifiersType)if(Mg(r))r.modifiersType=gn(Ua(Hy(r).type),r.mapper);else{var i=rD(r.declaration),t=Iu(i),o=t&&t.flags&262144?qc(t):t;r.modifiersType=o&&o.flags&4194304?gn(o.type,r.mapper):We}return r.modifiersType}function ll(r){var i=r.declaration;return(i.readonlyToken?i.readonlyToken.kind===40?2:1:0)|(i.questionToken?i.questionToken.kind===40?8:4:0)}function Xy(r){var i=ll(r);return i&8?-1:i&4?1:0}function Rg(r){var i=Xy(r),t=Lg(r);return i||(Fc(t)?Xy(t):0)}function C1(r){return!!(e.getObjectFlags(r)&32&&ll(r)&4)}function Fc(r){return!!(e.getObjectFlags(r)&32)&&fd(Iu(r))}function Vu(r){return r.members||(r.flags&524288?r.objectFlags&4?zy(r):r.objectFlags&3?kv(r):r.objectFlags&1024?T1(r):r.objectFlags&16?S1(r):r.objectFlags&32&&x1(r):r.flags&1048576?b1(r):r.flags&2097152&&Fg(r)),r}function Gf(r){return r.flags&524288?Vu(r).properties:e.emptyArray}function D_(r,i){if(r.flags&524288){var t=Vu(r),o=t.members.get(i);if(o&&Wf(o))return o}}function Bg(r){if(!r.resolvedProperties){for(var i=e.createSymbolTable(),t=0,o=r.types;t<o.length;t++){for(var s=o[t],u=0,T=_o(s);u<T.length;u++){var q=T[u];if(!i.has(q.escapedName)){var fe=wt(r,q.escapedName);fe&&i.set(q.escapedName,fe)}}if(r.flags&1048576&&Js(s).length===0)break}r.resolvedProperties=df(i)}return r.resolvedProperties}function _o(r){return r=pr(r),r.flags&3145728?Bg(r):Gf(r)}function k1(r,i){r=pr(r),r.flags&3670016&&Vu(r).members.forEach(function(t,o){xp(t,o)&&i(t,o)})}function Qy(r,i){var t=i.properties;return t.some(function(o){var s=o.name&&$_(o.name),u=s&&ul(s)?Nl(s):void 0,T=u===void 0?void 0:ai(r,u);return!!T&&fg(T)&&!oo(Wp(o),T)})}function Yy(r){var i=ba(r);if(!(i.flags&1048576))return gS(i);for(var t=e.createSymbolTable(),o=0,s=r;o<s.length;o++)for(var u=s[o],T=0,q=gS(u);T<q.length;T++){var fe=q[T].escapedName;if(!t.has(fe)){var Ne=Yr(i,fe);Ne&&t.set(fe,Ne)}}return e.arrayFrom(t.values())}function b_(r){return r.flags&262144?qc(r):r.flags&8388608?A1(r):r.flags&16777216?N1(r):Cc(r)}function qc(r){return Am(r)?Vg(r):void 0}function A1(r){return Am(r)?P1(r):void 0}function Jg(r){var i=Xf(r,!1);return i!==r?i:b_(r)}function P1(r){if(c(r))return _h(r.objectType,r.indexType);var i=Jg(r.indexType);if(i&&i!==r.indexType){var t=Z_(r.objectType,i,r.accessFlags);if(t)return t}var o=Jg(r.objectType);if(o&&o!==r.objectType)return Z_(o,r.indexType,r.accessFlags)}function Lv(r){if(!r.resolvedDefaultConstraint){var i=Y3(r),t=rp(r);r.resolvedDefaultConstraint=At(i)?t:At(t)?i:ba([i,t])}return r.resolvedDefaultConstraint}function $y(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var i=Xf(r.checkType,!1),t=i===r.checkType?b_(i):i;if(t&&t!==r.checkType){var o=dD(r,cg(r.root.checkType,t,r.mapper));if(!(o.flags&131072))return o}}}function Zy(r){return $y(r)||Lv(r)}function N1(r){return Am(r)?Zy(r):void 0}function eh(r,i){for(var t,o=!1,s=0,u=r;s<u.length;s++){var T=u[s];if(T.flags&465829888){for(var q=b_(T);q&&q.flags&21233664;)q=b_(q);q&&(t=e.append(t,q),i&&(t=e.append(t,T)))}else T.flags&469892092&&(o=!0)}if(t&&(i||o)){if(o)for(var fe=0,Ne=r;fe<Ne.length;fe++){var T=Ne[fe];T.flags&469892092&&(t=e.append(t,T))}return To(t)}}function Cc(r){if(r.flags&464781312){var i=Pm(r);return i!==Rn&&i!==Sn?i:void 0}return r.flags&4194304?Pi:void 0}function rg(r){return Cc(r)||r}function Am(r){return Pm(r)!==Sn}function Pm(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var i=[];return r.resolvedBaseConstraint=Wc(t(r),r);function t(u){if(!u.immediateBaseConstraint){if(!ku(u,4))return Sn;var T=void 0;if((i.length<10||i.length<50&&!Xv(u,i,i.length))&&(i.push(u),T=s(Xf(u,!1)),i.pop()),!eu()){if(u.flags&262144){var q=jT(u);if(q){var fe=Wr(q,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,ht(u));er&&!e.isNodeDescendantOf(q,er)&&!e.isNodeDescendantOf(er,q)&&e.addRelatedInfo(fe,e.createDiagnosticForNode(er,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}T=Sn}u.immediateBaseConstraint=T||Rn}return u.immediateBaseConstraint}function o(u){var T=t(u);return T!==Rn&&T!==Sn?T:void 0}function s(u){if(u.flags&262144){var T=Vg(u);return u.isThisType||!T?T:o(T)}if(u.flags&3145728){for(var q=u.types,fe=[],Ne=!1,$e=0,Ze=q;$e<Ze.length;$e++){var lr=Ze[$e],yr=o(lr);yr?(yr!==lr&&(Ne=!0),fe.push(yr)):Ne=!0}return Ne?u.flags&1048576&&fe.length===q.length?ba(fe):u.flags&2097152&&fe.length?To(fe):void 0:u}if(u.flags&4194304)return Pi;if(u.flags&134217728){var q=u.types,Zr=e.mapDefined(q,o);return Zr.length===q.length?Xg(u.texts,Zr):ki}if(u.flags&268435456){var T=o(u.type);return T?fh(u.symbol,T):ki}if(u.flags&8388608){if(c(u))return o(_h(u.objectType,u.indexType));var ui=o(u.objectType),Ii=o(u.indexType),Fi=ui&&Ii&&Z_(ui,Ii,u.accessFlags);return Fi&&o(Fi)}if(u.flags&16777216){var T=Zy(u);return T&&o(T)}return u.flags&33554432?o(u.substitute):u}}function I1(r){return r.resolvedApparentType||(r.resolvedApparentType=Wc(r,r,!0))}function Rv(r){if(r.default)r.default===zn&&(r.default=Sn);else if(r.target){var i=Rv(r.target);r.default=i?gn(i,r.mapper):Rn}else{r.default=zn;var t=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),o=t?Ua(t):Rn;r.default===zn&&(r.default=o)}return r.default}function H_(r){var i=Rv(r);return i!==Rn&&i!==Sn?i:void 0}function rh(r){return Rv(r)!==Sn}function w1(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(i){return e.isTypeParameterDeclaration(i)&&i.default}))}function O1(r){return r.resolvedApparentType||(r.resolvedApparentType=F1(r))}function F1(r){var i=fD(r);if(i&&!r.declaration.nameType){var t=qc(i);if(t&&(_c(t)||Ln(t)))return gn(r,cg(i,t,r.mapper))}return r}function c(r){return r.flags&8388608&&e.getObjectFlags(r.objectType)&32&&!Fc(r.objectType)&&fd(r.indexType)}function $(r){var i=r.flags&465829888?Cc(r)||We:r;return e.getObjectFlags(i)&32?O1(i):i.flags&2097152?I1(i):i.flags&402653316?Re:i.flags&296?nr:i.flags&2112?p3(Se>=7):i.flags&528?Gr:i.flags&12288?ax(Se>=2):i.flags&67108864?tt:i.flags&4194304?Pi:i.flags&2&&!ur?tt:i}function pr(r){return Lt($(Lt(r)))}function Yr(r,i,t){for(var o,s,u,T,q,fe=r.flags&1048576,Ne=fe?0:16777216,$e=4,Ze=fe?0:8,lr=!1,yr=0,Zr=r.types;yr<Zr.length;yr++){var ui=Zr[yr],Ii=$(ui);if(!(ra(Ii)||Ii.flags&131072)){var Fi=tn(Ii,i,t),Ri=Fi?e.getDeclarationModifierFlagsFromSymbol(Fi):0;if(Fi){if(fe?Ne|=Fi.flags&16777216:Ne&=Fi.flags,!u)u=Fi;else if(Fi!==u){var Xi=(Tg(Fi)||Fi)===(Tg(u)||u);if(Xi&&kD(u,Fi,function(Qa,En){return Qa===En?-1:0})===-1)lr=!!u.parent&&!!e.length(Sf(u.parent));else{T||(T=new e.Map,T.set(f(u),u));var ea=f(Fi);T.has(ea)||T.set(ea,Fi)}}fe&&zl(Fi)?Ze|=8:!fe&&!zl(Fi)&&(Ze&=-9),Ze|=(Ri&24?0:256)|(Ri&16?512:0)|(Ri&8?1024:0)|(Ri&32?2048:0),Db(Fi)||($e=2)}else if(fe){var lt=!Yd(i)&&Np(Ii,i);lt?(Ze|=32|(lt.isReadonly?8:0),q=e.append(q,Ln(Ii)?zm(Ii)||Nr:lt.type)):Bp(Ii)&&!(e.getObjectFlags(Ii)&4194304)?(Ze|=32,q=e.append(q,Nr)):Ze|=16}}}if(!(!u||fe&&(T||Ze&48)&&Ze&1536)){if(!T&&!(Ze&16)&&!q)if(lr){var Ia=Jd(u,u.type);return Ia.parent=(s=(o=u.valueDeclaration)===null||o===void 0?void 0:o.symbol)===null||s===void 0?void 0:s.parent,Ia.containingType=r,Ia.mapper=u.mapper,Ia}else return u;for(var fa=T?e.arrayFrom(T.values()):[u],Dn,Ra,Bn,Jn=[],On,Ao,$i=!1,Vi=0,Ot=fa;Vi<Ot.length;Vi++){var Fi=Ot[Vi];Ao?Fi.valueDeclaration&&Fi.valueDeclaration!==Ao&&($i=!0):Ao=Fi.valueDeclaration,Dn=e.addRange(Dn,Fi.declarations);var Ii=Jt(Fi);Ra||(Ra=Ii,Bn=Ma(Fi).nameType);var Wa=Ap(Fi);On||Wa!==Ii?On=e.append(On||Jn.slice(),Wa):Ii!==Ra&&(Ze|=64),(fg(Ii)||Qg(Ii))&&(Ze|=128),Ii.flags&131072&&(Ze|=131072),Jn.push(Ii)}e.addRange(Jn,q);var Qt=bo(4|Ne,i,$e|Ze);return Qt.containingType=r,!$i&&Ao&&(Qt.valueDeclaration=Ao,Ao.symbol.parent&&(Qt.parent=Ao.symbol.parent)),Qt.declarations=Dn,Qt.nameType=Bn,Jn.length>2?(Qt.checkFlags|=65536,Qt.deferralParent=r,Qt.deferralConstituents=Jn,Qt.deferralWriteConstituents=On):(Qt.type=fe?ba(Jn):To(Jn),On&&(Qt.writeType=fe?ba(On):To(On))),Qt}}function ji(r,i,t){var o,s,u=((o=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0?void 0:o.get(i))||!t?(s=r.propertyCache)===null||s===void 0?void 0:s.get(i):void 0;if(!u&&(u=Yr(r,i,t),u)){var T=t?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());T.set(i,u)}return u}function wt(r,i,t){var o=ji(r,i,t);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function Lt(r){return r.flags&1048576&&r.objectFlags&33554432?r.resolvedReducedType||(r.resolvedReducedType=Ea(r)):r.flags&2097152?(r.objectFlags&33554432||(r.objectFlags|=33554432|(e.some(Bg(r),vn)?67108864:0)),r.objectFlags&67108864?St:r):r}function Ea(r){var i=e.sameMap(r.types,Lt);if(i===r.types)return r;var t=ba(i);return t.flags&1048576&&(t.resolvedReducedType=t),t}function vn(r){return sn(r)||Fo(r)}function sn(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(Jt(r).flags&131072)}function Fo(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function us(r,i){if(i.flags&2097152&&e.getObjectFlags(i)&67108864){var t=e.find(Bg(i),sn);if(t)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ht(i,void 0,536870912),Ga(t));var o=e.find(Bg(i),Fo);if(o)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ht(i,void 0,536870912),Ga(o))}return r}function tn(r,i,t){if(r=pr(r),r.flags&524288){var o=Vu(r),s=o.members.get(i);if(s&&Wf(s))return s;if(t)return;var u=o===bn?Ka:o.callSignatures.length?an:o.constructSignatures.length?Ke:void 0;if(u){var T=D_(u,i);if(T)return T}return D_(Ht,i)}if(r.flags&3145728)return wt(r,i,t)}function Ys(r,i){if(r.flags&3670016){var t=Vu(r);return i===0?t.callSignatures:t.constructSignatures}return e.emptyArray}function za(r,i){return Ys(pr(r),i)}function Du(r,i){return e.find(r,function(t){return t.keyType===i})}function gs(r,i){for(var t,o,s,u=0,T=r;u<T.length;u++){var q=T[u];q.keyType===ki?t=q:iu(i,q.keyType)&&(o?(s||(s=[o])).push(q):o=q)}return s?Fl(We,To(e.map(s,function(fe){return fe.type})),e.reduceLeft(s,function(fe,Ne){return fe&&Ne.isReadonly},!0)):o||(t&&iu(i,ki)?t:void 0)}function iu(r,i){return oo(r,i)||i===ki&&oo(r,Ui)||i===Ui&&!!(r.flags&128)&&e.isNumericLiteralName(r.value)}function X_(r){if(r.flags&3670016){var i=Vu(r);return i.indexInfos}return e.emptyArray}function Js(r){return X_(pr(r))}function kc(r,i){return Du(Js(r),i)}function fl(r,i){var t;return(t=kc(r,i))===null||t===void 0?void 0:t.type}function jg(r,i){return Js(r).filter(function(t){return iu(i,t.keyType)})}function ig(r,i){return gs(Js(r),i)}function Np(r,i){return ig(r,Yd(i)?ua:Ou(e.unescapeLeadingUnderscores(i)))}function ih(r){for(var i,t=0,o=e.getEffectiveTypeParameterDeclarations(r);t<o.length;t++){var s=o[t];i=e.appendIfUnique(i,Tf(s.symbol))}return i}function Bv(r){var i=[];return r.forEach(function(t,o){pf(o)||i.push(t)}),i}function Nm(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===314||e.getJSDocParameterTags(r).some(function(i){var t=i.isBracketed,o=i.typeExpression;return t||!!o&&o.type.kind===314}))}function Ug(r,i){if(!e.isExternalModuleNameRelative(r)){var t=Pc(Lr,'"'+r+'"',512);return t&&i?Wn(t):t}}function ud(r){if(e.hasQuestionToken(r)||zg(r)||Nm(r))return!0;if(r.initializer){var i=Ku(r.parent),t=r.parent.parameters.indexOf(r);return e.Debug.assert(t>=0),t>=jl(i,3)}var o=e.getImmediatelyInvokedFunctionExpression(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=o.arguments.length:!1}function Im(r){return e.isPropertyDeclaration(r)&&r.questionToken}function zg(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var i=r.isBracketed,t=r.typeExpression;return i||!!t&&t.type.kind===314}function tg(r,i,t,o){return{kind:r,parameterName:i,parameterIndex:t,type:o}}function Ol(r){var i=0;if(r)for(var t=0;t<r.length;t++)w1(r[t])||(i=t+1);return i}function S_(r,i,t,o){var s=e.length(i);if(!s)return[];var u=e.length(r);if(o||u>=t&&u<=s){for(var T=r?r.slice():[],q=u;q<s;q++)T[q]=Oe;for(var fe=GD(o),q=u;q<s;q++){var Ne=H_(i[q]);o&&Ne&&(Qf(Ne,We)||Qf(Ne,tt))&&(Ne=xe),T[q]=Ne?gn(Ne,Kc(i,T)):fe}return T.length=i.length,T}return r&&r.slice()}function Ku(r){var i=Da(r);if(!i.resolvedSignature){var t=[],o=0,s=0,u=void 0,T=!1,q=e.getImmediatelyInvokedFunctionExpression(r),fe=e.isJSDocConstructSignature(r),Ne=!q&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);Ne&&(o|=32);for(var $e=fe?1:0;$e<r.parameters.length;$e++){var Ze=r.parameters[$e],lr=Ze.symbol,yr=e.isJSDocParameterTag(Ze)?Ze.typeExpression&&Ze.typeExpression.type:Ze.type;if(lr&&!!(lr.flags&4)&&!e.isBindingPattern(Ze.name)){var Zr=os(Ze,lr.escapedName,111551,void 0,void 0,!1);lr=Zr}$e===0&&lr.escapedName==="this"?(T=!0,u=Ze.symbol):t.push(lr),yr&&yr.kind===195&&(o|=2);var ui=zg(Ze)||Ze.initializer||Ze.questionToken||e.isRestParameter(Ze)||q&&t.length>q.arguments.length&&!yr||Nm(Ze);ui||(s=t.length)}if((r.kind===171||r.kind===172)&&Pp(r)&&(!T||!u)){var Ii=r.kind===171?172:171,Fi=e.getDeclarationOfKind(It(r),Ii);Fi&&(u=K(Fi))}var Ri=r.kind===170?Pn(Wn(r.parent.symbol)):void 0,Xi=Ri?Ri.localTypeParameters:ih(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&Jv(r,t))&&(o|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,128)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,128))&&(o|=4),i.resolvedSignature=Pu(r,Xi,u,t,void 0,void 0,s,o)}return i.resolvedSignature}function Jv(r,i){if(e.isJSDocSignature(r)||!L1(r))return!1;var t=e.lastOrUndefined(r.parameters),o=t?e.getJSDocParameterTags(t):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(T){return T.typeExpression&&e.isJSDocVariadicType(T.typeExpression.type)?T.typeExpression.type:void 0}),u=bo(3,"args",32768);return u.type=s?tc(Ua(s.type)):Ki,s&&i.pop(),i.push(u),!0}function Wg(r){if(!!(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r))){var i=e.getJSDocTypeTag(r);return(i==null?void 0:i.typeExpression)&&jd(Ua(i.typeExpression))}}function th(r,i){var t=Wg(r);if(!!t){var o=r.parameters.indexOf(i);return i.dotDotDotToken?um(t,o):Hu(t,o)}}function M1(r){var i=Wg(r);return i&&So(i)}function L1(r){var i=Da(r);return i.containsArgumentsReference===void 0&&(i.flags&8192?i.containsArgumentsReference=!0:i.containsArgumentsReference=t(r.body)),i.containsArgumentsReference;function t(o){if(!o)return!1;switch(o.kind){case 79:return o.escapedText===ci.escapedName&&_v(o)===ci;case 166:case 168:case 171:case 172:return o.name.kind===161&&t(o.name);case 205:case 206:return t(o.expression);case 294:return t(o.initializer);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,t)}}}function Ip(r){if(!r||!r.declarations)return e.emptyArray;for(var i=[],t=0;t<r.declarations.length;t++){var o=r.declarations[t];if(!!e.isFunctionLike(o)){if(t>0&&o.body){var s=r.declarations[t-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}i.push(Ku(o))}}return i}function FT(r){var i=ko(r,r);if(i){var t=Fs(i);if(t)return Jt(t)}return xe}function ld(r){if(r.thisParameter)return Jt(r.thisParameter)}function wu(r){if(!r.resolvedTypePredicate){if(r.target){var i=wu(r.target);r.resolvedTypePredicate=i?_8(i,r.mapper):Cn}else if(r.compositeSignatures)r.resolvedTypePredicate=E3(r.compositeSignatures,r.compositeKind)||Cn;else{var t=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),o=void 0;if(!t&&e.isInJSFile(r.declaration)){var s=Wg(r.declaration);s&&r!==s&&(o=wu(s))}r.resolvedTypePredicate=t&&e.isTypePredicateNode(t)?JN(t,r):o||Cn}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Cn?void 0:r.resolvedTypePredicate}function JN(r,i){var t=r.parameterName,o=r.type&&Ua(r.type);return t.kind===191?tg(r.assertsModifier?2:0,void 0,void 0,o):tg(r.assertsModifier?3:1,t.escapedText,e.findIndex(i.parameters,function(s){return s.escapedName===t.escapedText}),o)}function MT(r,i,t){return i!==2097152?ba(r,t):To(r)}function So(r){if(!r.resolvedReturnType){if(!ku(r,3))return Oe;var i=r.target?gn(So(r.target),r.mapper):r.compositeSignatures?gn(MT(e.map(r.compositeSignatures,So),r.compositeKind,2),r.mapper):ag(r.declaration)||(e.nodeIsMissing(r.declaration.body)?xe:f0(r.declaration));if(r.flags&8?i=pE(i):r.flags&16&&(i=$f(i)),!eu()){if(r.declaration){var t=e.getEffectiveReturnTypeNode(r.declaration);if(t)Wr(t,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Tr){var o=r.declaration,s=e.getNameOfDeclaration(o);s?Wr(s,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(s)):Wr(o,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}i=xe}r.resolvedReturnType=i}return r.resolvedReturnType}function ag(r){if(r.kind===170)return Pn(Wn(r.parent.symbol));if(e.isJSDocConstructSignature(r))return Ua(r.parameters[0].type);var i=e.getEffectiveReturnTypeNode(r);if(i)return Ua(i);if(r.kind===171&&Pp(r)){var t=e.isInJSFile(r)&&Au(r);if(t)return t;var o=e.getDeclarationOfKind(It(r),172),s=d(o);if(s)return s}return M1(r)}function R1(r){return!r.resolvedReturnType&&vf(r,3)>=0}function jN(r){return LT(r)||xe}function LT(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]),t=Ln(i)?zm(i):i;return t&&fl(t,Ui)}}function jv(r,i,t,o){var s=B1(r,S_(i,r.typeParameters,Ol(r.typeParameters),t));if(o){var u=RC(So(s));if(u){var T=Zd(u);T.typeParameters=o;var q=Zd(s);return q.resolvedReturnType=qg(T),q}}return s}function B1(r,i){var t=r.instantiations||(r.instantiations=new e.Map),o=bu(i),s=t.get(o);return s||t.set(o,s=ah(r,i)),s}function ah(r,i){return ug(r,UN(r,i),!0)}function UN(r,i){return Kc(r.typeParameters,i)}function wm(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=zN(r)):r}function zN(r){return ug(r,jx(r.typeParameters),!0)}function WN(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=qN(r)):r}function qN(r){return jv(r,e.map(r.typeParameters,function(i){return i.target&&!qc(i.target)?i.target:i}),e.isInJSFile(r.declaration))}function VN(r){var i=r.typeParameters;if(i){if(r.baseSignatureCache)return r.baseSignatureCache;for(var t=jx(i),o=Kc(i,e.map(i,function(T){return qc(T)||We})),s=e.map(i,function(T){return gn(T,o)||We}),u=0;u<i.length-1;u++)s=x_(s,o);return s=x_(s,t),r.baseSignatureCache=ug(r,Kc(i,s),!0)}return r}function qg(r){if(!r.isolatedSignatureType){var i=r.declaration?r.declaration.kind:0,t=i===170||i===174||i===179,o=Uc(16);o.members=he,o.properties=e.emptyArray,o.callSignatures=t?e.emptyArray:[r],o.constructSignatures=t?[r]:e.emptyArray,o.indexInfos=e.emptyArray,r.isolatedSignatureType=o}return r.isolatedSignatureType}function RT(r){return r.members?J1(r.members):void 0}function J1(r){return r.get("__index")}function Fl(r,i,t,o){return{keyType:r,type:i,isReadonly:t,declaration:o}}function BT(r){var i=RT(r);return i?JT(i):e.emptyArray}function JT(r){if(r.declarations){for(var i=[],t=function(T){if(T.parameters.length===1){var q=T.parameters[0];q.type&&md(Ua(q.type),function(fe){nh(fe)&&!Du(i,fe)&&i.push(Fl(fe,T.type?Ua(T.type):xe,e.hasEffectiveModifier(T,64),T))})}},o=0,s=r.declarations;o<s.length;o++){var u=s[o];t(u)}return i}return e.emptyArray}function nh(r){return!!(r.flags&4108)||Qg(r)||!!(r.flags&2097152)&&!Rm(r)&&e.some(r.types,nh)}function jT(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function KN(r){var i,t;if(!((i=r.symbol)===null||i===void 0)&&i.declarations)for(var o=0,s=r.symbol.declarations;o<s.length;o++){var u=s[o];if(u.parent.kind===189){var T=e.walkUpParenthesizedTypesAndGetParentAndChild(u.parent.parent),q=T[0],fe=q===void 0?u.parent:q,Ne=T[1];if(Ne.kind===177){var $e=Ne,Ze=Qb($e);if(Ze){var lr=$e.typeArguments.indexOf(fe);if(lr<Ze.length){var yr=qc(Ze[lr]);if(yr){var Zr=Kc(Ze,d0($e,Ze)),ui=gn(yr,Zr);ui!==r&&(t=e.append(t,ui))}}}}else if(Ne.kind===163&&Ne.dotDotDotToken||Ne.kind===185||Ne.kind===196&&Ne.dotDotDotToken)t=e.append(t,tc(We));else if(Ne.kind===198)t=e.append(t,ki);else if(Ne.kind===162&&Ne.parent.kind===194)t=e.append(t,Pi);else if(Ne.kind===194&&Ne.type&&e.skipParentheses(Ne.type)===u.parent&&Ne.parent.kind===188&&Ne.parent.extendsType===Ne&&Ne.parent.checkType.kind===194&&Ne.parent.checkType.type){var Ii=Ne.parent.checkType,Fi=Ua(Ii.type);t=e.append(t,gn(Fi,Rd(Tf(It(Ii.typeParameter)),Ii.typeParameter.constraint?Ua(Ii.typeParameter.constraint):Pi)))}}}return t&&To(t)}function Vg(r){if(!r.constraint)if(r.target){var i=qc(r.target);r.constraint=i?gn(i,r.mapper):Rn}else{var t=jT(r);if(!t)r.constraint=KN(r)||Rn;else{var o=Ua(t);o.flags&1&&!ra(o)&&(o=t.parent.parent.kind===194?Pi:We),r.constraint=o}}return r.constraint===Rn?void 0:r.constraint}function UT(r){var i=e.getDeclarationOfKind(r.symbol,162),t=e.isJSDocTemplateTag(i.parent)?e.getEffectiveContainerForJSDocTemplateTag(i.parent):i.parent;return t&&It(t)}function bu(r){var i="";if(r)for(var t=r.length,o=0;o<t;){for(var s=r[o].id,u=1;o+u<t&&r[o+u].id===s+u;)u++;i.length&&(i+=","),i+=s,u>1&&(i+=":"+u),o+=u}return i}function ng(r,i){return r?"@".concat(f(r))+(i?":".concat(bu(i)):""):""}function j1(r,i){for(var t=0,o=0,s=r;o<s.length;o++){var u=s[o];u.flags&i||(t|=e.getObjectFlags(u))}return t&917504}function Hf(r,i){var t=bu(i),o=r.instantiations.get(t);return o||(o=Uc(4,r.symbol),r.instantiations.set(t,o),o.objectFlags|=i?j1(i,0):0,o.target=r,o.resolvedTypeArguments=i),o}function zT(r){var i=bs(r.flags);return i.symbol=r.symbol,i.objectFlags=r.objectFlags,i.target=r.target,i.resolvedTypeArguments=r.resolvedTypeArguments,i}function U1(r,i,t,o,s){if(!o){o=Ld(i);var u=og(o);s=t?x_(u,t):u}var T=Uc(4,r.symbol);return T.target=r,T.node=i,T.mapper=t,T.aliasSymbol=o,T.aliasTypeArguments=s,T}function Co(r){var i,t;if(!r.resolvedTypeArguments){if(!ku(r,6))return((i=r.target.localTypeParameters)===null||i===void 0?void 0:i.map(function(){return Oe}))||e.emptyArray;var o=r.node,s=o?o.kind===177?e.concatenate(r.target.outerTypeParameters,d0(o,r.target.localTypeParameters)):o.kind===182?[Ua(o.elementType)]:e.map(o.elements,Ua):e.emptyArray;eu()?r.resolvedTypeArguments=r.mapper?x_(s,r.mapper):s:(r.resolvedTypeArguments=((t=r.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return Oe}))||e.emptyArray,Wr(r.node||er,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Ga(r.target.symbol)))}return r.resolvedTypeArguments}function Q_(r){return e.length(r.target.typeParameters)}function WT(r,i){var t=Io(Wn(i)),o=t.localTypeParameters;if(o){var s=e.length(r.typeArguments),u=Ol(o),T=e.isInJSFile(r),q=!Tr&&T;if(!q&&(s<u||s>o.length)){var fe=T&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),Ne=u===o.length?fe?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:fe?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,$e=ht(t,void 0,2);if(Wr(r,Ne,$e,u,o.length),!T)return Oe}if(r.kind===177&&lx(r,e.length(r.typeArguments)!==o.length))return U1(t,r,void 0);var Ze=e.concatenate(t.outerTypeParameters,S_(uh(r),o,u,T));return Hf(t,Ze)}return wp(r,i)?t:Oe}function Kg(r,i,t,o){var s=Io(r);if(s===Or&&I.has(r.escapedName)&&i&&i.length===1)return fh(r,i[0]);var u=Ma(r),T=u.typeParameters,q=bu(i)+ng(t,o),fe=u.instantiations.get(q);return fe||u.instantiations.set(q,fe=qx(s,Kc(T,S_(i,T,Ol(T),e.isInJSFile(r.valueDeclaration))),t,o)),fe}function GN(r,i){if(e.getCheckFlags(i)&1048576){var t=uh(r),o=ng(i,t),s=v.get(o);return s||(s=ss(1,"error"),s.aliasSymbol=i,s.aliasTypeArguments=t,v.set(o,s)),s}var u=Io(i),T=Ma(i).typeParameters;if(T){var q=e.length(r.typeArguments),fe=Ol(T);if(q<fe||q>T.length)return Wr(r,fe===T.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ga(i),fe,T.length),Oe;var Ne=Ld(r),$e=Ne&&(qT(i)||!qT(Ne))?Ne:void 0;return Kg(i,uh(r),$e,og($e))}return wp(r,i)?u:Oe}function qT(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i.find(e.isTypeAlias);return!!(t&&e.getContainingFunction(t))}function HN(r){switch(r.kind){case 177:return r.typeName;case 227:var i=r.expression;if(e.isEntityNameExpression(i))return i}}function VT(r){return r.parent?"".concat(VT(r.parent),".").concat(r.escapedName):r.escapedName}function oh(r){var i=r.kind===160?r.right:r.kind===205?r.name:r,t=i.escapedText;if(t){var o=r.kind===160?oh(r.left):r.kind===205?oh(r.expression):void 0,s=o?"".concat(VT(o),".").concat(t):t,u=Me.get(s);return u||(Me.set(s,u=bo(524288,t,1048576)),u.parent=o,u.declaredType=Fr),u}return hr}function Gg(r,i,t){var o=HN(r);if(!o)return hr;var s=Ps(o,i,t);return s&&s!==hr?s:t?hr:oh(o)}function sh(r,i){if(i===hr)return Oe;if(i=cf(i)||i,i.flags&96)return WT(r,i);if(i.flags&524288)return GN(r,i);var t=Qd(i);if(t)return wp(r,i)?Vc(t):Oe;if(i.flags&111551&&ch(r)){var o=XN(r,i);return o||(Gg(r,788968),Jt(i))}return Oe}function XN(r,i){var t=Da(r);if(!t.resolvedJSDocType){var o=Jt(i),s=o;if(i.valueDeclaration){var u=r.kind===199&&r.qualifier;o.symbol&&o.symbol!==i&&u&&(s=sh(r,o.symbol))}t.resolvedJSDocType=s}return t.resolvedJSDocType}function KT(r,i){if(i.flags&3||i===r)return r;var t="".concat(Gu(r),">").concat(Gu(i)),o=Ye.get(t);if(o)return o;var s=bs(33554432);return s.baseType=r,s.substitute=i,Ye.set(t,s),s}function GT(r){return r.kind===183&&r.elements.length===1}function HT(r,i,t){return GT(i)&>(t)?HT(r,i.elements[0],t.elements[0]):Op(Ua(i))===Op(r)?Ua(t):void 0}function XT(r,i){for(var t,o=!0;i&&!e.isStatement(i)&&i.kind!==318;){var s=i.parent;if(s.kind===163&&(o=!o),(o||r.flags&8650752)&&s.kind===188&&i===s.trueType){var u=HT(r,s.checkType,s.extendsType);u&&(t=e.append(t,u))}i=s}return t?KT(r,To(e.append(t,r))):r}function ch(r){return!!(r.flags&4194304)&&(r.kind===177||r.kind===199)}function wp(r,i){return r.typeArguments?(Wr(r,e.Diagnostics.Type_0_is_not_generic,i?Ga(i):r.typeName?e.declarationNameToString(r.typeName):O),!1):!0}function QT(r){if(e.isIdentifier(r.typeName)){var i=r.typeArguments;switch(r.typeName.escapedText){case"String":return wp(r),ki;case"Number":return wp(r),Ui;case"Boolean":return wp(r),xt;case"Void":return wp(r),Vt;case"Undefined":return wp(r),Nr;case"Null":return wp(r),Ti;case"Function":case"function":return wp(r),Ka;case"array":return(!i||!i.length)&&!Tr?Ki:void 0;case"promise":return(!i||!i.length)&&!Tr?dy(xe):void 0;case"Object":if(i&&i.length===2){if(e.isJSDocIndexSignature(r)){var t=Ua(i[0]),o=Ua(i[1]),s=t===ki||t===Ui?[Fl(t,o,!1)]:e.emptyArray;return _s(void 0,he,e.emptyArray,e.emptyArray,s)}return xe}return wp(r),Tr?void 0:xe}}}function QN(r){var i=Ua(r.type);return ur?Eh(i,65536):i}function Uv(r){var i=Da(r);if(!i.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return i.resolvedSymbol=hr,i.resolvedType=js(r.parent.expression);var t=void 0,o=void 0,s=788968;ch(r)&&(o=QT(r),o||(t=Gg(r,s,!0),t===hr?t=Gg(r,s|111551):Gg(r,s),o=sh(r,t))),o||(t=Gg(r,s),o=sh(r,t)),i.resolvedSymbol=t,i.resolvedType=o}return i.resolvedType}function uh(r){return e.map(r.typeArguments,Ua)}function YT(r){var i=Da(r);if(!i.resolvedType){var t=e.isThisIdentifier(r.exprName)?ay(r.exprName):hn(r.exprName);i.resolvedType=Vc(Hc(t))}return i.resolvedType}function $T(r,i){function t(s){var u=s.declarations;if(u)for(var T=0,q=u;T<q.length;T++){var fe=q[T];switch(fe.kind){case 256:case 257:case 259:return fe}}}if(!r)return i?qr:tt;var o=Io(r);return o.flags&524288?e.length(o.typeParameters)!==i?(Wr(t(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),i),i?qr:tt):o:(Wr(t(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),i?qr:tt)}function ZT(r,i){return Om(r,111551,i?e.Diagnostics.Cannot_find_global_value_0:void 0)}function ex(r,i){return Om(r,788968,i?e.Diagnostics.Cannot_find_global_type_0:void 0)}function z1(r,i,t){var o=Om(r,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0);if(o&&(Io(o),e.length(Ma(o).typeParameters)!==i)){var s=o.declarations&&e.find(o.declarations,e.isTypeAliasDeclaration);Wr(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(o),i);return}return o}function Om(r,i,t){return os(void 0,r,i,t,r,!1,!1,!1)}function fc(r,i,t){var o=ex(r,t);return o||t?$T(o,i):void 0}function YN(){return as||(as=fc("TypedPropertyDescriptor",1,!0)||qr)}function $N(){return co||(co=fc("TemplateStringsArray",0,!0)||tt)}function rx(){return De||(De=fc("ImportMeta",0,!0)||tt)}function ZN(){if(!zr){var r=bo(0,"ImportMetaExpression"),i=rx(),t=bo(4,"meta",8);t.parent=r,t.type=i;var o=e.createSymbolTable([t]);r.members=o,zr=_s(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}return zr}function ix(r){return xi||(xi=fc("ImportCallOptions",0,r))||tt}function tx(r){return Ta||(Ta=ZT("Symbol",r))}function e3(r){return In||(In=ex("SymbolConstructor",r))}function ax(r){return so||(so=fc("Symbol",0,r))||tt}function zv(r){return Ho||(Ho=fc("Promise",1,r))||qr}function nx(r){return Ds||(Ds=fc("PromiseLike",1,r))||qr}function W1(r){return Os||(Os=ZT("Promise",r))}function r3(r){return mc||(mc=fc("PromiseConstructorLike",0,r))||tt}function i3(r){return An||(An=fc("AsyncIterable",1,r))||qr}function t3(r){return Pa||(Pa=fc("AsyncIterator",3,r))||qr}function a3(r){return Mn||(Mn=fc("AsyncIterableIterator",1,r))||qr}function n3(r){return ao||(ao=fc("AsyncGenerator",3,r))||qr}function ox(r){return Hs||(Hs=fc("Iterable",1,r))||qr}function o3(r){return Mi||(Mi=fc("Iterator",3,r))||qr}function s3(r){return $t||($t=fc("IterableIterator",1,r))||qr}function c3(r){return ga||(ga=fc("Generator",3,r))||qr}function u3(r){return xn||(xn=fc("IteratorYieldResult",1,r))||qr}function l3(r){return yn||(yn=fc("IteratorReturnResult",1,r))||qr}function sx(r,i){i===void 0&&(i=0);var t=Om(r,788968,void 0);return t&&$T(t,i)}function f3(){return et||(et=z1("Extract",2,!0)||hr),et===hr?void 0:et}function _3(){return je||(je=z1("Omit",2,!0)||hr),je===hr?void 0:je}function q1(r){return ti||(ti=z1("Awaited",1,r)||(r?hr:void 0)),ti===hr?void 0:ti}function p3(r){return mt||(mt=fc("BigInt",0,r))||tt}function Fm(r,i){return r!==qr?Hf(r,i):tt}function cx(r){return Fm(YN(),[r])}function d3(r){return Fm(ox(!0),[r])}function tc(r,i){return Fm(i?Ee:h,[r])}function V1(r){switch(r.kind){case 184:return 2;case 185:return ux(r);case 196:return r.questionToken?2:r.dotDotDotToken?ux(r):1;default:return 1}}function ux(r){return Vv(r.type)?4:8}function g3(r){var i=v3(r.parent),t=Vv(r);if(t)return i?Ee:h;var o=e.map(r.elements,V1),s=e.some(r.elements,function(u){return u.kind!==196});return K1(o,i,s?void 0:r.elements)}function lx(r,i){return!!Ld(r)||fx(r)&&(r.kind===182?T_(r.elementType):r.kind===183?e.some(r.elements,T_):i||e.some(r.typeArguments,T_))}function fx(r){var i=r.parent;switch(i.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return fx(i);case 258:return!0}return!1}function T_(r){switch(r.kind){case 177:return ch(r)||!!(Gg(r,788968).flags&524288);case 180:return!0;case 192:return r.operator!==153&&T_(r.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return T_(r.type);case 185:return r.type.kind!==182||T_(r.type.elementType);case 186:case 187:return e.some(r.types,T_);case 193:return T_(r.objectType)||T_(r.indexType);case 188:return T_(r.checkType)||T_(r.extendsType)||T_(r.trueType)||T_(r.falseType)}return!1}function m3(r){var i=Da(r);if(!i.resolvedType){var t=g3(r);if(t===qr)i.resolvedType=tt;else if(!(r.kind===183&&e.some(r.elements,function(s){return!!(V1(s)&8)}))&&lx(r))i.resolvedType=r.kind===183&&r.elements.length===0?t:U1(t,r,void 0);else{var o=r.kind===182?[Ua(r.elementType)]:e.map(r.elements,Ua);i.resolvedType=G1(t,o)}}return i.resolvedType}function v3(r){return e.isTypeOperatorNode(r)&&r.operator===144}function Ml(r,i,t,o){t===void 0&&(t=!1);var s=K1(i||e.map(r,function(u){return 1}),t,o);return s===qr?tt:r.length?G1(s,r):s}function K1(r,i,t){if(r.length===1&&r[0]&4)return i?Ee:h;var o=e.map(r,function(u){return u&1?"#":u&2?"?":u&4?".":"*"}).join()+(i?"R":"")+(t&&t.length?","+e.map(t,A).join(","):""),s=li.get(o);return s||li.set(o,s=y3(r,i,t)),s}function y3(r,i,t){var o=r.length,s=e.countWhere(r,function(Ii){return!!(Ii&9)}),u,T=[],q=0;if(o){u=new Array(o);for(var fe=0;fe<o;fe++){var Ne=u[fe]=vu(),$e=r[fe];if(q|=$e,!(q&12)){var Ze=bo(4|($e&2?16777216:0),""+fe,i?8:0);Ze.tupleLabelDeclaration=t==null?void 0:t[fe],Ze.type=Ne,T.push(Ze)}}}var lr=T.length,yr=bo(4,"length");if(q&12)yr.type=Ui;else{for(var Zr=[],fe=s;fe<=o;fe++)Zr.push(xf(fe));yr.type=ba(Zr)}T.push(yr);var ui=Uc(12);return ui.typeParameters=u,ui.outerTypeParameters=void 0,ui.localTypeParameters=u,ui.instantiations=new e.Map,ui.instantiations.set(bu(ui.typeParameters),ui),ui.target=ui,ui.resolvedTypeArguments=ui.typeParameters,ui.thisType=vu(),ui.thisType.isThisType=!0,ui.thisType.constraint=ui,ui.declaredProperties=T,ui.declaredCallSignatures=e.emptyArray,ui.declaredConstructSignatures=e.emptyArray,ui.declaredIndexInfos=e.emptyArray,ui.elementFlags=r,ui.minLength=s,ui.fixedLength=lr,ui.hasRestElement=!!(q&12),ui.combinedFlags=q,ui.readonly=i,ui.labeledElementDeclarations=t,ui}function G1(r,i){return r.objectFlags&8?_x(r,i):Hf(r,i)}function _x(r,i){var t,o,s;if(!(r.combinedFlags&14))return Hf(r,i);if(r.combinedFlags&8){var u=e.findIndex(i,function(Fi,Ri){return!!(r.elementFlags[Ri]&8&&Fi.flags&1179648)});if(u>=0)return Wv(e.map(i,function(Fi,Ri){return r.elementFlags[Ri]&8?Fi:We}))?Cs(i[u],function(Fi){return _x(r,e.replaceElement(i,u,Fi))}):Oe}for(var T=[],q=[],fe=[],Ne=-1,$e=-1,Ze=-1,lr=function(Fi){var Ri=i[Fi],Xi=r.elementFlags[Fi];if(Xi&8)if(Ri.flags&58982400||Fc(Ri))Ii(Ri,8,(t=r.labeledElementDeclarations)===null||t===void 0?void 0:t[Fi]);else if(Ln(Ri)){var ea=Co(Ri);if(ea.length+T.length>=1e4)return Wr(er,e.isPartOfTypeNode(er)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Oe};e.forEach(ea,function(lt,Ia){var fa;return Ii(lt,Ri.target.elementFlags[Ia],(fa=Ri.target.labeledElementDeclarations)===null||fa===void 0?void 0:fa[Ia])})}else Ii(ap(Ri)&&fl(Ri,Ui)||Oe,4,(o=r.labeledElementDeclarations)===null||o===void 0?void 0:o[Fi]);else Ii(Ri,Xi,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[Fi])},yr=0;yr<i.length;yr++){var Zr=lr(yr);if(typeof Zr=="object")return Zr.value}for(var yr=0;yr<Ne;yr++)q[yr]&2&&(q[yr]=1);$e>=0&&$e<Ze&&(T[$e]=ba(e.sameMap(T.slice($e,Ze+1),function(Fi,Ri){return q[$e+Ri]&8?Mc(Fi,Ui):Fi})),T.splice($e+1,Ze-$e),q.splice($e+1,Ze-$e),fe==null||fe.splice($e+1,Ze-$e));var ui=K1(q,r.readonly,fe);return ui===qr?tt:q.length?Hf(ui,T):ui;function Ii(Fi,Ri,Xi){Ri&1&&(Ne=q.length),Ri&4&&$e<0&&($e=q.length),Ri&6&&(Ze=q.length),T.push(Fi),q.push(Ri),fe&&Xi?fe.push(Xi):fe=void 0}}function Mm(r,i,t){t===void 0&&(t=0);var o=r.target,s=Q_(r)-t;return i>o.fixedLength?tI(r)||Ml(e.emptyArray):Ml(Co(r).slice(i,s),o.elementFlags.slice(i,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(i,s))}function px(r){return ba(e.append(e.arrayOf(r.target.fixedLength,function(i){return Ou(""+i)}),Ll(r.target.readonly?Ee:h)))}function dx(r,i){var t=e.findIndex(r.elementFlags,function(o){return!(o&i)});return t>=0?t:r.elementFlags.length}function lh(r,i){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(t){return!(t&i)})-1}function h3(r){return Ec(Ua(r.type),!0)}function Gu(r){return r.id}function Y_(r,i){return e.binarySearch(r,i,Gu,e.compareValues)>=0}function H1(r,i){var t=e.binarySearch(r,i,Gu,e.compareValues);return t<0?(r.splice(~t,0,i),!0):!1}function D3(r,i,t){var o=t.flags;if(o&1048576)return gx(r,i|(x3(t)?1048576:0),t.types);if(!(o&131072))if(i|=o&205258751,o&465829888&&(i|=33554432),t===Je&&(i|=8388608),!ur&&o&98304)e.getObjectFlags(t)&131072||(i|=4194304);else{var s=r.length,u=s&&t.id>r[s-1].id?~s:e.binarySearch(r,t,Gu,e.compareValues);u<0&&r.splice(~u,0,t)}return i}function gx(r,i,t){for(var o=0,s=t;o<s.length;o++){var u=s[o];i=D3(r,i,u)}return i}function b3(r,i){var t=bu(r),o=Be.get(t);if(o)return o;for(var s=i&&e.some(r,function(Ii){return!!(Ii.flags&524288)&&!Fc(Ii)&&hD(Vu(Ii))}),u=r.length,T=u,q=0;T>0;){T--;var fe=r[T];if(s||fe.flags&469499904)for(var Ne=fe.flags&61603840?e.find(_o(fe),function(Ii){return Rl(Jt(Ii))}):void 0,$e=Ne&&Vc(Jt(Ne)),Ze=0,lr=r;Ze<lr.length;Ze++){var yr=lr[Ze];if(fe!==yr){if(q===1e5){var Zr=q/(u-T)*u;if(Zr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Ii){return Ii.id})}),Wr(er,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(q++,Ne&&yr.flags&61603840){var ui=ai(yr,Ne.escapedName);if(ui&&Rl(ui)&&Vc(ui)!==$e)continue}if(Yf(fe,yr,vr)&&(!(e.getObjectFlags(bf(fe))&1)||!(e.getObjectFlags(bf(yr))&1)||lg(fe,yr))){e.orderedRemoveItemAt(r,T);break}}}}return Be.set(t,r),r}function S3(r,i,t){for(var o=r.length;o>0;){o--;var s=r[o],u=s.flags,T=u&402653312&&i&4||u&256&&i&8||u&2048&&i&64||u&8192&&i&4096||t&&u&32768&&i&16384||Mp(s)&&Y_(r,s.regularType);T&&e.orderedRemoveItemAt(r,o)}}function T3(r){var i=e.filter(r,Qg);if(i.length)for(var t=r.length,o=function(){t--;var s=r[t];s.flags&128&&e.some(i,function(u){return TE(s,u)})&&e.orderedRemoveItemAt(r,t)};t>0;)o()}function x3(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function mx(r,i){for(var t=0,o=i;t<o.length;t++){var s=o[t];if(s.flags&1048576){var u=s.origin;s.aliasSymbol||u&&!(u.flags&1048576)?e.pushIfUnique(r,s):u&&u.flags&1048576&&mx(r,u.types)}}}function X1(r,i){var t=zu(r);return t.types=i,t}function ba(r,i,t,o,s){if(i===void 0&&(i=1),r.length===0)return St;if(r.length===1)return r[0];var u=[],T=gx(u,0,r);if(i!==0){if(T&3)return T&1?T&8388608?Je:xe:T&65536||Y_(u,We)?We:mr;if(Ce&&T&32768){var q=e.binarySearch(u,mi,Gu,e.compareValues);q>=0&&Y_(u,Nr)&&e.orderedRemoveItemAt(u,q)}if((T&402664320||T&16384&&T&32768)&&S3(u,T,!!(i&2)),T&128&&T&134217728&&T3(u),i===2&&(u=b3(u,!!(T&524288)),!u))return Oe;if(u.length===0)return T&65536?T&4194304?Ti:hi:T&32768?T&4194304?Nr:Ur:St}if(!s&&T&1048576){var fe=[];mx(fe,r);for(var Ne=[],$e=function(Ri){e.some(fe,function(Xi){return Y_(Xi.types,Ri)})||Ne.push(Ri)},Ze=0,lr=u;Ze<lr.length;Ze++){var yr=lr[Ze];$e(yr)}if(!t&&fe.length===1&&Ne.length===0)return fe[0];var Zr=e.reduceLeft(fe,function(Ri,Xi){return Ri+Xi.types.length},0);if(Zr+Ne.length===u.length){for(var ui=0,Ii=fe;ui<Ii.length;ui++){var yr=Ii[ui];H1(Ne,yr)}s=X1(1048576,Ne)}}var Fi=(T&36323363?0:65536)|(T&2097152?33554432:0);return Y1(u,Fi,t,o,s)}function E3(r,i){for(var t,o=[],s=0,u=r;s<u.length;s++){var T=u[s],q=wu(T);if(!q||q.kind===2||q.kind===3){if(i!==2097152)continue;return}if(t){if(!Q1(t,q))return}else t=q;o.push(q.type)}if(!!t){var fe=MT(o,i);return tg(t.kind,t.parameterName,t.parameterIndex,fe)}}function Q1(r,i){return r.kind===i.kind&&r.parameterIndex===i.parameterIndex}function Y1(r,i,t,o,s){if(r.length===0)return St;if(r.length===1)return r[0];var u=s?s.flags&1048576?"|".concat(bu(s.types)):s.flags&2097152?"&".concat(bu(s.types)):"#".concat(s.type.id,"|").concat(bu(r)):bu(r),T=u+ng(t,o),q=Si.get(T);return q||(q=bs(1048576),q.objectFlags=i|j1(r,98304),q.types=r,q.origin=s,q.aliasSymbol=t,q.aliasTypeArguments=o,r.length===2&&r[0].flags&512&&r[1].flags&512&&(q.flags|=16,q.intrinsicName="boolean"),Si.set(T,q)),q}function C3(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);i.resolvedType=ba(e.map(r.types,Ua),1,t,og(t))}return i.resolvedType}function k3(r,i,t){var o=t.flags;return o&2097152?vx(r,i,t.types):(Yx(t)?i&16777216||(i|=16777216,r.set(t.id.toString(),t)):(o&3?t===Je&&(i|=8388608):(ur||!(o&98304))&&(Ce&&t===mi&&(i|=262144,t=Nr),r.has(t.id.toString())||(t.flags&109440&&i&109440&&(i|=67108864),r.set(t.id.toString(),t))),i|=o&205258751),i)}function vx(r,i,t){for(var o=0,s=t;o<s.length;o++){var u=s[o];i=k3(r,i,Vc(u))}return i}function A3(r,i){for(var t=r.length;t>0;){t--;var o=r[t],s=o.flags&4&&i&128||o.flags&8&&i&256||o.flags&64&&i&2048||o.flags&4096&&i&8192;s&&e.orderedRemoveItemAt(r,t)}}function P3(r,i){for(var t=0,o=r;t<o.length;t++){var s=o[t];if(!Y_(s.types,i)){var u=i.flags&128?ki:i.flags&256?Ui:i.flags&2048?zi:i.flags&8192?ua:void 0;if(!u||!Y_(s.types,u))return!1}}return!0}function N3(r){for(var i=r.length,t=e.filter(r,function(q){return!!(q.flags&128)});i>0;){i--;var o=r[i];if(!!(o.flags&134217728))for(var s=0,u=t;s<u.length;s++){var T=u[s];if(E_(T,o)){e.orderedRemoveItemAt(r,i);break}else if(Qg(o))return!0}}return!1}function yx(r,i){return e.every(r,function(t){return!!(t.flags&1048576)&&e.some(t.types,function(o){return!!(o.flags&i)})})}function hx(r,i){for(var t=0;t<r.length;t++)r[t]=pc(r[t],function(o){return!(o.flags&i)})}function I3(r){var i,t=e.findIndex(r,function(lr){return!!(e.getObjectFlags(lr)&65536)});if(t<0)return!1;for(var o=t+1;o<r.length;){var s=r[o];e.getObjectFlags(s)&65536?((i||(i=[r[t]])).push(s),e.orderedRemoveItemAt(r,o)):o++}if(!i)return!1;for(var u=[],T=[],q=0,fe=i;q<fe.length;q++)for(var Ne=fe[q],$e=0,Ze=Ne.types;$e<Ze.length;$e++){var s=Ze[$e];H1(u,s)&&P3(i,s)&&H1(T,s)}return r[t]=Y1(T,65536),!0}function w3(r,i,t){var o=bs(2097152);return o.objectFlags=j1(r,98304),o.types=r,o.aliasSymbol=i,o.aliasTypeArguments=t,o}function To(r,i,t){var o=new e.Map,s=vx(o,0,r),u=e.arrayFrom(o.values());if(s&131072)return e.contains(u,Ci)?Ci:St;if(ur&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&N3(u))return St;if(s&1)return s&8388608?Je:xe;if(!ur&&s&98304)return s&32768?Nr:Ti;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&A3(u,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(u,e.findIndex(u,Yx)),s&262144&&(u[u.indexOf(Nr)]=mi),u.length===0)return We;if(u.length===1)return u[0];var T=bu(u)+ng(i,t),q=qi.get(T);if(!q){if(s&1048576)if(I3(u))q=To(u,i,t);else if(yx(u,32768)){var fe=Ce&&e.some(u,function(Ze){return Y_(Ze.types,mi)})?mi:Nr;hx(u,32768),q=ba([To(u),fe],1,i,t)}else if(yx(u,65536))hx(u,65536),q=ba([To(u),Ti],1,i,t);else{if(!Wv(u))return Oe;var Ne=O3(u),$e=e.some(Ne,function(Ze){return!!(Ze.flags&2097152)})?X1(2097152,u):void 0;q=ba(Ne,1,i,t,$e)}else q=w3(u,i,t);qi.set(T,q)}return q}function Dx(r){return e.reduceLeft(r,function(i,t){return t.flags&1048576?i*t.types.length:t.flags&131072?0:i},1)}function Wv(r){var i=Dx(r);return i>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(t){return t.id}),size:i}),Wr(er,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function O3(r){for(var i=Dx(r),t=[],o=0;o<i;o++){for(var s=r.slice(),u=o,T=r.length-1;T>=0;T--)if(r[T].flags&1048576){var q=r[T].types,fe=q.length;s[T]=q[u%fe],u=Math.floor(u/fe)}var Ne=To(s);Ne.flags&131072||t.push(Ne)}return t}function F3(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);i.resolvedType=To(e.map(r.types,Ua),t,og(t))}return i.resolvedType}function bx(r,i){var t=bs(4194304);return t.type=r,t.stringsOnly=i,t}function M3(r){var i=zu(4194304);return i.type=r,i}function Sx(r,i){return i?r.resolvedStringIndexType||(r.resolvedStringIndexType=bx(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=bx(r,!1))}function L3(r,i,t){var o=Nu(r),s=Iu(r),u=h_(r.target||r);if(!u&&!t)return s;var T=[];if(Mg(r)){if(fd(s))return Sx(r,i);var q=$(Lg(r));Mv(q,8576,i,Ne)}else md(cd(s),Ne);fd(s)&&md(s,Ne);var fe=t?pc(ba(T),function($e){return!($e.flags&5)}):ba(T);if(fe.flags&1048576&&s.flags&1048576&&bu(fe.types)===bu(s.types))return s;return fe;function Ne($e){var Ze=u?gn(u,Jm(r.mapper,o,$e)):$e;T.push(Ze===ki?oa:Ze)}}function R3(r){var i=Nu(r);return t(h_(r)||i);function t(o){return o.flags&68157439?!0:o.flags&16777216?o.root.isDistributive&&o.checkType===i:o.flags&137363456?e.every(o.types,t):o.flags&8388608?t(o.objectType)&&t(o.indexType):o.flags&33554432?t(o.substitute):o.flags&268435456?t(o.type):!1}}function $_(r){return e.isPrivateIdentifier(r)?St:e.isIdentifier(r)?Ou(e.unescapeLeadingUnderscores(r.escapedText)):Vc(e.isComputedPropertyName(r)?Zf(r):hn(r))}function Hg(r,i,t){if(t||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var o=Ma(Og(r)).nameType;if(!o){var s=e.getNameOfDeclaration(r.valueDeclaration);o=r.escapedName==="default"?Ou("default"):s&&$_(s)||(e.isKnownSymbol(r)?void 0:Ou(e.symbolName(r)))}if(o&&o.flags&i)return o}return St}function Tx(r,i){return!!(r.flags&i||r.flags&2097152&&e.some(r.types,function(t){return Tx(t,i)}))}function B3(r,i,t){var o=t&&(e.getObjectFlags(r)&7||r.aliasSymbol)?M3(r):void 0,s=e.map(_o(r),function(T){return Hg(T,i)}),u=e.map(Js(r),function(T){return T!==rn&&Tx(T.keyType,i)?T.keyType===ki&&i&8?oa:T.keyType:St});return ba(e.concatenate(s,u),1,void 0,void 0,o)}function Ll(r,i,t){return i===void 0&&(i=br),r=Lt(r),r.flags&1048576?To(e.map(r.types,function(o){return Ll(o,i,t)})):r.flags&2097152?ba(e.map(r.types,function(o){return Ll(o,i,t)})):r.flags&58982400||em(r)||Fc(r)&&!R3(r)?Sx(r,i):e.getObjectFlags(r)&32?L3(r,i,t):r===Je?Je:r.flags&2?St:r.flags&131073?Pi:B3(r,(t?128:402653316)|(i?0:12584),i===br&&!t)}function xx(r){if(br)return r;var i=f3();return i?Kg(i,[r,ki]):ki}function J3(r){var i=xx(Ll(r));return i.flags&131072?ki:i}function j3(r){var i=Da(r);if(!i.resolvedType)switch(r.operator){case 140:i.resolvedType=Ll(Ua(r.type));break;case 153:i.resolvedType=r.type.kind===150?uD(e.walkUpParenthesizedTypes(r.parent)):Oe;break;case 144:i.resolvedType=Ua(r.type);break;default:throw e.Debug.assertNever(r.operator)}return i.resolvedType}function U3(r){var i=Da(r);return i.resolvedType||(i.resolvedType=Xg(qe([r.head.text],e.map(r.templateSpans,function(t){return t.literal.text}),!0),e.map(r.templateSpans,function(t){return Ua(t.type)}))),i.resolvedType}function Xg(r,i){var t=e.findIndex(i,function(Ne){return!!(Ne.flags&1179648)});if(t>=0)return Wv(i)?Cs(i[t],function(Ne){return Xg(r,e.replaceElement(i,t,Ne))}):Oe;if(e.contains(i,Je))return Je;var o=[],s=[],u=r[0];if(!fe(r,i))return ki;if(o.length===0)return Ou(u);if(s.push(u),e.every(s,function(Ne){return Ne===""})&&e.every(o,function(Ne){return!!(Ne.flags&4)}))return ki;var T="".concat(bu(o),"|").concat(e.map(s,function(Ne){return Ne.length}).join(","),"|").concat(s.join("")),q=di.get(T);return q||di.set(T,q=W3(s,o)),q;function fe(Ne,$e){for(var Ze=0;Ze<$e.length;Ze++){var lr=$e[Ze];if(lr.flags&101248)u+=z3(lr)||"",u+=Ne[Ze+1];else if(lr.flags&134217728){if(u+=lr.texts[0],!fe(lr.texts,lr.types))return!1;u+=Ne[Ze+1]}else if(fd(lr)||Cx(lr))o.push(lr),s.push(u),u=Ne[Ze+1];else return!1}return!0}}function z3(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function W3(r,i){var t=bs(134217728);return t.texts=r,t.types=i,t}function fh(r,i){return i.flags&1179648?Cs(i,function(t){return fh(r,t)}):fd(i)?V3(r,i):i.flags&128?Ou(q3(r,i.value)):i}function q3(r,i){switch(I.get(r.escapedName)){case 0:return i.toUpperCase();case 1:return i.toLowerCase();case 2:return i.charAt(0).toUpperCase()+i.slice(1);case 3:return i.charAt(0).toLowerCase()+i.slice(1)}return i}function V3(r,i){var t="".concat(f(r),",").concat(Gu(i)),o=X.get(t);return o||X.set(t,o=K3(r,i)),o}function K3(r,i){var t=bs(268435456);return t.symbol=r,t.type=i,t}function G3(r,i,t,o,s){var u=bs(8388608);return u.objectType=r,u.indexType=i,u.accessFlags=t,u.aliasSymbol=o,u.aliasTypeArguments=s,u}function Lm(r){if(Tr)return!1;if(e.getObjectFlags(r)&8192)return!0;if(r.flags&1048576)return e.every(r.types,Lm);if(r.flags&2097152)return e.some(r.types,Lm);if(r.flags&465829888){var i=Pm(r);return i!==r&&Lm(i)}return!1}function $1(r,i){return ul(r)?Nl(r):i&&e.isPropertyName(i)?e.getPropertyNameForPropertyNameNode(i):void 0}function Z1(r,i){if(i.flags&8208){var t=e.findAncestor(r.parent,function(o){return!e.isAccessExpression(o)})||r.parent;return e.isCallLikeExpression(t)?e.isCallOrNewExpression(t)&&e.isIdentifier(r)&&IE(t,r):e.every(i.declarations,function(o){return!e.isFunctionLike(o)||!!(e.getCombinedNodeFlags(o)&134217728)})}return!0}function Ex(r,i,t,o,s,u){var T,q=s&&s.kind===206?s:void 0,fe=s&&e.isPrivateIdentifier(s)?void 0:$1(t,s);if(fe!==void 0){if(u&256)return yd(i,fe)||xe;var Ne=tn(i,fe);if(Ne){if(u&64&&s&&Ne.declarations&&Qc(Ne)&&Z1(s,Ne)){var $e=(T=q==null?void 0:q.argumentExpression)!==null&&T!==void 0?T:e.isIndexedAccessTypeNode(s)?s.indexType:s;fu($e,Ne.declarations,fe)}if(q){if(ly(Ne,q,IC(q.expression,i.symbol)),mk(q,Ne,e.getAssignmentTargetKind(q))){Wr(q.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ga(Ne));return}if(u&8&&(Da(s).resolvedSymbol=Ne),xC(q,Ne))return ze}var Ze=Jt(Ne);return q&&e.getAssignmentTargetKind(q)!==1?op(q,Ze):Ze}if(kf(i,Ln)&&e.isNumericLiteralName(fe)&&+fe>=0){if(s&&kf(i,function(lt){return!lt.target.hasRestElement})&&!(u&16)){var lr=eD(s);Ln(i)?Wr(lr,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ht(i),Q_(i),e.unescapeLeadingUnderscores(fe)):Wr(lr,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),ht(i))}return ea(kc(i,Ui)),Cs(i,function(lt){var Ia=zm(lt)||Nr;return u&1?ba([Ia,Nr]):Ia})}}if(!(t.flags&98304)&&ws(t,402665900)){if(i.flags&131073)return i;var yr=ig(i,t)||kc(i,ki);if(yr){if(u&2&&yr.keyType!==Ui){q&&Wr(q,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ht(t),ht(r));return}if(s&&yr.keyType===ki&&!ws(t,12)){var lr=eD(s);return Wr(lr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ht(t)),u&1?ba([yr.type,Nr]):yr.type}return ea(yr),u&1?ba([yr.type,Nr]):yr.type}if(t.flags&131072)return St;if(Lm(i))return xe;if(q&&!Wb(i)){if(Bp(i)){if(Tr&&t.flags&384)return ya.add(e.createDiagnosticForNode(q,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,ht(i))),Nr;if(t.flags&12){var Zr=e.map(i.properties,function(lt){return Jt(lt)});return ba(e.append(Zr,Nr))}}if(i.symbol===Rr&&fe!==void 0&&Rr.exports.has(fe)&&Rr.exports.get(fe).flags&418)Wr(q,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),ht(i));else if(Tr&&!ye.suppressImplicitAnyIndexErrors&&!(u&128))if(fe!==void 0&&AC(fe,i)){var ui=ht(i);Wr(q,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,ui,ui+"["+e.getTextOfNode(q.argumentExpression)+"]")}else if(fl(i,Ui))Wr(q.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Ii=void 0;if(fe!==void 0&&(Ii=kb(fe,i)))Ii!==void 0&&Wr(q.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,fe,ht(i),Ii);else{var Fi=N5(i,q,t);if(Fi!==void 0)Wr(q,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ht(i),Fi);else{var Ri=void 0;if(t.flags&1024)Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ht(t)+"]",ht(i));else if(t.flags&8192){var Xi=ts(t.symbol,q);Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Xi+"]",ht(i))}else t.flags&128||t.flags&256?Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,ht(i)):t.flags&12&&(Ri=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ht(t),ht(i)));Ri=e.chainDiagnosticMessages(Ri,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ht(o),ht(i)),ya.add(e.createDiagnosticForNodeFromMessageChain(q,Ri))}}}return}}if(Lm(i))return xe;if(s){var lr=eD(s);t.flags&384?Wr(lr,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+t.value,ht(i)):t.flags&12?Wr(lr,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ht(i),ht(t)):Wr(lr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ht(t))}if(At(t))return t;return;function ea(lt){lt&<.isReadonly&&q&&(e.isAssignmentTarget(q)||e.isDeleteTarget(q))&&Wr(q,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(i))}}function eD(r){return r.kind===206?r.argumentExpression:r.kind===193?r.indexType:r.kind===161?r.expression:r}function Cx(r){return!!(r.flags&77)}function Qg(r){return!!(r.flags&134217728)&&e.every(r.types,Cx)}function Rm(r){return!!Bm(r)}function Md(r){return!!(Bm(r)&8388608)}function fd(r){return!!(Bm(r)&16777216)}function Bm(r){return r.flags&3145728?(r.objectFlags&4194304||(r.objectFlags|=4194304|e.reduceLeft(r.types,function(i,t){return i|Bm(t)},0)),r.objectFlags&25165824):r.flags&33554432?(r.objectFlags&4194304||(r.objectFlags|=4194304|Bm(r.substitute)|Bm(r.baseType)),r.objectFlags&25165824):(r.flags&58982400||Fc(r)||em(r)?8388608:0)|(r.flags&465829888&&!Qg(r)?16777216:0)}function Xf(r,i){return r.flags&8388608?X3(r,i):r.flags&16777216?Q3(r,i):r}function kx(r,i,t){if(r.flags&3145728){var o=e.map(r.types,function(s){return Xf(Mc(s,i),t)});return r.flags&2097152||t?To(o):ba(o)}}function H3(r,i,t){if(i.flags&1048576){var o=e.map(i.types,function(s){return Xf(Mc(r,s),t)});return t?To(o):ba(o)}}function X3(r,i){var t=i?"simplifiedForWriting":"simplifiedForReading";if(r[t])return r[t]===Sn?r:r[t];r[t]=Sn;var o=Xf(r.objectType,i),s=Xf(r.indexType,i),u=H3(o,s,i);if(u)return r[t]=u;if(!(s.flags&465829888)){var T=kx(o,s,i);if(T)return r[t]=T}if(em(o)&&s.flags&296){var q=xh(o,s.flags&8?0:o.target.fixedLength,0,i);if(q)return r[t]=q}return Fc(o)?r[t]=Cs(_h(o,r.indexType),function(fe){return Xf(fe,i)}):r[t]=r}function Q3(r,i){var t=r.checkType,o=r.extendsType,s=ep(r),u=rp(r);if(u.flags&131072&&Op(s)===Op(t)){if(t.flags&1||oo(dd(t),dd(o)))return Xf(s,i);if(Ax(t,o))return St}else if(s.flags&131072&&Op(u)===Op(t)){if(!(t.flags&1)&&oo(dd(t),dd(o)))return St;if(t.flags&1||Ax(t,o))return Xf(u,i)}return r}function Ax(r,i){return!!(ba([eg(r,i),St]).flags&131072)}function _h(r,i){var t=Kc([Nu(r)],[i]),o=pd(r.mapper,t);return gn(wl(r),o)}function Mc(r,i,t,o,s,u){return t===void 0&&(t=0),Z_(r,i,t,o,s,u)||(o?Oe:We)}function Px(r,i){return kf(r,function(t){if(t.flags&384){var o=Nl(t);if(e.isNumericLiteralName(o)){var s=+o;return s>=0&&s<i}}return!1})}function Z_(r,i,t,o,s,u){if(t===void 0&&(t=0),r===Je||i===Je)return Je;if($x(r)&&!(i.flags&98304)&&ws(i,12)&&(i=ki),ye.noUncheckedIndexedAccess&&t&32&&(t|=1),fd(i)||(o&&o.kind!==193?em(r)&&!Px(i,r.target.fixedLength):Md(r)&&!(Ln(r)&&Px(i,r.target.fixedLength)))){if(r.flags&3)return r;var T=t&1,q=r.id+","+i.id+","+T+ng(s,u),fe=Ji.get(q);return fe||Ji.set(q,fe=G3(r,i,T,s,u)),fe}var Ne=pr(r);if(i.flags&1048576&&!(i.flags&16)){for(var $e=[],Ze=!1,lr=0,yr=i.types;lr<yr.length;lr++){var Zr=yr[lr],ui=Ex(r,Ne,Zr,i,o,t|(Ze?128:0));if(ui)$e.push(ui);else if(o)Ze=!0;else return}return Ze?void 0:t&4?To($e,s,u):ba($e,1,s,u)}return Ex(r,Ne,i,i,o,t|8|64)}function Nx(r){var i=Da(r);if(!i.resolvedType){var t=Ua(r.objectType),o=Ua(r.indexType),s=Ld(r),u=Mc(t,o,0,r,s,og(s));i.resolvedType=u.flags&8388608&&u.objectType===t&&u.indexType===o?XT(u,r):u}return i.resolvedType}function rD(r){var i=Da(r);if(!i.resolvedType){var t=Uc(32,r.symbol);t.declaration=r,t.aliasSymbol=Ld(r),t.aliasTypeArguments=og(t.aliasSymbol),i.resolvedType=t,Iu(t)}return i.resolvedType}function Op(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Mc(Op(r.objectType),Op(r.indexType)):r}function Ix(r){return!r.isDistributive&&wx(r.node.checkType)&&wx(r.node.extendsType)}function wx(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])}function iD(r,i){return Ix(r)&&Ln(i)?Co(i)[0]:i}function tD(r,i,t,o){for(var s,u,T=0;;){if(T===1e3){Wr(er,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=Oe;break}var q=Ix(r),fe=gn(iD(r,Op(r.checkType)),i),Ne=Rm(fe),$e=gn(iD(r,r.extendsType),i);if(fe===Je||$e===Je)return Je;var Ze=void 0;if(r.inferTypeParameters){var lr=qm(r.inferTypeParameters,void 0,0);Ne||Cf(lr.inferences,fe,$e,1536),Ze=i?pd(lr.mapper,i):lr.mapper}var yr=Ze?gn(iD(r,r.extendsType),Ze):$e;if(!Ne&&!Rm(yr)){if(!(yr.flags&3)&&(fe.flags&1&&!q||!oo(hh(fe),hh(yr)))){fe.flags&1&&!q&&(u||(u=[])).push(gn(Ua(r.node.trueType),Ze||i));var Zr=Ua(r.node.falseType);if(Zr.flags&16777216){var ui=Zr.root;if(ui.node.parent===r.node&&(!ui.isDistributive||ui.checkType===r.checkType)){r=ui;continue}if(Ri(Zr,i))continue}s=gn(Zr,i);break}if(yr.flags&3||oo(dd(fe),dd(yr))){var Ii=Ua(r.node.trueType),Fi=Ze||i;if(Ri(Ii,Fi))continue;s=gn(Ii,Fi);break}}s=bs(16777216),s.root=r,s.checkType=gn(r.checkType,i),s.extendsType=gn(r.extendsType,i),s.mapper=i,s.combinedMapper=Ze,s.aliasSymbol=t||r.aliasSymbol,s.aliasTypeArguments=t?o:x_(r.aliasTypeArguments,i);break}return u?ba(e.append(u,s)):s;function Ri(Xi,ea){if(Xi.flags&16777216&&ea){var lt=Xi.root;if(lt.outerTypeParameters){var Ia=pd(Xi.mapper,ea),fa=e.map(lt.outerTypeParameters,function(Bn){return ip(Bn,Ia)}),Dn=Kc(lt.outerTypeParameters,fa),Ra=lt.isDistributive?ip(lt.checkType,Dn):void 0;if(!Ra||Ra===lt.checkType||!(Ra.flags&1179648))return r=lt,i=Dn,t=void 0,o=void 0,lt.aliasSymbol&&T++,!0}}return!1}}function ep(r){return r.resolvedTrueType||(r.resolvedTrueType=gn(Ua(r.root.node.trueType),r.mapper))}function rp(r){return r.resolvedFalseType||(r.resolvedFalseType=gn(Ua(r.root.node.falseType),r.mapper))}function Y3(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?gn(Ua(r.root.node.trueType),r.combinedMapper):ep(r))}function Ox(r){var i;return r.locals&&r.locals.forEach(function(t){t.flags&262144&&(i=e.append(i,Io(t)))}),i}function $3(r){return r.isDistributive&&(yh(r.checkType,r.node.trueType)||yh(r.checkType,r.node.falseType))}function Z3(r){var i=Da(r);if(!i.resolvedType){var t=Ua(r.checkType),o=Ld(r),s=og(o),u=Od(r,!0),T=s?u:e.filter(u,function(fe){return yh(fe,r)}),q={node:r,checkType:t,extendsType:Ua(r.extendsType),isDistributive:!!(t.flags&262144),inferTypeParameters:Ox(r),outerTypeParameters:T,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s};i.resolvedType=tD(q,void 0),T&&(q.instantiations=new e.Map,q.instantiations.set(bu(T),i.resolvedType))}return i.resolvedType}function e8(r){var i=Da(r);return i.resolvedType||(i.resolvedType=Tf(It(r.typeParameter))),i.resolvedType}function Fx(r){return e.isIdentifier(r)?[r]:e.append(Fx(r.left),r.right)}function r8(r){var i=Da(r);if(!i.resolvedType){if(r.isTypeOf&&r.typeArguments)return Wr(r,e.Diagnostics.Type_arguments_cannot_be_used_here),i.resolvedSymbol=hr,i.resolvedType=Oe;if(!e.isLiteralImportTypeNode(r))return Wr(r.argument,e.Diagnostics.String_literal_expected),i.resolvedSymbol=hr,i.resolvedType=Oe;var t=r.isTypeOf?111551:r.flags&4194304?900095:788968,o=ko(r,r.argument.literal);if(!o)return i.resolvedSymbol=hr,i.resolvedType=Oe;var s=Fs(o,!1);if(e.nodeIsMissing(r.qualifier))if(s.flags&t)i.resolvedType=Mx(r,i,s,t);else{var Ze=t===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Wr(r,Ze,r.argument.literal.text),i.resolvedSymbol=hr,i.resolvedType=Oe}else{for(var u=Fx(r.qualifier),T=s,q=void 0;q=u.shift();){var fe=u.length?1920:t,Ne=Wn(Qo(T)),$e=r.isTypeOf?tn(Jt(Ne),q.escapedText):Pc(Ns(Ne),q.escapedText,fe);if(!$e)return Wr(q,e.Diagnostics.Namespace_0_has_no_exported_member_1,ts(T),e.declarationNameToString(q)),i.resolvedType=Oe;Da(q).resolvedSymbol=$e,Da(q.parent).resolvedSymbol=$e,T=$e}i.resolvedType=Mx(r,i,T,t)}}return i.resolvedType}function Mx(r,i,t,o){var s=Qo(t);return i.resolvedSymbol=s,o===111551?Jt(t):sh(r,s)}function Lx(r){var i=Da(r);if(!i.resolvedType){var t=Ld(r);if(Il(r.symbol).size===0&&!t)i.resolvedType=on;else{var o=Uc(16,r.symbol);o.aliasSymbol=t,o.aliasTypeArguments=og(t),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(o=tc(o)),i.resolvedType=o}}return i.resolvedType}function Ld(r){for(var i=r.parent;e.isParenthesizedTypeNode(i)||e.isJSDocTypeExpression(i)||e.isTypeOperatorNode(i)&&i.operator===144;)i=i.parent;return e.isTypeAlias(i)?It(i):void 0}function og(r){return r?Sf(r):void 0}function aD(r){return!!(r.flags&524288)&&!Fc(r)}function nD(r){return Ef(r)||!!(r.flags&474058748)}function oD(r,i){if(!(r.flags&1048576))return r;if(e.every(r.types,nD))return e.find(r.types,Ef)||tt;var t=e.find(r.types,function(u){return!nD(u)});if(!t)return r;var o=e.find(r.types,function(u){return u!==t&&!nD(u)});if(o)return r;return s(t);function s(u){for(var T=e.createSymbolTable(),q=0,fe=_o(u);q<fe.length;q++){var Ne=fe[q];if(!(e.getDeclarationModifierFlagsFromSymbol(Ne)&24)){if(ph(Ne)){var $e=Ne.flags&65536&&!(Ne.flags&32768),Ze=16777220,lr=bo(Ze,Ne.escapedName,km(Ne)|(i?8:0));lr.type=$e?Nr:Ec(Jt(Ne),!0),lr.declarations=Ne.declarations,lr.nameType=Ma(Ne).nameType,lr.syntheticOrigin=Ne,T.set(Ne.escapedName,lr)}}}var yr=_s(u.symbol,T,e.emptyArray,e.emptyArray,Js(u));return yr.objectFlags|=262272,yr}}function Fp(r,i,t,o,s){if(r.flags&1||i.flags&1)return xe;if(r.flags&2||i.flags&2)return We;if(r.flags&131072)return i;if(i.flags&131072)return r;if(r=oD(r,s),r.flags&1048576)return Wv([r,i])?Cs(r,function(lt){return Fp(lt,i,t,o,s)}):Oe;if(i=oD(i,s),i.flags&1048576)return Wv([r,i])?Cs(i,function(lt){return Fp(r,lt,t,o,s)}):Oe;if(i.flags&473960444)return r;if(Md(r)||Md(i)){if(Ef(r))return i;if(r.flags&2097152){var u=r.types,T=u[u.length-1];if(aD(T)&&aD(i))return To(e.concatenate(u.slice(0,u.length-1),[Fp(T,i,t,o,s)]))}return To([r,i])}for(var q=e.createSymbolTable(),fe=new e.Set,Ne=r===tt?Js(i):Vy([r,i]),$e=0,Ze=_o(i);$e<Ze.length;$e++){var lr=Ze[$e];e.getDeclarationModifierFlagsFromSymbol(lr)&24?fe.add(lr.escapedName):ph(lr)&&q.set(lr.escapedName,sD(lr,s))}for(var yr=0,Zr=_o(r);yr<Zr.length;yr++){var ui=Zr[yr];if(!(fe.has(ui.escapedName)||!ph(ui)))if(q.has(ui.escapedName)){var lr=q.get(ui.escapedName),Ii=Jt(lr);if(lr.flags&16777216){var Fi=e.concatenate(ui.declarations,lr.declarations),Ri=4|ui.flags&16777216,Xi=bo(Ri,ui.escapedName);Xi.type=ba([Jt(ui),MD(Ii)],2),Xi.leftSpread=ui,Xi.rightSpread=lr,Xi.declarations=Fi,Xi.nameType=Ma(ui).nameType,q.set(ui.escapedName,Xi)}}else q.set(ui.escapedName,sD(ui,s))}var ea=_s(t,q,e.emptyArray,e.emptyArray,e.sameMap(Ne,function(lt){return i8(lt,s)}));return ea.objectFlags|=4456576|o,ea}function ph(r){var i;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((i=r.declarations)===null||i===void 0)&&i.some(function(t){return e.isClassLike(t.parent)})))}function sD(r,i){var t=r.flags&65536&&!(r.flags&32768);if(!t&&i===zl(r))return r;var o=4|r.flags&16777216,s=bo(o,r.escapedName,km(r)|(i?8:0));return s.type=t?Nr:Jt(r),s.declarations=r.declarations,s.nameType=Ma(r).nameType,s.syntheticOrigin=r,s}function i8(r,i){return r.isReadonly!==i?Fl(r.keyType,r.type,i,r.declaration):r}function qv(r,i,t,o){var s=bs(r);return s.symbol=t,s.value=i,s.regularType=o||s,s}function sg(r){if(r.flags&2944){if(!r.freshType){var i=qv(r.flags,r.value,r.symbol,r);i.freshType=i,r.freshType=i}return r.freshType}return r}function Vc(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Cs(r,Vc)):r}function Mp(r){return!!(r.flags&2944)&&r.freshType===r}function Ou(r){var i;return ft.get(r)||(ft.set(r,i=qv(128,r)),i)}function xf(r){var i;return bt.get(r)||(bt.set(r,i=qv(256,r)),i)}function cD(r){var i,t=e.pseudoBigIntToString(r);return aa.get(t)||(aa.set(t,i=qv(2048,r)),i)}function t8(r,i,t){var o,s=typeof r=="string"?"@":"#",u=i+s+r,T=1024|(typeof r=="string"?128:256);return sr.get(u)||(sr.set(u,o=qv(T,r,t)),o)}function a8(r){if(r.literal.kind===104)return Ti;var i=Da(r);return i.resolvedType||(i.resolvedType=Vc(hn(r.literal))),i.resolvedType}function n8(r){var i=bs(8192);return i.symbol=r,i.escapedName="__@".concat(i.symbol.escapedName,"@").concat(f(i.symbol)),i}function uD(r){if(e.isValidESSymbolDeclaration(r)){var i=It(r),t=Ma(i);return t.uniqueESSymbolType||(t.uniqueESSymbolType=n8(i))}return ua}function o8(r){var i=e.getThisContainer(r,!1),t=i&&i.parent;if(t&&(e.isClassLike(t)||t.kind===257)&&!e.isStatic(i)&&(!e.isConstructorDeclaration(i)||e.isNodeDescendantOf(r,i.body)))return Pn(It(t)).thisType;if(t&&e.isObjectLiteralExpression(t)&&e.isBinaryExpression(t.parent)&&e.getAssignmentDeclarationKind(t.parent)===6)return Pn(It(t.parent.left).parent).thisType;var o=r.flags&4194304?e.getHostSignatureFromJSDoc(r):void 0;return o&&e.isFunctionExpression(o)&&e.isBinaryExpression(o.parent)&&e.getAssignmentDeclarationKind(o.parent)===3?Pn(It(o.parent.left).parent).thisType:ml(i)&&e.isNodeDescendantOf(r,i.body)?Pn(It(i)).thisType:(Wr(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Oe)}function dh(r){var i=Da(r);return i.resolvedType||(i.resolvedType=o8(r)),i.resolvedType}function Rx(r){return Ua(Vv(r.type)||r.type)}function Vv(r){switch(r.kind){case 190:return Vv(r.type);case 183:if(r.elements.length===1&&(r=r.elements[0],r.kind===185||r.kind===196&&r.dotDotDotToken))return Vv(r.type);break;case 182:return r.elementType}}function s8(r){var i=Da(r);return i.resolvedType||(i.resolvedType=r.dotDotDotToken?Rx(r):Ec(Ua(r.type),!0,!!r.questionToken))}function Ua(r){return XT(Bx(r),r)}function Bx(r){switch(r.kind){case 130:case 310:case 311:return xe;case 154:return We;case 149:return ki;case 146:return Ui;case 157:return zi;case 133:return xt;case 150:return ua;case 114:return Vt;case 152:return Nr;case 104:return Ti;case 143:return St;case 147:return r.flags&131072&&!Tr?xe:gt;case 138:return Or;case 191:case 108:return dh(r);case 195:return a8(r);case 177:return Uv(r);case 176:return r.assertsModifier?Vt:xt;case 227:return Uv(r);case 180:return YT(r);case 182:case 183:return m3(r);case 184:return h3(r);case 186:return C3(r);case 187:return F3(r);case 312:return QN(r);case 314:return Ec(Ua(r.type));case 196:return s8(r);case 190:case 313:case 307:return Ua(r.type);case 185:return Rx(r);case 316:return mM(r);case 178:case 179:case 181:case 320:case 315:case 321:return Lx(r);case 192:return j3(r);case 193:return Nx(r);case 194:return rD(r);case 188:return Z3(r);case 189:return e8(r);case 197:return U3(r);case 199:return r8(r);case 79:case 160:case 205:var i=Xu(r);return i?Io(i):Oe;default:return Oe}}function gh(r,i,t){if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o],u=t(s,i);if(s!==u){var T=o===0?[]:r.slice(0,o);for(T.push(u),o++;o<r.length;o++)T.push(t(r[o],i));return T}}return r}function x_(r,i){return gh(r,i,gn)}function mh(r,i){return gh(r,i,ug)}function Jx(r,i){return gh(r,i,D8)}function Kc(r,i){return r.length===1?Rd(r[0],i?i[0]:xe):c8(r,i)}function ip(r,i){switch(i.kind){case 0:return r===i.source?i.target:r;case 1:for(var t=i.sources,o=i.targets,s=0;s<t.length;s++)if(r===t[s])return o?o[s]:xe;return r;case 2:return i.func(r);case 3:case 4:var u=ip(r,i.mapper1);return u!==r&&i.kind===3?gn(u,i.mapper2):ip(u,i.mapper2)}}function Rd(r,i){return{kind:0,source:r,target:i}}function c8(r,i){return{kind:1,sources:r,targets:i}}function _d(r){return{kind:2,func:r}}function vh(r,i,t){return{kind:r,mapper1:i,mapper2:t}}function jx(r){return Kc(r,void 0)}function u8(r,i){return _d(function(t){return e.findIndex(r.inferences,function(o){return o.typeParameter===t})>=i?We:t})}function pd(r,i){return r?vh(3,r,i):i}function l8(r,i){return r?vh(4,r,i):i}function cg(r,i,t){return t?vh(4,Rd(r,i),t):Rd(r,i)}function Jm(r,i,t){return r?vh(4,r,Rd(i,t)):Rd(i,t)}function f8(r){return r.constraint===We?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=vu(r.symbol),r.restrictiveInstantiation.constraint=We,r.restrictiveInstantiation)}function Ux(r){var i=vu(r.symbol);return i.target=r,i}function _8(r,i){return tg(r.kind,r.parameterName,r.parameterIndex,gn(r.type,i))}function ug(r,i,t){var o;if(r.typeParameters&&!t){o=e.map(r.typeParameters,Ux),i=pd(Kc(r.typeParameters,o),i);for(var s=0,u=o;s<u.length;s++){var T=u[s];T.mapper=i}}var q=Pu(r.declaration,o,r.thisParameter&&lD(r.thisParameter,i),gh(r.parameters,i,lD),void 0,void 0,r.minArgumentCount,r.flags&39);return q.target=r,q.mapper=i,q}function lD(r,i){var t=Ma(r);if(t.type&&!Vm(t.type))return r;e.getCheckFlags(r)&1&&(r=t.target,i=pd(t.mapper,i));var o=bo(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return o.declarations=r.declarations,o.parent=r.parent,o.target=r,o.mapper=i,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),t.nameType&&(o.nameType=t.nameType),o}function p8(r,i,t,o){var s=r.objectFlags&4?r.node:r.symbol.declarations[0],u=Da(s),T=r.objectFlags&4?u.resolvedType:r.objectFlags&64?r.target:r,q=u.outerTypeParameters;if(!q){var fe=Od(s,!0);if(ml(s)){var Ne=ih(s);fe=e.addRange(fe,Ne)}q=fe||e.emptyArray;var $e=r.objectFlags&4?[s]:r.symbol.declarations;q=(T.objectFlags&4||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?e.filter(q,function(Ri){return e.some($e,function(Xi){return yh(Ri,Xi)})}):q,u.outerTypeParameters=q}if(q.length){var Ze=pd(r.mapper,i),lr=e.map(q,function(Ri){return ip(Ri,Ze)}),yr=t||r.aliasSymbol,Zr=t?o:x_(r.aliasTypeArguments,i),ui=bu(lr)+ng(yr,Zr);T.instantiations||(T.instantiations=new e.Map,T.instantiations.set(bu(q)+ng(T.aliasSymbol,T.aliasTypeArguments),T));var Ii=T.instantiations.get(ui);if(!Ii){var Fi=Kc(q,lr);Ii=T.objectFlags&4?U1(r.target,r.node,Fi,yr,Zr):T.objectFlags&32?zx(T,Fi,yr,Zr):pD(T,Fi,yr,Zr),T.instantiations.set(ui,Ii)}return Ii}return r}function d8(r){return!(r.parent.kind===177&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===199&&r.parent.typeArguments&&r===r.parent.qualifier)}function yh(r,i){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var t=r.symbol.declarations[0].parent,o=i;o!==t;o=o.parent)if(!o||o.kind===234||o.kind===188&&e.forEachChild(o.extendsType,s))return!0;return s(i)}return!0;function s(u){switch(u.kind){case 191:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(u)&&d8(u)&&Bx(u)===r;case 180:return!0;case 168:case 167:return!u.type&&!!u.body||e.some(u.typeParameters,s)||e.some(u.parameters,s)||!!u.type&&s(u.type)}return!!e.forEachChild(u,s)}}function fD(r){var i=Iu(r);if(i.flags&4194304){var t=Op(i.type);if(t.flags&262144)return t}}function zx(r,i,t,o){var s=fD(r);if(s){var u=gn(s,i);if(s!==u)return jE(Lt(u),function(T){if(T.flags&61603843&&T!==Je&&!ra(T)){if(!r.declaration.nameType){var q=void 0;if(_c(T)||T.flags&1&&vf(s,4)<0&&(q=qc(s))&&kf(q,e.or(_c,Ln)))return m8(T,r,cg(s,T,i));if(em(T))return g8(T,r,s,i);if(Ln(T))return v8(T,r,cg(s,T,i))}return pD(r,cg(s,T,i))}return T},t,o)}return gn(Iu(r),i)===Je?Je:pD(r,i,t,o)}function _D(r,i){return i&1?!0:i&2?!1:r}function g8(r,i,t,o){var s=r.target.elementFlags,u=e.map(Co(r),function(q,fe){var Ne=s[fe]&8?q:s[fe]&4?tc(q):Ml([q],[s[fe]]);return zx(i,cg(t,Ne,o))}),T=_D(r.target.readonly,ll(i));return Ml(u,e.map(u,function(q){return 8}),T)}function m8(r,i,t){var o=Wx(i,Ui,!0,t);return ra(o)?Oe:tc(o,_D($g(r),ll(i)))}function v8(r,i,t){var o=r.target.elementFlags,s=e.map(Co(r),function(fe,Ne){return Wx(i,Ou(""+Ne),!!(o[Ne]&2),t)}),u=ll(i),T=u&4?e.map(o,function(fe){return fe&1?2:fe}):u&8?e.map(o,function(fe){return fe&2?1:fe}):o,q=_D(r.target.readonly,u);return e.contains(s,Oe)?Oe:Ml(s,T,q,r.target.labeledElementDeclarations)}function Wx(r,i,t,o){var s=Jm(o,Nu(r),i),u=gn(wl(r.target||r),s),T=ll(r);return ur&&T&4&&!ls(u,49152)?$f(u,!0):ur&&T&8&&t?$s(u,524288):u}function pD(r,i,t,o){var s=Uc(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var u=Nu(r),T=Ux(u);s.typeParameter=T,i=pd(Rd(u,T),i),T.mapper=i}return s.target=r,s.mapper=i,s.aliasSymbol=t||r.aliasSymbol,s.aliasTypeArguments=t?o:x_(r.aliasTypeArguments,i),s}function dD(r,i,t,o){var s=r.root;if(s.outerTypeParameters){var u=e.map(s.outerTypeParameters,function(Ze){return ip(Ze,i)}),T=bu(u)+ng(t,o),q=s.instantiations.get(T);if(!q){var fe=Kc(s.outerTypeParameters,u),Ne=s.checkType,$e=s.isDistributive?ip(Ne,fe):void 0;q=$e&&Ne!==$e&&$e.flags&1179648?jE($e,function(Ze){return tD(s,cg(Ne,Ze,fe))},t,o):tD(s,fe,t,o),s.instantiations.set(T,q)}return q}return r}function gn(r,i){return r&&i?qx(r,i,void 0,void 0):r}function qx(r,i,t,o){if(!Vm(r))return r;if(me===100||gr>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:me,instantiationCount:gr}),Wr(er,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Oe;ar++,gr++,me++;var s=y8(r,i,t,o);return me--,s}function y8(r,i,t,o){var s=r.flags;if(s&262144)return ip(r,i);if(s&524288){var u=r.objectFlags;if(u&52){if(u&4&&!r.node){var T=r.resolvedTypeArguments,q=x_(T,i);return q!==T?G1(r.target,q):r}return u&1024?h8(r,i):p8(r,i,t,o)}return r}if(s&3145728){var fe=r.flags&1048576?r.origin:void 0,Ne=fe&&fe.flags&3145728?fe.types:r.types,$e=x_(Ne,i);if($e===Ne&&t===r.aliasSymbol)return r;var Ze=t||r.aliasSymbol,lr=t?o:x_(r.aliasTypeArguments,i);return s&2097152||fe&&fe.flags&2097152?To($e,Ze,lr):ba($e,1,Ze,lr)}if(s&4194304)return Ll(gn(r.type,i));if(s&134217728)return Xg(r.texts,x_(r.types,i));if(s&268435456)return fh(r.symbol,gn(r.type,i));if(s&8388608){var Ze=t||r.aliasSymbol,lr=t?o:x_(r.aliasTypeArguments,i);return Mc(gn(r.objectType,i),gn(r.indexType,i),r.accessFlags,void 0,Ze,lr)}if(s&16777216)return dD(r,pd(r.mapper,i),t,o);if(s&33554432){var yr=gn(r.baseType,i);if(yr.flags&8650752)return KT(yr,gn(r.substitute,i));var Zr=gn(r.substitute,i);return Zr.flags&3||oo(dd(yr),dd(Zr))?yr:Zr}return r}function h8(r,i){var t=gn(r.mappedType,i);if(!(e.getObjectFlags(t)&32))return r;var o=gn(r.constraintType,i);if(!(o.flags&4194304))return r;var s=hE(gn(r.source,i),t,o);return s||r}function hh(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=gn(r,Ct))}function dd(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=gn(r,Qr),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function D8(r,i){return Fl(r.keyType,gn(r.type,i),r.isReadonly,r.declaration)}function _l(r){switch(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),r.kind){case 212:case 213:case 168:case 255:return Vx(r);case 204:return e.some(r.properties,_l);case 203:return e.some(r.elements,_l);case 221:return _l(r.whenTrue)||_l(r.whenFalse);case 220:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(_l(r.left)||_l(r.right));case 294:return _l(r.initializer);case 211:return _l(r.expression);case 285:return e.some(r.properties,_l)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,_l);case 284:{var i=r.initializer;return!!i&&_l(i)}case 287:{var t=r.expression;return!!t&&_l(t)}}return!1}function Vx(r){return(!e.isFunctionDeclaration(r)||e.isInJSFile(r)&&!!Au(r))&&(e.hasContextSensitiveParameters(r)||b8(r))}function b8(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==234&&_l(r.body)}function gD(r){return(e.isInJSFile(r)&&e.isFunctionDeclaration(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&Vx(r)}function Kx(r){if(r.flags&524288){var i=Vu(r);if(i.constructSignatures.length||i.callSignatures.length){var t=Uc(16,r.symbol);return t.members=i.members,t.properties=i.properties,t.callSignatures=e.emptyArray,t.constructSignatures=e.emptyArray,t.indexInfos=e.emptyArray,t}}else if(r.flags&2097152)return To(e.map(r.types,Kx));return r}function Qf(r,i){return Yf(r,i,nt)}function jm(r,i){return Yf(r,i,nt)?-1:0}function mD(r,i){return Yf(r,i,Sr)?-1:0}function S8(r,i){return Yf(r,i,Te)?-1:0}function E_(r,i){return Yf(r,i,Te)}function oo(r,i){return Yf(r,i,Sr)}function lg(r,i){return r.flags&1048576?e.every(r.types,function(t){return lg(t,i)}):i.flags&1048576?e.some(i.types,function(t){return lg(r,t)}):r.flags&58982400?lg(Cc(r)||We,i):i===Ht?!!(r.flags&67633152):i===Ka?!!(r.flags&524288)&&QD(r):nd(r,bf(i))||_c(i)&&!$g(i)&&lg(r,Ee)}function Yg(r,i){return Yf(r,i,Di)}function Dh(r,i){return Yg(r,i)||Yg(i,r)}function Gc(r,i,t,o,s,u){return pl(r,i,Sr,t,o,s,u)}function tp(r,i,t,o,s,u){return vD(r,i,Sr,t,o,s,u,void 0)}function vD(r,i,t,o,s,u,T,q){return Yf(r,i,t)?!0:!o||!Kv(s,r,i,t,u,T,q)?pl(r,i,t,o,u,T,q):!1}function Gx(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,Gx))}function Kv(r,i,t,o,s,u,T){if(!r||Gx(t))return!1;if(!pl(i,t,o,void 0)&&T8(r,i,t,o,s,u,T))return!0;switch(r.kind){case 287:case 211:return Kv(r.expression,i,t,o,s,u,T);case 220:switch(r.operatorToken.kind){case 63:case 27:return Kv(r.right,i,t,o,s,u,T)}break;case 204:return w8(r,i,t,o,u,T);case 203:return N8(r,i,t,o,u,T);case 285:return P8(r,i,t,o,u,T);case 213:return x8(r,i,t,o,u,T)}return!1}function T8(r,i,t,o,s,u,T){for(var q=za(i,0),fe=za(i,1),Ne=0,$e=[fe,q];Ne<$e.length;Ne++){var Ze=$e[Ne];if(e.some(Ze,function(Zr){var ui=So(Zr);return!(ui.flags&131073)&&pl(ui,t,o,void 0)})){var lr=T||{};Gc(i,t,r,s,u,lr);var yr=lr.errors[lr.errors.length-1];return e.addRelatedInfo(yr,e.createDiagnosticForNode(r,Ze===fe?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function x8(r,i,t,o,s,u){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var T=jd(i);if(!T)return!1;var q=za(t,0);if(!e.length(q))return!1;var fe=r.body,Ne=So(T),$e=ba(e.map(q,So));if(!pl(Ne,$e,o,void 0)){var Ze=fe&&Kv(fe,Ne,$e,o,void 0,s,u);if(Ze)return Ze;var lr=u||{};if(pl(Ne,$e,o,fe,void 0,s,lr),lr.errors)return t.symbol&&e.length(t.symbol.declarations)&&e.addRelatedInfo(lr.errors[lr.errors.length-1],e.createDiagnosticForNode(t.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(r)&2)===0&&!ai(Ne,"then")&&pl(dy(Ne),$e,o,void 0)&&e.addRelatedInfo(lr.errors[lr.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function E8(r,i,t){var o=Z_(i,t);if(o)return o;if(i.flags&1048576){var s=rE(r,i);if(s)return Z_(s,t)}}function C8(r,i){r.contextualType=i;try{return fm(r,1,i)}finally{r.contextualType=void 0}}function Um(r,i,t,o,s,u){for(var T=!1,q=r.next();!q.done;q=r.next()){var fe=q.value,Ne=fe.errorNode,$e=fe.innerExpression,Ze=fe.nameType,lr=fe.errorMessage,yr=E8(i,t,Ze);if(!(!yr||yr.flags&8388608)){var Zr=Z_(i,Ze);if(!!Zr){var ui=$1(Ze,void 0);if(!pl(Zr,yr,o,void 0)){var Ii=$e&&Kv($e,Zr,yr,o,void 0,s,u);if(T=!0,!Ii){var Fi=u||{},Ri=$e?C8($e,Zr):Zr;if(Ce&&TD(Ri,yr)){var Xi=e.createDiagnosticForNode(Ne,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ht(Ri),ht(yr));ya.add(Xi),Fi.errors=[Xi]}else{var ea=!!(ui&&(tn(t,ui)||hr).flags&16777216),lt=!!(ui&&(tn(i,ui)||hr).flags&16777216);yr=_g(yr,ea),Zr=_g(Zr,ea&<);var Ia=pl(Ri,yr,o,Ne,lr,s,Fi);Ia&&Ri!==Zr&&pl(Zr,yr,o,Ne,lr,s,Fi)}if(Fi.errors){var fa=Fi.errors[Fi.errors.length-1],Dn=ul(Ze)?Nl(Ze):void 0,Ra=Dn!==void 0?tn(t,Dn):void 0,Bn=!1;if(!Ra){var Jn=ig(t,Ze);Jn&&Jn.declaration&&!e.getSourceFileOfNode(Jn.declaration).hasNoDefaultLib&&(Bn=!0,e.addRelatedInfo(fa,e.createDiagnosticForNode(Jn.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!Bn&&(Ra&&e.length(Ra.declarations)||t.symbol&&e.length(t.symbol.declarations))){var On=Ra&&e.length(Ra.declarations)?Ra.declarations[0]:t.symbol.declarations[0];e.getSourceFileOfNode(On).hasNoDefaultLib||e.addRelatedInfo(fa,e.createDiagnosticForNode(On,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Dn&&!(Ze.flags&8192)?e.unescapeLeadingUnderscores(Dn):ht(Ze),ht(t)))}}}}}}}return T}function k8(r){var i,t,o;return wr(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];i=0,t=r.properties,s.label=1;case 1:return i<t.length?(o=t[i],e.isJsxSpreadAttribute(o)||gb(e.idText(o.name))?[3,3]:[4,{errorNode:o.name,innerExpression:o.initializer,nameType:Ou(e.idText(o.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function A8(r,i){var t,o,s,u,T;return wr(this,function(q){switch(q.label){case 0:if(!e.length(r.children))return[2];t=0,o=0,q.label=1;case 1:return o<r.children.length?(s=r.children[o],u=xf(o-t),T=Hx(s,u,i),T?[4,T]:[3,3]):[3,5];case 2:return q.sent(),[3,4];case 3:t++,q.label=4;case 4:return o++,[3,1];case 5:return[2]}})}function Hx(r,i,t){switch(r.kind){case 287:return{errorNode:r,innerExpression:r.expression,nameType:i};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:i,errorMessage:t()};case 277:case 278:case 281:return{errorNode:r,innerExpression:r,nameType:i};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function P8(r,i,t,o,s,u){var T=Um(k8(r),i,t,o,s,u),q;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var fe=r.parent.parent,Ne=Qh(yg(r)),$e=Ne===void 0?"children":e.unescapeLeadingUnderscores(Ne),Ze=Ou($e),lr=Mc(t,Ze),yr=e.getSemanticJsxChildren(fe.children);if(!e.length(yr))return T;var Zr=e.length(yr)>1,ui=pc(lr,sE),Ii=pc(lr,function(fa){return!sE(fa)});if(Zr){if(ui!==St){var Fi=Ml(Xh(fe,0)),Ri=A8(fe,Ia);T=Um(Ri,Fi,ui,o,s,u)||T}else if(!Yf(Mc(i,Ze),lr,o)){T=!0;var Xi=Wr(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,$e,ht(lr));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(Xi)}}else if(Ii!==St){var ea=yr[0],lt=Hx(ea,Ze,Ia);lt&&(T=Um(function(){return wr(this,function(fa){switch(fa.label){case 0:return[4,lt];case 1:return fa.sent(),[2]}})}(),i,t,o,s,u)||T)}else if(!Yf(Mc(i,Ze),lr,o)){T=!0;var Xi=Wr(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,$e,ht(lr));u&&u.skipLogging&&(u.errors||(u.errors=[])).push(Xi)}}return T;function Ia(){if(!q){var fa=e.getTextOfNode(r.parent.tagName),Dn=Qh(yg(r)),Ra=Dn===void 0?"children":e.unescapeLeadingUnderscores(Dn),Bn=Mc(t,Ou(Ra)),Jn=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;q=Ve(Ve({},Jn),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Jn,fa,Ra,ht(Bn))})}return q}}function Xx(r,i){var t,o,s,u;return wr(this,function(T){switch(T.label){case 0:if(t=e.length(r.elements),!t)return[2];o=0,T.label=1;case 1:return o<t?Zg(i)&&!tn(i,""+o)?[3,3]:(s=r.elements[o],e.isOmittedExpression(s)?[3,3]:(u=xf(o),[4,{errorNode:s,innerExpression:s,nameType:u}])):[3,4];case 2:T.sent(),T.label=3;case 3:return o++,[3,1];case 4:return[2]}})}function N8(r,i,t,o,s,u){if(t.flags&131068)return!1;if(Zg(i))return Um(Xx(r,t),i,t,o,s,u);var T=r.contextualType;r.contextualType=t;try{var q=oC(r,1,!0);return r.contextualType=T,Zg(q)?Um(Xx(r,t),q,t,o,s,u):!1}finally{r.contextualType=T}}function I8(r){var i,t,o,s,u;return wr(this,function(T){switch(T.label){case 0:if(!e.length(r.properties))return[2];i=0,t=r.properties,T.label=1;case 1:if(!(i<t.length))return[3,8];if(o=t[i],e.isSpreadAssignment(o))return[3,7];if(s=Hg(It(o),8576),!s||s.flags&131072)return[3,7];switch(u=o.kind,u){case 172:return[3,2];case 171:return[3,2];case 168:return[3,2];case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:o.name,innerExpression:void 0,nameType:s}];case 3:return T.sent(),[3,7];case 4:return[4,{errorNode:o.name,innerExpression:o.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(o.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return T.sent(),[3,7];case 6:e.Debug.assertNever(o),T.label=7;case 7:return i++,[3,1];case 8:return[2]}})}function w8(r,i,t,o,s,u){return t.flags&131068?!1:Um(I8(r),i,t,o,s,u)}function Qx(r,i,t,o,s){return pl(r,i,Di,t,o,s)}function O8(r,i,t){return yD(r,i,t?4:0,!1,void 0,void 0,mD,void 0)!==0}function F8(r){return!r.typeParameters&&(!r.thisParameter||At($m(r.thisParameter)))&&r.parameters.length===1&&U(r)&&($m(r.parameters[0])===Ki||At($m(r.parameters[0])))&&At(So(r))}function yD(r,i,t,o,s,u,T,q){if(r===i||F8(i))return-1;var fe=Lc(i),Ne=!Ul(i)&&(t&8?Ul(r)||Lc(r)>fe:jl(r)>fe);if(Ne)return 0;r.typeParameters&&r.typeParameters!==i.typeParameters&&(i=WN(i),r=BC(r,i,void 0,T));var $e=Lc(r),Ze=ev(r),lr=ev(i);if((Ze||lr)&&gn(Ze||lr,q),Ze&&lr&&$e!==fe)return 0;var yr=i.declaration?i.declaration.kind:0,Zr=!(t&3)&&Ir&&yr!==168&&yr!==167&&yr!==170,ui=-1,Ii=ld(r);if(Ii&&Ii!==Vt){var Fi=ld(i);if(Fi){var Ri=!Zr&&T(Ii,Fi,!1)||T(Fi,Ii,o);if(!Ri)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;ui&=Ri}}for(var Xi=Ze||lr?Math.min($e,fe):Math.max($e,fe),ea=Ze||lr?Xi-1:-1,lt=0;lt<Xi;lt++){var Ia=lt===ea?um(r,lt):hd(r,lt),fa=lt===ea?um(i,lt):hd(i,lt);if(Ia&&fa){var Dn=t&3?void 0:jd(C_(Ia)),Ra=t&3?void 0:jd(C_(fa)),Bn=Dn&&Ra&&!wu(Dn)&&!wu(Ra)&&(Fu(Ia)&98304)===(Fu(fa)&98304),Ri=Bn?yD(Ra,Dn,t&8|(Zr?2:1),o,s,u,T,q):!(t&3)&&!Zr&&T(Ia,fa,!1)||T(fa,Ia,o);if(Ri&&t&8&<>=jl(r)&<<jl(i)&&T(Ia,fa,!1)&&(Ri=0),!Ri)return o&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(cm(r,lt)),e.unescapeLeadingUnderscores(cm(i,lt))),0;ui&=Ri}}if(!(t&4)){var Jn=R1(i)?xe:i.declaration&&ml(i.declaration)?Pn(Wn(i.declaration.symbol)):So(i);if(Jn===Vt)return ui;var On=R1(r)?xe:r.declaration&&ml(r.declaration)?Pn(Wn(r.declaration.symbol)):So(r),Ao=wu(i);if(Ao){var $i=wu(r);if($i)ui&=M8($i,Ao,o,s,T);else if(e.isIdentifierTypePredicate(Ao))return o&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,kl(r)),0}else ui&=t&1&&T(Jn,On,!1)||T(On,Jn,o),!ui&&o&&u&&u(On,Jn)}return ui}function M8(r,i,t,o,s){if(r.kind!==i.kind)return t&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==i.parameterIndex)return t&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,i.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i))),0;var u=r.type===i.type?-1:r.type&&i.type?s(r.type,i.type,t):0;return u===0&&t&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Al(r),Al(i)),u}function L8(r,i){var t=wm(r),o=wm(i),s=So(t),u=So(o);return u===Vt||Yf(u,s,Sr)||Yf(s,u,Sr)?O8(t,o,!0):!1}function hD(r){return r!==bn&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function Ef(r){return r.flags&524288?!Fc(r)&&hD(Vu(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,Ef):r.flags&2097152?e.every(r.types,Ef):!1}function Yx(r){return!!(e.getObjectFlags(r)&16&&(r.members&&hD(r)||r.symbol&&r.symbol.flags&2048&&Il(r.symbol).size===0))}function $x(r){return r.flags&524288&&!Fc(r)&&_o(r).length===0&&Js(r).length===1&&!!kc(r,ki)||r.flags&3145728&&e.every(r.types,$x)||!1}function DD(r,i,t){if(r===i)return!0;var o=f(r)+","+f(i),s=_a.get(o);if(s!==void 0&&!(!(s&4)&&s&2&&t))return!!(s&1);if(r.escapedName!==i.escapedName||!(r.flags&256)||!(i.flags&256))return _a.set(o,6),!1;for(var u=Jt(i),T=0,q=_o(Jt(r));T<q.length;T++){var fe=q[T];if(fe.flags&8){var Ne=tn(u,fe.escapedName);if(!Ne||!(Ne.flags&8))return t?(t(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(fe),ht(Io(i),void 0,64)),_a.set(o,6)):_a.set(o,2),!1}}return _a.set(o,1),!0}function Gv(r,i,t,o){var s=r.flags,u=i.flags;return u&3||s&131072||r===Je?!0:u&131072?!1:!!(s&402653316&&u&4||s&128&&s&1024&&u&128&&!(u&1024)&&r.value===i.value||s&296&&u&8||s&256&&s&1024&&u&256&&!(u&1024)&&r.value===i.value||s&2112&&u&64||s&528&&u&16||s&12288&&u&4096||s&32&&u&32&&DD(r.symbol,i.symbol,o)||s&1024&&u&1024&&(s&1048576&&u&1048576&&DD(r.symbol,i.symbol,o)||s&2944&&u&2944&&r.value===i.value&&DD(Rs(r.symbol),Rs(i.symbol),o))||s&32768&&(!ur||u&49152)||s&65536&&(!ur||u&65536)||s&524288&&u&67108864||(t===Sr||t===Di)&&(s&1||s&264&&!(s&1024)&&(u&32||t===Sr&&u&256&&u&1024)))}function Yf(r,i,t){if(Mp(r)&&(r=r.regularType),Mp(i)&&(i=i.regularType),r===i)return!0;if(t!==nt){if(t===Di&&!(i.flags&131072)&&Gv(i,r,t)||Gv(r,i,t))return!0}else{if(r.flags!==i.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&i.flags&524288){var o=t.get(CD(r,i,0,t,!1));if(o!==void 0)return!!(o&1)}return r.flags&469499904||i.flags&469499904?pl(r,i,t,void 0):!1}function Zx(r,i){return e.getObjectFlags(r)&2048&&gb(i.escapedName)}function bD(r,i){for(;;){var t=Mp(r)?r.regularType:e.getObjectFlags(r)&4&&r.node?Hf(r.target,Co(r)):r.flags&3145728?Lt(r):r.flags&33554432?i?r.baseType:r.substitute:r.flags&25165824?Xf(r,i):r;if(t=PD(t)||t,t===r)break;r=t}return r}function pl(r,i,t,o,s,u,T){var q,fe,Ne,$e,Ze,lr=0,yr=0,Zr=0,ui=0,Ii=!1,Fi=0,Ri,Xi,ea=!1;e.Debug.assert(t!==nt||!o,"no error reporting in identity checking");var lt=ia(r,i,3,!!o,s);if(Xi&&Vi(),Ii){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:i.id,depth:yr,targetDepth:Zr});var Ia=Wr(o||er,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ht(r),ht(i));T&&(T.errors||(T.errors=[])).push(Ia)}else if(q){if(u){var fa=u();fa&&(e.concatenateDiagnosticMessageChains(fa,q),q=fa)}var Dn=void 0;if(s&&o&&!lt&&r.symbol){var Ra=Ma(r.symbol);if(Ra.originatingImport&&!e.isImportCall(Ra.originatingImport)){var Bn=pl(Jt(Ra.target),i,t,void 0);if(Bn){var Jn=e.createDiagnosticForNode(Ra.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Dn=e.append(Dn,Jn)}}}var Ia=e.createDiagnosticForNodeFromMessageChain(o,q,Dn);fe&&e.addRelatedInfo.apply(void 0,qe([Ia],fe,!1)),T&&(T.errors||(T.errors=[])).push(Ia),(!T||!T.skipLogging)&&ya.add(Ia)}return o&&T&&T.skipLogging&<===0&&e.Debug.assert(!!T.errors,"missed opportunity to interact with error."),lt!==0;function On(oi){q=oi.errorInfo,Ri=oi.lastSkippedInfo,Xi=oi.incompatibleStack,Fi=oi.overrideNextErrorInfo,fe=oi.relatedInfo}function Ao(){return{errorInfo:q,lastSkippedInfo:Ri,incompatibleStack:Xi==null?void 0:Xi.slice(),overrideNextErrorInfo:Fi,relatedInfo:fe==null?void 0:fe.slice()}}function $i(oi,yi,Bi,ct,at){Fi++,Ri=void 0,(Xi||(Xi=[])).push([oi,yi,Bi,ct,at])}function Vi(){var oi=Xi||[];Xi=void 0;var yi=Ri;if(Ri=void 0,oi.length===1){Ot.apply(void 0,oi[0]),yi&&Qt.apply(void 0,qe([void 0],yi,!1));return}for(var Bi="",ct=[];oi.length;){var at=oi.pop(),Gt=at[0],Wt=at.slice(1);switch(Gt.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{Bi.indexOf("new ")===0&&(Bi="(".concat(Bi,")"));var Et=""+Wt[0];Bi.length===0?Bi="".concat(Et):e.isIdentifierText(Et,e.getEmitScriptTarget(ye))?Bi="".concat(Bi,".").concat(Et):Et[0]==="["&&Et[Et.length-1]==="]"?Bi="".concat(Bi).concat(Et):Bi="".concat(Bi,"[").concat(Et,"]");break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Bi.length===0){var wa=Gt;Gt.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?wa=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(wa=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),ct.unshift([wa,Wt[0],Wt[1]])}else{var $a=Gt.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",jn=Gt.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Gt.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Bi="".concat($a).concat(Bi,"(").concat(jn,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{ct.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Wt[0],Wt[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{ct.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Wt[0],Wt[1],Wt[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(Gt.code))}}Bi?Ot(Bi[Bi.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,Bi):ct.shift();for(var Fn=0,Yn=ct;Fn<Yn.length;Fn++){var Ss=Yn[Fn],Gt=Ss[0],Wt=Ss.slice(1),ys=Gt.elidedInCompatabilityPyramid;Gt.elidedInCompatabilityPyramid=!1,Ot.apply(void 0,qe([Gt],Wt,!1)),Gt.elidedInCompatabilityPyramid=ys}yi&&Qt.apply(void 0,qe([void 0],yi,!1))}function Ot(oi,yi,Bi,ct,at){e.Debug.assert(!!o),Xi&&Vi(),!oi.elidedInCompatabilityPyramid&&(q=e.chainDiagnosticMessages(q,oi,yi,Bi,ct,at))}function Wa(oi){e.Debug.assert(!!q),fe?fe.push(oi):fe=[oi]}function Qt(oi,yi,Bi){Xi&&Vi();var ct=__(yi,Bi),at=ct[0],Gt=ct[1],Wt=yi,Et=at;if(fg(yi)&&!SD(Bi)&&(Wt=Bl(yi),e.Debug.assert(!oo(Wt,Bi),"generalized source shouldn't be assignable"),Et=Yl(Wt)),Bi.flags&262144){var wa=Cc(Bi),$a=void 0;wa&&(oo(Wt,wa)||($a=oo(yi,wa)))?Ot(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,$a?at:Et,Gt,ht(wa)):(q=void 0,Ot(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Gt,Et))}if(oi)oi===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&eE(yi,Bi).length&&(oi=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(t===Di)oi=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(at===Gt)oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&eE(yi,Bi).length)oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(yi.flags&128&&Bi.flags&1048576){var jn=I5(yi,Bi);if(jn){Ot(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Et,Gt,ht(jn));return}}oi=e.Diagnostics.Type_0_is_not_assignable_to_type_1}Ot(oi,Et,Gt)}function Qa(oi,yi){var Bi=ol(oi.symbol)?ht(oi,oi.symbol.valueDeclaration):ht(oi),ct=ol(yi.symbol)?ht(yi,yi.symbol.valueDeclaration):ht(yi);(Re===oi&&ki===yi||nr===oi&&Ui===yi||Gr===oi&&xt===yi||ax(!1)===oi&&ua===yi)&&Ot(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,ct,Bi)}function En(oi,yi,Bi){return Ln(oi)?oi.target.readonly&&Th(yi)?(Bi&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ht(oi),ht(yi)),!1):Ln(yi)||_c(yi):$g(oi)&&Th(yi)?(Bi&&Ot(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ht(oi),ht(yi)),!1):Ln(yi)?_c(oi):!0}function Gn(oi,yi,Bi){return ia(oi,yi,3,Bi)}function ia(oi,yi,Bi,ct,at,Gt){if(Bi===void 0&&(Bi=3),ct===void 0&&(ct=!1),Gt===void 0&&(Gt=0),oi.flags&524288&&yi.flags&131068)return Gv(oi,yi,t,ct?Ot:void 0)?-1:(ct&&Xn(oi,yi,oi,yi,at),0);var Wt=bD(oi,!1),Et=bD(yi,!0);if(Wt===Et)return-1;if(t===nt)return Wt.flags!==Et.flags?0:Wt.flags&67358815?-1:(ii(Wt,Et),it(Wt,Et,!1,0,Bi));if(Wt.flags&262144&&b_(Wt)===Et)return-1;if(Wt.flags&470302716&&Et.flags&1048576){var wa=Et.types,$a=wa.length===2&&wa[0].flags&98304?wa[1]:wa.length===3&&wa[0].flags&98304&&wa[1].flags&98304?wa[2]:void 0;if($a&&!($a.flags&98304)&&(Et=bD($a,!0),Wt===Et))return-1}if(t===Di&&!(Et.flags&131072)&&Gv(Et,Wt,t)||Gv(Wt,Et,t,ct?Ot:void 0))return-1;if(Wt.flags&469499904||Et.flags&469499904){var jn=!(Gt&2)&&Bp(Wt)&&e.getObjectFlags(Wt)&16384;if(jn&&Pt(Wt,Et,ct))return ct&&Qt(at,Wt,yi.aliasSymbol?yi:Et),0;var Fn=t!==Di&&!(Gt&2)&&Wt.flags&2752508&&Wt!==Ht&&Et.flags&2621440&&iE(Et)&&(_o(Wt).length>0||mS(Wt)),Yn=!!(e.getObjectFlags(Wt)&2048);if(Fn&&!B8(Wt,Et,Yn)){if(ct){var Ss=ht(oi.aliasSymbol?oi:Wt),ys=ht(yi.aliasSymbol?yi:Et),ks=za(Wt,0),Uo=za(Wt,1);ks.length>0&&ia(So(ks[0]),Et,1,!1)||Uo.length>0&&ia(So(Uo[0]),Et,1,!1)?Ot(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Ss,ys):Ot(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Ss,ys)}return 0}ii(Wt,Et);var ps=Wt.flags&1048576&&Wt.types.length<4&&!(Et.flags&1048576)||Et.flags&1048576&&Et.types.length<4&&!(Wt.flags&469499904),As=ps?Xt(Wt,Et,ct,Gt):it(Wt,Et,ct,Gt,Bi);if(As&&!ea&&(Et.flags&2097152&&(jn||Fn)||aD(Et)&&!_c(Et)&&!Ln(Et)&&Wt.flags&2097152&&$(Wt).flags&3670016&&!e.some(Wt.types,function(gi){return!!(e.getObjectFlags(gi)&524288)}))&&(ea=!0,As&=it(Wt,Et,ct,4,Bi),ea=!1),As)return As}return ct&&Xn(oi,yi,Wt,Et,at),0}function Xn(oi,yi,Bi,ct,at){var Gt=!!PD(oi),Wt=!!PD(yi);Bi=oi.aliasSymbol||Gt?oi:Bi,ct=yi.aliasSymbol||Wt?yi:ct;var Et=Fi>0;if(Et&&Fi--,Bi.flags&524288&&ct.flags&524288){var wa=q;En(Bi,ct,!0),q!==wa&&(Et=!!q)}if(Bi.flags&524288&&ct.flags&131068)Qa(Bi,ct);else if(Bi.symbol&&Bi.flags&524288&&Ht===Bi)Ot(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(e.getObjectFlags(Bi)&2048&&ct.flags&2097152){var $a=ct.types,jn=Up(w.IntrinsicAttributes,o),Fn=Up(w.IntrinsicClassAttributes,o);if(!ra(jn)&&!ra(Fn)&&(e.contains($a,jn)||e.contains($a,Fn)))return}else q=us(q,yi);if(!at&&Et){Ri=[Bi,ct];return}Qt(at,Bi,ct)}function ii(oi,yi){if(!!e.tracing&&oi.flags&3145728&&yi.flags&3145728){var Bi=oi,ct=yi;if(Bi.objectFlags&ct.objectFlags&65536)return;var at=Bi.types.length,Gt=ct.types.length;at*Gt>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:oi.id,sourceSize:at,targetId:yi.id,targetSize:Gt,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function Ar(oi,yi){var Bi=function(ct,at){var Gt;at=$(at);var Wt=at.flags&3145728?wt(at,yi):D_(at,yi),Et=Wt&&Jt(Wt)||((Gt=Np(at,yi))===null||Gt===void 0?void 0:Gt.type)||Nr;return e.append(ct,Et)};return ba(e.reduceLeft(oi,Bi,void 0)||e.emptyArray)}function Pt(oi,yi,Bi){var ct;if(!cy(yi)||!Tr&&e.getObjectFlags(yi)&8192)return!1;var at=!!(e.getObjectFlags(oi)&2048);if((t===Sr||t===Di)&&(Zv(Ht,yi)||!at&&Ef(yi)))return!1;var Gt=yi,Wt;yi.flags&1048576&&(Gt=X6(oi,yi,ia)||tL(yi),Wt=Gt.flags&1048576?Gt.types:[Gt]);for(var Et=function(Yn){if(pt(Yn,oi.symbol)&&!Zx(oi,Yn)){if(!hb(Gt,Yn.escapedName,at)){if(Bi){var Ss=pc(Gt,cy);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){Yn.valueDeclaration&&e.isJsxAttribute(Yn.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(Yn.valueDeclaration.name)&&(o=Yn.valueDeclaration.name);var ys=Ga(Yn),ks=NC(ys,Ss),Uo=ks?Ga(ks):void 0;Uo?Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ys,ht(Ss),Uo):Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,ys,ht(Ss))}else{var ps=((ct=oi.symbol)===null||ct===void 0?void 0:ct.declarations)&&e.firstOrUndefined(oi.symbol.declarations),Uo=void 0;if(Yn.valueDeclaration&&e.findAncestor(Yn.valueDeclaration,function(ka){return ka===ps})&&e.getSourceFileOfNode(ps)===e.getSourceFileOfNode(o)){var As=Yn.valueDeclaration;e.Debug.assertNode(As,e.isObjectLiteralElementLike),o=As;var gi=As.name;e.isIdentifier(gi)&&(Uo=kb(gi,Ss))}Uo!==void 0?Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ga(Yn),ht(Ss),Uo):Ot(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ga(Yn),ht(Ss))}}return{value:!0}}if(Wt&&!ia(Jt(Yn),Ar(Wt,Yn.escapedName),3,Bi))return Bi&&$i(e.Diagnostics.Types_of_property_0_are_incompatible,Ga(Yn)),{value:!0}}},wa=0,$a=_o(oi);wa<$a.length;wa++){var jn=$a[wa],Fn=Et(jn);if(typeof Fn=="object")return Fn.value}return!1}function pt(oi,yi){return oi.valueDeclaration&&yi.valueDeclaration&&oi.valueDeclaration.parent===yi.valueDeclaration}function Xt(oi,yi,Bi,ct){if(oi.flags&1048576)return t===Di?Ft(oi,yi,Bi&&!(oi.flags&131068),ct):Ai(oi,yi,Bi&&!(oi.flags&131068),ct);if(yi.flags&1048576)return Yt(rm(oi),yi,Bi&&!(oi.flags&131068)&&!(yi.flags&131068));if(yi.flags&2097152)return va(rm(oi),yi,Bi,2);if(t===Di&&yi.flags&131068){var at=e.sameMap(oi.types,rg);if(at!==oi.types&&(oi=To(at),!(oi.flags&2097152)))return ia(oi,yi,1,!1)}return Ft(oi,yi,!1,1)}function qt(oi,yi){for(var Bi=-1,ct=oi.types,at=0,Gt=ct;at<Gt.length;at++){var Wt=Gt[at],Et=Yt(Wt,yi,!1);if(!Et)return 0;Bi&=Et}return Bi}function Yt(oi,yi,Bi){var ct=yi.types;if(yi.flags&1048576){if(Y_(ct,oi))return-1;var at=PE(yi,oi);if(at){var Gt=ia(oi,at,2,!1);if(Gt)return Gt}}for(var Wt=0,Et=ct;Wt<Et.length;Wt++){var wa=Et[Wt],Gt=ia(oi,wa,2,!1);if(Gt)return Gt}if(Bi){var $a=rE(oi,yi,ia);$a&&ia(oi,$a,2,!0)}return 0}function va(oi,yi,Bi,ct){for(var at=-1,Gt=yi.types,Wt=0,Et=Gt;Wt<Et.length;Wt++){var wa=Et[Wt],$a=ia(oi,wa,2,Bi,void 0,ct);if(!$a)return 0;at&=$a}return at}function Ft(oi,yi,Bi,ct){var at=oi.types;if(oi.flags&1048576&&Y_(at,yi))return-1;for(var Gt=at.length,Wt=0;Wt<Gt;Wt++){var Et=ia(at[Wt],yi,1,Bi&&Wt===Gt-1,void 0,ct);if(Et)return Et}return 0}function pi(oi,yi){return oi.flags&1048576&&yi.flags&1048576&&!(oi.types[0].flags&32768)&&yi.types[0].flags&32768?gg(yi,-32769):yi}function Ai(oi,yi,Bi,ct){for(var at=-1,Gt=oi.types,Wt=pi(oi,yi),Et=0;Et<Gt.length;Et++){var wa=Gt[Et];if(Wt.flags&1048576&&Gt.length>=Wt.types.length&&Gt.length%Wt.types.length===0){var $a=ia(wa,Wt.types[Et%Wt.types.length],3,!1,void 0,ct);if($a){at&=$a;continue}}var jn=ia(wa,yi,1,Bi,void 0,ct);if(!jn)return 0;at&=jn}return at}function Qi(oi,yi,Bi,ct,at){if(oi===void 0&&(oi=e.emptyArray),yi===void 0&&(yi=e.emptyArray),Bi===void 0&&(Bi=e.emptyArray),oi.length!==yi.length&&t===nt)return 0;for(var Gt=oi.length<=yi.length?oi.length:yi.length,Wt=-1,Et=0;Et<Gt;Et++){var wa=Et<Bi.length?Bi[Et]:1,$a=wa&7;if($a!==4){var jn=oi[Et],Fn=yi[Et],Yn=-1;if(wa&8?Yn=t===nt?ia(jn,Fn,3,!1):jm(jn,Fn):$a===1?Yn=ia(jn,Fn,3,ct,void 0,at):$a===2?Yn=ia(Fn,jn,3,ct,void 0,at):$a===3?(Yn=ia(Fn,jn,3,!1),Yn||(Yn=ia(jn,Fn,3,ct,void 0,at))):(Yn=ia(jn,Fn,3,ct,void 0,at),Yn&&(Yn&=ia(Fn,jn,3,ct,void 0,at))),!Yn)return 0;Wt&=Yn}}return Wt}function it(oi,yi,Bi,ct,at){if(Ii)return 0;var Gt=ct|(ea?8:0),Wt=CD(oi,yi,Gt,t,!1),Et=t.get(Wt);if(Et!==void 0&&!(Bi&&Et&2&&!(Et&4))){if(Kn){var wa=Et&24;wa&8&&gn(oi,_d(kt)),wa&16&&gn(oi,_d(Ha))}return Et&1?-1:0}if(!Ne)Ne=[],$e=[],Ze=[];else{for(var $a=Wt.startsWith("*")?CD(oi,yi,Gt,t,!0):void 0,jn=0;jn<lr;jn++)if(Wt===Ne[jn]||$a&&$a===Ne[jn])return 3;if(yr===100||Zr===100)return Ii=!0,0}var Fn=lr;Ne[lr]=Wt,lr++;var Yn=ui;at&1&&($e[yr]=oi,yr++,!(ui&1)&&Xv(oi,$e,yr)&&(ui|=1)),at&2&&(Ze[Zr]=yi,Zr++,!(ui&2)&&Xv(yi,Ze,Zr)&&(ui|=2));var Ss,ys=0;Kn&&(Ss=Kn,Kn=function(Uo){return ys|=Uo?16:8,Ss(Uo)});var ks;if(ui===3?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:oi.id,sourceIdStack:$e.map(function(Uo){return Uo.id}),targetId:yi.id,targetIdStack:Ze.map(function(Uo){return Uo.id}),depth:yr,targetDepth:Zr}),ks=3):(e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:oi.id,targetId:yi.id}),ks=st(oi,yi,Bi,ct),e.tracing===null||e.tracing===void 0||e.tracing.pop()),Kn&&(Kn=Ss),at&1&&yr--,at&2&&Zr--,ui=Yn,ks){if(ks===-1||yr===0&&Zr===0){if(ks===-1||ks===3)for(var jn=Fn;jn<lr;jn++)t.set(Ne[jn],1|ys);lr=Fn}}else t.set(Wt,(Bi?4:0)|2|ys),lr=Fn;return ks}function st(oi,yi,Bi,ct){if(ct&4)return Wo(oi,yi,Bi,void 0,0);var at,Gt,Wt=!1,Et=Ao(),wa=oi.flags,$a=yi.flags;if(t===nt){if(wa&3145728){var jn=qt(oi,yi);return jn&&(jn&=qt(yi,oi)),jn}if(wa&4194304)return ia(oi.type,yi.type,3,!1);if(wa&8388608&&(at=ia(oi.objectType,yi.objectType,3,!1))&&(at&=ia(oi.indexType,yi.indexType,3,!1))||wa&16777216&&oi.root.isDistributive===yi.root.isDistributive&&(at=ia(oi.checkType,yi.checkType,3,!1))&&(at&=ia(oi.extendsType,yi.extendsType,3,!1))&&(at&=ia(ep(oi),ep(yi),3,!1))&&(at&=ia(rp(oi),rp(yi),3,!1)))return at;if(wa&33554432)return ia(oi.substitute,yi.substitute,3,!1);if(!(wa&524288))return 0}else if(wa&3145728||$a&3145728){if(at=Xt(oi,yi,Bi,ct))return at;if(oi.flags&2097152||oi.flags&262144&&yi.flags&1048576){var Fn=eh(oi.flags&2097152?oi.types:[oi],!!(yi.flags&1048576));if(Fn&&kf(Fn,function(gv){return gv!==oi})&&(at=ia(Fn,yi,1,!1,void 0,ct)))return On(Et),at}if(!(wa&465829888||wa&524288&&$a&1048576||wa&2097152&&$a&467402752))return 0}if(wa&17301504&&oi.aliasSymbol&&oi.aliasTypeArguments&&oi.aliasSymbol===yi.aliasSymbol&&!(oi.aliasTypeArgumentsContainsMarker||yi.aliasTypeArgumentsContainsMarker)){var Yn=tE(oi.aliasSymbol);if(Yn===e.emptyArray)return 1;var Ss=$6(oi.aliasTypeArguments,yi.aliasTypeArguments,Yn,ct);if(Ss!==void 0)return Ss}if(lE(oi)&&!oi.target.readonly&&(at=ia(Co(oi)[0],yi,1))||lE(yi)&&(yi.target.readonly||Th(Cc(oi)||oi))&&(at=ia(oi,Co(yi)[0],2)))return at;if($a&262144){if(e.getObjectFlags(oi)&32&&!oi.declaration.nameType&&ia(Ll(yi),Iu(oi),3)&&!(ll(oi)&4)){var ys=wl(oi),ks=Mc(yi,Nu(oi));if(at=ia(ys,ks,3,Bi))return at}}else if($a&4194304){var Uo=yi.type;if(wa&4194304&&(at=ia(Uo,oi.type,3,!1)))return at;if(Ln(Uo)){if(at=ia(oi,px(Uo),2,Bi))return at}else{var Fn=Jg(Uo);if(Fn){if(ia(oi,Ll(Fn,yi.stringsOnly),2,Bi)===-1)return-1}else if(Fc(Uo)){var ps=h_(Uo),As=Iu(Uo),gi=void 0;if(ps&&Mg(Uo)){var Mt=$(Lg(Uo)),ka=[];Mv(Mt,8576,!1,function(vm){return void ka.push(gn(ps,Jm(Uo.mapper,Nu(Uo),vm)))}),gi=ba(qe(qe([],ka,!0),[ps],!1))}else gi=ps||As;if(ia(oi,gi,2,Bi)===-1)return-1}}}else if($a&8388608){if(wa&8388608){if((at=ia(oi.objectType,yi.objectType,3,Bi))&&(at&=ia(oi.indexType,yi.indexType,3,Bi)),at)return On(Et),at;Bi&&(Gt=q)}if(t===Sr||t===Di){var sa=yi.objectType,da=yi.indexType,cn=Cc(sa)||sa,un=Cc(da)||da;if(!Md(cn)&&!fd(un)){var Nn=4|(cn!==sa?2:0),Fn=Z_(cn,un,Nn);if(Fn){if(Bi&&Gt&&On(Et),at=ia(oi,Fn,2,Bi))return at;Bi&&Gt&&q&&(q=CS([Gt])<=CS([q])?Gt:q)}}}Bi&&(Gt=void 0)}else if(Fc(yi)&&t!==nt){var nn=!!yi.declaration.nameType,ys=wl(yi),en=ll(yi);if(!(en&8)){if(!nn&&ys.flags&8388608&&ys.objectType===oi&&ys.indexType===Nu(yi))return-1;if(!Fc(oi)){var gi=nn?h_(yi):Iu(yi),po=Ll(oi,void 0,!0),Mo=en&4,hs=Mo?eg(gi,po):void 0;if(Mo?!(hs.flags&131072):ia(gi,po,3)){var qo=wl(yi),Lo=Nu(yi),Gs=gg(qo,-98305);if(!nn&&Gs.flags&8388608&&Gs.indexType===Lo){if(at=ia(oi,Gs.objectType,2,Bi))return at}else{var Ac=nn?hs||gi:hs?To([hs,Lo]):Lo,ks=Mc(oi,Ac);if(at=ia(ks,qo,3,Bi))return at}}Gt=q,On(Et)}}}else if($a&16777216){if(Xv(yi,Ze,Zr,10))return On(Et),3;var zs=yi;if(!zs.root.inferTypeParameters&&!$3(zs.root)){var Mu=!oo(hh(zs.checkType),hh(zs.extendsType)),qd=!Mu&&oo(dd(zs.checkType),dd(zs.extendsType));if((at=Mu?-1:ia(oi,ep(zs),2,!1))&&(at&=qd?-1:ia(oi,rp(zs),2,!1),at))return On(Et),at}}else if($a&134217728){if(wa&134217728){if(t===Di)return SI(oi,yi)?0:-1;gn(oi,_d(Ha))}if(TE(oi,yi))return-1}if(wa&8650752){if(!(wa&8388608&&$a&8388608)){var Fn=b_(oi);if(!Fn||wa&262144&&Fn.flags&1){if(at=ia(tt,gg(yi,-67108865),3))return On(Et),at}else{if(at=ia(Fn,yi,1,!1,void 0,ct))return On(Et),at;if(at=ia(Wc(Fn,oi),yi,1,Bi&&!($a&wa&262144),void 0,ct))return On(Et),at}if(c(oi)){var Sd=b_(oi.indexType);if(Sd&&(at=ia(Mc(oi.objectType,Sd),yi,1,Bi)))return On(Et),at}}}else if(wa&4194304){if(at=ia(Pi,yi,1,Bi))return On(Et),at}else if(wa&134217728&&!($a&524288)){if(!($a&134217728)){var Fn=Cc(oi);if(Fn&&Fn!==oi&&(at=ia(Fn,yi,1,Bi)))return On(Et),at}}else if(wa&268435456)if($a&268435456&&oi.symbol===yi.symbol){if(at=ia(oi.type,yi.type,3,Bi))return On(Et),at}else{var Fn=Cc(oi);if(Fn&&(at=ia(Fn,yi,1,Bi)))return On(Et),at}else if(wa&16777216){if(Xv(oi,$e,yr,10))return On(Et),3;if($a&16777216){var Vp=oi.root.inferTypeParameters,I_=oi.extendsType,Td=void 0;if(Vp){var r_=qm(Vp,void 0,0,Gn);Cf(r_.inferences,yi.extendsType,I_,1536),I_=gn(I_,r_.mapper),Td=r_.mapper}if(Qf(I_,yi.extendsType)&&(ia(oi.checkType,yi.checkType,3)||ia(yi.checkType,oi.checkType,3))&&((at=ia(gn(ep(oi),Td),ep(yi),3,Bi))&&(at&=ia(rp(oi),rp(yi),3,Bi)),at))return On(Et),at}else{var Eg=Am(oi)?$y(oi):void 0;if(Eg&&(at=ia(Eg,yi,1,Bi)))return On(Et),at}var tu=Lv(oi);if(tu&&(at=ia(tu,yi,1,Bi)))return On(Et),at}else{if(t!==Te&&t!==vr&&C1(yi)&&Ef(oi))return-1;if(Fc(yi))return Fc(oi)&&(at=Tn(oi,yi,Bi))?(On(Et),at):0;var xd=!!(wa&131068);if(t!==nt)oi=$(oi),wa=oi.flags;else if(Fc(oi))return 0;if(e.getObjectFlags(oi)&4&&e.getObjectFlags(yi)&4&&oi.target===yi.target&&!Ln(oi)&&!(e.getObjectFlags(oi)&4096||e.getObjectFlags(yi)&4096)){var Yn=ED(oi.target);if(Yn===e.emptyArray)return 1;var Ss=$6(Co(oi),Co(yi),Yn,ct);if(Ss!==void 0)return Ss}else{if($g(yi)?_c(oi)||Ln(oi):_c(yi)&&Ln(oi)&&!oi.target.readonly)return t!==nt?ia(fl(oi,Ui)||xe,fl(yi,Ui)||xe,3,Bi):0;if((t===Te||t===vr)&&Ef(yi)&&e.getObjectFlags(yi)&16384&&!Ef(oi))return 0}if(wa&2621440&&$a&524288){var M0=Bi&&q===Et.errorInfo&&!xd;if(at=Wo(oi,yi,M0,void 0,ct),at&&(at&=vs(oi,yi,0,M0),at&&(at&=vs(oi,yi,1,M0),at&&(at&=qn(oi,yi,xd,M0,ct)))),Wt&&at)q=Gt||q||Et.errorInfo;else if(at)return at}if(wa&2621440&&$a&1048576){var Q6=gg(yi,36175872);if(Q6.flags&1048576){var Y6=Ca(oi,Q6);if(Y6)return Y6}}}return 0;function CS(gv){return gv?e.reduceLeft(gv,function(vm,ym){return vm+1+CS(ym.next)},0):0}function $6(gv,vm,ym,aL){if(at=Qi(gv,vm,ym,Bi,aL))return at;if(e.some(ym,function(kS){return!!(kS&24)})){Gt=void 0,On(Et);return}var Z6=vm&&j8(vm,ym);if(Wt=!Z6,ym!==e.emptyArray&&!Z6){if(Wt&&!(Bi&&e.some(ym,function(kS){return(kS&7)===0})))return 0;Gt=q,On(Et)}}}function kt(oi){return Kn&&(oi===Zn||oi===ho||oi===Vo)&&Kn(!1),oi}function Ha(oi){return Kn&&(oi===Zn||oi===ho||oi===Vo)&&Kn(!0),oi}function Tn(oi,yi,Bi){var ct=t===Di||(t===nt?ll(oi)===ll(yi):Rg(oi)<=Rg(yi));if(ct){var at,Gt=Iu(yi),Wt=gn(Iu(oi),_d(Rg(oi)<0?kt:Ha));if(at=ia(Gt,Wt,3,Bi)){var Et=Kc([Nu(oi)],[Nu(yi)]);if(gn(h_(oi),Et)===gn(h_(yi),Et))return at&ia(gn(wl(oi),Et),wl(yi),3,Bi)}}return 0}function Ca(oi,yi){var Bi=_o(oi),ct=AE(Bi,yi);if(!ct)return 0;for(var at=1,Gt=0,Wt=ct;Gt<Wt.length;Gt++){var Et=Wt[Gt];if(at*=HI(Df(Et)),at>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:oi.id,targetId:yi.id,numCombinations:at}),0}for(var wa=new Array(ct.length),$a=new e.Set,jn=0;jn<ct.length;jn++){var Et=ct[jn],Fn=Df(Et);wa[jn]=Fn.flags&1048576?Fn.types:[Fn],$a.add(Et.escapedName)}for(var Yn=e.cartesianProduct(wa),Ss=[],ys=function(da){var cn=!1;e:for(var un=0,Nn=yi.types;un<Nn.length;un++){for(var nn=Nn[un],en=function(hs){var qo=ct[hs],Lo=tn(nn,qo.escapedName);if(!Lo)return"continue-outer";if(qo===Lo)return"continue";var Gs=Po(oi,yi,qo,Lo,function(Ac){return da[hs]},!1,0,ur||t===Di);if(!Gs)return"continue-outer"},po=0;po<ct.length;po++){var Mo=en(po);switch(Mo){case"continue-outer":continue e}}e.pushIfUnique(Ss,nn,e.equateValues),cn=!0}if(!cn)return{value:0}},ks=0,Uo=Yn;ks<Uo.length;ks++){var ps=Uo[ks],As=ys(ps);if(typeof As=="object")return As.value}for(var gi=-1,Mt=0,ka=Ss;Mt<ka.length;Mt++){var sa=ka[Mt];if(gi&=Wo(oi,sa,!1,$a,0),gi&&(gi&=vs(oi,sa,0,!1),gi&&(gi&=vs(oi,sa,1,!1),gi&&!(Ln(oi)&&Ln(sa))&&(gi&=qn(oi,sa,!1,!1,0)))),!gi)return gi}return gi}function kn(oi,yi){if(!yi||oi.length===0)return oi;for(var Bi,ct=0;ct<oi.length;ct++)yi.has(oi[ct].escapedName)?Bi||(Bi=oi.slice(0,ct)):Bi&&Bi.push(oi[ct]);return Bi||oi}function mo(oi,yi,Bi,ct,at){var Gt=ur&&!!(e.getCheckFlags(yi)&48),Wt=Ec(Df(yi),!1,Gt),Et=Bi(oi);return ia(Et,Wt,3,ct,void 0,at)}function Po(oi,yi,Bi,ct,at,Gt,Wt,Et){var wa=e.getDeclarationModifierFlagsFromSymbol(Bi),$a=e.getDeclarationModifierFlagsFromSymbol(ct);if(wa&8||$a&8){if(Bi.valueDeclaration!==ct.valueDeclaration)return Gt&&(wa&8&&$a&8?Ot(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ga(ct)):Ot(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ga(ct),ht(wa&8?oi:yi),ht(wa&8?yi:oi))),0}else if($a&16){if(!V8(Bi,ct))return Gt&&Ot(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ga(ct),ht(Bd(Bi)||oi),ht(Bd(ct)||yi)),0}else if(wa&16)return Gt&&Ot(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ga(ct),ht(oi),ht(yi)),0;var jn=mo(Bi,ct,at,Gt,Wt);return jn?!Et&&Bi.flags&16777216&&!(ct.flags&16777216)?(Gt&&Ot(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ga(ct),ht(oi),ht(yi)),0):jn:(Gt&&$i(e.Diagnostics.Types_of_property_0_are_incompatible,Ga(ct)),0)}function ms(oi,yi,Bi,ct){var at=!1;if(Bi.valueDeclaration&&e.isNamedDeclaration(Bi.valueDeclaration)&&e.isPrivateIdentifier(Bi.valueDeclaration.name)&&oi.symbol&&oi.symbol.flags&32){var Gt=Bi.valueDeclaration.name.escapedText,Wt=e.getSymbolNameForPrivateIdentifier(oi.symbol,Gt);if(Wt&&tn(oi,Wt)){var Et=e.factory.getDeclarationName(oi.symbol.valueDeclaration),wa=e.factory.getDeclarationName(yi.symbol.valueDeclaration);Ot(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Nc(Gt),Nc(Et.escapedText===""?O:Et),Nc(wa.escapedText===""?O:wa));return}}var $a=e.arrayFrom(qD(oi,yi,ct,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(at=!0),$a.length===1){var jn=Ga(Bi);Ot.apply(void 0,qe([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,jn],__(oi,yi),!1)),e.length(Bi.declarations)&&Wa(e.createDiagnosticForNode(Bi.declarations[0],e.Diagnostics._0_is_declared_here,jn)),at&&q&&Fi++}else En(oi,yi,!1)&&($a.length>5?Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ht(oi),ht(yi),e.map($a.slice(0,4),function(Fn){return Ga(Fn)}).join(", "),$a.length-4):Ot(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ht(oi),ht(yi),e.map($a,function(Fn){return Ga(Fn)}).join(", ")),at&&q&&Fi++)}function Wo(oi,yi,Bi,ct,at){if(t===nt)return gc(oi,yi,ct);var Gt=-1;if(Ln(yi)){if(_c(oi)||Ln(oi)){if(!yi.target.readonly&&($g(oi)||Ln(oi)&&oi.target.readonly))return 0;var Wt=Q_(oi),Et=Q_(yi),wa=Ln(oi)?oi.target.combinedFlags&4:4,$a=yi.target.combinedFlags&4,jn=Ln(oi)?oi.target.minLength:0,Fn=yi.target.minLength;if(!wa&&Wt<Fn)return Bi&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Wt,Fn),0;if(!$a&&Et<jn)return Bi&&Ot(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,jn,Et),0;if(!$a&&(wa||Et<Wt))return Bi&&(jn<Fn?Ot(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,Fn):Ot(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,Et)),0;for(var Yn=Co(oi),Ss=Co(yi),ys=Math.min(Ln(oi)?dx(oi.target,11):0,dx(yi.target,11)),ks=Math.min(Ln(oi)?lh(oi.target,11):0,$a?lh(yi.target,11):0),Uo=!!ct,ps=0;ps<Et;ps++){var As=ps<Et-ks?ps:ps+Wt-Et,gi=Ln(oi)&&(ps<ys||ps>=Et-ks)?oi.target.elementFlags[As]:4,Mt=yi.target.elementFlags[ps];if(Mt&8&&!(gi&8))return Bi&&Ot(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,ps),0;if(gi&8&&!(Mt&12))return Bi&&Ot(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,As,ps),0;if(Mt&1&&!(gi&1))return Bi&&Ot(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,ps),0;if(!(Uo&&((gi&12||Mt&12)&&(Uo=!1),Uo&&(ct==null?void 0:ct.has(""+ps))))){var ka=Ln(oi)?ps<ys||ps>=Et-ks?_g(Yn[As],!!(gi&Mt&2)):xh(oi,ys,ks)||St:Yn[0],sa=Ss[ps],da=gi&8&&Mt&4?tc(sa):_g(sa,!!(Mt&2)),cn=ia(ka,da,3,Bi,void 0,at);if(!cn)return Bi&&(Et>1||Wt>1)&&(ps<ys||ps>=Et-ks||Wt-ys-ks===1?$i(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,As,ps):$i(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ys,Wt-ks-1,ps)),0;Gt&=cn}}return Gt}if(yi.target.combinedFlags&12)return 0}var un=(t===Te||t===vr)&&!Bp(oi)&&!ND(oi)&&!Ln(oi),Nn=VD(oi,yi,un,!1);if(Nn)return Bi&&ms(oi,yi,Nn,un),0;if(Bp(yi))for(var nn=0,en=kn(_o(oi),ct);nn<en.length;nn++){var po=en[nn];if(!D_(yi,po.escapedName)){var ka=Jt(po);if(!(ka.flags&32768))return Bi&&Ot(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ga(po),ht(yi)),0}}for(var Mo=_o(yi),hs=Ln(oi)&&Ln(yi),qo=0,Lo=kn(Mo,ct);qo<Lo.length;qo++){var Gs=Lo[qo],Ac=Gs.escapedName;if(!(Gs.flags&4194304)&&(!hs||e.isNumericLiteralName(Ac)||Ac==="length")){var po=tn(oi,Ac);if(po&&po!==Gs){var cn=Po(oi,yi,po,Gs,Df,Bi,at,t===Di);if(!cn)return 0;Gt&=cn}}}return Gt}function gc(oi,yi,Bi){if(!(oi.flags&524288&&yi.flags&524288))return 0;var ct=kn(Gf(oi),Bi),at=kn(Gf(yi),Bi);if(ct.length!==at.length)return 0;for(var Gt=-1,Wt=0,Et=ct;Wt<Et.length;Wt++){var wa=Et[Wt],$a=D_(yi,wa.escapedName);if(!$a)return 0;var jn=kD(wa,$a,ia);if(!jn)return 0;Gt&=jn}return Gt}function vs(oi,yi,Bi,ct){var at,Gt;if(t===nt)return pv(oi,yi,Bi);if(yi===bn||oi===bn)return-1;var Wt=oi.symbol&&ml(oi.symbol.valueDeclaration),Et=yi.symbol&&ml(yi.symbol.valueDeclaration),wa=za(oi,Wt&&Bi===1?0:Bi),$a=za(yi,Et&&Bi===1?0:Bi);if(Bi===1&&wa.length&&$a.length){var jn=!!(wa[0].flags&4),Fn=!!($a[0].flags&4);if(jn&&!Fn)return ct&&Ot(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!ec(wa[0],$a[0],ct))return 0}var Yn=-1,Ss=Bi===1?Us:vl,ys=e.getObjectFlags(oi),ks=e.getObjectFlags(yi);if(ys&64&&ks&64&&oi.symbol===yi.symbol||ys&4&&ks&4&&oi.target===yi.target)for(var Uo=0;Uo<$a.length;Uo++){var ps=N_(wa[Uo],$a[Uo],!0,ct,Ss(wa[Uo],$a[Uo]));if(!ps)return 0;Yn&=ps}else if(wa.length===1&&$a.length===1){var As=t===Di||!!ye.noStrictGenericChecks,gi=e.first(wa),Mt=e.first($a);if(Yn=N_(gi,Mt,As,ct,Ss(gi,Mt)),!Yn&&ct&&Bi===1&&ys&ks&&(((at=Mt.declaration)===null||at===void 0?void 0:at.kind)===170||((Gt=gi.declaration)===null||Gt===void 0?void 0:Gt.kind)===170)){var ka=function(Mo){return kl(Mo,void 0,262144,Bi)};return Ot(e.Diagnostics.Type_0_is_not_assignable_to_type_1,ka(gi),ka(Mt)),Ot(e.Diagnostics.Types_of_construct_signatures_are_incompatible),Yn}}else{e:for(var sa=0,da=$a;sa<da.length;sa++){for(var cn=da[sa],un=Ao(),Nn=ct,nn=0,en=wa;nn<en.length;nn++){var po=en[nn],ps=N_(po,cn,!0,Nn,Ss(po,cn));if(ps){Yn&=ps,On(un);continue e}Nn=!1}return Nn&&Ot(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,ht(oi),kl(cn,void 0,void 0,Bi)),0}}return Yn}function vl(oi,yi){return oi.parameters.length===0&&yi.parameters.length===0?function(Bi,ct){return $i(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ht(Bi),ht(ct))}:function(Bi,ct){return $i(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,ht(Bi),ht(ct))}}function Us(oi,yi){return oi.parameters.length===0&&yi.parameters.length===0?function(Bi,ct){return $i(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ht(Bi),ht(ct))}:function(Bi,ct){return $i(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,ht(Bi),ht(ct))}}function N_(oi,yi,Bi,ct,at){return yD(Bi?wm(oi):oi,Bi?wm(yi):yi,t===vr?8:0,ct,Ot,at,Gn,_d(Ha))}function pv(oi,yi,Bi){var ct=za(oi,Bi),at=za(yi,Bi);if(ct.length!==at.length)return 0;for(var Gt=-1,Wt=0;Wt<ct.length;Wt++){var Et=Yv(ct[Wt],at[Wt],!1,!1,!1,ia);if(!Et)return 0;Gt&=Et}return Gt}function dv(oi,yi,Bi){for(var ct=-1,at=yi.keyType,Gt=oi.flags&2097152?Bg(oi):Gf(oi),Wt=0,Et=Gt;Wt<Et.length;Wt++){var wa=Et[Wt];if(!Zx(oi,wa)&&iu(Hg(wa,8576),at)){var $a=Df(wa),jn=Ce||$a.flags&32768||at===Ui||!(wa.flags&16777216)?$a:$s($a,524288),Fn=ia(jn,yi.type,3,Bi);if(!Fn)return Bi&&Ot(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ga(wa)),0;ct&=Fn}}for(var Yn=0,Ss=Js(oi);Yn<Ss.length;Yn++){var ys=Ss[Yn];if(iu(ys.keyType,at)){var Fn=Ya(ys,yi,Bi);if(!Fn)return 0;ct&=Fn}}return ct}function Ya(oi,yi,Bi){var ct=ia(oi.type,yi.type,3,Bi);return!ct&&Bi&&(oi.keyType===yi.keyType?Ot(e.Diagnostics._0_index_signatures_are_incompatible,ht(oi.keyType)):Ot(e.Diagnostics._0_and_1_index_signatures_are_incompatible,ht(oi.keyType),ht(yi.keyType))),ct}function qn(oi,yi,Bi,ct,at){if(t===nt)return yo(oi,yi);for(var Gt=Js(yi),Wt=e.some(Gt,function(Yn){return Yn.keyType===ki}),Et=-1,wa=0,$a=Gt;wa<$a.length;wa++){var jn=$a[wa],Fn=!Bi&&Wt&&jn.type.flags&1?-1:Fc(oi)&&Wt?ia(wl(oi),jn.type,3,ct):fs(oi,jn,ct,at);if(!Fn)return 0;Et&=Fn}return Et}function fs(oi,yi,Bi,ct){var at=ig(oi,yi.keyType);return at?Ya(at,yi,Bi):!(ct&1)&&Ah(oi)?dv(oi,yi,Bi):(Bi&&Ot(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,ht(yi.keyType),ht(oi)),0)}function yo(oi,yi){var Bi=Js(oi),ct=Js(yi);if(Bi.length!==ct.length)return 0;for(var at=0,Gt=ct;at<Gt.length;at++){var Wt=Gt[at],Et=kc(oi,Wt.keyType);if(!(Et&&ia(Et.type,Wt.type,3)&&Et.isReadonly===Wt.isReadonly))return 0}return-1}function ec(oi,yi,Bi){if(!oi.declaration||!yi.declaration)return!0;var ct=e.getSelectedEffectiveModifierFlags(oi.declaration,24),at=e.getSelectedEffectiveModifierFlags(yi.declaration,24);return at===8||at===16&&ct!==8||at!==16&&!ct?!0:(Bi&&Ot(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,p_(ct),p_(at)),!1)}}function SD(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,SD);if(r.flags&465829888){var i=b_(r);if(i&&i!==r)return SD(i)}return Rl(r)||!!(r.flags&134217728)}function eE(r,i){return Ln(r)&&Ln(i)?e.emptyArray:_o(i).filter(function(t){return TD(ai(r,t.escapedName),Jt(t))})}function TD(r,i){return!!r&&!!i&&ls(r,32768)&&!!kh(i)}function R8(r){return _o(r).filter(function(i){return kh(Jt(i))})}function rE(r,i,t){return t===void 0&&(t=mD),X6(r,i,t,!0)||Z9(r,i)||eL(r,i)||rL(r,i)||iL(r,i)}function xD(r,i,t,o,s){for(var u=r.types.map(function(Xi){}),T=0,q=i;T<q.length;T++){var fe=q[T],Ne=fe[0],$e=fe[1],Ze=ji(r,$e);if(!(s&&Ze&&e.getCheckFlags(Ze)&16))for(var lr=0,yr=0,Zr=r.types;yr<Zr.length;yr++){var ui=Zr[yr],Ii=ai(ui,$e);Ii&&t(Ne(),Ii)?u[lr]=u[lr]===void 0?!0:u[lr]:u[lr]=!1,lr++}}var Fi=u.indexOf(!0);if(Fi===-1)return o;for(var Ri=u.indexOf(!0,Fi+1);Ri!==-1;){if(!Qf(r.types[Fi],r.types[Ri]))return o;Ri=u.indexOf(!0,Ri+1)}return r.types[Fi]}function iE(r){if(r.flags&524288){var i=Vu(r);return i.callSignatures.length===0&&i.constructSignatures.length===0&&i.indexInfos.length===0&&i.properties.length>0&&e.every(i.properties,function(t){return!!(t.flags&16777216)})}return r.flags&2097152?e.every(r.types,iE):!1}function B8(r,i,t){for(var o=0,s=_o(r);o<s.length;o++){var u=s[o];if(hb(i,u.escapedName,t))return!0}return!1}function J8(r,i,t){var o=Hf(r,e.map(r.typeParameters,function(s){return s===i?t:s}));return o.objectFlags|=4096,o}function tE(r){var i=Ma(r);return aE(i.typeParameters,i,function(t,o,s){var u=Kg(r,x_(i.typeParameters,Rd(o,s)));return u.aliasTypeArgumentsContainsMarker=!0,u})}function aE(r,i,t){var o,s,u;r===void 0&&(r=e.emptyArray);var T=i.variances;if(!T){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:(u=(o=i.id)!==null&&o!==void 0?o:(s=i.declaredType)===null||s===void 0?void 0:s.id)!==null&&u!==void 0?u:-1}),i.variances=e.emptyArray,T=[];for(var q=function(Ze){var lr=!1,yr=!1,Zr=Kn;Kn=function(Ri){return Ri?yr=!0:lr=!0};var ui=t(i,Ze,Zn),Ii=t(i,Ze,ho),Fi=(oo(Ii,ui)?1:0)|(oo(ui,Ii)?2:0);Fi===3&&oo(t(i,Ze,Vo),ui)&&(Fi=4),Kn=Zr,(lr||yr)&&(lr&&(Fi|=8),yr&&(Fi|=16)),T.push(Fi)},fe=0,Ne=r;fe<Ne.length;fe++){var $e=Ne[fe];q($e)}i.variances=T,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return T}function ED(r){return r===h||r===Ee||r.objectFlags&8?we:aE(r.typeParameters,r,J8)}function j8(r,i){for(var t=0;t<i.length;t++)if((i[t]&7)===1&&r[t].flags&16384)return!0;return!1}function U8(r){return r.flags&262144&&!qc(r)}function z8(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function bh(r){return z8(r)&&e.some(Co(r),function(i){return!!(i.flags&262144)||bh(i)})}function W8(r,i,t,o){var s=[],u="",T=fe(r,0),q=fe(i,0);return"".concat(u).concat(T,",").concat(q).concat(t);function fe(Ne,$e){$e===void 0&&($e=0);for(var Ze=""+Ne.target.id,lr=0,yr=Co(Ne);lr<yr.length;lr++){var Zr=yr[lr];if(Zr.flags&262144){if(o||U8(Zr)){var ui=s.indexOf(Zr);ui<0&&(ui=s.length,s.push(Zr)),Ze+="="+ui;continue}u="*"}else if($e<4&&bh(Zr)){Ze+="<"+fe(Zr,$e+1)+">";continue}Ze+="-"+Zr.id}return Ze}}function CD(r,i,t,o,s){if(o===nt&&r.id>i.id){var u=r;r=i,i=u}var T=t?":"+t:"";return bh(r)&&bh(i)?W8(r,i,T,s):"".concat(r.id,",").concat(i.id).concat(T)}function Hv(r,i){if(e.getCheckFlags(r)&6){for(var t=0,o=r.containingType.types;t<o.length;t++){var s=o[t],u=tn(s,r.escapedName),T=u&&Hv(u,i);if(T)return T}return}return i(r)}function Bd(r){return r.parent&&r.parent.flags&32?Io(Rs(r)):void 0}function Sh(r){var i=Bd(r),t=i&&zc(i)[0];return t&&ai(t,r.escapedName)}function q8(r,i){return Hv(r,function(t){var o=Bd(t);return o?nd(o,i):!1})}function V8(r,i){return!Hv(i,function(t){return e.getDeclarationModifierFlagsFromSymbol(t)&16?!q8(r,Bd(t)):!1})}function K8(r,i,t){return Hv(i,function(o){return e.getDeclarationModifierFlagsFromSymbol(o,t)&16?!nd(r,Bd(o)):!1})?void 0:r}function Xv(r,i,t,o){if(o===void 0&&(o=3),t>=o)for(var s=Qv(r),u=0,T=0,q=0;q<t;q++){var fe=i[q];if(Qv(fe)===s){if(fe.id>=T&&(u++,u>=o))return!0;T=fe.id}}return!1}function Qv(r){if(r.flags&524288&&!KD(r)){if(e.getObjectFlags(r)&&4&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(Ln(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function G8(r,i){return kD(r,i,jm)!==0}function kD(r,i,t){if(r===i)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(i)&24;if(o!==s)return 0;if(o){if(Tg(r)!==Tg(i))return 0}else if((r.flags&16777216)!==(i.flags&16777216))return 0;return zl(r)!==zl(i)?0:t(Jt(r),Jt(i))}function H8(r,i,t){var o=Lc(r),s=Lc(i),u=jl(r),T=jl(i),q=Ul(r),fe=Ul(i);return!!(o===s&&u===T&&q===fe||t&&u<=T)}function Yv(r,i,t,o,s,u){if(r===i)return-1;if(!H8(r,i,t)||e.length(r.typeParameters)!==e.length(i.typeParameters))return 0;if(i.typeParameters){for(var T=Kc(r.typeParameters,i.typeParameters),q=0;q<i.typeParameters.length;q++){var fe=r.typeParameters[q],Ne=i.typeParameters[q];if(!(fe===Ne||u(gn(Vg(fe),T)||We,Vg(Ne)||We)&&u(gn(H_(fe),T)||We,H_(Ne)||We)))return 0}r=ug(r,T,!0)}var $e=-1;if(!o){var Ze=ld(r);if(Ze){var lr=ld(i);if(lr){var yr=u(Ze,lr);if(!yr)return 0;$e&=yr}}}for(var Zr=Lc(i),q=0;q<Zr;q++){var fe=Hu(r,q),Ne=Hu(i,q),yr=u(Ne,fe);if(!yr)return 0;$e&=yr}if(!s){var ui=wu(r),Ii=wu(i);$e&=ui||Ii?X8(ui,Ii,u):u(So(r),So(i))}return $e}function X8(r,i,t){return r&&i&&Q1(r,i)?r.type===i.type?-1:r.type&&i.type?t(r.type,i.type):0:0}function Q8(r){for(var i,t=0,o=r;t<o.length;t++){var s=o[t],u=Bl(s);if(i||(i=u),u===s||u!==i)return!1}return!0}function nE(r){return r.length===1?r[0]:Q8(r)?ba(r):e.reduceLeft(r,function(i,t){return E_(i,t)?t:i})}function Y8(r){if(!ur)return nE(r);var i=e.filter(r,function(t){return!(t.flags&98304)});return i.length?Eh(nE(i),fE(r)&98304):ba(r,2)}function $8(r){return e.reduceLeft(r,function(i,t){return E_(t,i)?t:i})}function _c(r){return!!(e.getObjectFlags(r)&4)&&(r.target===h||r.target===Ee)}function $g(r){return!!(e.getObjectFlags(r)&4)&&r.target===Ee}function Th(r){return _c(r)&&!$g(r)||Ln(r)&&!r.target.readonly}function AD(r){return _c(r)?Co(r)[0]:void 0}function ap(r){return _c(r)||!(r.flags&98304)&&oo(r,ca)}function PD(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var i=r.target;if(e.getObjectFlags(i)&1){var t=sd(i);if(t&&t.expression.kind!==79&&t.expression.kind!==205)return}var o=zc(i);if(o.length===1&&!Il(r.symbol).size){var s=e.length(i.typeParameters)?gn(o[0],Kc(i.typeParameters,Co(r).slice(0,i.typeParameters.length))):o[0];return e.length(Co(r))>e.length(i.typeParameters)&&(s=Wc(s,e.last(Co(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function oE(r){return ur?r===Yi:r===Ur}function ND(r){var i=AD(r);return!!i&&oE(i)}function Zg(r){return Ln(r)||!!tn(r,"0")}function sE(r){return ap(r)||Zg(r)}function Z8(r,i){var t=ai(r,""+i);if(t)return t;if(kf(r,Ln))return Cs(r,function(o){return zm(o)||Nr})}function eI(r){return!(r.flags&240512)}function Rl(r){return!!(r.flags&109440)}function cE(r){return r.flags&2097152?e.some(r.types,Rl):!!(r.flags&109440)}function rI(r){return r.flags&2097152&&e.find(r.types,Rl)||r}function fg(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,Rl):Rl(r)}function Bl(r){return r.flags&1024?cu(r):r.flags&402653312?ki:r.flags&256?Ui:r.flags&2048?zi:r.flags&512?xt:r.flags&1048576?Cs(r,Bl):r}function Lp(r){return r.flags&1024&&Mp(r)?cu(r):r.flags&128&&Mp(r)?ki:r.flags&256&&Mp(r)?Ui:r.flags&2048&&Mp(r)?zi:r.flags&512&&Mp(r)?xt:r.flags&1048576?Cs(r,Lp):r}function uE(r){return r.flags&8192?ua:r.flags&1048576?Cs(r,uE):r}function ID(r,i){return p0(r,i)||(r=uE(Lp(r))),r}function iI(r,i,t){if(r&&Rl(r)){var o=i?t?nv(i):i:void 0;r=ID(r,o)}return r}function wD(r,i,t,o){if(r&&Rl(r)){var s=i?Sg(t,i,o):void 0;r=ID(r,s)}return r}function Ln(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function em(r){return Ln(r)&&!!(r.target.combinedFlags&8)}function lE(r){return em(r)&&r.target.elementFlags.length===1}function zm(r){return xh(r,r.target.fixedLength)}function tI(r){var i=zm(r);return i&&tc(i)}function xh(r,i,t,o){t===void 0&&(t=0),o===void 0&&(o=!1);var s=Q_(r)-t;if(i<s){for(var u=Co(r),T=[],q=i;q<s;q++){var fe=u[q];T.push(r.target.elementFlags[q]&8?Mc(fe,Ui):fe)}return o?To(T):ba(T)}}function aI(r,i){return Q_(r)===Q_(i)&&e.every(r.target.elementFlags,function(t,o){return(t&12)===(i.target.elementFlags[o]&12)})}function OD(r){var i=r.value;return i.base10Value==="0"}function fE(r){for(var i=0,t=0,o=r;t<o.length;t++){var s=o[t];i|=Fu(s)}return i}function Fu(r){return r.flags&1048576?fE(r.types):r.flags&128?r.value===""?128:0:r.flags&256?r.value===0?256:0:r.flags&2048?OD(r)?2048:0:r.flags&512?r===ri||r===Gi?512:0:r.flags&117724}function _E(r){return Fu(r)&117632?pc(r,function(i){return!(Fu(i)&117632)}):r}function nI(r){return Cs(r,oI)}function oI(r){return r.flags&4?Xs:r.flags&8?rc:r.flags&64?uu:r===Gi||r===ri||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&OD(r)?r:St}function Eh(r,i){var t=i&~r.flags&98304;return t===0?r:ba(t===32768?[r,Nr]:t===65536?[r,Ti]:[r,Nr,Ti])}function $f(r,i){return i===void 0&&(i=!1),e.Debug.assert(ur),r.flags&32768?r:ba([r,i?mi:Nr])}function sI(r){var i=$s(r,2097152);return Fa||(Fa=Om("NonNullable",524288,void 0)||hr),Fa!==hr?Kg(Fa,[i]):i}function C_(r){return ur?sI(r):r}function pE(r){return ur?ba([r,si]):r}function FD(r){return ur?Rh(r,si):r}function Ch(r,i,t){return t?e.isOutermostOptionalChain(i)?$f(r):pE(r):r}function Wm(r,i){return e.isExpressionOfOptionalChainRoot(i)?C_(r):e.isOptionalChain(i)?FD(r):r}function _g(r,i){return Ce&&i?Rh(r,mi):r}function kh(r){return Ce&&(r===mi||r.flags&1048576&&Y_(r.types,mi))}function MD(r){return Ce?Rh(r,mi):$s(r,524288)}function cI(r,i){return(r.flags&524)!==0&&(i.flags&28)!==0}function Ah(r){return r.flags&2097152?e.every(r.types,Ah):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!(r.symbol.flags&32)&&!mS(r))||!!(e.getObjectFlags(r)&1024&&Ah(r.source))}function Jd(r,i){var t=bo(r.flags,r.escapedName,e.getCheckFlags(r)&8);t.declarations=r.declarations,t.parent=r.parent,t.type=i,t.target=r,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration);var o=Ma(r).nameType;return o&&(t.nameType=o),t}function uI(r,i){for(var t=e.createSymbolTable(),o=0,s=Gf(r);o<s.length;o++){var u=s[o],T=Jt(u),q=i(T);t.set(u.escapedName,q===T?u:Jd(u,q))}return t}function rm(r){if(!(Bp(r)&&e.getObjectFlags(r)&16384))return r;var i=r.regularType;if(i)return i;var t=r,o=uI(r,rm),s=_s(t.symbol,o,t.callSignatures,t.constructSignatures,t.indexInfos);return s.flags=t.flags,s.objectFlags|=t.objectFlags&-16385,r.regularType=s,s}function dE(r,i,t){return{parent:r,propertyName:i,siblings:t,resolvedProperties:void 0}}function gE(r){if(!r.siblings){for(var i=[],t=0,o=gE(r.parent);t<o.length;t++){var s=o[t];if(Bp(s)){var u=D_(s,r.propertyName);u&&md(Jt(u),function(T){i.push(T)})}}r.siblings=i}return r.siblings}function lI(r){if(!r.resolvedProperties){for(var i=new e.Map,t=0,o=gE(r);t<o.length;t++){var s=o[t];if(Bp(s)&&!(e.getObjectFlags(s)&4194304))for(var u=0,T=_o(s);u<T.length;u++){var q=T[u];i.set(q.escapedName,q)}}r.resolvedProperties=e.arrayFrom(i.values())}return r.resolvedProperties}function fI(r,i){if(!(r.flags&4))return r;var t=Jt(r),o=i&&dE(i,r.escapedName,void 0),s=LD(t,o);return s===t?r:Jd(r,s)}function _I(r){var i=_r.get(r.escapedName);if(i)return i;var t=Jd(r,mi);return t.flags|=16777216,_r.set(r.escapedName,t),t}function pI(r,i){for(var t=e.createSymbolTable(),o=0,s=Gf(r);o<s.length;o++){var u=s[o];t.set(u.escapedName,fI(u,i))}if(i)for(var T=0,q=lI(i);T<q.length;T++){var u=q[T];t.has(u.escapedName)||t.set(u.escapedName,_I(u))}var fe=_s(r.symbol,t,e.emptyArray,e.emptyArray,e.sameMap(Js(r),function(Ne){return Fl(Ne.keyType,Hc(Ne.type),Ne.isReadonly)}));return fe.objectFlags|=e.getObjectFlags(r)&532480,fe}function Hc(r){return LD(r,void 0)}function LD(r,i){if(e.getObjectFlags(r)&393216){if(i===void 0&&r.widened)return r.widened;var t=void 0;if(r.flags&98305)t=xe;else if(Bp(r))t=pI(r,i);else if(r.flags&1048576){var o=i||dE(void 0,void 0,r.types),s=e.sameMap(r.types,function(u){return u.flags&98304?u:LD(u,o)});t=ba(s,e.some(s,Ef)?2:1)}else r.flags&2097152?t=To(e.sameMap(r.types,Hc)):(_c(r)||Ln(r))&&(t=Hf(r.target,e.sameMap(Co(r),Hc)));return t&&i===void 0&&(r.widened=t),t||r}return r}function Ph(r){var i=!1;if(e.getObjectFlags(r)&131072){if(r.flags&1048576)if(e.some(r.types,Ef))i=!0;else for(var t=0,o=r.types;t<o.length;t++){var s=o[t];Ph(s)&&(i=!0)}if(_c(r)||Ln(r))for(var u=0,T=Co(r);u<T.length;u++){var s=T[u];Ph(s)&&(i=!0)}if(Bp(r))for(var q=0,fe=Gf(r);q<fe.length;q++){var Ne=fe[q],s=Jt(Ne);e.getObjectFlags(s)&131072&&(Ph(s)||Wr(Ne.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ga(Ne),ht(Hc(s))),i=!0)}}return i}function Rp(r,i,t){var o=ht(Hc(i));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),ye))){var s;switch(r.kind){case 220:case 166:case 165:s=Tr?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 163:var u=r;if(e.isIdentifier(u.name)&&(e.isCallSignatureDeclaration(u.parent)||e.isMethodSignature(u.parent)||e.isFunctionTypeNode(u.parent))&&u.parent.parameters.indexOf(u)>-1&&(os(u,u.name.escapedText,788968,void 0,u.name.escapedText,!0)||u.name.originalKeywordKind&&e.isTypeNodeKind(u.name.originalKeywordKind))){var T="arg"+u.parent.parameters.indexOf(u),q=e.declarationNameToString(u.name)+(u.dotDotDotToken?"[]":"");nu(Tr,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,T,q);return}s=r.dotDotDotToken?Tr?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Tr?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 202:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Tr)return;break;case 315:Wr(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(Tr&&!r.name){t===3?Wr(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):Wr(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=Tr?t===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:Tr&&Wr(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Tr?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}nu(Tr,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),o)}}function Nh(r,i,t){oe&&Tr&&e.getObjectFlags(i)&131072&&(!t||!_b(r))&&(Ph(i)||Rp(r,i,t))}function RD(r,i,t){var o=Lc(r),s=Lc(i),u=Zm(r),T=Zm(i),q=T?s-1:s,fe=u?q:Math.min(o,q),Ne=ld(r);if(Ne){var $e=ld(i);$e&&t(Ne,$e)}for(var Ze=0;Ze<fe;Ze++)t(Hu(r,Ze),Hu(i,Ze));T&&t(um(r,fe),T)}function BD(r,i,t){var o=wu(r),s=wu(i);o&&s&&Q1(o,s)&&o.type&&s.type?t(o.type,s.type):t(So(r),So(i))}function qm(r,i,t,o){return JD(r.map(jD),i,t,o||mD)}function dI(r,i){return i===void 0&&(i=0),r&&JD(e.map(r.inferences,vE),r.signature,r.flags|i,r.compareTypes)}function JD(r,i,t,o){var s={inferences:r,signature:i,flags:t,compareTypes:o,mapper:_d(function(u){return mE(s,u,!0)}),nonFixingMapper:_d(function(u){return mE(s,u,!1)})};return s}function mE(r,i,t){for(var o=r.inferences,s=0;s<o.length;s++){var u=o[s];if(i===u.typeParameter)return t&&!u.isFixed&&(Ih(o),u.isFixed=!0),EE(r,s)}return i}function Ih(r){for(var i=0,t=r;i<t.length;i++){var o=t[i];o.isFixed||(o.inferredType=void 0)}}function jD(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function vE(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function gI(r){var i=e.filter(r.inferences,Ud);return i.length?JD(e.map(i,vE),r.signature,r.flags,r.compareTypes):void 0}function UD(r){return r&&r.mapper}function Vm(r){var i=e.getObjectFlags(r);if(i&1048576)return!!(i&2097152);var t=!!(r.flags&465829888||r.flags&524288&&!yE(r)&&(i&4&&(r.node||e.forEach(Co(r),Vm))||i&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||i&8389664)||r.flags&3145728&&!(r.flags&1024)&&!yE(r)&&e.some(r.types,Vm));return r.flags&3899393&&(r.objectFlags|=1048576|(t?2097152:0)),t}function yE(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var i=e.getDeclarationOfKind(r.aliasSymbol,258);return!!(i&&e.findAncestor(i.parent,function(t){return t.kind===303?!0:t.kind===260?!1:"quit"}))}return!1}function zD(r,i){return!!(r===i||r.flags&3145728&&e.some(r.types,function(t){return zD(t,i)})||r.flags&16777216&&(ep(r)===i||rp(r)===i))}function mI(r){var i=e.createSymbolTable();md(r,function(o){if(!!(o.flags&128)){var s=e.escapeLeadingUnderscores(o.value),u=bo(4,s);u.type=xe,o.symbol&&(u.declarations=o.symbol.declarations,u.valueDeclaration=o.symbol.valueDeclaration),i.set(s,u)}});var t=r.flags&4?[Fl(ki,tt,!1)]:e.emptyArray;return _s(void 0,i,e.emptyArray,e.emptyArray,t)}function hE(r,i,t){if(!Ms){var o=r.id+","+i.id+","+t.id;if(Ts.has(o))return Ts.get(o);Ms=!0;var s=vI(r,i,t);return Ms=!1,Ts.set(o,s),s}}function WD(r){return!(e.getObjectFlags(r)&524288)||Bp(r)&&e.some(_o(r),function(i){return WD(Jt(i))})||Ln(r)&&e.some(Co(r),WD)}function vI(r,i,t){if(!!(kc(r,ki)||_o(r).length!==0&&WD(r))){if(_c(r))return tc(wh(Co(r)[0],i,t),$g(r));if(Ln(r)){var o=e.map(Co(r),function(T){return wh(T,i,t)}),s=ll(i)&4?e.sameMap(r.target.elementFlags,function(T){return T&2?1:T}):r.target.elementFlags;return Ml(o,s,r.target.readonly,r.target.labeledElementDeclarations)}var u=Uc(1040,void 0);return u.source=r,u.mappedType=i,u.constraintType=t,u}}function yI(r){var i=Ma(r);return i.type||(i.type=wh(r.propertyType,r.mappedType,r.constraintType)),i.type}function wh(r,i,t){var o=Mc(t.type,Nu(i)),s=wl(i),u=jD(o);return Cf([u],r,s),DE(u)||We}function qD(r,i,t,o){var s,u,T,q,fe,Ne,$e;return wr(this,function(Ze){switch(Ze.label){case 0:s=_o(i),u=0,T=s,Ze.label=1;case 1:return u<T.length?(q=T[u],Jy(q)?[3,5]:t||!(q.flags&16777216||e.getCheckFlags(q)&48)?(fe=tn(r,q.escapedName),fe?[3,3]:[4,q]):[3,5]):[3,6];case 2:return Ze.sent(),[3,5];case 3:return o?(Ne=Jt(q),Ne.flags&109440?($e=Jt(fe),$e.flags&1||Vc($e)===Vc(Ne)?[3,5]:[4,q]):[3,5]):[3,5];case 4:Ze.sent(),Ze.label=5;case 5:return u++,[3,1];case 6:return[2]}})}function VD(r,i,t,o){var s=qD(r,i,t,o).next();if(!s.done)return s.value}function hI(r,i){return!(i.target.combinedFlags&8)&&i.target.minLength>r.target.minLength||!i.target.hasRestElement&&(r.target.hasRestElement||i.target.fixedLength<r.target.fixedLength)}function DI(r,i){return Ln(r)&&Ln(i)?hI(r,i):!!VD(r,i,!1,!0)&&!!VD(i,r,!1,!1)}function DE(r){return r.candidates?ba(r.candidates,2):r.contraCandidates?To(r.contraCandidates):void 0}function bI(r){return!!Da(r).skipDirectInference}function bE(r){return!!(r.symbol&&e.some(r.symbol.declarations,bI))}function SI(r,i){var t=r.texts[0],o=i.texts[0],s=r.texts[r.texts.length-1],u=i.texts[i.texts.length-1],T=Math.min(t.length,o.length),q=Math.min(s.length,u.length);return t.slice(0,T)!==o.slice(0,T)||s.slice(s.length-q)!==u.slice(u.length-q)}function TI(r){var i=e.createScanner(99,!1),t=!0;i.setOnError(function(){return t=!1}),i.setText(r+"n");var o=i.scan();o===40&&(o=i.scan());var s=i.getTokenFlags();return t&&o===9&&i.getTextPos()===r.length+1&&!(s&512)}function xI(r,i){if(r===i||i.flags&5)return!0;if(r.flags&128){var t=r.value;return!!(i.flags&8&&t!==""&&isFinite(+t)||i.flags&64&&t!==""&&TI(t)||i.flags&98816&&t===i.intrinsicName)}if(r.flags&134217728){var o=r.texts;return o.length===2&&o[0]===""&&o[1]===""&&oo(r.types[0],i)}return oo(r,i)}function SE(r,i){return r.flags&128?xE([r.value],e.emptyArray,i):r.flags&134217728?e.arraysEqual(r.texts,i.texts)?e.map(r.types,EI):xE(r.texts,r.types,i):void 0}function TE(r,i){var t=SE(r,i);return!!t&&e.every(t,function(o,s){return xI(o,i.types[s])})}function EI(r){return r.flags&402653317?r:Xg(["",""],[r])}function xE(r,i,t){var o=r.length-1,s=r[0],u=r[o],T=t.texts,q=T.length-1,fe=T[0],Ne=T[q];if(o===0&&s.length<fe.length+Ne.length||!s.startsWith(fe)||!u.endsWith(Ne))return;for(var $e=u.slice(0,u.length-Ne.length),Ze=[],lr=0,yr=fe.length,Zr=1;Zr<q;Zr++){var ui=T[Zr];if(ui.length>0){for(var Ii=lr,Fi=yr;Fi=Ri(Ii).indexOf(ui,Fi),!(Fi>=0);){if(Ii++,Ii===r.length)return;Fi=0}Xi(Ii,Fi),yr+=ui.length}else if(yr<Ri(lr).length)Xi(lr,yr+1);else if(lr<o)Xi(lr+1,0);else return}return Xi(o,Ri(o).length),Ze;function Ri(ea){return ea<o?r[ea]:$e}function Xi(ea,lt){var Ia=ea===lr?Ou(Ri(ea).slice(yr,lt)):Xg(qe(qe([r[lr].slice(yr)],r.slice(lr+1,ea),!0),[Ri(ea).slice(0,lt)],!1),i.slice(lr,ea));Ze.push(Ia),lr=ea,yr=lt}}function Cf(r,i,t,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var u=!1,T,q=2048,fe=!0,Ne,$e,Ze,lr=0;yr(i,t);function yr($i,Vi){if(!!Vm(Vi)){if($i===Je){var Ot=T;T=$i,yr(Vi,Vi),T=Ot;return}if($i.aliasSymbol&&$i.aliasTypeArguments&&$i.aliasSymbol===Vi.aliasSymbol){Fi($i.aliasTypeArguments,Vi.aliasTypeArguments,tE($i.aliasSymbol));return}if($i===Vi&&$i.flags&3145728){for(var Wa=0,Qt=$i.types;Wa<Qt.length;Wa++){var Qa=Qt[Wa];yr(Qa,Qa)}return}if(Vi.flags&1048576){var En=Ii($i.flags&1048576?$i.types:[$i],Vi.types,CI),Gn=En[0],ia=En[1],Xn=Ii(Gn,ia,kI),ii=Xn[0],Ar=Xn[1];if(Ar.length===0)return;if(Vi=ba(Ar),ii.length===0){Zr($i,Vi,1);return}$i=ba(ii)}else if(Vi.flags&2097152&&e.some(Vi.types,function(Ha){return!!Xi(Ha)||Fc(Ha)&&!!Xi(fD(Ha)||St)})){if(!($i.flags&1048576)){var Pt=Ii($i.flags&2097152?$i.types:[$i],Vi.types,Qf),ii=Pt[0],Ar=Pt[1];if(ii.length===0||Ar.length===0)return;$i=To(ii),Vi=To(Ar)}}else Vi.flags&41943040&&(Vi=Op(Vi));if(Vi.flags&8650752){if($i===Xr||$i===Ci||o&128&&($i===ze||$i===Nt)||bE($i))return;var pt=Xi(Vi);if(pt){if(e.getObjectFlags($i)&524288)return;if(!pt.isFixed){if((pt.priority===void 0||o<pt.priority)&&(pt.candidates=void 0,pt.contraCandidates=void 0,pt.topLevel=!0,pt.priority=o),o===pt.priority){var Xt=T||$i;s&&!u?e.contains(pt.contraCandidates,Xt)||(pt.contraCandidates=e.append(pt.contraCandidates,Xt),Ih(r)):e.contains(pt.candidates,Xt)||(pt.candidates=e.append(pt.candidates,Xt),Ih(r))}!(o&128)&&Vi.flags&262144&&pt.topLevel&&!zD(t,Vi)&&(pt.topLevel=!1,Ih(r))}q=Math.min(q,o);return}var qt=Xf(Vi,!1);if(qt!==Vi)yr($i,qt);else if(Vi.flags&8388608){var Yt=Xf(Vi.indexType,!1);if(Yt.flags&465829888){var va=kx(Xf(Vi.objectType,!1),Yt,!1);va&&va!==Vi&&yr($i,va)}}}if(e.getObjectFlags($i)&4&&e.getObjectFlags(Vi)&4&&($i.target===Vi.target||_c($i)&&_c(Vi))&&!($i.node&&Vi.node))Fi(Co($i),Co(Vi),ED($i.target));else if($i.flags&4194304&&Vi.flags&4194304)s=!s,yr($i.type,Vi.type),s=!s;else if((fg($i)||$i.flags&4)&&Vi.flags&4194304){var Ft=mI($i);s=!s,Zr(Ft,Vi.type,256),s=!s}else if($i.flags&8388608&&Vi.flags&8388608)yr($i.objectType,Vi.objectType),yr($i.indexType,Vi.indexType);else if($i.flags&268435456&&Vi.flags&268435456)$i.symbol===Vi.symbol&&yr($i.type,Vi.type);else if($i.flags&33554432){yr($i.baseType,Vi);var pi=o;o|=4,yr($i.substitute,Vi),o=pi}else if(Vi.flags&16777216)ui($i,Vi,fa);else if(Vi.flags&3145728)lt($i,Vi.types,Vi.flags);else if($i.flags&1048576)for(var Ai=$i.types,Qi=0,it=Ai;Qi<it.length;Qi++){var st=it[Qi];yr(st,Vi)}else if(Vi.flags&134217728)Dn($i,Vi);else{if($i=Lt($i),!(o&512&&$i.flags&467927040)){var kt=$($i);if(kt!==$i&&fe&&!(kt.flags&2621440))return fe=!1,yr(kt,Vi);$i=kt}$i.flags&2621440&&ui($i,Vi,Ra)}}}function Zr($i,Vi,Ot){var Wa=o;o|=Ot,yr($i,Vi),o=Wa}function ui($i,Vi,Ot){var Wa=$i.id+","+Vi.id,Qt=Ne&&Ne.get(Wa);if(Qt!==void 0){q=Math.min(q,Qt);return}(Ne||(Ne=new e.Map)).set(Wa,-1);var Qa=q;q=2048;var En=lr,Gn=Qv($i),ia=Qv(Vi);e.contains($e,Gn)&&(lr|=1),e.contains(Ze,ia)&&(lr|=2),lr!==3?(($e||($e=[])).push(Gn),(Ze||(Ze=[])).push(ia),Ot($i,Vi),Ze.pop(),$e.pop()):q=-1,lr=En,Ne.set(Wa,q),q=Math.min(q,Qa)}function Ii($i,Vi,Ot){for(var Wa,Qt,Qa=0,En=Vi;Qa<En.length;Qa++)for(var Gn=En[Qa],ia=0,Xn=$i;ia<Xn.length;ia++){var ii=Xn[ia];Ot(ii,Gn)&&(yr(ii,Gn),Wa=e.appendIfUnique(Wa,ii),Qt=e.appendIfUnique(Qt,Gn))}return[Wa?e.filter($i,function(Ar){return!e.contains(Wa,Ar)}):$i,Qt?e.filter(Vi,function(Ar){return!e.contains(Qt,Ar)}):Vi]}function Fi($i,Vi,Ot){for(var Wa=$i.length<Vi.length?$i.length:Vi.length,Qt=0;Qt<Wa;Qt++)Qt<Ot.length&&(Ot[Qt]&7)===2?Ri($i[Qt],Vi[Qt]):yr($i[Qt],Vi[Qt])}function Ri($i,Vi){Ir||o&1024?(s=!s,yr($i,Vi),s=!s):yr($i,Vi)}function Xi($i){if($i.flags&8650752)for(var Vi=0,Ot=r;Vi<Ot.length;Vi++){var Wa=Ot[Vi];if($i===Wa.typeParameter)return Wa}}function ea($i){for(var Vi,Ot=0,Wa=$i;Ot<Wa.length;Ot++){var Qt=Wa[Ot],Qa=Qt.flags&2097152&&e.find(Qt.types,function(En){return!!Xi(En)});if(!Qa||Vi&&Qa!==Vi)return;Vi=Qa}return Vi}function lt($i,Vi,Ot){var Wa=0;if(Ot&1048576){for(var Qt=void 0,Qa=$i.flags&1048576?$i.types:[$i],En=new Array(Qa.length),Gn=!1,ia=0,Xn=Vi;ia<Xn.length;ia++){var ii=Xn[ia];if(Xi(ii))Qt=ii,Wa++;else for(var Ar=0;Ar<Qa.length;Ar++){var Pt=q;q=2048,yr(Qa[Ar],ii),q===o&&(En[Ar]=!0),Gn=Gn||q===-1,q=Math.min(q,Pt)}}if(Wa===0){var pt=ea(Vi);pt&&Zr($i,pt,1);return}if(Wa===1&&!Gn){var Xt=e.flatMap(Qa,function(pi,Ai){return En[Ai]?void 0:pi});if(Xt.length){yr(ba(Xt),Qt);return}}}else for(var qt=0,Yt=Vi;qt<Yt.length;qt++){var ii=Yt[qt];Xi(ii)?Wa++:yr($i,ii)}if(Ot&2097152?Wa===1:Wa>0)for(var va=0,Ft=Vi;va<Ft.length;va++){var ii=Ft[va];Xi(ii)&&Zr($i,ii,1)}}function Ia($i,Vi,Ot){if(Ot.flags&1048576){for(var Wa=!1,Qt=0,Qa=Ot.types;Qt<Qa.length;Qt++){var En=Qa[Qt];Wa=Ia($i,Vi,En)||Wa}return Wa}if(Ot.flags&4194304){var Gn=Xi(Ot.type);if(Gn&&!Gn.isFixed&&!bE($i)){var ia=hE($i,Vi,Ot);ia&&Zr(ia,Gn.typeParameter,e.getObjectFlags($i)&524288?16:8)}return!0}if(Ot.flags&262144){Zr(Ll($i),Ot,32);var Xn=b_(Ot);if(Xn&&Ia($i,Vi,Xn))return!0;var ii=e.map(_o($i),Jt),Ar=e.map(Js($i),function(Pt){return Pt!==rn?Pt.type:St});return yr(ba(e.concatenate(ii,Ar)),wl(Vi)),!0}return!1}function fa($i,Vi){if($i.flags&16777216)yr($i.checkType,Vi.checkType),yr($i.extendsType,Vi.extendsType),yr(ep($i),ep(Vi)),yr(rp($i),rp(Vi));else{var Ot=o;o|=s?64:0;var Wa=[ep(Vi),rp(Vi)];lt($i,Wa,Vi.flags),o=Ot}}function Dn($i,Vi){var Ot=SE($i,Vi),Wa=Vi.types;if(Ot||e.every(Vi.texts,function(Qa){return Qa.length===0}))for(var Qt=0;Qt<Wa.length;Qt++)yr(Ot?Ot[Qt]:St,Wa[Qt])}function Ra($i,Vi){if(e.getObjectFlags($i)&4&&e.getObjectFlags(Vi)&4&&($i.target===Vi.target||_c($i)&&_c(Vi))){Fi(Co($i),Co(Vi),ED($i.target));return}if(Fc($i)&&Fc(Vi)){yr(Iu($i),Iu(Vi)),yr(wl($i),wl(Vi));var Ot=h_($i),Wa=h_(Vi);Ot&&Wa&&yr(Ot,Wa)}if(e.getObjectFlags(Vi)&32&&!Vi.declaration.nameType){var Qt=Iu(Vi);if(Ia($i,Vi,Qt))return}if(!DI($i,Vi)){if(_c($i)||Ln($i)){if(Ln(Vi)){var Qa=Q_($i),En=Q_(Vi),Gn=Co(Vi),ia=Vi.target.elementFlags;if(Ln($i)&&aI($i,Vi)){for(var Xn=0;Xn<En;Xn++)yr(Co($i)[Xn],Gn[Xn]);return}for(var ii=Ln($i)?Math.min($i.target.fixedLength,Vi.target.fixedLength):0,Ar=Math.min(Ln($i)?lh($i.target,3):0,Vi.target.hasRestElement?lh(Vi.target,3):0),Xn=0;Xn<ii;Xn++)yr(Co($i)[Xn],Gn[Xn]);if(!Ln($i)||Qa-ii-Ar===1&&$i.target.elementFlags[ii]&4)for(var Pt=Co($i)[ii],Xn=ii;Xn<En-Ar;Xn++)yr(ia[Xn]&8?tc(Pt):Pt,Gn[Xn]);else{var pt=En-ii-Ar;if(pt===2&&ia[ii]&ia[ii+1]&8&&Ln($i)){var Xt=Xi(Gn[ii]);Xt&&Xt.impliedArity!==void 0&&(yr(Mm($i,ii,Ar+Qa-Xt.impliedArity),Gn[ii]),yr(Mm($i,ii+Xt.impliedArity,Ar),Gn[ii+1]))}else if(pt===1&&ia[ii]&8){var qt=Vi.target.elementFlags[En-1]&2,Yt=Ln($i)?Mm($i,ii,Ar):tc(Co($i)[0]);Zr(Yt,Gn[ii],qt?2:0)}else if(pt===1&&ia[ii]&4){var Pt=Ln($i)?xh($i,ii,Ar):Co($i)[0];Pt&&yr(Pt,Gn[ii])}}for(var Xn=0;Xn<Ar;Xn++)yr(Co($i)[Qa-Xn-1],Gn[En-Xn-1]);return}if(_c(Vi)){Ao($i,Vi);return}}Bn($i,Vi),Jn($i,Vi,0),Jn($i,Vi,1),Ao($i,Vi)}}function Bn($i,Vi){for(var Ot=Gf(Vi),Wa=0,Qt=Ot;Wa<Qt.length;Wa++){var Qa=Qt[Wa],En=tn($i,Qa.escapedName);En&&yr(Jt(En),Jt(Qa))}}function Jn($i,Vi,Ot){for(var Wa=za($i,Ot),Qt=za(Vi,Ot),Qa=Wa.length,En=Qt.length,Gn=Qa<En?Qa:En,ia=!!(e.getObjectFlags($i)&524288),Xn=0;Xn<Gn;Xn++)On(VN(Wa[Qa-Gn+Xn]),wm(Qt[En-Gn+Xn]),ia)}function On($i,Vi,Ot){if(!Ot){var Wa=u,Qt=Vi.declaration?Vi.declaration.kind:0;u=u||Qt===168||Qt===167||Qt===170,RD($i,Vi,Ri),u=Wa}BD($i,Vi,yr)}function Ao($i,Vi){var Ot=e.getObjectFlags($i)&e.getObjectFlags(Vi)&32?8:0,Wa=Js(Vi);if(Ah($i))for(var Qt=0,Qa=Wa;Qt<Qa.length;Qt++){for(var En=Qa[Qt],Gn=[],ia=0,Xn=_o($i);ia<Xn.length;ia++){var ii=Xn[ia];if(iu(Hg(ii,8576),En.keyType)){var Ar=Jt(ii);Gn.push(ii.flags&16777216?MD(Ar):Ar)}}for(var Pt=0,pt=Js($i);Pt<pt.length;Pt++){var Xt=pt[Pt];iu(Xt.keyType,En.keyType)&&Gn.push(Xt.type)}Gn.length&&Zr(ba(Gn),En.type,Ot)}for(var qt=0,Yt=Wa;qt<Yt.length;qt++){var En=Yt[qt],va=ig($i,En.keyType);va&&Zr(va.type,En.type,Ot)}}}function CI(r,i){return Ce&&i===mi?r===i:Qf(r,i)||!!(i.flags&4&&r.flags&128||i.flags&8&&r.flags&256)}function kI(r,i){return!!(r.flags&524288&&i.flags&524288&&r.symbol&&r.symbol===i.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===i.aliasSymbol)}function AI(r){var i=qc(r);return!!i&&ls(i.flags&16777216?Lv(i):i,406978556)}function Bp(r){return!!(e.getObjectFlags(r)&128)}function KD(r){return!!(e.getObjectFlags(r)&32896)}function PI(r){if(r.length>1){var i=e.filter(r,KD);if(i.length){var t=ba(i,2);return e.concatenate(e.filter(r,function(o){return!KD(o)}),[t])}}return r}function NI(r){return r.priority&416?To(r.contraCandidates):$8(r.contraCandidates)}function II(r,i){var t=PI(r.candidates),o=AI(r.typeParameter),s=!o&&r.topLevel&&(r.isFixed||!zD(So(i),r.typeParameter)),u=o?e.sameMap(t,Vc):s?e.sameMap(t,Lp):t,T=r.priority&416?ba(u,2):Y8(u);return Hc(T)}function EE(r,i){var t=r.inferences[i];if(!t.inferredType){var o=void 0,s=r.signature;if(s){var u=t.candidates?II(t,s):void 0;if(t.contraCandidates)o=u&&!(u.flags&131072)&&e.some(t.contraCandidates,function(Ne){return E_(u,Ne)})?u:NI(t);else if(u)o=u;else if(r.flags&1)o=Ci;else{var T=H_(t.typeParameter);T&&(o=gn(T,l8(u8(r,i),r.nonFixingMapper)))}}else o=DE(t);t.inferredType=o||GD(!!(r.flags&2));var q=qc(t.typeParameter);if(q){var fe=gn(q,r.nonFixingMapper);(!o||!r.compareTypes(o,Wc(fe,o)))&&(t.inferredType=o=fe)}}return t.inferredType}function GD(r){return r?xe:We}function HD(r){for(var i=[],t=0;t<r.inferences.length;t++)i.push(EE(r,t));return i}function CE(r){switch(r.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return ye.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(r.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===295?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function dl(r){var i=Da(r);return i.resolvedSymbol||(i.resolvedSymbol=!e.nodeIsMissing(r)&&os(r,r.escapedText,1160127,CE(r),r,!e.isWriteOnlyAccess(r),!1)||hr),i.resolvedSymbol}function im(r){return!!e.findAncestor(r,function(i){return i.kind===180?!0:i.kind===79||i.kind===160?!1:"quit"})}function Oh(r,i,t,o){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=dl(r);return s!==hr?"".concat(o?A(o):"-1","|").concat(Gu(i),"|").concat(Gu(t),"|").concat(f(s)):void 0}case 108:return"0|".concat(o?A(o):"-1","|").concat(Gu(i),"|").concat(Gu(t));case 229:case 211:return Oh(r.expression,i,t,o);case 160:var u=Oh(r.left,i,t,o);return u&&u+"."+r.right.escapedText;case 205:case 206:var T=gd(r);if(T!==void 0){var q=Oh(r.expression,i,t,o);return q&&q+"."+T}}}function Ks(r,i){switch(i.kind){case 211:case 229:return Ks(r,i.expression);case 220:return e.isAssignmentExpression(i)&&Ks(r,i.left)||e.isBinaryExpression(i)&&i.operatorToken.kind===27&&Ks(r,i.right)}switch(r.kind){case 230:return i.kind===230&&r.keywordToken===i.keywordToken&&r.name.escapedText===i.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?i.kind===108:i.kind===79&&dl(r)===dl(i)||(i.kind===253||i.kind===202)&&$c(dl(r))===It(i);case 108:return i.kind===108;case 106:return i.kind===106;case 229:case 211:return Ks(r.expression,i);case 205:case 206:return e.isAccessExpression(i)&&gd(r)===gd(i)&&Ks(r.expression,i.expression);case 160:return e.isAccessExpression(i)&&r.right.escapedText===gd(i)&&Ks(r.left,i.expression);case 220:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&Ks(r.right,i)}return!1}function gd(r){var i;return r.kind===205?r.name.escapedText:r.kind===206&&e.isStringOrNumericLiteralLike(r.argumentExpression)?e.escapeLeadingUnderscores(r.argumentExpression.text):r.kind===202&&(i=uc(r))?e.escapeLeadingUnderscores(i):r.kind===163?""+r.parent.parameters.indexOf(r):void 0}function kE(r,i){for(;e.isAccessExpression(r);)if(r=r.expression,Ks(r,i))return!0;return!1}function pg(r,i){for(;e.isOptionalChain(r);)if(r=r.expression,Ks(r,i))return!0;return!1}function Km(r,i){if(r&&r.flags&1048576){var t=ji(r,i);if(t&&e.getCheckFlags(t)&2)return t.isDiscriminantProperty===void 0&&(t.isDiscriminantProperty=(t.checkFlags&192)===192&&!Rm(Jt(t))),!!t.isDiscriminantProperty}return!1}function AE(r,i){for(var t,o=0,s=r;o<s.length;o++){var u=s[o];if(Km(i,u.escapedName)){if(t){t.push(u);continue}t=[u]}}return t}function wI(r,i){for(var t=new e.Map,o=0,s=function(Ne){if(Ne.flags&61603840){var $e=ai(Ne,i);if($e){if(!fg($e))return{value:void 0};var Ze=!1;md($e,function(lr){var yr=Gu(Vc(lr)),Zr=t.get(yr);Zr?Zr!==We&&(t.set(yr,We),Ze=!0):t.set(yr,Ne)}),Ze||o++}}},u=0,T=r;u<T.length;u++){var q=T[u],fe=s(q);if(typeof fe=="object")return fe.value}return o>=10&&o*2>=r.length?t:void 0}function Fh(r){var i=r.types;if(!(i.length<10||e.getObjectFlags(r)&65536||e.countWhere(i,function(s){return!!(s.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var t=e.forEach(i,function(s){return s.flags&59506688?e.forEach(_o(s),function(u){return Rl(Jt(u))?u.escapedName:void 0}):void 0}),o=t&&wI(i,t);r.keyPropertyName=o?t:"",r.constituentMap=o}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function Mh(r,i){var t,o=(t=r.constituentMap)===null||t===void 0?void 0:t.get(Gu(Vc(i)));return o!==We?o:void 0}function PE(r,i){var t=Fh(r),o=t&&ai(i,t);return o&&Mh(r,o)}function OI(r,i){var t=Fh(r),o=t&&e.find(i.properties,function(u){return u.symbol&&u.kind===294&&u.symbol.escapedName===t&&ny(u.initializer)}),s=o&&yy(o.initializer);return s&&Mh(r,s)}function NE(r,i){return Ks(r,i)||kE(r,i)}function IE(r,i){if(r.arguments)for(var t=0,o=r.arguments;t<o.length;t++){var s=o[t];if(NE(i,s))return!0}return!!(r.expression.kind===205&&NE(i,r.expression.expression))}function XD(r){return(!r.id||r.id<0)&&(r.id=Q,Q++),r.id}function FI(r,i){if(!(r.flags&1048576))return oo(r,i);for(var t=0,o=r.types;t<o.length;t++){var s=o[t];if(oo(s,i))return!0}return!1}function MI(r,i){if(r!==i){if(i.flags&131072)return i;var t=pc(r,function(o){return FI(i,o)});if(i.flags&512&&Mp(i)&&(t=Cs(t,sg)),oo(i,t))return t}return r}function QD(r){var i=Vu(r);return!!(i.callSignatures.length||i.constructSignatures.length||i.members.get("bind")&&E_(r,Ka))}function np(r,i){i===void 0&&(i=!1);var t=r.flags;if(t&4)return ur?16317953:16776705;if(t&128){var o=r.value==="";return ur?o?12123649:7929345:o?12582401:16776705}if(t&40)return ur?16317698:16776450;if(t&256){var s=r.value===0;return ur?s?12123394:7929090:s?12582146:16776450}if(t&64)return ur?16317188:16775940;if(t&2048){var s=OD(r);return ur?s?12122884:7928580:s?12581636:16775940}return t&16?ur?16316168:16774920:t&528?ur?r===ri||r===Gi?12121864:7927560:r===ri||r===Gi?12580616:16774920:t&524288?i?16768959:e.getObjectFlags(r)&16&&Ef(r)?ur?16318463:16777215:QD(r)?ur?7880640:16728e3:ur?7888800:16736160:t&49152?9830144:t&65536?9363232:t&12288?ur?7925520:16772880:t&67108864?ur?7888800:16736160:t&131072?0:t&465829888?Qg(r)?ur?7929345:16776705:np(Cc(r)||We,i):t&1048576?e.reduceLeft(r.types,function(u,T){return u|np(T,i)},0):t&2097152?(i||(i=ls(r,131068)),LI(r,i)):16777215}function LI(r,i){for(var t=0,o=16777215,s=0,u=r.types;s<u.length;s++){var T=u[s],q=np(T,i);t|=q,o&=q}return t&8256|o&16768959}function $s(r,i){return pc(r,function(t){return(np(t)&i)!==0})}function YD(r,i){return i?ba([Yo(r),ac(i)]):r}function wE(r,i){var t,o=$_(i);if(!ul(o))return Oe;var s=Nl(o);return ai(r,s)||Gm((t=Np(r,s))===null||t===void 0?void 0:t.type)||Oe}function OE(r,i){return kf(r,Zg)&&Z8(r,i)||Gm(P_(65,r,Nr,void 0))||Oe}function Gm(r){return r&&(ye.noUncheckedIndexedAccess?ba([r,Nr]):r)}function FE(r){return tc(P_(65,r,Nr,void 0)||Oe)}function RI(r){var i=r.parent.kind===203&&$D(r.parent)||r.parent.kind===294&&$D(r.parent.parent);return i?YD($v(r),r.right):ac(r.right)}function $D(r){return r.parent.kind===220&&r.parent.left===r||r.parent.kind===243&&r.parent.initializer===r}function BI(r,i){return OE($v(r),r.elements.indexOf(i))}function JI(r){return FE($v(r.parent))}function ME(r){return wE($v(r.parent),r.name)}function jI(r){return YD(ME(r),r.objectAssignmentInitializer)}function $v(r){var i=r.parent;switch(i.kind){case 242:return ki;case 243:return Ty(i)||Oe;case 220:return RI(i);case 214:return Nr;case 203:return BI(i,r);case 224:return JI(i);case 294:return ME(i);case 295:return jI(i)}return Oe}function UI(r){var i=r.parent,t=RE(i.parent),o=i.kind===200?wE(t,r.propertyName||r.name):r.dotDotDotToken?FE(t):OE(t,i.elements.indexOf(r));return YD(o,r.initializer)}function LE(r){var i=Da(r);return i.resolvedType||ac(r)}function zI(r){return r.initializer?LE(r.initializer):r.parent.parent.kind===242?ki:r.parent.parent.kind===243&&Ty(r.parent.parent)||Oe}function RE(r){return r.kind===253?zI(r):UI(r)}function WI(r){return r.kind===253&&r.initializer&&K_(r.initializer)||r.kind!==202&&r.parent.kind===220&&K_(r.parent.right)}function Jp(r){switch(r.kind){case 211:return Jp(r.expression);case 220:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return Jp(r.left);case 27:return Jp(r.right)}}return r}function BE(r){var i=r.parent;return i.kind===211||i.kind===220&&i.operatorToken.kind===63&&i.left===r||i.kind===220&&i.operatorToken.kind===27&&i.right===r?BE(i):r}function qI(r){return r.kind===288?Vc(ac(r.expression)):St}function Lh(r){var i=Da(r);if(!i.switchTypes){i.switchTypes=[];for(var t=0,o=r.caseBlock.clauses;t<o.length;t++){var s=o[t];i.switchTypes.push(qI(s))}}return i.switchTypes}function JE(r,i){for(var t=[],o=0,s=r.caseBlock.clauses;o<s.length;o++){var u=s[o];if(u.kind===288){if(e.isStringLiteralLike(u.expression)){t.push(u.expression.text);continue}return e.emptyArray}i&&t.push(void 0)}return t}function VI(r,i){return r.flags&1048576?!e.forEach(r.types,function(t){return!e.contains(i,t)}):e.contains(i,r)}function Zv(r,i){return r===i||i.flags&1048576&&KI(r,i)}function KI(r,i){if(r.flags&1048576){for(var t=0,o=r.types;t<o.length;t++){var s=o[t];if(!Y_(i.types,s))return!1}return!0}return r.flags&1024&&cu(r)===i?!0:Y_(i.types,r)}function md(r,i){return r.flags&1048576?e.forEach(r.types,i):i(r)}function dg(r,i){return r.flags&1048576?e.some(r.types,i):i(r)}function kf(r,i){return r.flags&1048576?e.every(r.types,i):i(r)}function GI(r,i){return r.flags&3145728?e.every(r.types,i):i(r)}function pc(r,i){if(r.flags&1048576){var t=r.types,o=e.filter(t,i);if(o===t)return r;var s=r.origin,u=void 0;if(s&&s.flags&1048576){var T=s.types,q=e.filter(T,function(fe){return!!(fe.flags&1048576)||i(fe)});if(T.length-q.length===t.length-o.length){if(q.length===1)return q[0];u=X1(1048576,q)}}return Y1(o,r.objectFlags,void 0,void 0,u)}return r.flags&131072||i(r)?r:St}function Rh(r,i){return pc(r,function(t){return t!==i})}function HI(r){return r.flags&1048576?r.types.length:1}function Cs(r,i,t){if(r.flags&131072)return r;if(!(r.flags&1048576))return i(r);for(var o=r.origin,s=o&&o.flags&1048576?o.types:r.types,u,T=!1,q=0,fe=s;q<fe.length;q++){var Ne=fe[q],$e=Ne.flags&1048576?Cs(Ne,i,t):i(Ne);T||(T=Ne!==$e),$e&&(u?u.push($e):u=[$e])}return T?u&&ba(u,t?0:1):r}function jE(r,i,t,o){return r.flags&1048576&&t?ba(e.map(r.types,i),1,t,o):Cs(r,i)}function gg(r,i){return pc(r,function(t){return(t.flags&i)!==0})}function UE(r,i){return ls(r,134217804)&&ls(i,402655616)?Cs(r,function(t){return t.flags&4?gg(i,402653316):Qg(t)&&!ls(i,402653188)?gg(i,128):t.flags&8?gg(i,264):t.flags&64?gg(i,2112):t}):r}function mg(r){return r.flags===0}function vd(r){return r.flags===0?r.type:r}function vg(r,i){return i?{flags:0,type:r.flags&131072?Ci:r}:r}function XI(r){var i=Uc(256);return i.elementType=r,i}function ZD(r){return Qe[r.id]||(Qe[r.id]=XI(r))}function zE(r,i){var t=rm(Bl(yy(i)));return Zv(t,r.elementType)?r:ZD(ba([r.elementType,t]))}function QI(r){return r.flags&131072?Nt:tc(r.flags&1048576?ba(r.types,2):r)}function YI(r){return r.finalArrayType||(r.finalArrayType=QI(r.elementType))}function Bh(r){return e.getObjectFlags(r)&256?YI(r):r}function $I(r){return e.getObjectFlags(r)&256?r.elementType:St}function ZI(r){for(var i=!1,t=0,o=r;t<o.length;t++){var s=o[t];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;i=!0}}return i}function WE(r){var i=BE(r),t=i.parent,o=e.isPropertyAccessExpression(t)&&(t.name.escapedText==="length"||t.parent.kind===207&&e.isIdentifier(t.name)&&e.isPushOrUnshiftIdentifier(t.name)),s=t.kind===206&&t.expression===i&&t.parent.kind===220&&t.parent.operatorToken.kind===63&&t.parent.left===t&&!e.isAssignmentTarget(t.parent)&&ws(ac(t.argumentExpression),296);return o||s}function ew(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function Jh(r,i){if(r.flags&8752)return Jt(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var t=r.syntheticOrigin;if(t&&Jh(t))return Jt(r)}var o=r.valueDeclaration;if(o){if(ew(o))return Jt(r);if(e.isVariableDeclaration(o)&&o.parent.parent.kind===243){var s=o.parent.parent,u=ey(s.expression,void 0);if(u){var T=s.awaitModifier?15:13;return P_(T,u,Nr,void 0)}}i&&e.addRelatedInfo(i,e.createDiagnosticForNode(o,e.Diagnostics._0_needs_an_explicit_type_annotation,Ga(r)))}}}function ey(r,i){if(!(r.flags&16777216))switch(r.kind){case 79:var t=$c(dl(r));return Jh(t.flags&2097152?zo(t):t,i);case 108:return yw(r);case 106:return ab(r);case 205:{var o=ey(r.expression,i);if(o){var s=r.name,u=void 0;if(e.isPrivateIdentifier(s)){if(!o.symbol)return;u=tn(o,e.getSymbolNameForPrivateIdentifier(o.symbol,s.escapedText))}else u=tn(o,s.escapedText);return u&&Jh(u,i)}return}case 211:return ey(r.expression,i)}}function jh(r){var i=Da(r),t=i.effectsSignature;if(t===void 0){var o=void 0;r.parent.kind===237?o=ey(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?o=gl(Wm(hn(r.expression),r.expression),r.expression):o=nm(r.expression));var s=za(o&&$(o)||We,0),u=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,qE)?sm(r):void 0;t=i.effectsSignature=u&&qE(u)?u:ro}return t===ro?void 0:t}function qE(r){return!!(wu(r)||r.declaration&&(ag(r.declaration)||We).flags&131072)}function rw(r,i){if(r.kind===1||r.kind===3)return i.arguments[r.parameterIndex];var t=e.skipParentheses(i.expression);return e.isAccessExpression(t)?e.skipParentheses(t.expression):void 0}function iw(r){var i=e.findAncestor(r,e.isFunctionOrModuleBlock),t=e.getSourceFileOfNode(r),o=e.getSpanOfTokenAtPosition(t,i.statements.pos);ya.add(e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function ry(r){var i=Uh(r,!1);return hc=r,nc=i,i}function iy(r){var i=e.skipParentheses(r,!0);return i.kind===95||i.kind===220&&(i.operatorToken.kind===55&&(iy(i.left)||iy(i.right))||i.operatorToken.kind===56&&iy(i.left)&&iy(i.right))}function Uh(r,i){for(;;){if(r===hc)return nc;var t=r.flags;if(t&4096){if(!i){var o=XD(r),s=Ni[o];return s!==void 0?s:Ni[o]=Uh(r,!0)}i=!1}if(t&368)r=r.antecedent;else if(t&512){var u=jh(r.node);if(u){var T=wu(u);if(T&&T.kind===3&&!T.type){var q=r.node.arguments[T.parameterIndex];if(q&&iy(q))return!1}if(So(u).flags&131072)return!1}r=r.antecedent}else{if(t&4)return e.some(r.antecedents,function(lr){return Uh(lr,!1)});if(t&8){var fe=r.antecedents;if(fe===void 0||fe.length===0)return!1;r=fe[0]}else if(t&128){if(r.clauseStart===r.clauseEnd&&_k(r.switchStatement))return!1;r=r.antecedent}else if(t&1024){hc=void 0;var Ne=r.target,$e=Ne.antecedents;Ne.antecedents=r.antecedents;var Ze=Uh(r.antecedent,!1);return Ne.antecedents=$e,Ze}else return!(t&1)}}}function zh(r,i){for(;;){var t=r.flags;if(t&4096){if(!i){var o=XD(r),s=rt[o];return s!==void 0?s:rt[o]=zh(r,!0)}i=!1}if(t&496)r=r.antecedent;else if(t&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(t&4)return e.every(r.antecedents,function(fe){return zh(fe,!1)});if(t&8)r=r.antecedents[0];else if(t&1024){var u=r.target,T=u.antecedents;u.antecedents=r.antecedents;var q=zh(r.antecedent,!1);return u.antecedents=T,q}else return!!(t&1)}}}function VE(r){switch(r.kind){case 79:{var i=dl(r);return ty(i)||e.isParameterOrCatchClauseVariable(i)&&!Wh(i)}case 205:case 206:return VE(r.expression)&&zl(Da(r).resolvedSymbol||hr)}return!1}function op(r,i,t,o,s){t===void 0&&(t=i),s===void 0&&(s=r.flowNode);var u,T=!1,q=0;if(jr)return Oe;if(!s)return i;is++;var fe=Oo,Ne=vd(lr(s));Oo=fe;var $e=e.getObjectFlags(Ne)&256&&WE(r)?Nt:Bh(Ne);if($e===yt||r.parent&&r.parent.kind===229&&!($e.flags&131072)&&$s($e,2097152).flags&131072)return i;return $e===mr?We:$e;function Ze(){return T?u:(T=!0,u=Oh(r,i,t,o))}function lr(pi){if(q===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:pi.id}),jr=!0,iw(r),Oe;q++;for(var Ai;;){var Qi=pi.flags;if(Qi&4096){for(var it=fe;it<Oo;it++)if(Vr[it]===pi)return q--,fi[it];Ai=pi}var st=void 0;if(Qi&16){if(st=Zr(pi),!st){pi=pi.antecedent;continue}}else if(Qi&512){if(st=Ii(pi),!st){pi=pi.antecedent;continue}}else if(Qi&96)st=Ri(pi);else if(Qi&128)st=Xi(pi);else if(Qi&12){if(pi.antecedents.length===1){pi=pi.antecedents[0];continue}st=Qi&4?ea(pi):lt(pi)}else if(Qi&256){if(st=Fi(pi),!st){pi=pi.antecedent;continue}}else if(Qi&1024){var kt=pi.target,Ha=kt.antecedents;kt.antecedents=pi.antecedents,st=lr(pi.antecedent),kt.antecedents=Ha}else if(Qi&2){var Tn=pi.node;if(Tn&&Tn!==o&&r.kind!==205&&r.kind!==206&&r.kind!==108){pi=Tn.flowNode;continue}st=t}else st=uv(i);return Ai&&(Vr[Oo]=Ai,fi[Oo]=st,Oo++),q--,st}}function yr(pi){var Ai=pi.node;return eb(Ai.kind===253||Ai.kind===202?RE(Ai):$v(Ai),r)}function Zr(pi){var Ai=pi.node;if(Ks(r,Ai)){if(!ry(pi))return yt;if(e.getAssignmentTargetKind(Ai)===2){var Qi=lr(pi.antecedent);return vg(Bl(vd(Qi)),mg(Qi))}if(i===ze||i===Nt){if(WI(Ai))return ZD(St);var it=Lp(yr(pi));return oo(it,i)?it:Ki}return i.flags&1048576?MI(i,yr(pi)):i}if(kE(r,Ai)){if(!ry(pi))return yt;if(e.isVariableDeclaration(Ai)&&(e.isInJSFile(Ai)||e.isVarConst(Ai))){var st=e.getDeclaredExpandoInitializer(Ai);if(st&&(st.kind===212||st.kind===213))return lr(pi.antecedent)}return i}if(e.isVariableDeclaration(Ai)&&Ai.parent.parent.kind===242&&Ks(r,Ai.parent.parent.expression))return Sb(vd(lr(pi.antecedent)))}function ui(pi,Ai){var Qi=e.skipParentheses(Ai,!0);if(Qi.kind===95)return yt;if(Qi.kind===220){if(Qi.operatorToken.kind===55)return ui(ui(pi,Qi.left),Qi.right);if(Qi.operatorToken.kind===56)return ba([ui(pi,Qi.left),ui(pi,Qi.right)])}return va(pi,Qi,!0)}function Ii(pi){var Ai=jh(pi.node);if(Ai){var Qi=wu(Ai);if(Qi&&(Qi.kind===2||Qi.kind===3)){var it=lr(pi.antecedent),st=Bh(vd(it)),kt=Qi.type?Yt(st,Qi,pi.node,!0):Qi.kind===3&&Qi.parameterIndex>=0&&Qi.parameterIndex<pi.node.arguments.length?ui(st,pi.node.arguments[Qi.parameterIndex]):st;return kt===st?it:vg(kt,mg(it))}if(So(Ai).flags&131072)return yt}}function Fi(pi){if(i===ze||i===Nt){var Ai=pi.node,Qi=Ai.kind===207?Ai.expression.expression:Ai.left.expression;if(Ks(r,Jp(Qi))){var it=lr(pi.antecedent),st=vd(it);if(e.getObjectFlags(st)&256){var kt=st;if(Ai.kind===207)for(var Ha=0,Tn=Ai.arguments;Ha<Tn.length;Ha++){var Ca=Tn[Ha];kt=zE(kt,Ca)}else{var kn=yy(Ai.left.argumentExpression);ws(kn,296)&&(kt=zE(kt,Ai.right))}return kt===st?it:vg(kt,mg(it))}return it}}}function Ri(pi){var Ai=lr(pi.antecedent),Qi=vd(Ai);if(Qi.flags&131072)return Ai;var it=(pi.flags&32)!==0,st=Bh(Qi),kt=va(st,pi.node,it);return kt===st?Ai:vg(kt,mg(Ai))}function Xi(pi){var Ai=pi.switchStatement.expression,Qi=lr(pi.antecedent),it=vd(Qi);if(Ks(r,Ai))it=Gn(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd);else if(Ai.kind===215&&Ks(r,Ai.expression))it=ii(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd);else{ur&&(pg(Ai,r)?it=En(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd,function(kt){return!(kt.flags&163840)}):Ai.kind===215&&pg(Ai.expression,r)&&(it=En(it,pi.switchStatement,pi.clauseStart,pi.clauseEnd,function(kt){return!(kt.flags&131072||kt.flags&128&&kt.value==="undefined")})));var st=Dn(Ai,it);st&&(it=Jn(it,st,pi.switchStatement,pi.clauseStart,pi.clauseEnd))}return vg(it,mg(Qi))}function ea(pi){for(var Ai=[],Qi=!1,it=!1,st,kt=0,Ha=pi.antecedents;kt<Ha.length;kt++){var Tn=Ha[kt];if(!st&&Tn.flags&128&&Tn.clauseStart===Tn.clauseEnd){st=Tn;continue}var Ca=lr(Tn),kn=vd(Ca);if(kn===i&&i===t)return kn;e.pushIfUnique(Ai,kn),Zv(kn,i)||(Qi=!0),mg(Ca)&&(it=!0)}if(st){var Ca=lr(st),kn=vd(Ca);if(!e.contains(Ai,kn)&&!_k(st.switchStatement)){if(kn===i&&i===t)return kn;Ai.push(kn),Zv(kn,i)||(Qi=!0),mg(Ca)&&(it=!0)}}return vg(Ia(Ai,Qi?2:1),it)}function lt(pi){var Ai=XD(pi),Qi=qa[Ai]||(qa[Ai]=new e.Map),it=Ze();if(!it)return i;var st=Qi.get(it);if(st)return st;for(var kt=ln;kt<Ba;kt++)if(Bu[kt]===pi&&$u[kt]===it&&au[kt].length)return vg(Ia(au[kt],1),!0);for(var Ha=[],Tn=!1,Ca,kn=0,mo=pi.antecedents;kn<mo.length;kn++){var Po=mo[kn],ms=void 0;if(!Ca)ms=Ca=lr(Po);else{Bu[Ba]=pi,$u[Ba]=it,au[Ba]=Ha,Ba++;var Wo=ns;ns=void 0,ms=lr(Po),ns=Wo,Ba--;var gc=Qi.get(it);if(gc)return gc}var vs=vd(ms);if(e.pushIfUnique(Ha,vs),Zv(vs,i)||(Tn=!0),vs===i)break}var vl=Ia(Ha,Tn?2:1);return mg(Ca)?vg(vl,!0):(Qi.set(it,vl),vl)}function Ia(pi,Ai){if(ZI(pi))return ZD(ba(e.map(pi,$I)));var Qi=ba(e.sameMap(pi,Bh),Ai);return Qi!==i&&Qi.flags&i.flags&1048576&&e.arraysEqual(Qi.types,i.types)?i:Qi}function fa(pi){if(e.isBindingPattern(r)||e.isFunctionExpressionOrArrowFunction(r)){if(e.isIdentifier(pi)){var Ai=dl(pi),Qi=Ai.valueDeclaration;if(Qi&&(e.isBindingElement(Qi)||e.isParameter(Qi))&&r===Qi.parent&&!Qi.initializer&&!Qi.dotDotDotToken)return Qi}}else if(e.isAccessExpression(pi)){if(Ks(r,pi.expression))return pi}else if(e.isIdentifier(pi)){var Ai=dl(pi);if(ty(Ai)){var Qi=Ai.valueDeclaration;if(e.isVariableDeclaration(Qi)&&!Qi.type&&Qi.initializer&&e.isAccessExpression(Qi.initializer)&&Ks(r,Qi.initializer.expression))return Qi.initializer;if(e.isBindingElement(Qi)&&!Qi.initializer){var it=Qi.parent.parent;if(e.isVariableDeclaration(it)&&!it.type&&it.initializer&&(e.isIdentifier(it.initializer)||e.isAccessExpression(it.initializer))&&Ks(r,it.initializer))return Qi}}}}function Dn(pi,Ai){var Qi=i.flags&1048576?i:Ai;if(Qi.flags&1048576){var it=fa(pi);if(it){var st=gd(it);if(st&&Km(Qi,st))return it}}}function Ra(pi,Ai,Qi){var it=gd(Ai);if(it===void 0)return pi;var st=ur&&e.isOptionalChain(Ai)&&ls(pi,98304),kt=ai(st?$s(pi,2097152):pi,it);if(!kt)return pi;kt=st?$f(kt):kt;var Ha=Qi(kt);return pc(pi,function(Tn){var Ca=Wi(Tn,it);return!(Ha.flags&131072)&&Yg(Ha,Ca)})}function Bn(pi,Ai,Qi,it,st){if((Qi===36||Qi===37)&&pi.flags&1048576){var kt=Fh(pi);if(kt&&kt===gd(Ai)){var Ha=Mh(pi,ac(it));if(Ha)return Qi===(st?36:37)?Ha:Rl(ai(Ha,kt)||We)?Rh(pi,Ha):pi}}return Ra(pi,Ai,function(Tn){return Qt(Tn,Qi,it,st)})}function Jn(pi,Ai,Qi,it,st){if(it<st&&pi.flags&1048576&&Fh(pi)===gd(Ai)){var kt=Lh(Qi).slice(it,st),Ha=ba(e.map(kt,function(Tn){return Mh(pi,Tn)||We}));if(Ha!==We)return Ha}return Ra(pi,Ai,function(Tn){return Gn(Tn,Qi,it,st)})}function On(pi,Ai,Qi){if(Ks(r,Ai))return pi.flags&2&&Qi?mr:$s(pi,Qi?4194304:8388608);ur&&Qi&&pg(Ai,r)&&(pi=$s(pi,2097152));var it=Dn(Ai,pi);return it?Ra(pi,it,function(st){return $s(st,Qi?4194304:8388608)}):pi}function Ao(pi,Ai,Qi){var it=tn(pi,Ai);return it?it.flags&16777216?!0:Qi:Np(pi,Ai)?!0:!Qi}function $i(pi,Ai,Qi){return pi.flags&1048576||pi.flags&524288&&i!==pi||e.isThisTypeParameter(pi)||pi.flags&2097152&&e.every(pi.types,function(it){return it.symbol!==Rr})?pc(pi,function(it){return Ao(it,Ai,Qi)}):pi}function Vi(pi,Ai,Qi){switch(Ai.operatorToken.kind){case 63:case 75:case 76:case 77:return On(va(pi,Ai.right,Qi),Ai.left,Qi);case 34:case 35:case 36:case 37:var it=Ai.operatorToken.kind,st=Jp(Ai.left),kt=Jp(Ai.right);if(st.kind===215&&e.isStringLiteralLike(kt))return Qa(pi,st,it,kt,Qi);if(kt.kind===215&&e.isStringLiteralLike(st))return Qa(pi,kt,it,st,Qi);if(Ks(r,st))return Qt(pi,it,kt,Qi);if(Ks(r,kt))return Qt(pi,it,st,Qi);ur&&(pg(st,r)?pi=Wa(pi,it,kt,Qi):pg(kt,r)&&(pi=Wa(pi,it,st,Qi)));var Ha=Dn(st,pi);if(Ha)return Bn(pi,Ha,it,kt,Qi);var Tn=Dn(kt,pi);if(Tn)return Bn(pi,Tn,it,st,Qi);if(Ar(st))return Pt(pi,it,kt,Qi);if(Ar(kt))return Pt(pi,it,st,Qi);break;case 102:return pt(pi,Ai,Qi);case 101:if(e.isPrivateIdentifier(Ai.left))return Ot(pi,Ai,Qi);var Ca=Jp(Ai.right),kn=Wp(Ai.left);if(kn.flags&128){var mo=e.escapeLeadingUnderscores(kn.value);if(kh(pi)&&e.isAccessExpression(r)&&Ks(r.expression,Ca)&&gd(r)===mo)return $s(pi,Qi?524288:65536);if(Ks(r,Ca))return $i(pi,mo,Qi)}break;case 27:return va(pi,Ai.right,Qi);case 55:return Qi?va(va(pi,Ai.left,!0),Ai.right,!0):ba([va(pi,Ai.left,!1),va(pi,Ai.right,!1)]);case 56:return Qi?ba([va(pi,Ai.left,!0),va(pi,Ai.right,!0)]):va(va(pi,Ai.left,!1),Ai.right,!1)}return pi}function Ot(pi,Ai,Qi){var it=Jp(Ai.right);if(!Ks(r,it))return pi;e.Debug.assertNode(Ai.left,e.isPrivateIdentifier);var st=e0(Ai.left);if(st===void 0)return pi;var kt=st.parent,Ha=e.hasStaticModifier(e.Debug.checkDefined(st.valueDeclaration,"should always have a declaration"))?Jt(kt):Io(kt);return Xt(pi,Ha,Qi,lg)}function Wa(pi,Ai,Qi,it){var st=Ai===34||Ai===36,kt=Ai===34||Ai===35?98304:32768,Ha=ac(Qi),Tn=st!==it&&kf(Ha,function(Ca){return!!(Ca.flags&kt)})||st===it&&kf(Ha,function(Ca){return!(Ca.flags&(3|kt))});return Tn?$s(pi,2097152):pi}function Qt(pi,Ai,Qi,it){if(pi.flags&1)return pi;(Ai===35||Ai===37)&&(it=!it);var st=ac(Qi);if(it&&pi.flags&2&&(Ai===34||Ai===35)&&st.flags&65536)return ba([Ti,Nr]);if(pi.flags&2&&it&&(Ai===36||Ai===37))return st.flags&67239932?st:st.flags&524288?gt:pi;if(st.flags&98304){if(!ur)return pi;var kt=Ai===34||Ai===35,Ha=kt?it?262144:2097152:st.flags&65536?it?131072:1048576:it?65536:524288;return pi.flags&2&&Ha&3145728?mr:$s(pi,Ha)}if(it){var Tn=Ai===34?function(Ca){return Dh(Ca,st)||cI(Ca,st)}:function(Ca){return Dh(Ca,st)};return UE(pc(pi,Tn),st)}return Rl(st)?pc(pi,function(Ca){return!(cE(Ca)&&Dh(Ca,st))}):pi}function Qa(pi,Ai,Qi,it,st){(Qi===35||Qi===37)&&(st=!st);var kt=Jp(Ai.expression);if(!Ks(r,kt))return ur&&pg(kt,r)&&st===(it.text!=="undefined")?$s(pi,2097152):pi;if(pi.flags&1&&it.text==="function")return pi;if(st&&pi.flags&2&&it.text==="object")return pi===mr?gt:ba([gt,Ti]);var Ha=st?H.get(it.text)||128:se.get(it.text)||32768,Tn=ia(pi,it.text);return $s(st&&Tn?Cs(pi,Xn(Tn)):pi,Ha)}function En(pi,Ai,Qi,it,st){var kt=Qi!==it&&e.every(Lh(Ai).slice(Qi,it),st);return kt?$s(pi,2097152):pi}function Gn(pi,Ai,Qi,it){var st=Lh(Ai);if(!st.length)return pi;var kt=st.slice(Qi,it),Ha=Qi===it||e.contains(kt,St);if(pi.flags&2&&!Ha){for(var Tn=void 0,Ca=0;Ca<kt.length;Ca+=1){var kn=kt[Ca];if(kn.flags&67239932)Tn!==void 0&&Tn.push(kn);else if(kn.flags&524288)Tn===void 0&&(Tn=kt.slice(0,Ca)),Tn.push(gt);else return pi}return ba(Tn===void 0?kt:Tn)}var mo=ba(kt),Po=mo.flags&131072?St:UE(pc(pi,function(Wo){return Dh(mo,Wo)}),mo);if(!Ha)return Po;var ms=pc(pi,function(Wo){return!(cE(Wo)&&e.contains(st,Vc(rI(Wo))))});return Po.flags&131072?ms:ba([Po,ms])}function ia(pi,Ai){switch(Ai){case"function":return pi.flags&1?pi:Ka;case"object":return pi.flags&2?ba([gt,Ti]):pi;default:return Ja.get(Ai)}}function Xn(pi){return function(Ai){if(E_(Ai,pi))return Ai;if(E_(pi,Ai))return pi;if(Ai.flags&465829888){var Qi=Cc(Ai)||xe;if(E_(pi,Qi))return To([Ai,pi])}return Ai}}function ii(pi,Ai,Qi,it){var st=JE(Ai,!0);if(!st.length)return pi;var kt=e.findIndex(st,function(Wo){return Wo===void 0}),Ha=Qi===it||kt>=Qi&&kt<it,Tn,Ca;if(kt>-1){var kn=st.filter(function(Wo){return Wo!==void 0}),mo=kt<Qi?Qi-1:Qi,Po=kt<it?it-1:it;Tn=kn.slice(mo,Po),Ca=jb(mo,Po,kn,Ha)}else Tn=st.slice(Qi,it),Ca=jb(Qi,it,st,Ha);if(Ha)return pc(pi,function(Wo){return(np(Wo)&Ca)===Ca});var ms=$s(ba(Tn.map(function(Wo){return ia(pi,Wo)||pi})),Ca);return $s(Cs(pi,Xn(ms)),Ca)}function Ar(pi){return(e.isPropertyAccessExpression(pi)&&e.idText(pi.name)==="constructor"||e.isElementAccessExpression(pi)&&e.isStringLiteralLike(pi.argumentExpression)&&pi.argumentExpression.text==="constructor")&&Ks(r,pi.expression)}function Pt(pi,Ai,Qi,it){if(it?Ai!==34&&Ai!==36:Ai!==35&&Ai!==37)return pi;var st=ac(Qi);if(!yS(st)&&!Hd(st))return pi;var kt=tn(st,"prototype");if(!kt)return pi;var Ha=Jt(kt),Tn=At(Ha)?void 0:Ha;if(!Tn||Tn===Ht||Tn===Ka)return pi;if(At(pi))return Tn;return pc(pi,function(kn){return Ca(kn,Tn)});function Ca(kn,mo){return kn.flags&524288&&e.getObjectFlags(kn)&1||mo.flags&524288&&e.getObjectFlags(mo)&1?kn.symbol===mo.symbol:E_(kn,mo)}}function pt(pi,Ai,Qi){var it=Jp(Ai.left);if(!Ks(r,it))return Qi&&ur&&pg(it,r)?$s(pi,2097152):pi;var st=ac(Ai.right);if(!lg(st,Ka))return pi;var kt,Ha=tn(st,"prototype");if(Ha){var Tn=Jt(Ha);At(Tn)||(kt=Tn)}if(At(pi)&&(kt===Ht||kt===Ka))return pi;if(!kt){var Ca=za(st,1);kt=Ca.length?ba(e.map(Ca,function(mo){return So(wm(mo))})):tt}if(!Qi&&st.flags&1048576){var kn=e.find(st.types,function(mo){return!Hd(mo)});if(!kn)return pi}return Xt(pi,kt,Qi,lg)}function Xt(pi,Ai,Qi,it){if(!Qi)return pc(pi,function(kt){return!it(kt,Ai)});if(pi.flags&1048576){var st=pc(pi,function(kt){return it(kt,Ai)});if(!(st.flags&131072))return st}return E_(Ai,pi)?Ai:oo(pi,Ai)?pi:oo(Ai,pi)?Ai:To([pi,Ai])}function qt(pi,Ai,Qi){if(IE(Ai,r)){var it=Qi||!e.isCallChain(Ai)?jh(Ai):void 0,st=it&&wu(it);if(st&&(st.kind===0||st.kind===1))return Yt(pi,st,Ai,Qi)}if(kh(pi)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(Ai.expression)){var kt=Ai.expression;if(Ks(r.expression,Jp(kt.expression))&&e.isIdentifier(kt.name)&&kt.name.escapedText==="hasOwnProperty"&&Ai.arguments.length===1){var Ha=Ai.arguments[0];if(e.isStringLiteralLike(Ha)&&gd(r)===e.escapeLeadingUnderscores(Ha.text))return $s(pi,Qi?524288:65536)}}return pi}function Yt(pi,Ai,Qi,it){if(Ai.type&&!(At(pi)&&(Ai.type===Ht||Ai.type===Ka))){var st=rw(Ai,Qi);if(st){if(Ks(r,st))return Xt(pi,Ai.type,it,E_);ur&&it&&pg(st,r)&&!(np(Ai.type)&65536)&&(pi=$s(pi,2097152));var kt=Dn(st,pi);if(kt)return Ra(pi,kt,function(Ha){return Xt(Ha,Ai.type,it,E_)})}}return pi}function va(pi,Ai,Qi){if(e.isExpressionOfOptionalChainRoot(Ai)||e.isBinaryExpression(Ai.parent)&&Ai.parent.operatorToken.kind===60&&Ai.parent.left===Ai)return Ft(pi,Ai,Qi);switch(Ai.kind){case 79:if(!Ks(r,Ai)&&Ge<5){var it=dl(Ai);if(ty(it)){var st=it.valueDeclaration;if(st&&e.isVariableDeclaration(st)&&!st.type&&st.initializer&&VE(r)){Ge++;var kt=va(pi,st.initializer,Qi);return Ge--,kt}}}case 108:case 106:case 205:case 206:return On(pi,Ai,Qi);case 207:return qt(pi,Ai,Qi);case 211:case 229:return va(pi,Ai.expression,Qi);case 220:return Vi(pi,Ai,Qi);case 218:if(Ai.operator===53)return va(pi,Ai.operand,!Qi);break}return pi}function Ft(pi,Ai,Qi){if(Ks(r,Ai))return $s(pi,Qi?2097152:262144);var it=Dn(Ai,pi);return it?Ra(pi,it,function(st){return $s(st,Qi?2097152:262144)}):pi}}function tw(r,i){if(r=r.exportSymbol||r,(i.kind===79||i.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(i)&&(i=i.parent),e.isExpressionNode(i)&&(!e.isAssignmentTarget(i)||e.isWriteAccess(i)))){var t=ac(i);if($c(Da(i).resolvedSymbol)===r)return t}return e.isDeclarationName(i)&&e.isSetAccessor(i.parent)&&Wu(i.parent)?dt(i.parent.symbol,!0):Df(r)}function Hm(r){return e.findAncestor(r.parent,function(i){return e.isFunctionLike(i)&&!e.getImmediatelyInvokedFunctionExpression(i)||i.kind===261||i.kind===303||i.kind===166})}function Wh(r){if(!r.valueDeclaration)return!1;var i=e.getRootDeclaration(r.valueDeclaration).parent,t=Da(i);return t.flags&8388608||(t.flags|=8388608,aw(i)||KE(i)),r.isAssigned||!1}function aw(r){return!!e.findAncestor(r.parent,function(i){return(e.isFunctionLike(i)||e.isCatchClause(i))&&!!(Da(i).flags&8388608)})}function KE(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var i=dl(r);e.isParameterOrCatchClauseVariable(i)&&(i.isAssigned=!0)}}else e.forEachChild(r,KE)}function ty(r){return r.flags&3&&(Yh(r)&2)!==0}function nw(r,i){if(ku(i.symbol,2)){var t=ur&&i.kind===163&&i.initializer&&Fu(r)&32768&&!(Fu(hn(i.initializer))&32768);return eu(),t?$s(r,524288):r}else return v_(i.symbol),r}function ow(r,i){var t=i.parent;return t.kind===205||t.kind===207&&t.expression===i||t.kind===206&&t.expression===i&&!(dg(r,cw)&&fd(ac(t.argumentExpression)))}function sw(r){return!!(r.flags&465829888&&rg(r).flags&1146880)}function cw(r){return!!(r.flags&465829888&&!ls(rg(r),98304))}function uw(r,i){var t=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&(i&&i&32?Su(r,8):Su(r));return t&&!Rm(t)}function eb(r,i,t){var o=!(t&&t&2)&&dg(r,sw)&&(ow(r,i)||uw(i,t));return o?Cs(r,function(s){return s.flags&465829888?rg(s):s}):r}function GE(r){return!!e.findAncestor(r,function(i){var t=i.parent;return t===void 0?"quit":e.isExportAssignment(t)?t.expression===i&&e.isEntityNameExpression(i):e.isExportSpecifier(t)?t.name===i||t.propertyName===i:!1})}function qh(r,i){if(il(r,111551)&&!im(i)&&!gu(r)){var t=zo(r);t.flags&111551&&(ye.isolatedModules||e.shouldPreserveConstEnums(ye)&&GE(i)||!fv(t)?jf(r):sf(r))}}function lw(r,i){var t=r.valueDeclaration;if(t){if(e.isBindingElement(t)&&!t.initializer&&!t.dotDotDotToken&&t.parent.elements.length>=2){var o=t.parent.parent;if(o.kind===253&&e.getCombinedNodeFlags(t)&2||o.kind===163){var s=Da(i);if(!(s.flags&268435456)){s.flags|=268435456;var u=La(o,0);if(s.flags&=-268435457,u&&u.flags&1048576&&!(o.kind===163&&Wh(r))){var T=t.parent,q=op(T,u,u,void 0,i.flowNode);return q.flags&131072?St:Qs(t,q)}}}}if(e.isParameter(t)&&!t.type&&!t.initializer&&!t.dotDotDotToken){var fe=t.parent;if(fe.parameters.length>=2&&gD(fe)){var Ne=Qm(fe);if(Ne&&Ne.parameters.length===1&&U(Ne)){var $e=Jt(Ne.parameters[0]);if($e.flags&1048576&&kf($e,Ln)&&!Wh(r)){var q=op(fe,$e,$e,void 0,i.flowNode),Ze=fe.parameters.indexOf(t)-(e.getThisParameter(fe)?1:0);return Mc(q,xf(Ze))}}}}}return Jt(r)}function fw(r,i){if(e.isThisInTypeQuery(r))return ay(r);var t=dl(r);if(t===hr)return Oe;if(t===ci){if(CC(r))return Wr(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Oe;var o=e.getContainingFunction(r);return Se<2&&(o.kind===213?Wr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(o,256)&&Wr(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Da(o).flags|=8192,Jt(t)}r.parent&&e.isPropertyAccessExpression(r.parent)&&r.parent.expression===r||qh(t,r);var s=$c(t),u=y6(s,r);Qc(u)&&Z1(r,u)&&u.declarations&&fu(r,u.declarations,r.escapedText);var T=s.valueDeclaration;if(T&&s.flags&32){if(T.kind===256&&e.nodeIsDecorated(T))for(var o=e.getContainingClass(r);o!==void 0;){if(o===T&&o.name!==r){Da(T).flags|=16777216,Da(r).flags|=33554432;break}o=e.getContainingClass(o)}else if(T.kind===225)for(var o=e.getThisContainer(r,!1);o.kind!==303;){if(o.parent===T){(e.isPropertyDeclaration(o)&&e.isStatic(o)||e.isClassStaticBlockDeclaration(o))&&(Da(T).flags|=16777216,Da(r).flags|=33554432);break}o=e.getThisContainer(o,!1)}}dw(r,t);var q=lw(s,r),fe=e.getAssignmentTargetKind(r);if(fe){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var Ne=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Wr(r,Ne,Ga(t)),Oe}if(zl(s))return s.flags&3?Wr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ga(t)):Wr(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ga(t)),Oe}var $e=s.flags&2097152;if(s.flags&3){if(fe===1)return q}else if($e)T=ju(t);else return q;if(!T)return q;q=eb(q,r,i);for(var Ze=e.getRootDeclaration(T).kind===163,lr=Hm(T),yr=Hm(r),Zr=yr!==lr,ui=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&$D(r.parent.parent),Ii=t.flags&134217728;yr!==lr&&(yr.kind===212||yr.kind===213||e.isObjectLiteralOrClassExpressionMethodOrAccessor(yr))&&(ty(s)&&q!==Nt||Ze&&!Wh(s));)yr=Hm(yr);var Fi=Ze||$e||Zr||ui||Ii||e.isBindingElement(T)||q!==ze&&q!==Nt&&(!ur||(q.flags&16387)!==0||im(r)||r.parent.kind===274)||r.parent.kind===229||T.kind===253&&T.exclamationToken||T.flags&8388608,Ri=Fi?Ze?nw(q,T):q:q===ze||q===Nt?Nr:$f(q),Xi=op(r,q,Ri,yr);if(!WE(r)&&(q===ze||q===Nt)){if(Xi===ze||Xi===Nt)return Tr&&(Wr(e.getNameOfDeclaration(T),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ga(t),ht(Xi)),Wr(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ga(t),ht(Xi))),uv(Xi)}else if(!Fi&&!(Fu(q)&32768)&&Fu(Xi)&32768)return Wr(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ga(t)),q;return fe?Bl(Xi):Xi}function _w(r,i){return!!e.findAncestor(r,function(t){return t===i?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t})}function pw(r,i){return e.findAncestor(r,function(t){return t===i?"quit":t===i.initializer||t===i.condition||t===i.incrementor||t===i.statement})}function rb(r){return e.findAncestor(r,function(i){return!i||e.nodeStartsNewLexicalEnvironment(i)?"quit":e.isIterationStatement(i,!1)})}function dw(r,i){if(!(Se>=2||(i.flags&34)===0||!i.valueDeclaration||e.isSourceFile(i.valueDeclaration)||i.valueDeclaration.parent.kind===291)){var t=e.getEnclosingBlockScopeContainer(i.valueDeclaration),o=_w(r,t),s=rb(t);if(s){if(o){var u=!0;if(e.isForStatement(t)){var T=e.getAncestor(i.valueDeclaration,254);if(T&&T.parent===t){var q=pw(r.parent,t);if(q){var fe=Da(q);fe.flags|=131072;var Ne=fe.capturedBlockScopeBindings||(fe.capturedBlockScopeBindings=[]);e.pushIfUnique(Ne,i),q===t.initializer&&(u=!1)}}}u&&(Da(s).flags|=65536)}if(e.isForStatement(t)){var T=e.getAncestor(i.valueDeclaration,254);T&&T.parent===t&&mw(r,t)&&(Da(i.valueDeclaration).flags|=4194304)}Da(i.valueDeclaration).flags|=524288}o&&(Da(i.valueDeclaration).flags|=262144)}}function gw(r,i){var t=Da(r);return!!t&&e.contains(t.capturedBlockScopeBindings,It(i))}function mw(r,i){for(var t=r;t.parent.kind===211;)t=t.parent;var o=!1;if(e.isAssignmentTarget(t))o=!0;else if(t.parent.kind===218||t.parent.kind===219){var s=t.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(t,function(u){return u===i?"quit":u===i.statement}):!1}function ib(r,i){if(Da(r).flags|=2,i.kind===166||i.kind===170){var t=i.parent;Da(t).flags|=4}else Da(i).flags|=4}function HE(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,HE)}function XE(r){var i=It(r),t=Io(i),o=ef(t);return o===hi}function QE(r,i,t){var o=i.parent,s=e.getClassExtendsHeritageElement(o);s&&!XE(o)&&r.flowNode&&!zh(r.flowNode,!1)&&Wr(r,t)}function vw(r,i){e.isPropertyDeclaration(i)&&e.hasStaticModifier(i)&&i.initializer&&e.textRangeContainsPositionInclusive(i.initializer,r.pos)&&e.length(i.parent.decorators)&&Wr(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function ay(r){var i=im(r),t=e.getThisContainer(r,!0),o=!1;switch(t.kind===170&&QE(r,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),t.kind===213&&(t=e.getThisContainer(t,!1),o=!0),vw(r,t),t.kind){case 260:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:YE(r,t)&&Wr(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:Wr(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!i&&o&&Se<2&&ib(r,t);var s=tb(r,!0,t);if(n){var u=Jt(Rr);if(s===u&&o)Wr(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var T=Wr(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var q=tb(t);q&&q!==u&&e.addRelatedInfo(T,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||xe}function tb(r,i,t){i===void 0&&(i=!0),t===void 0&&(t=e.getThisContainer(r,!1));var o=e.isInJSFile(r);if(e.isFunctionLike(t)&&(!ob(r)||e.getThisParameter(t))){var s=Ae(t)||o&&Dw(t);if(!s){var u=hw(t);if(o&&u){var T=hn(u).symbol;T&&T.members&&T.flags&16&&(s=Io(T).thisType)}else ml(t)&&(s=Io(Wn(t.symbol)).thisType);s||(s=ZE(t))}if(s)return op(r,s)}if(e.isClassLike(t.parent)){var q=It(t.parent),fe=e.isStatic(t)?Jt(q):Io(q).thisType;return op(r,fe)}if(e.isSourceFile(t))if(t.commonJsModuleIndicator){var Ne=It(t);return Ne&&Jt(Ne)}else{if(t.externalModuleIndicator)return Nr;if(i)return Jt(Rr)}}function yw(r){var i=e.getThisContainer(r,!1);if(e.isFunctionLike(i)){var t=Ku(i);if(t.thisParameter)return Jh(t.thisParameter)}if(e.isClassLike(i.parent)){var o=It(i.parent);return e.isStatic(i)?Jt(o):Io(o).thisType}}function hw(r){if(r.kind===212&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===168&&r.parent.kind===204&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===212&&r.parent.kind===294&&r.parent.parent.kind===204&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===212&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Dw(r){var i=e.getJSDocType(r);if(i&&i.kind===315){var t=i;if(t.parameters.length>0&&t.parameters[0].name&&t.parameters[0].name.escapedText==="this")return Ua(t.parameters[0].type)}var o=e.getJSDocThisTag(r);if(o&&o.typeExpression)return Ua(o.typeExpression)}function YE(r,i){return!!e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)?"quit":t.kind===163&&t.parent===i})}function ab(r){var i=r.parent.kind===207&&r.parent.expression===r,t=e.getSuperContainer(r,!0),o=t,s=!1;if(!i)for(;o&&o.kind===213;)o=e.getSuperContainer(o,!0),s=Se<2;var u=Ze(o),T=0;if(!u){var q=e.findAncestor(r,function(lr){return lr===o?"quit":lr.kind===161});return q&&q.kind===161?Wr(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):i?Wr(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!o||!o.parent||!(e.isClassLike(o.parent)||o.parent.kind===204)?Wr(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Wr(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Oe}if(!i&&t.kind===170&&QE(r,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(o)||i?(T=512,!i&&Se>=2&&Se<=8&&(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(lr){(!e.isSourceFile(lr)||e.isExternalOrCommonJsModule(lr))&&(Da(lr).flags|=134217728)})):T=256,Da(r).flags|=T,o.kind===168&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Da(o).flags|=4096:Da(o).flags|=2048),s&&ib(r.parent,o),o.parent.kind===204)return Se<2?(Wr(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Oe):xe;var fe=o.parent;if(!e.getClassExtendsHeritageElement(fe))return Wr(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Oe;var Ne=Io(It(fe)),$e=Ne&&zc(Ne)[0];if(!$e)return Oe;if(o.kind===170&&YE(r,o))return Wr(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Oe;return T===512?ef(Ne):Wc($e,Ne.thisType);function Ze(lr){return lr?i?lr.kind===170:e.isClassLike(lr.parent)||lr.parent.kind===204?e.isStatic(lr)?lr.kind===168||lr.kind===167||lr.kind===171||lr.kind===172||lr.kind===166||lr.kind===169:lr.kind===168||lr.kind===167||lr.kind===171||lr.kind===172||lr.kind===166||lr.kind===165||lr.kind===170:!1:!1}}function bw(r){return(r.kind===168||r.kind===171||r.kind===172)&&r.parent.kind===204?r.parent:r.kind===212&&r.parent.kind===294?r.parent.parent:void 0}function $E(r){return e.getObjectFlags(r)&4&&r.target===Ei?Co(r)[0]:void 0}function Sw(r){return Cs(r,function(i){return i.flags&2097152?e.forEach(i.types,$E):$E(i)})}function ZE(r){if(r.kind!==213){if(gD(r)){var i=Qm(r);if(i){var t=i.thisParameter;if(t)return Jt(t)}}var o=e.isInJSFile(r);if(n||o){var s=bw(r);if(s){for(var u=jp(s),T=s,q=u;q;){var fe=Sw(q);if(fe)return gn(fe,UD(Xm(s)));if(T.parent.kind!==294)break;T=T.parent.parent,q=jp(T)}return Hc(u?C_(u):js(s))}var Ne=e.walkUpParenthesizedExpressions(r.parent);if(Ne.kind===220&&Ne.operatorToken.kind===63){var $e=Ne.left;if(e.isAccessExpression($e)){var Ze=$e.expression;if(o&&e.isIdentifier(Ze)){var lr=e.getSourceFileOfNode(Ne);if(lr.commonJsModuleIndicator&&dl(Ze)===lr.symbol)return}return Hc(js(Ze))}}}}}function eC(r){var i=r.parent;if(!!gD(i)){var t=e.getImmediatelyInvokedFunctionExpression(i);if(t&&t.arguments){var o=Ob(t),s=i.parameters.indexOf(r);if(r.dotDotDotToken)return wb(o,s,o.length,xe,void 0,0);var u=Da(t),T=u.resolvedSignature;u.resolvedSignature=go;var q=s<o.length?Lp(hn(o[s])):r.initializer?void 0:Ur;return u.resolvedSignature=T,q}var fe=Qm(i);if(fe){var Ne=i.parameters.indexOf(r)-(e.getThisParameter(i)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(i.parameters)===r?um(fe,Ne):hd(fe,Ne)}}}function nb(r){var i=e.getEffectiveTypeAnnotationNode(r);if(i)return Ua(i);switch(r.kind){case 163:return eC(r);case 202:return Tw(r);case 166:if(e.isStatic(r))return xw(r)}}function Tw(r){var i=r.parent.parent,t=r.propertyName||r.name,o=nb(i)||i.kind!==202&&i.initializer&&vy(i,r.dotDotDotToken?32:0);if(!(!o||e.isBindingPattern(t)||e.isComputedNonLiteralName(t))){if(i.name.kind===201){var s=e.indexOfNode(r.parent.elements,r);return s<0?void 0:lb(o,s)}var u=$_(t);if(ul(u)){var T=Nl(u);return ai(o,T)}}}function xw(r){var i=e.isExpression(r.parent)&&Su(r.parent);if(!!i)return yd(i,It(r).escapedName)}function Ew(r,i){var t=r.parent;if(e.hasInitializer(t)&&r===t.initializer){var o=nb(t);if(o)return o;if(!(i&8)&&e.isBindingPattern(t.name))return cl(t.name,!0,!1)}}function Cw(r){var i=e.getContainingFunction(r);if(i){var t=sb(i);if(t){var o=e.getFunctionFlags(i);if(o&1){var s=o&2?2:1,u=xy(t,s,void 0);if(!u)return;t=u.returnType}if(o&2){var T=Cs(t,k_);return T&&ba([T,uk(T)])}return t}}}function kw(r,i){var t=Su(r,i);if(t){var o=k_(t);return o&&ba([o,uk(o)])}}function Aw(r){var i=e.getContainingFunction(r);if(i){var t=e.getFunctionFlags(i),o=sb(i);if(o)return r.asteriskToken?o:Sg(0,o,(t&2)!==0)}}function ob(r){for(var i=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(i||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(i=!0),r=r.parent}return!1}function rC(r,i){var t=!!(e.getFunctionFlags(i)&2),o=sb(i);if(o)return Sg(r,o,t)||void 0}function sb(r){var i=ag(r);if(i)return i;var t=_b(r);if(t&&!R1(t))return So(t);var o=e.getImmediatelyInvokedFunctionExpression(r);if(o)return Su(o)}function iC(r,i){var t=Ob(r),o=t.indexOf(i);return o===-1?void 0:cb(r,o)}function cb(r,i){if(e.isImportCall(r))return i===0?ki:i===1?ix(!1):xe;var t=Da(r).resolvedSignature===Ko?Ko:sm(r);if(e.isJsxOpeningLikeElement(r)&&i===0)return Hh(t,r);var o=t.parameters.length-1;return U(t)&&i>=o?Mc(Jt(t.parameters[o]),xf(i-o),256):Hu(t,i)}function Pw(r,i){if(r.parent.kind===209)return iC(r.parent,i)}function Nw(r,i){var t=r.parent,o=t.left,s=t.operatorToken,u=t.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===u?ww(t):void 0;case 56:case 60:var T=Su(t,i);return r===u&&(T&&T.pattern||!T&&!e.isDefaultedExpandoInitializer(t))?ac(o):T;case 55:case 27:return r===u?Su(t,i):void 0;default:return}}function Iw(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return dl(r);if(e.isPropertyAccessExpression(r)){var i=ac(r.expression);return e.isPrivateIdentifier(r.name)?t(i,r.name):tn(i,r.name.escapedText)}return;function t(o,s){var u=Zh(s.escapedText,s);return u&&Tb(o,u)}}function ww(r){var i,t,o=e.getAssignmentDeclarationKind(r);switch(o){case 0:case 4:var s=Iw(r.left),u=s&&s.valueDeclaration;if(u&&(e.isPropertyDeclaration(u)||e.isPropertySignature(u))){var T=e.getEffectiveTypeAnnotationNode(u);return T&&gn(Ua(T),Ma(s).mapper)||u.initializer&&ac(r.left)}return o===0?ac(r.left):tC(r);case 5:if(Vh(r,o))return tC(r);if(r.left.symbol){var q=r.left.symbol.valueDeclaration;if(!q)return;var fe=e.cast(r.left,e.isAccessExpression),T=e.getEffectiveTypeAnnotationNode(q);if(T)return Ua(T);if(e.isIdentifier(fe.expression)){var Ne=fe.expression,$e=os(Ne,Ne.escapedText,111551,void 0,Ne.escapedText,!0);if($e){var Ze=$e.valueDeclaration&&e.getEffectiveTypeAnnotationNode($e.valueDeclaration);if(Ze){var lr=e.getElementOrPropertyAccessName(fe);if(lr!==void 0)return yd(Ua(Ze),lr)}return}}return e.isInJSFile(q)?void 0:ac(r.left)}else return ac(r.left);case 1:case 6:case 3:var yr=(i=r.left.symbol)===null||i===void 0?void 0:i.valueDeclaration;case 2:yr||(yr=(t=r.symbol)===null||t===void 0?void 0:t.valueDeclaration);var Zr=yr&&e.getEffectiveTypeAnnotationNode(yr);return Zr?Ua(Zr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(o)}}function Vh(r,i){if(i===void 0&&(i=e.getAssignmentDeclarationKind(r)),i===4)return!0;if(!e.isInJSFile(r)||i!==5||!e.isIdentifier(r.left.expression))return!1;var t=r.left.expression.escapedText,o=os(r.left,t,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(o==null?void 0:o.valueDeclaration)}function tC(r){if(!r.symbol)return ac(r.left);if(r.symbol.valueDeclaration){var i=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(i){var t=Ua(i);if(t)return t}}var o=e.cast(r.left,e.isAccessExpression);if(!!e.isObjectLiteralMethod(e.getThisContainer(o.expression,!1))){var s=ay(o.expression),u=e.getElementOrPropertyAccessName(o);return u!==void 0&&yd(s,u)||void 0}}function Ow(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&vf(r,0)>=0)}function yd(r,i,t){return Cs(r,function(o){var s;if(Fc(o)){var u=Iu(o),T=Cc(u)||u,q=t||Ou(e.unescapeLeadingUnderscores(i));if(oo(q,T))return _h(o,q)}else if(o.flags&3670016){var fe=tn(o,i);if(fe)return Ow(fe)?void 0:Jt(fe);if(Ln(o)){var Ne=zm(o);if(Ne&&e.isNumericLiteralName(i)&&+i>=0)return Ne}return(s=gs(X_(o),t||Ou(e.unescapeLeadingUnderscores(i))))===null||s===void 0?void 0:s.type}},!0)}function Fw(r,i){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&16777216))return ub(r,i)}function ub(r,i){var t=r.parent,o=e.isPropertyAssignment(r)&&nb(r);if(o)return o;var s=jp(t,i);if(s){if(Pp(r)){var u=It(r);return yd(s,u.escapedName,Ma(u).nameType)}if(r.name){var T=$_(r.name);return Cs(s,function(q){var fe;return(fe=gs(X_(q),T))===null||fe===void 0?void 0:fe.type},!0)}}}function lb(r,i){return r&&(yd(r,""+i)||Cs(r,function(t){return aS(1,t,Nr,void 0,!1)},!0))}function Mw(r,i){var t=r.parent;return r===t.whenTrue||r===t.whenFalse?Su(t,i):void 0}function Lw(r,i){var t=jp(r.openingElement.tagName),o=Qh(yg(r));if(!!(t&&!At(t)&&o&&o!=="")){var s=e.getSemanticJsxChildren(r.children),u=s.indexOf(i),T=yd(t,o);return T&&(s.length===1?T:Cs(T,function(q){return ap(q)?Mc(q,xf(u)):q},!0))}}function Rw(r){var i=r.parent;return e.isJsxAttributeLike(i)?Su(r):e.isJsxElement(i)?Lw(i,r):void 0}function aC(r){if(e.isJsxAttribute(r)){var i=jp(r.parent);return!i||At(i)?void 0:yd(i,r.name.escapedText)}else return Su(r.parent)}function ny(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return ny(r.expression);case 287:return!r.expression||ny(r.expression)}return!1}function Bw(r,i){return OI(i,r)||xD(i,e.concatenate(e.map(e.filter(r.properties,function(t){return!!t.symbol&&t.kind===294&&ny(t.initializer)&&Km(i,t.symbol.escapedName)}),function(t){return[function(){return yy(t.initializer)},t.symbol.escapedName]}),e.map(e.filter(_o(i),function(t){var o;return!!(t.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(t.escapedName)&&Km(i,t.escapedName)}),function(t){return[function(){return Nr},t.escapedName]})),oo,i)}function Jw(r,i){return xD(i,e.concatenate(e.map(e.filter(r.properties,function(t){return!!t.symbol&&t.kind===284&&Km(i,t.symbol.escapedName)&&(!t.initializer||ny(t.initializer))}),function(t){return[t.initializer?function(){return yy(t.initializer)}:function(){return Rt},t.symbol.escapedName]}),e.map(e.filter(_o(i),function(t){var o;return!!(t.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(t.escapedName)&&Km(i,t.escapedName)}),function(t){return[function(){return Nr},t.escapedName]})),oo,i)}function jp(r,i){var t=e.isObjectLiteralMethod(r)?Fw(r,i):Su(r,i),o=Kh(t,r,i);if(o&&!(i&&i&2&&o.flags&8650752)){var s=Cs(o,$,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?Bw(r,s):s.flags&1048576&&e.isJsxAttributes(r)?Jw(r,s):s}}function Kh(r,i,t){if(r&&ls(r,465829888)){var o=Xm(i);if(o&&e.some(o.inferences,Ud)){if(t&&t&1)return Gh(r,o.nonFixingMapper);if(o.returnMapper)return Gh(r,o.returnMapper)}}return r}function Gh(r,i){return r.flags&465829888?gn(r,i):r.flags&1048576?ba(e.map(r.types,function(t){return Gh(t,i)}),0):r.flags&2097152?To(e.map(r.types,function(t){return Gh(t,i)})):r}function Su(r,i){if(r.flags&16777216)return;if(r.contextualType)return r.contextualType;var t=r.parent;switch(t.kind){case 253:case 163:case 166:case 165:case 202:return Ew(r,i);case 213:case 246:return Cw(r);case 223:return Aw(t);case 217:return kw(t,i);case 207:case 208:return iC(t,r);case 210:case 228:return e.isConstTypeReference(t.type)?T(t):Ua(t.type);case 220:return Nw(r,i);case 294:case 295:return ub(t,i);case 296:return Su(t.parent,i);case 203:{var o=t,s=jp(o,i);return lb(s,e.indexOfNode(o.elements,r))}case 221:return Mw(r,i);case 232:return e.Debug.assert(t.parent.kind===222),Pw(t.parent,r);case 211:{var u=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return u?e.isJSDocTypeTag(u)&&e.isConstTypeReference(u.typeExpression.type)?T(t):Ua(u.typeExpression.type):Su(t,i)}case 229:return Su(t,i);case 287:return Rw(t);case 284:case 286:return aC(t);case 279:case 278:return jw(t,i)}return;function T(q){return Su(q)}}function Xm(r){var i=e.findAncestor(r,function(t){return!!t.inferenceContext});return i&&i.inferenceContext}function jw(r,i){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&i!==4?r.parent.contextualType:cb(r,0)}function Hh(r,i){return zC(i)!==0?Uw(r,i):qw(r,i)}function Uw(r,i){var t=Jb(r,We);t=nC(i,yg(i),t);var o=Up(w.IntrinsicAttributes,i);return ra(o)||(t=eg(o,t)),t}function zw(r,i){if(r.compositeSignatures){for(var t=[],o=0,s=r.compositeSignatures;o<s.length;o++){var u=s[o],T=So(u);if(At(T))return T;var q=ai(T,i);if(!q)return;t.push(q)}return To(t)}var fe=So(r);return At(fe)?fe:ai(fe,i)}function Ww(r){if(am(r.tagName)){var i=dC(r),t=s0(r,i);return qg(t)}var o=js(r.tagName);if(o.flags&128){var i=pC(o,r);if(!i)return Oe;var t=s0(r,i);return qg(t)}return o}function nC(r,i,t){var o=u5(i);if(o){var s=Io(o),u=Ww(r);if(o.flags&524288){var T=Ma(o).typeParameters;if(e.length(T)>=2){var q=S_([u,t],T,2,e.isInJSFile(r));return Kg(o,q)}}if(e.length(s.typeParameters)>=2){var q=S_([u,t],s.typeParameters,2,e.isInJSFile(r));return Hf(s,q)}}return t}function qw(r,i){var t=yg(i),o=l5(t),s=o===void 0?Jb(r,We):o===""?So(r):zw(r,o);if(!s)return!!o&&!!e.length(i.attributes.properties)&&Wr(i,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),We;if(s=nC(i,t,s),At(s))return s;var u=s,T=Up(w.IntrinsicClassAttributes,i);if(!ra(T)){var q=Sf(T.symbol),fe=So(r);u=eg(q?Hf(T,S_([fe],q,Ol(q),e.isInJSFile(i))):T,u)}var Ne=Up(w.IntrinsicAttributes,i);return ra(Ne)||(u=eg(Ne,u)),u}function Vw(r){return e.getStrictOptionValue(ye,"noImplicitAny")?e.reduceLeft(r,function(i,t){return i===t||!i?i:Iv(i.typeParameters,t.typeParameters)?Hw(i,t):void 0}):void 0}function Kw(r,i,t){if(!r||!i)return r||i;var o=ba([Jt(r),gn(Jt(i),t)]);return Jd(r,o)}function Gw(r,i,t){for(var o=Lc(r),s=Lc(i),u=o>=s?r:i,T=u===r?i:r,q=u===r?o:s,fe=Ul(r)||Ul(i),Ne=fe&&!Ul(u),$e=new Array(q+(Ne?1:0)),Ze=0;Ze<q;Ze++){var lr=hd(u,Ze);u===i&&(lr=gn(lr,t));var yr=hd(T,Ze)||We;T===i&&(yr=gn(yr,t));var Zr=ba([lr,yr]),ui=fe&&!Ne&&Ze===q-1,Ii=Ze>=jl(u)&&Ze>=jl(T),Fi=Ze>=o?void 0:cm(r,Ze),Ri=Ze>=s?void 0:cm(i,Ze),Xi=Fi===Ri?Fi:Fi?Ri?void 0:Fi:Ri,ea=bo(1|(Ii&&!ui?16777216:0),Xi||"arg".concat(Ze));ea.type=ui?tc(Zr):Zr,$e[Ze]=ea}if(Ne){var lt=bo(1,"args");lt.type=tc(Hu(T,q)),T===i&&(lt.type=gn(lt.type,t)),$e[q]=lt}return $e}function Hw(r,i){var t=r.typeParameters||i.typeParameters,o;r.typeParameters&&i.typeParameters&&(o=Kc(i.typeParameters,r.typeParameters));var s=r.declaration,u=Gw(r,i,o),T=Kw(r.thisParameter,i.thisParameter,o),q=Math.max(r.minArgumentCount,i.minArgumentCount),fe=Pu(s,t,T,u,void 0,void 0,q,(r.flags|i.flags)&39);return fe.compositeKind=2097152,fe.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[i]),o&&(fe.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?pd(r.mapper,o):o),fe}function fb(r,i){var t=za(r,0),o=e.filter(t,function(s){return!Xw(s,i)});return o.length===1?o[0]:Vw(o)}function Xw(r,i){for(var t=0;t<i.parameters.length;t++){var o=i.parameters[t];if(o.initializer||o.questionToken||o.dotDotDotToken||Nm(o))break}return i.parameters.length&&e.parameterIsThisKeyword(i.parameters[0])&&t--,!Ul(r)&&Lc(r)<t}function _b(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?Qm(r):void 0}function Qm(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var i=Wg(r);if(i)return i;var t=jp(r,1);if(!!t){if(!(t.flags&1048576))return fb(t,r);for(var o,s=t.types,u=0,T=s;u<T.length;u++){var q=T[u],fe=fb(q,r);if(fe)if(!o)o=[fe];else if(Yv(o[0],fe,!1,!0,!0,jm))o.push(fe);else return}if(o)return o.length===1?o[0]:Wy(o[0],o)}}function Qw(r,i){Se<2&&dc(r,ye.downlevelIteration?1536:1024);var t=hn(r.expression,i);return P_(33,t,Nr,r.expression)}function Yw(r){return r.isSpread?Mc(r.type,Ui):r.type}function tm(r){return r.kind===202&&!!r.initializer||r.kind===220&&r.operatorToken.kind===63}function oC(r,i,t){for(var o=r.elements,s=o.length,u=[],T=[],q=jp(r),fe=e.isAssignmentTarget(r),Ne=lm(r),$e=!1,Ze=0;Ze<s;Ze++){var lr=o[Ze];if(lr.kind===224){Se<2&&dc(lr,ye.downlevelIteration?1536:1024);var yr=hn(lr.expression,i,t);if(ap(yr))u.push(yr),T.push(8);else if(fe){var Zr=fl(yr,Ui)||aS(65,yr,Nr,void 0,!1)||We;u.push(Zr),T.push(4)}else u.push(P_(33,yr,Nr,lr.expression)),T.push(4)}else if(Ce&&lr.kind===226)$e=!0,u.push(mi),T.push(2);else{var ui=lb(q,u.length),Ii=fm(lr,i,ui,t);u.push(Ec(Ii,!0,$e)),T.push($e?2:1)}}return fe?Ml(u,T):t||Ne||q&&dg(q,Zg)?sC(Ml(u,T,Ne)):sC(tc(u.length?ba(e.sameMap(u,function(Fi,Ri){return T[Ri]&8?Z_(Fi,Ui)||xe:Fi}),2):ur?Yi:Ur,Ne))}function sC(r){if(!(e.getObjectFlags(r)&4))return r;var i=r.literalType;return i||(i=r.literalType=zT(r),i.objectFlags|=294912),i}function $w(r){switch(r.kind){case 161:return Zw(r);case 79:return e.isNumericLiteralName(r.escapedText);case 8:case 10:return e.isNumericLiteralName(r.text);default:return!1}}function Zw(r){return ws(Zf(r),296)}function Zf(r){var i=Da(r.expression);if(!i.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101&&r.parent.kind!==171&&r.parent.kind!==172)return i.resolvedType=Oe;if(i.resolvedType=hn(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var t=e.getEnclosingBlockScopeContainer(r.parent.parent),o=rb(t);o&&(Da(o).flags|=65536,Da(r).flags|=524288,Da(r.parent.parent).flags|=524288)}(i.resolvedType.flags&98304||!ws(i.resolvedType,402665900)&&!oo(i.resolvedType,Bt))&&Wr(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return i.resolvedType}function e5(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i[0];return e.isNumericLiteralName(r.escapedName)||t&&e.isNamedDeclaration(t)&&$w(t.name)}function cC(r){var i,t=(i=r.declarations)===null||i===void 0?void 0:i[0];return e.isKnownSymbol(r)||t&&e.isNamedDeclaration(t)&&e.isComputedPropertyName(t.name)&&ws(Zf(t.name),4096)}function pb(r,i,t,o){for(var s=[],u=i;u<t.length;u++){var T=t[u];(o===ki&&!cC(T)||o===Ui&&e5(T)||o===ua&&cC(T))&&s.push(Jt(t[u]))}var q=s.length?ba(s,2):Nr;return Fl(o,q,lm(r))}function db(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var i=Ma(r);if(!i.immediateTarget){var t=ju(r);if(!t)return e.Debug.fail();i.immediateTarget=of(t,!0)}return i.immediateTarget}function r5(r,i){var t=e.isAssignmentTarget(r);C9(r,t);for(var o=ur?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=[],T=tt,q=jp(r),fe=q&&q.pattern&&(q.pattern.kind===200||q.pattern.kind===204),Ne=lm(r),$e=Ne?8:0,Ze=e.isInJSFile(r)&&!e.isInJsonFile(r),lr=e.getJSDocEnumTag(r),yr=!q&&Ze&&!lr,Zr=Pr,ui=!1,Ii=!1,Fi=!1,Ri=!1,Xi=0,ea=r.properties;Xi<ea.length;Xi++){var lt=ea[Xi];lt.name&&e.isComputedPropertyName(lt.name)&&Zf(lt.name)}for(var Ia=0,fa=0,Dn=r.properties;fa<Dn.length;fa++){var Ra=Dn[fa],Bn=It(Ra),Jn=Ra.name&&Ra.name.kind===161?Zf(Ra.name):void 0;if(Ra.kind===294||Ra.kind===295||e.isObjectLiteralMethod(Ra)){var On=Ra.kind===294?Sk(Ra,i):Ra.kind===295?fm(!t&&Ra.objectAssignmentInitializer?Ra.objectAssignmentInitializer:Ra.name,i):Tk(Ra,i);if(Ze){var Ao=Au(Ra);Ao?(Gc(On,Ao,Ra),On=Ao):lr&&lr.typeExpression&&Gc(On,Ua(lr.typeExpression),Ra)}Zr|=e.getObjectFlags(On)&917504;var $i=Jn&&ul(Jn)?Jn:void 0,Vi=$i?bo(4|Bn.flags,Nl($i),$e|4096):bo(4|Bn.flags,Bn.escapedName,$e);if($i&&(Vi.nameType=$i),t){var Ot=Ra.kind===294&&tm(Ra.initializer)||Ra.kind===295&&Ra.objectAssignmentInitializer;Ot&&(Vi.flags|=16777216)}else if(fe&&!(e.getObjectFlags(q)&512)){var Wa=tn(q,Bn.escapedName);Wa?Vi.flags|=Wa.flags&16777216:!ye.suppressExcessPropertyErrors&&!kc(q,ki)&&Wr(Ra.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ga(Bn),ht(q))}Vi.declarations=Bn.declarations,Vi.parent=Bn.parent,Bn.valueDeclaration&&(Vi.valueDeclaration=Bn.valueDeclaration),Vi.type=On,Vi.target=Bn,Bn=Vi,o==null||o.set(Vi.escapedName,Vi)}else if(Ra.kind===296){Se<2&&dc(Ra,2),u.length>0&&(T=Fp(T,Gn(),r.symbol,Zr,Ne),u=[],s=e.createSymbolTable(),Ii=!1,Fi=!1,Ri=!1);var On=Lt(hn(Ra.expression));if(oy(On)){var Qt=oD(On,Ne);if(o&&lC(Qt,o,Ra),Ia=u.length,ra(T))continue;T=Fp(T,Qt,r.symbol,Zr,Ne)}else Wr(Ra,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),T=Oe;continue}else e.Debug.assert(Ra.kind===171||Ra.kind===172),lv(Ra);Jn&&!(Jn.flags&8576)?oo(Jn,Bt)&&(oo(Jn,Ui)?Fi=!0:oo(Jn,ua)?Ri=!0:Ii=!0,t&&(ui=!0)):s.set(Bn.escapedName,Bn),u.push(Bn)}if(fe&&r.parent.kind!==296)for(var Qa=0,En=_o(q);Qa<En.length;Qa++){var Vi=En[Qa];!s.get(Vi.escapedName)&&!tn(T,Vi.escapedName)&&(Vi.flags&16777216||Wr(Vi.valueDeclaration||Vi.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Vi.escapedName,Vi),u.push(Vi))}if(ra(T))return Oe;if(T!==tt)return u.length>0&&(T=Fp(T,Gn(),r.symbol,Zr,Ne),u=[],s=e.createSymbolTable(),Ii=!1,Fi=!1),Cs(T,function(ia){return ia===tt?Gn():ia});return Gn();function Gn(){var ia=[];Ii&&ia.push(pb(r,Ia,u,ki)),Fi&&ia.push(pb(r,Ia,u,Ui)),Ri&&ia.push(pb(r,Ia,u,ua));var Xn=_s(r.symbol,s,e.emptyArray,e.emptyArray,ia);return Xn.objectFlags|=Zr|128|262144,yr&&(Xn.objectFlags|=8192),ui&&(Xn.objectFlags|=512),t&&(Xn.pattern=r),Xn}}function oy(r){var i=_E(Cs(r,rg));return!!(i.flags&126615553||i.flags&3145728&&e.every(i.types,oy))}function i5(r){yb(r)}function t5(r,i){return lv(r),sy(r)||xe}function a5(r){yb(r.openingElement),am(r.closingElement.tagName)?mb(r.closingElement):hn(r.closingElement.tagName),Xh(r)}function n5(r,i){return lv(r),sy(r)||xe}function o5(r){yb(r.openingFragment);var i=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(ye)&&(ye.jsxFactory||i.pragmas.has("jsx"))&&!ye.jsxFragmentFactory&&!i.pragmas.has("jsxfrag")&&Wr(r,ye.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Xh(r),sy(r)||xe}function gb(r){return e.stringContains(r,"-")}function am(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function uC(r,i){return r.initializer?fm(r.initializer,i):Rt}function s5(r,i){for(var t=r.attributes,o=ur?e.createSymbolTable():void 0,s=e.createSymbolTable(),u=ta,T=!1,q,fe=!1,Ne=2048,$e=Qh(yg(r)),Ze=0,lr=t.properties;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=yr.symbol;if(e.isJsxAttribute(yr)){var ui=uC(yr,i);Ne|=e.getObjectFlags(ui)&917504;var Ii=bo(4|Zr.flags,Zr.escapedName);Ii.declarations=Zr.declarations,Ii.parent=Zr.parent,Zr.valueDeclaration&&(Ii.valueDeclaration=Zr.valueDeclaration),Ii.type=ui,Ii.target=Zr,s.set(Ii.escapedName,Ii),o==null||o.set(Ii.escapedName,Ii),yr.name.escapedText===$e&&(fe=!0)}else{e.Debug.assert(yr.kind===286),s.size>0&&(u=Fp(u,fa(),t.symbol,Ne,!1),s=e.createSymbolTable());var ui=Lt(js(yr.expression,i));At(ui)&&(T=!0),oy(ui)?(u=Fp(u,ui,t.symbol,Ne,!1),o&&lC(ui,o,yr)):q=q?To([q,ui]):ui}}T||s.size>0&&(u=Fp(u,fa(),t.symbol,Ne,!1));var Fi=r.parent.kind===277?r.parent:void 0;if(Fi&&Fi.openingElement===r&&Fi.children.length>0){var Ri=Xh(Fi,i);if(!T&&$e&&$e!==""){fe&&Wr(t,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores($e));var Xi=jp(r.attributes),ea=Xi&&yd(Xi,$e),lt=bo(4,$e);lt.type=Ri.length===1?Ri[0]:ea&&dg(ea,Zg)?Ml(Ri):tc(ba(Ri)),lt.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores($e),void 0,void 0),e.setParent(lt.valueDeclaration,t),lt.valueDeclaration.symbol=lt;var Ia=e.createSymbolTable();Ia.set($e,lt),u=Fp(u,_s(t.symbol,Ia,e.emptyArray,e.emptyArray,e.emptyArray),t.symbol,Ne,!1)}}if(T)return xe;if(q&&u!==ta)return To([q,u]);return q||(u===ta?fa():u);function fa(){Ne|=Pr;var Dn=_s(t.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return Dn.objectFlags|=Ne|128|262144,Dn}}function Xh(r,i){for(var t=[],o=0,s=r.children;o<s.length;o++){var u=s[o];if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||t.push(ki);else{if(u.kind===287&&!u.expression)continue;t.push(fm(u,i))}}return t}function lC(r,i,t){for(var o=0,s=_o(r);o<s.length;o++){var u=s[o];if(!(u.flags&16777216)){var T=i.get(u.escapedName);if(T){var q=Wr(T.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(T.escapedName));e.addRelatedInfo(q,e.createDiagnosticForNode(t,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function c5(r,i){return s5(r.parent,i)}function Up(r,i){var t=yg(i),o=t&&Ns(t),s=o&&Pc(o,r,788968);return s?Io(s):Oe}function mb(r){var i=Da(r);if(!i.resolvedSymbol){var t=Up(w.IntrinsicElements,r);if(ra(t))return Tr&&Wr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(w.IntrinsicElements)),i.resolvedSymbol=hr;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var o=tn(t,r.tagName.escapedText);if(o)return i.jsxFlags|=1,i.resolvedSymbol=o;var s=fl(t,ki);return s?(i.jsxFlags|=2,i.resolvedSymbol=t.symbol):(Wr(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+w.IntrinsicElements),i.resolvedSymbol=hr)}return i.resolvedSymbol}function vb(r){var i=r&&e.getSourceFileOfNode(r),t=i&&Da(i);if(!(t&&t.jsxImplicitImportContainer===!1)){if(t&&t.jsxImplicitImportContainer)return t.jsxImplicitImportContainer;var o=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(ye,i),ye);if(!!o){var s=e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.Classic,u=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,T=ou(r,o,u,r),q=T&&T!==hr?Wn(Qo(T)):void 0;return t&&(t.jsxImplicitImportContainer=q||!1),q}}}function yg(r){var i=r&&Da(r);if(i&&i.jsxNamespace)return i.jsxNamespace;if(!i||i.jsxNamespace!==!1){var t=vb(r);if(!t||t===hr){var o=no(r);t=os(r,o,1920,void 0,o,!1)}if(t){var s=Qo(Pc(Ns(Qo(t)),w.JSX,1920));if(s&&s!==hr)return i&&(i.jsxNamespace=s),s}i&&(i.jsxNamespace=!1)}var u=Qo(Om(w.JSX,1920,void 0));if(u!==hr)return u}function fC(r,i){var t=i&&Pc(i.exports,r,788968),o=t&&Io(t),s=o&&_o(o);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&t.declarations&&Wr(t.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function u5(r){return r&&Pc(r.exports,w.LibraryManagedAttributes,788968)}function l5(r){return fC(w.ElementAttributesPropertyNameContainer,r)}function Qh(r){return fC(w.ElementChildrenAttributeNameContainer,r)}function _C(r,i){if(r.flags&4)return[go];if(r.flags&128){var t=pC(r,i);if(t){var o=s0(i,t);return[o]}else return Wr(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+w.IntrinsicElements),e.emptyArray}var s=$(r),u=za(s,1);return u.length===0&&(u=za(s,0)),u.length===0&&s.flags&1048576&&(u=Nv(e.map(s.types,function(T){return _C(T,i)}))),u}function pC(r,i){var t=Up(w.IntrinsicElements,i);if(!ra(t)){var o=r.value,s=tn(t,e.escapeLeadingUnderscores(o));if(s)return Jt(s);var u=fl(t,ki);return u||void 0}return xe}function f5(r,i,t){if(r===1){var o=mC(t);o&&pl(i,o,Sr,t.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,T)}else if(r===0){var s=gC(t);s&&pl(i,s,Sr,t.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,T)}else{var o=mC(t),s=gC(t);if(!o||!s)return;var u=ba([o,s]);pl(i,u,Sr,t.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,T)}function T(){var q=e.getTextOfNode(t.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,q)}}function dC(r){e.Debug.assert(am(r.tagName));var i=Da(r);if(!i.resolvedJsxElementAttributesType){var t=mb(r);return i.jsxFlags&1?i.resolvedJsxElementAttributesType=Jt(t)||Oe:i.jsxFlags&2?i.resolvedJsxElementAttributesType=fl(Up(w.IntrinsicElements,r),ki)||Oe:i.resolvedJsxElementAttributesType=Oe}return i.resolvedJsxElementAttributesType}function gC(r){var i=Up(w.ElementClass,r);if(!ra(i))return i}function sy(r){return Up(w.Element,r)}function mC(r){var i=sy(r);if(i)return ba([i,Ti])}function _5(r){var i=Up(w.IntrinsicElements,r);return i?_o(i):e.emptyArray}function p5(r){(ye.jsx||0)===0&&Wr(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),sy(r)===void 0&&Tr&&Wr(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function yb(r){var i=e.isJsxOpeningLikeElement(r);if(i&&k9(r),p5(r),!vb(r)){var t=ya&&ye.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=no(r),s=i?r.tagName:r,u=void 0;if(e.isJsxOpeningFragment(r)&&o==="null"||(u=os(s,o,111551,t,o,!0)),u&&(u.isReferenced=67108863,u.flags&2097152&&!gu(u)&&jf(u)),e.isJsxOpeningFragment(r)){var T=e.getSourceFileOfNode(r),q=Go(T);q&&os(s,q,111551,t,q,!0)}}if(i){var fe=r,Ne=sm(fe);u0(Ne,r),f5(zC(fe),So(Ne),fe)}}function hb(r,i,t){if(r.flags&524288){if(D_(r,i)||Np(r,i)||Yd(i)&&kc(r,ki)||t&&gb(i))return!0}else if(r.flags&3145728&&cy(r))for(var o=0,s=r.types;o<s.length;o++){var u=s[o];if(hb(u,i,t))return!0}return!1}function cy(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,cy)||r.flags&2097152&&e.every(r.types,cy))}function d5(r,i){if(P9(r),r.expression){var t=hn(r.expression,i);return r.dotDotDotToken&&t!==xe&&!_c(t)&&Wr(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),t}else return Oe}function Yh(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function Db(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var i=r.valueDeclaration.parent;return i&&e.isBinaryExpression(i)&&e.getAssignmentDeclarationKind(i)===3}}function bb(r,i,t,o,s,u){u===void 0&&(u=!0);var T=u?r.kind===160?r.right:r.kind===199?r:r.kind===202&&r.propertyName?r.propertyName:r.name:void 0;return vC(r,i,t,o,s,T)}function vC(r,i,t,o,s,u){var T=e.getDeclarationModifierFlagsFromSymbol(s,t);if(i){if(Se<2&&yC(s))return u&&Wr(u,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(T&128)return u&&Wr(u,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ga(s),ht(Bd(s))),!1}if(T&128&&yC(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var q=e.getClassLikeDeclarationOfSymbol(Rs(s));if(q&&EM(r))return u&&Wr(u,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ga(s),e.getTextOfIdentifierOrLiteral(q.name)),!1}if(!(T&24))return!0;if(T&8){var q=e.getClassLikeDeclarationOfSymbol(Rs(s));return dS(r,q)?!0:(u&&Wr(u,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ga(s),ht(Bd(s))),!1)}if(i)return!0;var fe=k6(r,function(Ze){var lr=Io(It(Ze));return K8(lr,s,t)?lr:void 0});if(!fe){var Ne=void 0;if(T&32||!(Ne=g5(r))||!Ne.type)return u&&Wr(u,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ga(s),ht(Bd(s)||o)),!1;var $e=Ua(Ne.type);fe=($e.flags&262144?qc($e):$e).target}return T&32?!0:(o.flags&262144&&(o=o.isThisType?qc(o):Cc(o)),!o||!nd(o,fe)?(u&&Wr(u,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ga(s),ht(fe),ht(o)),!1):!0)}function g5(r){var i=e.getThisContainer(r,!1);return i&&e.isFunctionLike(i)?e.getThisParameter(i):void 0}function yC(r){return!!Hv(r,function(i){return!(i.flags&8192)})}function nm(r){return gl(hn(r),r)}function $h(r){return!!((ur?Fu(r):r.flags)&98304)}function Sb(r){return $h(r)?C_(r):r}function m5(r,i){Wr(r,i&32768?i&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function v5(r,i){Wr(r,i&32768?i&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function hC(r,i,t){if(ur&&r.flags&2)return Wr(i,e.Diagnostics.Object_is_of_type_unknown),Oe;var o=(ur?Fu(r):r.flags)&98304;if(o){t(i,o);var s=C_(r);return s.flags&229376?Oe:s}return r}function gl(r,i){return hC(r,i,m5)}function DC(r,i){var t=gl(r,i);return t.flags&16384&&Wr(i,e.Diagnostics.Object_is_possibly_undefined),t}function bC(r,i){return r.flags&32?y5(r,i):xb(r,r.expression,nm(r.expression),r.name,i)}function y5(r,i){var t=hn(r.expression),o=Wm(t,r.expression);return Ch(xb(r,r.expression,gl(o,r.expression),r.name,i),r,o!==t)}function SC(r,i){var t=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?gl(ay(r.left),r.left):nm(r.left);return xb(r,r.left,t,r.right,i)}function TC(r){for(;r.parent.kind===211;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function Zh(r,i){for(var t=e.getContainingClass(i);t;t=e.getContainingClass(t)){var o=t.symbol,s=e.getSymbolNameForPrivateIdentifier(o,r),u=o.members&&o.members.get(s)||o.exports&&o.exports.get(s);if(u)return u}}function h5(r){if(!e.getContainingClass(r))return vt(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(r.parent)){if(!e.isExpressionNode(r))return vt(r,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var i=e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===101;if(!e0(r)&&!i)return vt(r,e.Diagnostics.Cannot_find_name_0,e.idText(r))}return!1}function D5(r){h5(r);var i=e0(r);return i&&ly(i,void 0,!1),xe}function e0(r){if(!!e.isExpressionNode(r)){var i=Da(r);return i.resolvedSymbol===void 0&&(i.resolvedSymbol=Zh(r.escapedText,r)),i.resolvedSymbol}}function Tb(r,i){return tn(r,i.escapedName)}function b5(r,i,t){var o,s=_o(r);s&&e.forEach(s,function(Ze){var lr=Ze.valueDeclaration;if(lr&&e.isNamedDeclaration(lr)&&e.isPrivateIdentifier(lr.name)&&lr.name.escapedText===i.escapedText)return o=Ze,!0});var u=Nc(i);if(o){var T=e.Debug.checkDefined(o.valueDeclaration),q=e.Debug.checkDefined(e.getContainingClass(T));if(t!=null&&t.valueDeclaration){var fe=t.valueDeclaration,Ne=e.getContainingClass(fe);if(e.Debug.assert(!!Ne),e.findAncestor(Ne,function(Ze){return q===Ze})){var $e=Wr(i,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,u,ht(r));return e.addRelatedInfo($e,e.createDiagnosticForNode(fe,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,u),e.createDiagnosticForNode(T,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,u)),!0}}return Wr(i,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,u,Nc(q.name||O)),!0}return!1}function xC(r,i){return(Ie(i)||e.isThisProperty(r)&&kr(i))&&e.getThisContainer(r,!0)===Hr(i)}function xb(r,i,t,o,s){var u=Da(i).resolvedSymbol,T=e.getAssignmentTargetKind(r),q=$(T!==0||TC(r)?Hc(t):t),fe=At(q)||q===Ci,Ne;if(e.isPrivateIdentifier(o)){Se<99&&(T!==0&&dc(r,1048576),T!==1&&dc(r,524288));var $e=Zh(o.escapedText,o);if(T&&$e&&$e.valueDeclaration&&e.isMethodDeclaration($e.valueDeclaration)&&vt(o,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(o)),fe){if($e)return ra(q)?Oe:q;if(!e.getContainingClass(o))return vt(o,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),xe}if(Ne=$e?Tb(t,$e):void 0,!Ne&&b5(t,o,$e))return Oe;var Ze=Ne&&Ne.flags&65536&&!(Ne.flags&32768);Ze&&T!==1&&Wr(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(fe)return e.isIdentifier(i)&&u&&qh(u,r),ra(q)?Oe:q;Ne=tn(q,o.escapedText)}e.isIdentifier(i)&&u&&(ye.isolatedModules||!(Ne&&fv(Ne))||e.shouldPreserveConstEnums(ye)&&GE(r))&&qh(u,r);var lr;if(Ne){Qc(Ne)&&Z1(r,Ne)&&Ne.declarations&&fu(o,Ne.declarations,o.escapedText),S5(Ne,r,o),ly(Ne,r,IC(i,u)),Da(r).resolvedSymbol=Ne;var ui=e.isWriteAccess(r);if(bb(r,i.kind===106,ui,q,Ne),mk(r,Ne,T))return Wr(o,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(o)),Oe;lr=xC(r,Ne)?ze:ui?Ap(Ne):Jt(Ne)}else{var yr=!e.isPrivateIdentifier(o)&&(T===0||!Md(t)||e.isThisTypeParameter(t))?Np(q,o.escapedText):void 0;if(!(yr&&yr.type)){var Zr=Eb(r,t.symbol,!0);return!Zr&&Lm(t)?xe:t.symbol===Rr?(Rr.exports.has(o.escapedText)&&Rr.exports.get(o.escapedText).flags&418?Wr(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(o.escapedText),ht(t)):Tr&&Wr(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ht(t)),xe):(o.escapedText&&!M_(r)&&kC(o,e.isThisTypeParameter(t)?q:t,Zr),Oe)}yr.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Wr(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(q)),lr=ye.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?ba([yr.type,Nr]):yr.type,ye.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Wr(o,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(o.escapedText))}return EC(r,Ne,lr,o,s)}function Eb(r,i,t){var o=e.getSourceFileOfNode(r);if(o&&ye.checkJs===void 0&&o.checkJsDirective===void 0&&(o.scriptKind===1||o.scriptKind===2)){var s=e.forEach(i==null?void 0:i.declarations,e.getSourceFileOfNode);return!(o!==s&&!!s&&Ju(s))&&!(t&&i&&i.flags&32)&&!(!!r&&t&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function EC(r,i,t,o,s){var u=e.getAssignmentTargetKind(r);if(u===1)return _g(t,!!(i&&i.flags&16777216));if(i&&!(i.flags&98311)&&!(i.flags&8192&&t.flags&1048576)&&!C0(i.declarations))return t;if(t===ze)return zt(r,i);t=eb(t,r,s);var T=!1;if(ur&&Br&&e.isAccessExpression(r)&&r.expression.kind===108){var q=i&&i.valueDeclaration;if(q&&d6(q)&&!e.isStatic(q)){var fe=Hm(r);fe.kind===170&&fe.parent===q.parent&&!(q.flags&8388608)&&(T=!0)}}else ur&&i&&i.valueDeclaration&&e.isPropertyAccessExpression(i.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(i.valueDeclaration)&&Hm(r)===Hm(i.valueDeclaration)&&(T=!0);var Ne=op(r,t,T?$f(t):t);return T&&!(Fu(t)&32768)&&Fu(Ne)&32768?(Wr(o,e.Diagnostics.Property_0_is_used_before_being_assigned,Ga(i)),t):u?Bl(Ne):Ne}function S5(r,i,t){var o=r.valueDeclaration;if(!(!o||e.getSourceFileOfNode(i).isDeclarationFile)){var s,u=e.idText(t);CC(i)&&!Im(o)&&!(e.isAccessExpression(i)&&e.isAccessExpression(i.expression))&&!wf(o,t)&&(ye.useDefineForClassFields||!T5(r))?s=Wr(t,e.Diagnostics.Property_0_is_used_before_its_initialization,u):o.kind===256&&i.parent.kind!==177&&!(o.flags&8388608)&&!wf(o,t)&&(s=Wr(t,e.Diagnostics.Class_0_used_before_its_declaration,u)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,u))}}function CC(r){return!!e.findAncestor(r,function(i){switch(i.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return e.isBlock(i.parent)&&e.isClassStaticBlockDeclaration(i.parent.parent)?!0:"quit";default:return e.isExpressionNode(i)?!1:"quit"}})}function T5(r){if(!(r.parent.flags&32))return!1;for(var i=Jt(r.parent);;){if(i=i.symbol&&x5(i),!i)return!1;var t=tn(i,r.escapedName);if(t&&t.valueDeclaration)return!0}}function x5(r){var i=zc(r);if(i.length!==0)return To(i)}function kC(r,i,t){var o,s;if(!e.isPrivateIdentifier(r)&&i.flags&1048576&&!(i.flags&131068))for(var u=0,T=i.types;u<T.length;u++){var q=T[u];if(!tn(q,r.escapedText)&&!Np(q,r.escapedText)){o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),ht(q));break}}if(AC(r.escapedText,i)){var fe=e.declarationNameToString(r),Ne=ht(i);o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,Ne,Ne+"."+fe)}else{var $e=nv(i);if($e&&tn($e,r.escapedText))o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),ht(i)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var Ze=e.declarationNameToString(r),lr=ht(i),yr=k5(Ze,i);if(yr!==void 0)o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,Ze,lr,yr);else{var Zr=Cb(r,i);if(Zr!==void 0){var ui=e.symbolName(Zr),Ii=t?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;o=e.chainDiagnosticMessages(o,Ii,Ze,lr,ui),s=Zr.valueDeclaration&&e.createDiagnosticForNode(Zr.valueDeclaration,e.Diagnostics._0_is_declared_here,ui)}else{var Fi=E5(i)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;o=e.chainDiagnosticMessages(us(o,i),Fi,Ze,lr)}}}}var Ri=e.createDiagnosticForNodeFromMessageChain(r,o);s&&e.addRelatedInfo(Ri,s),Ws(!t||o.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Ri)}function E5(r){return ye.lib&&!ye.lib.includes("dom")&&GI(r,function(i){return i.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(i.symbol.escapedName))})&&Ef(r)}function AC(r,i){var t=i.symbol&&tn(Jt(i.symbol),r);return t!==void 0&&!!t.valueDeclaration&&e.isStatic(t.valueDeclaration)}function C5(r){for(var i=Nc(r),t=e.getScriptTargetFeatures(),o=e.getOwnKeys(t),s=0,u=o;s<u.length;s++){var T=u[s],q=e.getOwnKeys(t[T]);if(q!==void 0&&e.contains(q,i))return T}}function k5(r,i){var t=$(i).symbol;if(!!t)for(var o=e.getScriptTargetFeatures(),s=e.getOwnKeys(o),u=0,T=s;u<T.length;u++){var q=T[u],fe=o[q],Ne=fe[e.symbolName(t)];if(Ne!==void 0&&e.contains(Ne,r))return q}}function PC(r,i){return uy(r,_o(i),106500)}function Cb(r,i){var t=_o(i);if(typeof r!="string"){var o=r.parent;e.isPropertyAccessExpression(o)&&(t=e.filter(t,function(s){return wC(o,i,s)})),r=e.idText(r)}return uy(r,t,111551)}function NC(r,i){var t=e.isString(r)?r:e.idText(r),o=_o(i),s=t==="for"?e.find(o,function(u){return e.symbolName(u)==="htmlFor"}):t==="class"?e.find(o,function(u){return e.symbolName(u)==="className"}):void 0;return s!=null?s:uy(t,o,111551)}function kb(r,i){var t=Cb(r,i);return t&&e.symbolName(t)}function Ab(r,i,t){e.Debug.assert(i!==void 0,"outername should always be defined");var o=el(r,i,t,void 0,i,!1,!1,!0,function(s,u,T){e.Debug.assertEqual(i,u,"name should equal outerName");var q=Pc(s,u,T);if(q)return q;var fe;if(s===Lr){var Ne=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function($e){return s.has($e.charAt(0).toUpperCase()+$e.slice(1))?bo(524288,$e):void 0});fe=Ne.concat(e.arrayFrom(s.values()))}else fe=e.arrayFrom(s.values());return uy(e.unescapeLeadingUnderscores(u),fe,T)});return o}function A5(r,i,t){var o=Ab(r,i,t);return o&&e.symbolName(o)}function r0(r,i){return i.exports&&uy(e.idText(r),_f(i),2623475)}function P5(r,i){var t=r0(r,i);return t&&e.symbolName(t)}function N5(r,i,t){function o(T){var q=D_(r,T);if(q){var fe=jd(Jt(q));return!!fe&&jl(fe)>=1&&oo(t,Hu(fe,0))}return!1}var s=e.isAssignmentTarget(i)?"set":"get";if(!!o(s)){var u=e.tryGetPropertyAccessOrIdentifierToString(i.expression);return u===void 0?u=s:u+="."+s,u}}function I5(r,i){var t=i.types.filter(function(o){return!!(o.flags&128)});return e.getSpellingSuggestion(r.value,t,function(o){return o.value})}function uy(r,i,t){return e.getSpellingSuggestion(r,i,o);function o(s){var u=e.symbolName(s);if(!e.startsWith(u,'"')){if(s.flags&t)return u;if(s.flags&2097152){var T=Ro(s);if(T&&T.flags&t)return u}}}}function ly(r,i,t){var o=r&&r.flags&106500&&r.valueDeclaration;if(!!o){var s=e.hasEffectiveModifier(o,8),u=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!u)&&!(i&&e.isWriteOnlyAccess(i)&&!(r.flags&65536))){if(t){var T=e.findAncestor(i,e.isFunctionLikeDeclaration);if(T&&T.symbol===r)return}(e.getCheckFlags(r)&1?Ma(r).target:r).isReferenced=67108863}}}function IC(r,i){return r.kind===108||!!i&&e.isEntityNameExpression(r)&&i===dl(e.getFirstIdentifier(r))}function w5(r,i){switch(r.kind){case 205:return Pb(r,r.expression.kind===106,i,Hc(hn(r.expression)));case 160:return Pb(r,!1,i,Hc(hn(r.left)));case 199:return Pb(r,!1,i,Ua(r))}}function wC(r,i,t){return Nb(r,r.kind===205&&r.expression.kind===106,!1,i,t)}function Pb(r,i,t,o){if(At(o))return!0;var s=tn(o,t);return!!s&&Nb(r,i,!1,o,s)}function Nb(r,i,t,o,s){if(At(o))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var u=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(T){return T===u})}return vC(r,i,t,o,s)}function O5(r){var i=r.initializer;if(i.kind===254){var t=i.declarations[0];if(t&&!e.isBindingPattern(t.name))return It(t)}else if(i.kind===79)return dl(i)}function F5(r){return Js(r).length===1&&!!kc(r,Ui)}function M5(r){var i=e.skipParentheses(r);if(i.kind===79){var t=dl(i);if(t.flags&3)for(var o=r,s=r.parent;s;){if(s.kind===242&&o===s.statement&&O5(s)===t&&F5(ac(s.expression)))return!0;o=s,s=s.parent}}return!1}function L5(r,i){return r.flags&32?R5(r,i):OC(r,nm(r.expression),i)}function R5(r,i){var t=hn(r.expression),o=Wm(t,r.expression);return Ch(OC(r,gl(o,r.expression),i),r,o!==t)}function OC(r,i,t){var o=e.getAssignmentTargetKind(r)!==0||TC(r)?Hc(i):i,s=r.argumentExpression,u=hn(s);if(ra(o)||o===Ci)return o;if(Wb(o)&&!e.isStringLiteralLike(s))return Wr(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Oe;var T=M5(s)?Ui:u,q=e.isAssignmentTarget(r)?4|(Md(o)&&!e.isThisTypeParameter(o)?2:0):32,fe=Z_(o,T,q,r)||Oe;return Lk(EC(r,Da(r).resolvedSymbol,fe,s,t),r)}function FC(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function hg(r){return FC(r)&&e.forEach(r.typeArguments,$n),r.kind===209?hn(r.template):e.isJsxOpeningLikeElement(r)?hn(r.attributes):r.kind!==164&&e.forEach(r.arguments,function(i){hn(i)}),go}function Jl(r){return hg(r),ro}function B5(r,i,t){var o,s,u=0,T,q=-1,fe;e.Debug.assert(!i.length);for(var Ne=0,$e=r;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=Ze.declaration&&It(Ze.declaration),yr=Ze.declaration&&Ze.declaration.parent;!s||lr===s?o&&yr===o?T=T+1:(o=yr,T=u):(T=u=i.length,o=yr),s=lr,z(Ze)?(q++,fe=q,u++):fe=T,i.splice(fe,0,t?m1(Ze,t):Ze)}}function i0(r){return!!r&&(r.kind===224||r.kind===231&&r.isSpread)}function t0(r){return e.findIndex(r,i0)}function MC(r){return!!(r.flags&16384)}function J5(r){return!!(r.flags&49155)}function a0(r,i,t,o){o===void 0&&(o=!1);var s,u=!1,T=Lc(t),q=jl(t);if(r.kind===209)if(s=i.length,r.template.kind===222){var fe=e.last(r.template.templateSpans);u=e.nodeIsMissing(fe.literal)||!!fe.literal.isUnterminated}else{var Ne=r.template;e.Debug.assert(Ne.kind===14),u=!!Ne.isUnterminated}else if(r.kind===164)s=qC(r,t);else if(e.isJsxOpeningLikeElement(r)){if(u=r.attributes.end===r.end,u)return!0;s=q===0?i.length:1,T=i.length===0?T:1,q=Math.min(q,1)}else if(r.arguments){s=o?i.length+1:i.length,u=r.arguments.end===r.end;var $e=t0(i);if($e>=0)return $e>=jl(t)&&(Ul(t)||$e<Lc(t))}else return e.Debug.assert(r.kind===208),jl(t)===0;if(!Ul(t)&&s>T)return!1;if(u||s>=q)return!0;for(var Ze=s;Ze<q;Ze++){var lr=Hu(t,Ze);if(pc(lr,e.isInJSFile(r)&&!ur?J5:MC).flags&131072)return!1}return!0}function LC(r,i){var t=e.length(r.typeParameters),o=Ol(r.typeParameters);return!e.some(i)||i.length>=o&&i.length<=t}function jd(r){return Ym(r,0,!1)}function RC(r){return Ym(r,0,!1)||Ym(r,1,!1)}function Ym(r,i,t){if(r.flags&524288){var o=Vu(r);if(t||o.properties.length===0&&o.indexInfos.length===0){if(i===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(i===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function BC(r,i,t,o){var s=qm(r.typeParameters,r,0,o),u=Zm(i),T=t&&(u&&u.flags&262144?t.nonFixingMapper:t.mapper),q=T?ug(i,T):i;return RD(q,r,function(fe,Ne){Cf(s.inferences,fe,Ne)}),t||BD(i,r,function(fe,Ne){Cf(s.inferences,fe,Ne,128)}),jv(r,HD(s),e.isInJSFile(i.declaration))}function j5(r,i,t,o){var s=Hh(i,r),u=bg(r.attributes,s,o,t);return Cf(o.inferences,u,s),HD(o)}function JC(r){if(!r)return Vt;var i=hn(r);return e.isOptionalChainRoot(r.parent)?C_(i):e.isOptionalChain(r.parent)?FD(i):i}function Ib(r,i,t,o,s){if(e.isJsxOpeningLikeElement(r))return j5(r,i,o,s);if(r.kind!==164){var u=Su(r,e.every(i.typeParameters,function(Dn){return!!H_(Dn)})?8:0);if(u){var T=Xm(r),q=UD(dI(T,1)),fe=gn(u,q),Ne=jd(fe),$e=Ne&&Ne.typeParameters?qg(B1(Ne,Ne.typeParameters)):fe,Ze=So(i);Cf(s.inferences,$e,Ze,128);var lr=qm(i.typeParameters,i,s.flags),yr=gn(u,T&&T.returnMapper);Cf(lr.inferences,yr,Ze),s.returnMapper=e.some(lr.inferences,Ud)?UD(gI(lr)):void 0}}var Zr=ev(i),ui=Zr?Math.min(Lc(i)-1,t.length):t.length;if(Zr&&Zr.flags&262144){var Ii=e.find(s.inferences,function(Dn){return Dn.typeParameter===Zr});Ii&&(Ii.impliedArity=e.findIndex(t,i0,ui)<0?t.length-ui:void 0)}var Fi=ld(i);if(Fi){var Ri=WC(r);Cf(s.inferences,JC(Ri),Fi)}for(var Xi=0;Xi<ui;Xi++){var ea=t[Xi];if(ea.kind!==226){var lt=Hu(i,Xi),Ia=bg(ea,lt,s,o);Cf(s.inferences,Ia,lt)}}if(Zr){var fa=wb(t,ui,t.length,Zr,s,o);Cf(s.inferences,fa,Zr)}return HD(s)}function jC(r){return r.flags&1048576?Cs(r,jC):r.flags&1||Th(Cc(r)||r)?r:Ln(r)?Ml(Co(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):Ml([r],[8])}function wb(r,i,t,o,s,u){if(i>=t-1){var T=r[t-1];if(i0(T))return jC(T.kind===231?T.type:bg(T.expression,o,s,u))}for(var q=[],fe=[],Ne=[],$e=i;$e<t;$e++){var T=r[$e];if(i0(T)){var Ze=T.kind===231?T.type:hn(T.expression);ap(Ze)?(q.push(Ze),fe.push(8)):(q.push(P_(33,Ze,Nr,T.kind===224?T.expression:T)),fe.push(4))}else{var lr=Mc(o,xf($e-i),256),yr=bg(T,lr,s,u),Zr=ls(lr,406978556);q.push(Zr?Vc(yr):Lp(yr)),fe.push(1)}T.kind===231&&T.tupleNameSource&&Ne.push(T.tupleNameSource)}return Ml(q,fe,!1,e.length(Ne)===e.length(q)?Ne:void 0)}function UC(r,i,t,o){for(var s=e.isInJSFile(r.declaration),u=r.typeParameters,T=S_(e.map(i,Ua),u,Ol(u),s),q,fe=0;fe<i.length;fe++){e.Debug.assert(u[fe]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Ne=qc(u[fe]);if(Ne){var $e=t&&o?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,Ze=o||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;q||(q=Kc(u,T));var lr=T[fe];if(!Gc(lr,Wc(gn(Ne,q),lr),t?i[fe]:void 0,Ze,$e))return}}return T}function zC(r){if(am(r.tagName))return 2;var i=$(hn(r.tagName));return e.length(za(i,1))?0:e.length(za(i,0))?1:2}function U5(r,i,t,o,s,u,T){var q=Hh(i,r),fe=bg(r.attributes,q,void 0,o);return Ne()&&vD(fe,q,t,s?r.tagName:void 0,r.attributes,void 0,u,T);function Ne(){var $e;if(vb(r))return!0;var Ze=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!am(r.tagName)?hn(r.tagName):void 0;if(!Ze)return!0;var lr=za(Ze,0);if(!e.length(lr))return!0;var yr=L6(r);if(!yr)return!0;var Zr=Ps(yr,111551,!0,!1,r);if(!Zr)return!0;var ui=Jt(Zr),Ii=za(ui,0);if(!e.length(Ii))return!0;for(var Fi=!1,Ri=0,Xi=0,ea=Ii;Xi<ea.length;Xi++){var lt=ea[Xi],Ia=Hu(lt,0),fa=za(Ia,0);if(!!e.length(fa))for(var Dn=0,Ra=fa;Dn<Ra.length;Dn++){var Bn=Ra[Dn];if(Fi=!0,Ul(Bn))return!0;var Jn=Lc(Bn);Jn>Ri&&(Ri=Jn)}}if(!Fi)return!0;for(var On=1/0,Ao=0,$i=lr;Ao<$i.length;Ao++){var Vi=$i[Ao],Ot=jl(Vi);Ot<On&&(On=Ot)}if(On<=Ri)return!0;if(s){var Wa=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),On,e.entityNameToString(yr),Ri),Qt=($e=Xu(r.tagName))===null||$e===void 0?void 0:$e.valueDeclaration;Qt&&e.addRelatedInfo(Wa,e.createDiagnosticForNode(Qt,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),T&&T.skipLogging&&(T.errors||(T.errors=[])).push(Wa),T.skipLogging||ya.add(Wa)}return!1}}function fy(r,i,t,o,s,u,T){var q={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return U5(r,t,o,s,u,T,q)?void 0:(e.Debug.assert(!u||!!q.errors,"jsx should have errors when reporting errors"),q.errors||e.emptyArray);var fe=ld(t);if(fe&&fe!==Vt&&r.kind!==208){var Ne=WC(r),$e=JC(Ne),Ze=u?Ne||r:void 0,lr=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!pl($e,fe,o,Ze,lr,T,q))return e.Debug.assert(!u||!!q.errors,"this parameter should have errors when reporting errors"),q.errors||e.emptyArray}for(var yr=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Zr=ev(t),ui=Zr?Math.min(Lc(t)-1,i.length):i.length,Ii=0;Ii<ui;Ii++){var Fi=i[Ii];if(Fi.kind!==226){var Ri=Hu(t,Ii),Xi=bg(Fi,Ri,void 0,s),ea=s&4?rm(Xi):Xi;if(!vD(ea,Ri,o,u?Fi:void 0,Fi,yr,T,q))return e.Debug.assert(!u||!!q.errors,"parameter should have errors when reporting errors"),fa(Fi,ea,Ri),q.errors||e.emptyArray}}if(Zr){var lt=wb(i,ui,i.length,Zr,void 0,s),Ia=i.length-ui,Ze=u?Ia===0?r:Ia===1?i[ui]:e.setTextRangePosEnd(zp(r,lt),i[ui].pos,i[i.length-1].end):void 0;if(!pl(lt,Zr,o,Ze,yr,void 0,q))return e.Debug.assert(!u||!!q.errors,"rest parameter should have errors when reporting errors"),fa(Ze,lt,Zr),q.errors||e.emptyArray}return;function fa(Dn,Ra,Bn){if(Dn&&u&&q.errors&&q.errors.length){if(av(Bn))return;var Jn=av(Ra);Jn&&Yf(Jn,Bn,o)&&e.addRelatedInfo(q.errors[0],e.createDiagnosticForNode(Dn,e.Diagnostics.Did_you_forget_to_use_await))}}}function WC(r){var i=r.kind===207?r.expression:r.kind===209?r.tag:void 0;if(i){var t=e.skipOuterExpressions(i);if(e.isAccessExpression(t))return t.expression}}function zp(r,i,t,o){var s=e.parseNodeFactory.createSyntheticExpression(i,t,o);return e.setTextRange(s,r),e.setParent(s,r),s}function Ob(r){if(r.kind===209){var i=r.template,t=[zp(i,$N())];return i.kind===222&&e.forEach(i.templateSpans,function(fe){t.push(fe.expression)}),t}if(r.kind===164)return z5(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var o=r.arguments||e.emptyArray,s=t0(o);if(s>=0){for(var u=o.slice(0,s),T=function(fe){var Ne=o[fe],$e=Ne.kind===224&&(Ba?hn(Ne.expression):js(Ne.expression));$e&&Ln($e)?e.forEach(Co($e),function(Ze,lr){var yr,Zr=$e.target.elementFlags[lr],ui=zp(Ne,Zr&4?tc(Ze):Ze,!!(Zr&12),(yr=$e.target.labeledElementDeclarations)===null||yr===void 0?void 0:yr[lr]);u.push(ui)}):u.push(Ne)},q=s;q<o.length;q++)T(q);return u}return o}function z5(r){var i=r.parent,t=r.expression;switch(i.kind){case 256:case 225:return[zp(t,Jt(It(i)))];case 163:var o=i.parent;return[zp(t,i.parent.kind===170?Jt(It(o)):Oe),zp(t,xe),zp(t,Ui)];case 166:case 168:case 171:case 172:var s=i.kind!==166&&Se!==0;return[zp(t,OM(i)),zp(t,FM(i)),zp(t,s?cx(Wp(i)):xe)]}return e.Debug.fail()}function qC(r,i){switch(r.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return Se===0||i.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function VC(r,i){var t,o,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var u=e.getErrorSpanForNode(s,r.expression.name);t=u.start,o=i?u.length:r.end-t}else{var T=e.getErrorSpanForNode(s,r.expression);t=T.start,o=i?T.length:r.end-t}return{start:t,length:o,sourceFile:s}}function n0(r,i,t,o,s,u){if(e.isCallExpression(r)){var T=VC(r),q=T.sourceFile,fe=T.start,Ne=T.length;return e.createFileDiagnostic(q,fe,Ne,i,t,o,s,u)}else return e.createDiagnosticForNode(r,i,t,o,s,u)}function W5(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var i=os(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),t=i==null?void 0:i.valueDeclaration;if(!t||!e.isParameter(t)||!e.isFunctionExpressionOrArrowFunction(t.parent)||!e.isNewExpression(t.parent.parent)||!e.isIdentifier(t.parent.parent.expression))return!1;var o=W1(!1);if(!o)return!1;var s=Xu(t.parent.parent.expression,!0);return s===o}function KC(r,i,t){var o,s=t0(t);if(s>-1)return e.createDiagnosticForNode(t[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var u=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,q=Number.NEGATIVE_INFINITY,fe=Number.POSITIVE_INFINITY,Ne,$e=0,Ze=i;$e<Ze.length;$e++){var lr=Ze[$e],yr=jl(lr),Zr=Lc(lr);yr<u&&(u=yr,Ne=lr),T=Math.max(T,Zr),yr<t.length&&yr>q&&(q=yr),t.length<Zr&&Zr<fe&&(fe=Zr)}var ui=e.some(i,Ul),Ii=ui?u:u<T?u+"-"+T:u,Fi=ui?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Ii===1&&t.length===0&&W5(r)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(u<t.length&&t.length<T)return n0(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,t.length,q,fe);if(t.length<u){var Ri=n0(r,Fi,Ii,t.length),Xi=(o=Ne==null?void 0:Ne.declaration)===null||o===void 0?void 0:o.parameters[Ne.thisParameter?t.length+1:t.length];if(Xi){var ea=e.createDiagnosticForNode(Xi,e.isBindingPattern(Xi.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(Xi)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,Xi.name?e.isBindingPattern(Xi.name)?void 0:e.idText(e.getFirstIdentifier(Xi.name)):t.length);return e.addRelatedInfo(Ri,ea)}return Ri}else{var lt=e.factory.createNodeArray(t.slice(T)),Ia=e.first(lt).pos,fa=e.last(lt).end;return fa===Ia&&fa++,e.setTextRangePosEnd(lt,Ia,fa),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),lt,Fi,Ii,t.length)}}function q5(r,i,t){var o=t.length;if(i.length===1){var s=i[0],u=Ol(s.typeParameters),T=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,u<T?u+"-"+T:u,o)}for(var q=-1/0,fe=1/0,Ne=0,$e=i;Ne<$e.length;Ne++){var s=$e[Ne],Ze=Ol(s.typeParameters),T=e.length(s.typeParameters);Ze>o?fe=Math.min(fe,Ze):T<o&&(q=Math.max(q,T))}return q!==-1/0&&fe!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,q,fe):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),t,e.Diagnostics.Expected_0_type_arguments_but_got_1,q===-1/0?fe:q,o)}function om(r,i,t,o,s,u){var T=r.kind===209,q=r.kind===164,fe=e.isJsxOpeningLikeElement(r),Ne=!t&&oe,$e;q||($e=r.typeArguments,(T||fe||r.expression.kind!==106)&&e.forEach($e,$n));var Ze=t||[];if(B5(i,Ze,s),!Ze.length)return Ne&&ya.add(n0(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Jl(r);var lr=Ob(r),yr=Ze.length===1&&!Ze[0].typeParameters,Zr=!q&&!yr&&e.some(lr,_l)?4:0,ui,Ii,Fi,Ri,Xi=!!(o&16)&&r.kind===207&&r.arguments.hasTrailingComma;if(Ze.length>1&&(Ri=qt(Ze,Te,yr,Xi)),Ri||(Ri=qt(Ze,Sr,yr,Xi)),Ri)return Ri;if(Ne)if(ui)if(ui.length===1||ui.length>3){var ea=ui[ui.length-1],lt;ui.length>3&&(lt=e.chainDiagnosticMessages(lt,e.Diagnostics.The_last_overload_gave_the_following_error),lt=e.chainDiagnosticMessages(lt,e.Diagnostics.No_overload_matches_this_call));var Ia=fy(r,lr,ea,Sr,0,!0,function(){return lt});if(Ia)for(var fa=0,Dn=Ia;fa<Dn.length;fa++){var Ra=Dn[fa];ea.declaration&&ui.length>3&&e.addRelatedInfo(Ra,e.createDiagnosticForNode(ea.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Xt(ea,Ra),ya.add(Ra)}else e.Debug.fail("No error for last overload signature")}else{for(var Bn=[],Jn=0,On=Number.MAX_VALUE,Ao=0,$i=0,Vi=function(Yt){var va=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,$i+1,Ze.length,kl(Yt))},Ft=fy(r,lr,Yt,Sr,0,!0,va);Ft?(Ft.length<=On&&(On=Ft.length,Ao=$i),Jn=Math.max(Jn,Ft.length),Bn.push(Ft)):e.Debug.fail("No error for 3 or fewer overload signatures"),$i++},Ot=0,Wa=ui;Ot<Wa.length;Ot++){var Qt=Wa[Ot];Vi(Qt)}var Qa=Jn>1?Bn[Ao]:e.flatten(Bn);e.Debug.assert(Qa.length>0,"No errors reported for 3 or fewer overload signatures");var En=e.chainDiagnosticMessages(e.map(Qa,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),Gn=qe([],e.flatMap(Qa,function(Yt){return Yt.relatedInformation}),!0),ia=void 0;if(e.every(Qa,function(Yt){return Yt.start===Qa[0].start&&Yt.length===Qa[0].length&&Yt.file===Qa[0].file})){var Xn=Qa[0],ii=Xn.file,Ar=Xn.start,Pt=Xn.length;ia={file:ii,start:Ar,length:Pt,code:En.code,category:En.category,messageText:En,relatedInformation:Gn}}else ia=e.createDiagnosticForNodeFromMessageChain(r,En,Gn);Xt(ui[0],ia),ya.add(ia)}else if(Ii)ya.add(KC(r,[Ii],lr));else if(Fi)UC(Fi,r.typeArguments,!0,u);else{var pt=e.filter(i,function(Yt){return LC(Yt,$e)});pt.length===0?ya.add(q5(r,i,$e)):q?u&&ya.add(n0(r,u)):ya.add(KC(r,pt,lr))}return V5(r,Ze,lr,!!t);function Xt(Yt,va){var Ft,pi,Ai=ui,Qi=Ii,it=Fi,st=((pi=(Ft=Yt.declaration)===null||Ft===void 0?void 0:Ft.symbol)===null||pi===void 0?void 0:pi.declarations)||e.emptyArray,kt=st.length>1,Ha=kt?e.find(st,function(kn){return e.isFunctionLikeDeclaration(kn)&&e.nodeIsPresent(kn.body)}):void 0;if(Ha){var Tn=Ku(Ha),Ca=!Tn.typeParameters;qt([Tn],Sr,Ca)&&e.addRelatedInfo(va,e.createDiagnosticForNode(Ha,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}ui=Ai,Ii=Qi,Fi=it}function qt(Yt,va,Ft,pi){if(pi===void 0&&(pi=!1),ui=void 0,Ii=void 0,Fi=void 0,Ft){var Ai=Yt[0];if(e.some($e)||!a0(r,lr,Ai,pi))return;if(fy(r,lr,Ai,va,0,!1,void 0)){ui=[Ai];return}return Ai}for(var Qi=0;Qi<Yt.length;Qi++){var Ai=Yt[Qi];if(!(!LC(Ai,$e)||!a0(r,lr,Ai,pi))){var it=void 0,st=void 0;if(Ai.typeParameters){var kt=void 0;if(e.some($e)){if(kt=UC(Ai,$e,!1),!kt){Fi=Ai;continue}}else st=qm(Ai.typeParameters,Ai,e.isInJSFile(r)?2:0),kt=Ib(r,Ai,lr,Zr|8,st),Zr|=st.flags&4?8:0;if(it=jv(Ai,kt,e.isInJSFile(Ai.declaration),st&&st.inferredTypeParameters),ev(Ai)&&!a0(r,lr,it,pi)){Ii=it;continue}}else it=Ai;if(fy(r,lr,it,va,Zr,!1,void 0)){(ui||(ui=[])).push(it);continue}if(Zr){if(Zr=0,st){var kt=Ib(r,Ai,lr,Zr,st);if(it=jv(Ai,kt,e.isInJSFile(Ai.declaration),st&&st.inferredTypeParameters),ev(Ai)&&!a0(r,lr,it,pi)){Ii=it;continue}}if(fy(r,lr,it,va,Zr,!1,void 0)){(ui||(ui=[])).push(it);continue}}return Yt[Qi]=it,it}}}}function V5(r,i,t,o){return e.Debug.assert(i.length>0),lv(r),o||i.length===1||i.some(function(s){return!!s.typeParameters})?H5(r,i,t):K5(i)}function K5(r){var i=e.mapDefined(r,function(lr){return lr.thisParameter}),t;i.length&&(t=GC(i,i.map($m)));for(var o=e.minAndMax(r,G5),s=o.min,u=o.max,T=[],q=function(lr){var yr=e.mapDefined(r,function(Zr){return U(Zr)?lr<Zr.parameters.length-1?Zr.parameters[lr]:e.last(Zr.parameters):lr<Zr.parameters.length?Zr.parameters[lr]:void 0});e.Debug.assert(yr.length!==0),T.push(GC(yr,e.mapDefined(r,function(Zr){return hd(Zr,lr)})))},fe=0;fe<u;fe++)q(fe);var Ne=e.mapDefined(r,function(lr){return U(lr)?e.last(lr.parameters):void 0}),$e=0;if(Ne.length!==0){var Ze=tc(ba(e.mapDefined(r,LT),2));T.push(HC(Ne,Ze)),$e|=1}return r.some(z)&&($e|=2),Pu(r[0].declaration,void 0,t,T,To(r.map(So)),void 0,s,$e)}function G5(r){var i=r.parameters.length;return U(r)?i-1:i}function GC(r,i){return HC(r,ba(i,2))}function HC(r,i){return Jd(e.first(r),i)}function H5(r,i,t){var o=Y5(i,or===void 0?t.length:or),s=i[o],u=s.typeParameters;if(!u)return s;var T=FC(r)?r.typeArguments:void 0,q=T?ah(s,X5(T,u,e.isInJSFile(r))):Q5(r,u,s,t);return i[o]=q,q}function X5(r,i,t){for(var o=r.map(Wp);o.length>i.length;)o.pop();for(;o.length<i.length;)o.push(H_(i[o.length])||qc(i[o.length])||GD(t));return o}function Q5(r,i,t,o){var s=qm(i,t,e.isInJSFile(r)?2:0),u=Ib(r,t,o,12,s);return ah(t,u)}function Y5(r,i){for(var t=-1,o=-1,s=0;s<r.length;s++){var u=r[s],T=Lc(u);if(Ul(u)||T>=i)return s;T>o&&(o=T,t=s)}return t}function $5(r,i,t){if(r.expression.kind===106){var o=ab(r.expression);if(At(o)){for(var s=0,u=r.arguments;s<u.length;s++){var T=u[s];hn(T)}return go}if(!ra(o)){var q=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(q){var fe=Fd(o,q.typeArguments,q);return om(r,fe,i,t,0)}}return hg(r)}var Ne,$e=hn(r.expression);if(e.isCallChain(r)){var Ze=Wm($e,r.expression);Ne=Ze===$e?0:e.isOutermostOptionalChain(r)?16:8,$e=Ze}else Ne=0;if($e=hC($e,r.expression,v5),$e===Ci)return rs;var lr=$($e);if(ra(lr))return Jl(r);var yr=za(lr,0),Zr=za(lr,1).length;if(o0($e,lr,yr.length,Zr))return!ra($e)&&r.typeArguments&&Wr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),hg(r);if(!yr.length){if(Zr)Wr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ht($e));else{var ui=void 0;if(r.arguments.length===1){var Ii=e.getSourceFileOfNode(r).text;e.isLineBreak(Ii.charCodeAt(e.skipTrivia(Ii,r.expression.end,!0)-1))&&(ui=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Mb(r.expression,lr,0,ui)}return Jl(r)}return t&8&&!r.typeArguments&&yr.some(Z5)?(Ek(r,t),Ko):yr.some(function(Fi){return e.isInJSFile(Fi.declaration)&&!!e.getJSDocClassTag(Fi.declaration)})?(Wr(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ht($e)),Jl(r)):om(r,yr,i,t,Ne)}function Z5(r){return!!(r.typeParameters&&yS(So(r)))}function o0(r,i,t,o){return At(r)||At(i)&&!!(r.flags&262144)||!t&&!o&&!(i.flags&1048576)&&!(Lt(i).flags&131072)&&oo(r,Ka)}function e7(r,i,t){if(r.arguments&&Se<1){var o=t0(r.arguments);o>=0&&Wr(r.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=nm(r.expression);if(s===Ci)return rs;if(s=$(s),ra(s))return Jl(r);if(At(s))return r.typeArguments&&Wr(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),hg(r);var u=za(s,1);if(u.length){if(!r7(r,u[0]))return Jl(r);if(u.some(function(Ne){return Ne.flags&4}))return Wr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Jl(r);var T=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return T&&e.hasSyntacticModifier(T,128)?(Wr(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Jl(r)):om(r,u,i,t,0)}var q=za(s,0);if(q.length){var fe=om(r,q,i,t,0);return Tr||(fe.declaration&&!ml(fe.declaration)&&So(fe)!==Vt&&Wr(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),ld(fe)===Vt&&Wr(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),fe}return Mb(r.expression,s,1),Jl(r)}function Fb(r,i){var t=zc(i);if(!e.length(t))return!1;var o=t[0];if(o.flags&2097152){for(var s=o.types,u=Ky(s),T=0,q=0,fe=o.types;q<fe.length;q++){var Ne=fe[q];if(!u[T]&&e.getObjectFlags(Ne)&3&&(Ne.symbol===r||Fb(r,Ne)))return!0;T++}return!1}return o.symbol===r?!0:Fb(r,o)}function r7(r,i){if(!i||!i.declaration)return!0;var t=i.declaration,o=e.getSelectedEffectiveModifierFlags(t,24);if(!o||t.kind!==170)return!0;var s=e.getClassLikeDeclarationOfSymbol(t.parent.symbol),u=Io(t.parent.symbol);if(!dS(r,s)){var T=e.getContainingClass(r);if(T&&o&16){var q=Wp(T);if(Fb(t.parent.symbol,q))return!0}return o&8&&Wr(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ht(u)),o&16&&Wr(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ht(u)),!1}return!0}function XC(r,i,t){var o,s=t===0,u=zd(i),T=u&&za(u,t).length>0;if(i.flags&1048576){for(var q=i.types,fe=!1,Ne=0,$e=q;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=za(Ze,t);if(lr.length!==0){if(fe=!0,o)break}else if(o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ht(Ze)),o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,ht(i))),fe)break}fe||(o=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,ht(i))),o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ht(i)))}else o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ht(i));var yr=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Zr=Da(r).resolvedSymbol;Zr&&Zr.flags&32768&&(yr=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(o,yr),relatedMessage:T?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Mb(r,i,t,o){var s=XC(r,i,t),u=s.messageChain,T=s.relatedMessage,q=e.createDiagnosticForNodeFromMessageChain(r,u);if(T&&e.addRelatedInfo(q,e.createDiagnosticForNode(r,T)),e.isCallExpression(r.parent)){var fe=VC(r.parent,!0),Ne=fe.start,$e=fe.length;q.start=Ne,q.length=$e}ya.add(q),QC(i,t,o?e.addRelatedInfo(q,o):q)}function QC(r,i,t){if(!!r.symbol){var o=Ma(r.symbol).originatingImport;if(o&&!e.isImportCall(o)){var s=za(Jt(Ma(r.symbol).target),i);if(!s||!s.length)return;e.addRelatedInfo(t,e.createDiagnosticForNode(o,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function i7(r,i,t){var o=hn(r.tag),s=$(o);if(ra(s))return Jl(r);var u=za(s,0),T=za(s,1).length;if(o0(o,s,u.length,T))return hg(r);if(!u.length){if(e.isArrayLiteralExpression(r.parent)){var q=e.createDiagnosticForNode(r.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ya.add(q),Jl(r)}return Mb(r.tag,s,0),Jl(r)}return om(r,u,i,t,0)}function t7(r){switch(r.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function a7(r,i,t){var o=hn(r.expression),s=$(o);if(ra(s))return Jl(r);var u=za(s,0),T=za(s,1).length;if(o0(o,s,u.length,T))return hg(r);if(o7(r,u)){var q=e.getTextOfNode(r.expression,!1);return Wr(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,q),Jl(r)}var fe=t7(r);if(!u.length){var Ne=XC(r.expression,s,0),$e=e.chainDiagnosticMessages(Ne.messageChain,fe),Ze=e.createDiagnosticForNodeFromMessageChain(r.expression,$e);return Ne.relatedMessage&&e.addRelatedInfo(Ze,e.createDiagnosticForNode(r.expression,Ne.relatedMessage)),ya.add(Ze),QC(s,0,Ze),Jl(r)}return om(r,u,i,t,0,fe)}function s0(r,i){var t=yg(r),o=t&&Ns(t),s=o&&Pc(o,w.Element,788968),u=s&&Cr.symbolToEntityName(s,788968,r),T=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Cr.typeToTypeNode(i,r))],u?e.factory.createTypeReferenceNode(u,void 0):e.factory.createKeywordTypeNode(130)),q=bo(1,"props");return q.type=i,Pu(T,void 0,void 0,[q],s?Io(s):Oe,void 0,1,0)}function n7(r,i,t){if(am(r.tagName)){var o=dC(r),s=s0(r,o);return tp(bg(r.attributes,Hh(s,r),void 0,0),o,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,$n),ya.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var u=hn(r.tagName),T=$(u);if(ra(T))return Jl(r);var q=_C(u,r);return o0(u,T,q.length,0)?hg(r):q.length===0?(Wr(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Jl(r)):om(r,q,i,t,0)}function o7(r,i){return i.length&&e.every(i,function(t){return t.minArgumentCount===0&&!U(t)&&t.parameters.length<qC(r,t)})}function s7(r,i,t){switch(r.kind){case 207:return $5(r,i,t);case 208:return e7(r,i,t);case 209:return i7(r,i,t);case 164:return a7(r,i,t);case 279:case 278:return n7(r,i,t)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function sm(r,i,t){var o=Da(r),s=o.resolvedSignature;if(s&&s!==Ko&&!i)return s;o.resolvedSignature=Ko;var u=s7(r,i,t||0);return u!==Ko&&(o.resolvedSignature=ln===Ba?u:s),u}function ml(r){var i;if(!r||!e.isInJSFile(r))return!1;var t=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(t){if(e.getJSDocClassTag(r))return!0;var o=It(t);return!!(!((i=o==null?void 0:o.members)===null||i===void 0)&&i.size)}return!1}function Lb(r,i){var t,o;if(i){var s=Ma(i);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(f(r))){var u=e.isTransientSymbol(r)?r:Ls(r);return u.exports=u.exports||e.createSymbolTable(),u.members=u.members||e.createSymbolTable(),u.flags|=i.flags&32,!((t=i.exports)===null||t===void 0)&&t.size&&Yc(u.exports,i.exports),!((o=i.members)===null||o===void 0)&&o.size&&Yc(u.members,i.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(f(u),u),u}return s.inferredClassSymbol.get(f(r))}}function c7(r){var i,t=r&&c0(r,!0),o=(i=t==null?void 0:t.exports)===null||i===void 0?void 0:i.get("prototype"),s=(o==null?void 0:o.valueDeclaration)&&u7(o.valueDeclaration);return s?It(s):void 0}function c0(r,i){if(!!r.parent){var t,o;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;t=r.parent.name,o=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,u=r.parent.operatorToken.kind;if(u===63&&(i||s.right===r))t=s.left,o=t;else if((u===56||u===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(t=s.parent.name,o=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(i||s.parent.right===s)&&(t=s.parent.left,o=t),!t||!e.isBindableStaticNameExpression(t)||!e.isSameEntityName(t,s.left)))return}else i&&e.isFunctionDeclaration(r)&&(t=r.name,o=r);if(!(!o||!t||!i&&!e.getExpandoInitializer(r,e.isPrototypeAccess(t))))return It(o)}}function u7(r){if(!r.parent)return!1;for(var i=r.parent;i&&i.kind===205;)i=i.parent;if(i&&e.isBinaryExpression(i)&&e.isPrototypeAccess(i.left)&&i.operatorToken.kind===63){var t=e.getInitializerOfBinaryExpression(i);return e.isObjectLiteralExpression(t)&&t}}function l7(r,i){var t;Ay(r,r.typeArguments);var o=sm(r,void 0,i);if(o===Ko)return Hi;if(u0(o,r),r.expression.kind===106)return Vt;if(r.kind===208){var s=o.declaration;if(s&&s.kind!==170&&s.kind!==174&&s.kind!==179&&!e.isJSDocConstructSignature(s)&&!ml(s))return Tr&&Wr(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),xe}if(e.isInJSFile(r)&&rk(r))return FT(r.arguments[0]);var u=So(o);if(u.flags&12288&&YC(r))return uD(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===207&&!r.questionDotToken&&r.parent.kind===237&&u.flags&16384&&wu(o)){if(!e.isDottedName(r.expression))Wr(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!jh(r)){var T=Wr(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);ey(r.expression,T)}}if(e.isInJSFile(r)){var q=c0(r,!1);if(!((t=q==null?void 0:q.exports)===null||t===void 0)&&t.size){var fe=_s(q,q.exports,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,To([u,fe])}}return u}function u0(r,i){if(r.declaration&&r.declaration.flags&134217728){var t=_y(i),o=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(i));lp(t,r.declaration,o,kl(r))}}function _y(r){switch(r=e.skipParentheses(r),r.kind){case 207:case 164:case 208:return _y(r.expression);case 209:return _y(r.tag);case 279:case 278:return _y(r.tagName);case 206:return r.argumentExpression;case 205:return r.name;case 177:var i=r;return e.isQualifiedName(i.typeName)?i.typeName.right:i;default:return r}}function YC(r){if(!e.isCallExpression(r))return!1;var i=r.expression;if(e.isPropertyAccessExpression(i)&&i.name.escapedText==="for"&&(i=i.expression),!e.isIdentifier(i)||i.escapedText!=="Symbol")return!1;var t=tx(!1);return t?t===os(i,"Symbol",111551,void 0,void 0,!1):!1}function f7(r){if($9(r),r.arguments.length===0)return gy(r,xe);for(var i=r.arguments[0],t=js(i),o=r.arguments.length>1?js(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)js(r.arguments[s]);if((t.flags&32768||t.flags&65536||!oo(t,ki))&&Wr(i,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ht(t)),o){var u=ix(!0);u!==tt&&Gc(o,Eh(u,32768),r.arguments[1])}var T=ko(r,i);if(T){var q=su(T,i,!0,!1);if(q)return gy(r,ZC(Jt(q),q,T,i)||ek(Jt(q),q,T,i))}return gy(r,xe)}function $C(r,i,t){var o=e.createSymbolTable(),s=bo(2097152,"default");return s.parent=i,s.nameType=Ou("default"),s.target=Qo(r),o.set("default",s),_s(t,o,e.emptyArray,e.emptyArray,e.emptyArray)}function ZC(r,i,t,o){var s=o_(o);if(s&&r&&!ra(r)){var u=r;if(!u.defaultOnlyType){var T=$C(i,t);u.defaultOnlyType=T}return u.defaultOnlyType}}function ek(r,i,t,o){var s;if(cr&&r&&!ra(r)){var u=r;if(!u.syntheticType){var T=(s=t.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),q=R_(T,t,!1,o);if(q){var fe=bo(2048,"__type"),Ne=$C(i,t,fe);fe.type=Ne,u.syntheticType=oy(r)?Fp(r,Ne,fe,0,!1):Ne}else u.syntheticType=r}return u.syntheticType}return r}function rk(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var i=os(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(i===be)return!0;if(i.flags&2097152)return!1;var t=i.flags&16?255:i.flags&3?253:0;if(t!==0){var o=e.getDeclarationOfKind(i,t);return!!o&&!!(o.flags&8388608)}return!1}function _7(r){S9(r)||Ay(r,r.typeArguments),Se<2&&dc(r,262144);var i=sm(r);return u0(i,r),So(i)}function p7(r){if(r.kind===210){var i=e.getSourceFileOfNode(r);i&&e.fileExtensionIsOneOf(i.fileName,[".cts",".mts"])&&vt(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return tk(r,r.type,r.expression)}function ik(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return ik(r.expression);case 218:var i=r.operator,t=r.operand;return i===40&&(t.kind===8||t.kind===9)||i===39&&t.kind===8;case 205:case 206:var o=r.expression,s=Wp(o).symbol;return s&&s.flags&2097152&&(s=zo(s)),!!(s&&s.flags&384&&Oc(s)===1)}return!1}function tk(r,i,t,o){var s=hn(t,o);if(e.isConstTypeReference(i))return ik(t)||Wr(t,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Vc(s);$n(i),s=rm(Bl(s));var u=Ua(i);if(oe&&!ra(u)){var T=Hc(s);Yg(u,T)||Qx(s,u,r,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}return u}function d7(r){var i=hn(r.expression),t=Wm(i,r.expression);return Ch(C_(t),r,t!==i)}function g7(r){return r.flags&32?d7(r):C_(hn(r.expression))}function m7(r){return J9(r),r.keywordToken===103?Rb(r):r.keywordToken===100?v7(r):e.Debug.assertNever(r.keywordToken)}function ak(r){switch(r.keywordToken){case 100:return ZN();case 103:var i=Rb(r);return ra(i)?Oe:S7(i);default:e.Debug.assertNever(r.keywordToken)}}function Rb(r){var i=e.getNewTargetContainer(r);if(i)if(i.kind===170){var t=It(i.parent);return Jt(t)}else{var t=It(i);return Jt(t)}else return Wr(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Oe}function v7(r){ge===e.ModuleKind.Node12||ge===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Wr(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ge<e.ModuleKind.ES2020&&ge!==e.ModuleKind.System&&Wr(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var i=e.getSourceFileOfNode(r);return e.Debug.assert(!!(i.flags&2097152),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?rx():Oe}function $m(r){var i=Jt(r);if(ur){var t=r.valueDeclaration;if(t&&e.hasInitializer(t))return $f(i)}return i}function l0(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function cm(r,i,t){var o=r.parameters.length-(U(r)?1:0);if(i<o)return r.parameters[i].escapedName;var s=r.parameters[o]||hr,u=t||Jt(s);if(Ln(u)){var T=u.target.labeledElementDeclarations,q=i-o;return T&&l0(T[q])||s.escapedName+"_"+q}return s.escapedName}function y7(r,i){var t;if(((t=r.declaration)===null||t===void 0?void 0:t.kind)!==315){var o=r.parameters.length-(U(r)?1:0);if(i<o){var s=r.parameters[i];return nk(s)?[s.escapedName,!1]:void 0}var u=r.parameters[o]||hr;if(!!nk(u)){var T=Jt(u);if(Ln(T)){var q=T.target.labeledElementDeclarations,fe=i-o,Ne=q==null?void 0:q[fe],$e=!!(Ne!=null&&Ne.dotDotDotToken);return Ne?[l0(Ne),$e]:void 0}if(i===o)return[u.escapedName,!0]}}}function nk(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function ok(r){return r.kind===196||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function h7(r,i){var t=r.parameters.length-(U(r)?1:0);if(i<t){var o=r.parameters[i].valueDeclaration;return o&&ok(o)?o:void 0}var s=r.parameters[t]||hr,u=Jt(s);if(Ln(u)){var T=u.target.labeledElementDeclarations,q=i-t;return T&&T[q]}return s.valueDeclaration&&ok(s.valueDeclaration)?s.valueDeclaration:void 0}function Hu(r,i){return hd(r,i)||xe}function hd(r,i){var t=r.parameters.length-(U(r)?1:0);if(i<t)return $m(r.parameters[i]);if(U(r)){var o=Jt(r.parameters[t]),s=i-t;if(!Ln(o)||o.target.hasRestElement||s<o.target.fixedLength)return Mc(o,xf(s))}}function um(r,i){var t=Lc(r),o=jl(r),s=Zm(r);if(s&&i>=t-1)return i===t-1?s:tc(Mc(s,Ui));for(var u=[],T=[],q=[],fe=i;fe<t;fe++){!s||fe<t-1?(u.push(Hu(r,fe)),T.push(fe<o?1:2)):(u.push(s),T.push(8));var Ne=h7(r,fe);Ne&&q.push(Ne)}return Ml(u,T,!1,e.length(q)===e.length(u)?q:void 0)}function Lc(r){var i=r.parameters.length;if(U(r)){var t=Jt(r.parameters[i-1]);if(Ln(t))return i+t.target.fixedLength-(t.target.hasRestElement?0:1)}return i}function jl(r,i){var t=i&1,o=i&2;if(o||r.resolvedMinArgumentCount===void 0){var s=void 0;if(U(r)){var u=Jt(r.parameters[r.parameters.length-1]);if(Ln(u)){var T=e.findIndex(u.target.elementFlags,function($e){return!($e&1)}),q=T<0?u.target.fixedLength:T;q>0&&(s=r.parameters.length-1+q)}}if(s===void 0){if(!t&&r.flags&32)return 0;s=r.minArgumentCount}if(o)return s;for(var fe=s-1;fe>=0;fe--){var Ne=Hu(r,fe);if(pc(Ne,MC).flags&131072)break;s=fe}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function Ul(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]);return!Ln(i)||i.target.hasRestElement}return!1}function Zm(r){if(U(r)){var i=Jt(r.parameters[r.parameters.length-1]);if(!Ln(i))return i;if(i.target.hasRestElement)return Mm(i,i.target.fixedLength)}}function ev(r){var i=Zm(r);return i&&!_c(i)&&!At(i)&&(Lt(i).flags&131072)===0?i:void 0}function Bb(r){return Jb(r,St)}function Jb(r,i){return r.parameters.length>0?Hu(r,0):i}function D7(r,i,t){for(var o=r.parameters.length-(U(r)?1:0),s=0;s<o;s++){var u=r.parameters[s].valueDeclaration;if(u.type){var T=e.getEffectiveTypeAnnotationNode(u);T&&Cf(t.inferences,Ua(T),Hu(i,s))}}var q=Zm(i);if(q&&q.flags&262144){var fe=ug(i,t.nonFixingMapper);sk(r,fe);var Ne=Lc(i)-1;Cf(t.inferences,um(r,Ne),q)}}function sk(r,i){if(i.typeParameters)if(!r.typeParameters)r.typeParameters=i.typeParameters;else return;if(i.thisParameter){var t=r.thisParameter;(!t||t.valueDeclaration&&!t.valueDeclaration.type)&&(t||(r.thisParameter=Jd(i.thisParameter,void 0)),py(r.thisParameter,Jt(i.thisParameter)))}for(var o=r.parameters.length-(U(r)?1:0),s=0;s<o;s++){var t=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=hd(i,s);py(t,u)}}if(U(r)){var t=e.last(r.parameters);if(e.isTransientSymbol(t)||!e.getEffectiveTypeAnnotationNode(t.valueDeclaration)){var u=um(i,o);py(t,u)}}}function b7(r){r.thisParameter&&py(r.thisParameter);for(var i=0,t=r.parameters;i<t.length;i++){var o=t[i];py(o)}}function py(r,i){var t=Ma(r);if(!t.type){var o=r.valueDeclaration;t.type=i||Is(o,!0),o.name.kind!==79&&(t.type===We&&(t.type=cl(o.name)),ck(o.name,t.type))}}function ck(r,i){for(var t=0,o=r.elements;t<o.length;t++){var s=o[t];if(!e.isOmittedExpression(s)){var u=Qs(s,i);s.name.kind===79?Ma(It(s)).type=u:ck(s.name,u)}}}function dy(r){var i=zv(!0);return i!==qr?(r=k_(sv(r))||We,Hf(i,[r])):We}function uk(r){var i=nx(!0);return i!==qr?(r=k_(sv(r))||We,Hf(i,[r])):We}function gy(r,i){var t=dy(i);return t===We?(Wr(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Oe):(W1(!0)||Wr(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),t)}function S7(r){var i=bo(0,"NewTargetExpression"),t=bo(4,"target",8);t.parent=i,t.type=r;var o=e.createSymbolTable([t]);return i.members=o,_s(i,o,e.emptyArray,e.emptyArray,e.emptyArray)}function f0(r,i){if(!r.body)return Oe;var t=e.getFunctionFlags(r),o=(t&2)!==0,s=(t&1)!==0,u,T,q,fe=Vt;if(r.body.kind!==234)u=js(r.body,i&&i&-9),o&&(u=sv(ov(u,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(s){var Ne=dk(r,i);Ne?Ne.length>0&&(u=ba(Ne,2)):fe=St;var $e=T7(r,i),Ze=$e.yieldTypes,lr=$e.nextTypes;T=e.some(Ze)?ba(Ze,2):void 0,q=e.some(lr)?To(lr):void 0}else{var yr=dk(r,i);if(!yr)return t&2?gy(r,St):St;if(yr.length===0)return t&2?gy(r,Vt):Vt;u=ba(yr,2)}if(u||T||q){if(T&&Nh(r,T,3),u&&Nh(r,u,1),q&&Nh(r,q,2),u&&Rl(u)||T&&Rl(T)||q&&Rl(q)){var Zr=_b(r),ui=Zr?Zr===Ku(r)?s?void 0:u:Kh(So(Zr),r):void 0;s?(T=wD(T,ui,0,o),u=wD(u,ui,1,o),q=wD(q,ui,2,o)):u=iI(u,ui,o)}T&&(T=Hc(T)),u&&(u=Hc(u)),q&&(q=Hc(q))}return s?lk(T||St,u||fe,q||rC(2,r)||We,o):o?dy(u||fe):u||fe}function lk(r,i,t,o){var s=o?xo:ds,u=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||We,i=s.resolveIterationType(i,void 0)||We,t=s.resolveIterationType(t,void 0)||We,u===qr){var T=s.getGlobalIterableIteratorType(!1),q=T!==qr?e6(T,s):void 0,fe=q?q.returnType:xe,Ne=q?q.nextType:Nr;return oo(i,fe)&&oo(Ne,t)?T!==qr?Fm(T,[r]):(s.getGlobalIterableIteratorType(!0),tt):(s.getGlobalGeneratorType(!0),tt)}return Fm(u,[r,i,t])}function T7(r,i){var t=[],o=[],s=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(u){var T=u.expression?hn(u.expression,i):Ur;e.pushIfUnique(t,fk(u,T,xe,s));var q;if(u.asteriskToken){var fe=xy(T,s?19:17,u.expression);q=fe&&fe.nextType}else q=Su(u);q&&e.pushIfUnique(o,q)}),{yieldTypes:t,nextTypes:o}}function fk(r,i,t,o){var s=r.expression||r,u=r.asteriskToken?P_(o?19:17,i,t,s):i;return o?zd(u,s,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):u}function jb(r,i,t,o){var s=0;if(o){for(var u=i;u<t.length;u++)s|=se.get(t[u])||32768;for(var u=r;u<i;u++)s&=~(se.get(t[u])||0);for(var u=0;u<r;u++)s|=se.get(t[u])||32768}else{for(var u=r;u<i;u++)s|=H.get(t[u])||128;for(var u=0;u<r;u++)s&=~(H.get(t[u])||0)}return s}function _k(r){var i=Da(r);return i.isExhaustive!==void 0?i.isExhaustive:i.isExhaustive=x7(r)}function x7(r){if(r.expression.kind===215){var i=ac(r.expression.expression),t=JE(r,!1),o=jb(0,0,t,!0),s=Cc(i)||i;return s.flags&3?(556800&o)===556800:!!(pc(s,function(q){return(np(q)&o)===o}).flags&131072)}var u=ac(r.expression);if(!fg(u))return!1;var T=Lh(r);return!T.length||e.some(T,eI)?!1:VI(Cs(u,Vc),T)}function pk(r){return r.endFlowNode&&ry(r.endFlowNode)}function dk(r,i){var t=e.getFunctionFlags(r),o=[],s=pk(r),u=!1;if(e.forEachReturnStatement(r.body,function(T){var q=T.expression;if(q){var fe=js(q,i&&i&-9);t&2&&(fe=sv(ov(fe,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),fe.flags&131072&&(u=!0),e.pushIfUnique(o,fe)}else s=!0}),!(o.length===0&&!s&&(u||E7(r))))return ur&&o.length&&s&&!(ml(r)&&o.some(function(T){return T.symbol===r.symbol}))&&e.pushIfUnique(o,Nr),o}function E7(r){switch(r.kind){case 212:case 213:return!0;case 168:return r.parent.kind===204;default:return!1}}function Ub(r,i){if(!!oe){var t=e.getFunctionFlags(r),o=i&&S0(i,t);if(!(o&&ls(o,16385))&&!(r.kind===167||e.nodeIsMissing(r.body)||r.body.kind!==234||!pk(r))){var s=r.flags&512,u=e.getEffectiveReturnTypeNode(r)||r;if(o&&o.flags&131072)Wr(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!s)Wr(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&ur&&!oo(Nr,o))Wr(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ye.noImplicitReturns){if(!o){if(!s)return;var T=So(Ku(r));if(s6(r,T))return}Wr(u,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function gk(r,i){if(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),lv(r),e.isFunctionExpression(r)&&pm(r,r.name),i&&i&4&&_l(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var t=Qm(r);if(t&&Vm(So(t))){var o=Da(r);if(o.contextFreeType)return o.contextFreeType;var s=f0(r,i),u=Pu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),T=_s(r.symbol,he,[u],e.emptyArray,e.emptyArray);return T.objectFlags|=524288,o.contextFreeType=T}}return bn}var q=O0(r);return!q&&r.kind===212&&SS(r),C7(r,i),Jt(It(r))}function C7(r,i){var t=Da(r);if(!(t.flags&1024)){var o=Qm(r);if(!(t.flags&1024)){t.flags|=1024;var s=e.firstOrUndefined(za(Jt(It(r)),0));if(!s)return;if(_l(r))if(o){var u=Xm(r);i&&i&2&&D7(s,o,u);var T=u?ug(o,u.mapper):o;sk(s,T)}else b7(s);if(o&&!ag(r)&&!s.resolvedReturnType){var q=f0(r,i);s.resolvedReturnType||(s.resolvedReturnType=q)}iv(r)}}}function k7(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var i=e.getFunctionFlags(r),t=ag(r);if(Ub(r,t),r.body)if(e.getEffectiveReturnTypeNode(r)||So(Ku(r)),r.body.kind===234)$n(r.body);else{var o=hn(r.body),s=t&&S0(t,i);if(s)if((i&3)===2){var u=ov(o,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);tp(u,s,r.body,r.body)}else tp(o,s,r.body,r.body)}}function _0(r,i,t,o){if(o===void 0&&(o=!1),!oo(i,Oi)){var s=o&&av(i);return Tu(r,!!s&&oo(s,Oi),t),!1}return!0}function A7(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var i=js(r.arguments[2]),t=ai(i,"value");if(t){var o=tn(i,"writable"),s=o&&Jt(o);if(!s||s===ri||s===Gi)return!0;if(o&&o.valueDeclaration&&e.isPropertyAssignment(o.valueDeclaration)){var u=o.valueDeclaration.initializer,T=hn(u);if(T===ri||T===Gi)return!0}return!1}var q=tn(i,"set");return!q}function zl(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&Yh(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,A7))}function mk(r,i,t){var o,s;if(t===0)return!1;if(zl(i)){if(i.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var u=e.getContainingFunction(r);if(!(u&&(u.kind===170||ml(u))))return!0;if(i.valueDeclaration){var T=e.isBinaryExpression(i.valueDeclaration),q=u.parent===i.valueDeclaration.parent,fe=u===i.valueDeclaration.parent,Ne=T&&((o=i.parent)===null||o===void 0?void 0:o.valueDeclaration)===u.parent,$e=T&&((s=i.parent)===null||s===void 0?void 0:s.valueDeclaration)===u,Ze=q||fe||Ne||$e;return!Ze}}return!0}if(e.isAccessExpression(r)){var lr=e.skipParentheses(r.expression);if(lr.kind===79){var yr=Da(lr).resolvedSymbol;if(yr.flags&2097152){var Zr=ju(yr);return!!Zr&&Zr.kind===267}}}return!1}function rv(r,i,t){var o=e.skipOuterExpressions(r,7);return o.kind!==79&&!e.isAccessExpression(o)?(Wr(r,i),!1):o.flags&32?(Wr(r,t),!1):!0}function P7(r){hn(r.expression);var i=e.skipParentheses(r.expression);if(!e.isAccessExpression(i))return Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),xt;e.isPropertyAccessExpression(i)&&e.isPrivateIdentifier(i.name)&&Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var t=Da(i),o=$c(t.resolvedSymbol);return o&&(zl(o)&&Wr(i,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),N7(i,o)),xt}function N7(r,i){var t=Jt(i);ur&&!(t.flags&131075)&&!(Ce?i.flags&16777216:Fu(t)&32768)&&Wr(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function I7(r){return hn(r.expression),Eo}function w7(r){return hn(r.expression),Ur}function O7(r){if(oe){var i=e.getContainingFunctionOrClassStaticBlock(r);if(i&&e.isClassStaticBlockDeclaration(i))Wr(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var t=e.getSourceFileOfNode(r);if(!bd(t)){var o=void 0;if(!e.isEffectiveExternalModule(t,ye)){o||(o=e.getSpanOfTokenAtPosition(t,r.pos));var s=e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);ya.add(s)}if(ge!==e.ModuleKind.ES2022&&ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.System&&!(ge===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Se<4){o=e.getSpanOfTokenAtPosition(t,r.pos);var s=e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher);ya.add(s)}}}else{var t=e.getSourceFileOfNode(r);if(!bd(t)){var o=e.getSpanOfTokenAtPosition(t,r.pos),s=e.createFileDiagnostic(t,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(i&&i.kind!==170&&(e.getFunctionFlags(i)&2)===0){var u=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,u)}ya.add(s)}}ob(r)&&Wr(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var T=hn(r.expression),q=ov(T,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return q===T&&!ra(q)&&!(T.flags&3)&&Ws(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),q}function F7(r){var i=hn(r.operand);if(i===Ci)return Ci;switch(r.operand.kind){case 8:switch(r.operator){case 40:return sg(xf(-r.operand.text));case 39:return sg(xf(+r.operand.text))}break;case 9:if(r.operator===40)return sg(cD({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return gl(i,r.operand),ls(i,12288)&&Wr(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(ls(i,2112)&&Wr(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),ht(Bl(i))),Ui):zb(i);case 53:dm(r.operand);var t=np(i)&12582912;return t===4194304?ri:t===8388608?Rt:xt;case 45:case 46:var o=_0(r.operand,gl(i,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return o&&rv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),zb(i)}return Oe}function M7(r){var i=hn(r.operand);if(i===Ci)return Ci;var t=_0(r.operand,gl(i,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return t&&rv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),zb(i)}function zb(r){return ls(r,2112)?ws(r,3)||ls(r,296)?Oi:zi:Ui}function ls(r,i){if(r.flags&i)return!0;if(r.flags&3145728)for(var t=r.types,o=0,s=t;o<s.length;o++){var u=s[o];if(ls(u,i))return!0}return!1}function ws(r,i,t){return r.flags&i?!0:t&&r.flags&114691?!1:!!(i&296)&&oo(r,Ui)||!!(i&2112)&&oo(r,zi)||!!(i&402653316)&&oo(r,ki)||!!(i&528)&&oo(r,xt)||!!(i&16384)&&oo(r,Vt)||!!(i&131072)&&oo(r,St)||!!(i&65536)&&oo(r,Ti)||!!(i&32768)&&oo(r,Nr)||!!(i&4096)&&oo(r,ua)||!!(i&67108864)&&oo(r,gt)}function Dg(r,i,t){return r.flags&1048576?e.every(r.types,function(o){return Dg(o,i,t)}):ws(r,i,t)}function Wb(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&qb(r.symbol)}function qb(r){return(r.flags&128)!==0}function L7(r,i,t,o){return t===Ci||o===Ci?Ci:(!At(t)&&Dg(t,131068)&&Wr(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),At(o)||mS(o)||E_(o,Ka)||Wr(i,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),xt)}function R7(r,i,t,o){if(t===Ci||o===Ci)return Ci;if(e.isPrivateIdentifier(r)){if(Se<99&&dc(r,2097152),!Da(r).resolvedSymbol&&e.getContainingClass(r)){var s=Eb(r,o.symbol,!0);kC(r,o,s)}}else t=gl(t,r),Dg(t,402665900)||ws(t,407109632)||Wr(r,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);o=gl(o,i);var u=b_(o);return(!Dg(o,126091264)||u&&(ws(o,3145728)&&!Dg(u,126091264)||!ls(u,126615552)))&&Wr(i,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),xt}function B7(r,i,t){var o=r.properties;if(ur&&o.length===0)return gl(i,r);for(var s=0;s<o.length;s++)vk(r,i,s,o,t);return i}function vk(r,i,t,o,s){s===void 0&&(s=!1);var u=r.properties,T=u[t];if(T.kind===294||T.kind===295){var q=T.name,fe=$_(q);if(ul(fe)){var Ne=Nl(fe),$e=tn(i,Ne);$e&&(ly($e,T,s),bb(T,!1,!0,i,$e))}var Ze=Mc(i,fe,32,q),lr=jo(T,Ze);return Dd(T.kind===295?T:T.initializer,lr)}else if(T.kind===296)if(t<u.length-1)Wr(T,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{Se<99&&dc(T,4);var yr=[];if(o)for(var Zr=0,ui=o;Zr<ui.length;Zr++){var Ii=ui[Zr];e.isSpreadAssignment(Ii)||yr.push(Ii.name)}var lr=fn(i,yr,i.symbol);return Wd(o,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Dd(T.expression,lr)}else Wr(T,e.Diagnostics.Property_assignment_expected)}function J7(r,i,t){var o=r.elements;Se<2&&ye.downlevelIteration&&dc(r,512);for(var s=P_(193,i,Nr,r)||Oe,u=ye.noUncheckedIndexedAccess?void 0:s,T=0;T<o.length;T++){var q=s;r.elements[T].kind===224&&(q=u=u!=null?u:P_(65,i,Nr,r)||Oe),yk(r,i,T,q,t)}return i}function yk(r,i,t,o,s){var u=r.elements,T=u[t];if(T.kind!==226){if(T.kind!==224){var q=xf(t);if(ap(i)){var fe=32|(tm(T)?16:0),Ne=Z_(i,q,fe,zp(T,q))||Oe,$e=tm(T)?$s(Ne,524288):Ne,Ze=jo(T,$e);return Dd(T,Ze,s)}return Dd(T,o,s)}if(t<u.length-1)Wr(T,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var lr=T.expression;if(lr.kind===220&&lr.operatorToken.kind===63)Wr(lr.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{Wd(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var Ze=kf(i,Ln)?Cs(i,function(Zr){return Mm(Zr,t)}):tc(o);return Dd(lr,Ze,s)}}}}function Dd(r,i,t,o){var s;if(r.kind===295){var u=r;u.objectAssignmentInitializer&&(ur&&!(Fu(hn(u.objectAssignmentInitializer))&32768)&&(i=$s(i,524288)),W7(u.name,u.equalsToken,u.objectAssignmentInitializer,t)),s=r.name}else s=r;return s.kind===220&&s.operatorToken.kind===63&&(Le(s,t),s=s.left),s.kind===204?B7(s,i,o):s.kind===203?J7(s,i,t):j7(s,i,t)}function j7(r,i,t){var o=hn(r,t),s=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,u=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return rv(r,s,u)&&tp(i,o,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&dc(r.parent,1048576),i}function my(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return my(r.whenTrue)&&my(r.whenFalse);case 220:return e.isAssignmentOperator(r.operatorToken.kind)?!1:my(r.left)&&my(r.right);case 218:case 219:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function Vb(r,i){return(i.flags&98304)!==0||Yg(r,i)}function U7(){var r=e.createBinaryExpressionTrampoline(i,t,o,s,u,T);return function(lr,yr){var Zr=r(lr,yr);return e.Debug.assertIsDefined(Zr),Zr};function i(lr,yr,Zr){if(yr?(yr.stackIndex++,yr.skip=!1,Ne(yr,void 0),Ze(yr,void 0)):yr={checkMode:Zr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(lr)&&e.getAssignedExpandoInitializer(lr))return yr.skip=!0,Ze(yr,hn(lr.right,Zr)),yr;z7(lr);var ui=lr.operatorToken.kind;return ui===63&&(lr.left.kind===204||lr.left.kind===203)&&(yr.skip=!0,Ze(yr,Dd(lr.left,hn(lr.right,Zr),Zr,lr.right.kind===108))),yr}function t(lr,yr,Zr){if(!yr.skip)return q(yr,lr)}function o(lr,yr,Zr){if(!yr.skip){var ui=$e(yr);e.Debug.assertIsDefined(ui),Ne(yr,ui),Ze(yr,void 0);var Ii=lr.kind;if(Ii===55||Ii===56||Ii===60){if(Ii===55){var Fi=e.walkUpParenthesizedExpressions(Zr.parent);tS(Zr.left,ui,e.isIfStatement(Fi)?Fi.thenStatement:void 0)}Xk(ui,Zr.left)}}}function s(lr,yr,Zr){if(!yr.skip)return q(yr,lr)}function u(lr,yr){var Zr;if(yr.skip)Zr=$e(yr);else{var ui=fe(yr);e.Debug.assertIsDefined(ui);var Ii=$e(yr);e.Debug.assertIsDefined(Ii),Zr=hk(lr.left,lr.operatorToken,lr.right,ui,Ii,lr)}return yr.skip=!1,Ne(yr,void 0),Ze(yr,void 0),yr.stackIndex--,Zr}function T(lr,yr,Zr){return Ze(lr,yr),lr}function q(lr,yr){if(e.isBinaryExpression(yr))return yr;Ze(lr,hn(yr,lr.checkMode))}function fe(lr){return lr.typeStack[lr.stackIndex]}function Ne(lr,yr){lr.typeStack[lr.stackIndex]=yr}function $e(lr){return lr.typeStack[lr.stackIndex+1]}function Ze(lr,yr){lr.typeStack[lr.stackIndex+1]=yr}}function z7(r){var i=r.left,t=r.operatorToken,o=r.right;t.kind===60&&(e.isBinaryExpression(i)&&(i.operatorToken.kind===56||i.operatorToken.kind===55)&&vt(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(t.kind)),e.isBinaryExpression(o)&&(o.operatorToken.kind===56||o.operatorToken.kind===55)&&vt(o,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(o.operatorToken.kind),e.tokenToString(t.kind)))}function W7(r,i,t,o,s){var u=i.kind;if(u===63&&(r.kind===204||r.kind===203))return Dd(r,hn(t,o),o,t.kind===108);var T;u===55||u===56||u===60?T=dm(r,o):T=hn(r,o);var q=hn(t,o);return hk(r,i,t,T,q,s)}function hk(r,i,t,o,s,u){var T=i.kind;switch(T){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(o===Ci||s===Ci)return Ci;o=gl(o,r),s=gl(s,t);var q=void 0;if(o.flags&528&&s.flags&528&&(q=Ra(i.kind))!==void 0)return Wr(u||i,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(i.kind),e.tokenToString(q)),Ui;var fe=_0(r,o,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ne=_0(t,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$e;if(ws(o,3)&&ws(s,3)||!(ls(o,2112)||ls(s,2112)))$e=Ui;else if(lt(o,s)){switch(T){case 49:case 72:Ao();break;case 42:case 67:Se<3&&Wr(u,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}$e=zi}else Ao(lt),$e=Oe;return fe&&Ne&&Bn($e),$e;case 39:case 64:if(o===Ci||s===Ci)return Ci;!ws(o,402653316)&&!ws(s,402653316)&&(o=gl(o,r),s=gl(s,t));var Ze=void 0;if(ws(o,296,!0)&&ws(s,296,!0)?Ze=Ui:ws(o,2112,!0)&&ws(s,2112,!0)?Ze=zi:ws(o,402653316,!0)||ws(s,402653316,!0)?Ze=ki:(At(o)||At(s))&&(Ze=ra(o)||ra(s)?Oe:xe),Ze&&!Dn(T))return Ze;if(!Ze){var lr=402655727;return Ao(function(Vi,Ot){return ws(Vi,lr)&&ws(Ot,lr)}),xe}return T===64&&Bn(Ze),Ze;case 29:case 31:case 32:case 33:return Dn(T)&&(o=Bl(gl(o,r)),s=Bl(gl(s,t)),On(function(Vi,Ot){return Yg(Vi,Ot)||Yg(Ot,Vi)||oo(Vi,Oi)&&oo(Ot,Oi)})),xt;case 34:case 35:case 36:case 37:return On(function(Vi,Ot){return Vb(Vi,Ot)||Vb(Ot,Vi)}),xt;case 102:return L7(r,t,o,s);case 101:return R7(r,t,o,s);case 55:case 76:{var yr=np(o)&4194304?ba([nI(ur?o:Bl(s)),s]):o;return T===76&&Bn(s),yr}case 56:case 75:{var Zr=np(o)&8388608?ba([_E(o),s],2):o;return T===75&&Bn(s),Zr}case 60:case 77:{var ui=np(o)&262144?ba([C_(o),s],2):o;return T===77&&Bn(s),ui}case 63:var Ii=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return Ia(Ii,s),Jn(Ii)?((!(s.flags&524288)||Ii!==2&&Ii!==6&&!Ef(s)&&!QD(s)&&!(e.getObjectFlags(s)&1))&&Bn(s),o):(Bn(s),rm(s));case 27:if(!ye.allowUnreachableCode&&my(r)&&!fa(t)){var Fi=e.getSourceFileOfNode(r),Ri=Fi.text,Xi=e.skipTrivia(Ri,r.pos),ea=Fi.parseDiagnostics.some(function(Vi){return Vi.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Vi,Xi)});ea||Wr(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function lt(Vi,Ot){return ws(Vi,2112)&&ws(Ot,2112)}function Ia(Vi,Ot){if(Vi===2)for(var Wa=0,Qt=Gf(Ot);Wa<Qt.length;Wa++){var Qa=Qt[Wa],En=Jt(Qa);if(En.symbol&&En.symbol.flags&32){var Gn=Qa.escapedName,ia=os(Qa.valueDeclaration,Gn,788968,void 0,Gn,!1);(ia==null?void 0:ia.declarations)&&ia.declarations.some(e.isJSDocTypedefTag)&&(xu(ia,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Gn),Qa),xu(Qa,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Gn),ia))}}}function fa(Vi){return Vi.kind===79&&Vi.escapedText==="eval"}function Dn(Vi){var Ot=ls(o,12288)?r:ls(s,12288)?t:void 0;return Ot?(Wr(Ot,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Vi)),!1):!0}function Ra(Vi){switch(Vi){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Bn(Vi){if(oe&&e.isAssignmentOperator(T)&&rv(r,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var Ot=void 0;if(Ce&&e.isPropertyAccessExpression(r)&&ls(Vi,32768)){var Wa=ai(ac(r.expression),r.name.escapedText);TD(Vi,Wa)&&(Ot=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}tp(Vi,o,r,t,Ot)}}function Jn(Vi){var Ot;switch(Vi){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Wa=It(r),Qt=e.getAssignedExpandoInitializer(t);return!!Qt&&e.isObjectLiteralExpression(Qt)&&!!(!((Ot=Wa==null?void 0:Wa.exports)===null||Ot===void 0)&&Ot.size);default:return!1}}function On(Vi){return Vi(o,s)?!1:(Ao(Vi),!0)}function Ao(Vi){var Ot,Wa=!1,Qt=u||i;if(Vi){var Qa=k_(o),En=k_(s);Wa=!(Qa===o&&En===s)&&!!(Qa&&En)&&Vi(Qa,En)}var Gn=o,ia=s;!Wa&&Vi&&(Ot=q7(o,s,Vi),Gn=Ot[0],ia=Ot[1]);var Xn=__(Gn,ia),ii=Xn[0],Ar=Xn[1];$i(Qt,Wa,ii,Ar)||Tu(Qt,Wa,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(i.kind),ii,Ar)}function $i(Vi,Ot,Wa,Qt){var Qa;switch(i.kind){case 36:case 34:Qa="false";break;case 37:case 35:Qa="true"}if(Qa)return Tu(Vi,Ot,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,Qa,Wa,Qt)}}function q7(r,i,t){var o=r,s=i,u=Bl(r),T=Bl(i);return t(u,T)||(o=u,s=T),[o,s]}function V7(r){oe&&(r.flags&8192||Zs(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),ob(r)&&Wr(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var i=e.getContainingFunction(r);if(!i)return xe;var t=e.getFunctionFlags(i);if(!(t&1))return xe;var o=(t&2)!==0;r.asteriskToken&&(o&&Se<99&&dc(r,26624),!o&&Se<2&&ye.downlevelIteration&&dc(r,256));var s=ag(i),u=s&&o6(s,o),T=u&&u.yieldType||xe,q=u&&u.nextType||xe,fe=o?zd(q)||xe:q,Ne=r.expression?hn(r.expression):Ur,$e=fk(r,Ne,fe,o);if(s&&$e&&tp($e,T,r.expression||r,r.expression),r.asteriskToken){var Ze=o?19:17;return Yk(Ze,1,Ne,r.expression)||xe}else if(s)return Sg(2,s,o)||xe;var lr=rC(2,i);if(!lr&&(lr=xe,oe&&Tr&&!e.expressionResultIsUnused(r))){var yr=Su(r);(!yr||At(yr))&&Wr(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return lr}function K7(r,i){var t=dm(r.condition);tS(r.condition,t,r.whenTrue);var o=hn(r.whenTrue,i),s=hn(r.whenFalse,i);return ba([o,s],2)}function Dk(r){var i=r.parent;return e.isParenthesizedExpression(i)&&Dk(i)||e.isElementAccessExpression(i)&&i.argumentExpression===r}function G7(r){for(var i=[r.head.text],t=[],o=0,s=r.templateSpans;o<s.length;o++){var u=s[o],T=hn(u.expression);ls(T,12288)&&Wr(u.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),i.push(u.literal.text),t.push(oo(T,wi)?T:ki)}return lm(r)||Dk(r)||dg(Su(r)||We,H7)?Xg(i,t):ki}function H7(r){return!!(r.flags&134217856||r.flags&58982400&&ls(Cc(r)||We,402653316))}function X7(r){return r.kind===285&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function bg(r,i,t,o){var s=X7(r),u=s.contextualType,T=s.inferenceContext;try{s.contextualType=i,s.inferenceContext=t;var q=hn(r,o|1|(t?2:0)),fe=ls(q,2944)&&p0(q,Kh(i,r))?Vc(q):q;return fe}finally{s.contextualType=u,s.inferenceContext=T}}function js(r,i){if(i&&i!==0)return hn(r,i);var t=Da(r);if(!t.resolvedType){var o=ln,s=ns;ln=Ba,ns=void 0,t.resolvedType=hn(r,i),ns=s,ln=o}return t.resolvedType}function bk(r){return r=e.skipParentheses(r,!0),r.kind===210||r.kind===228||e.isJSDocTypeAssertion(r)}function vy(r,i,t){var o=e.getEffectiveInitializer(r),s=kk(o)||(t?bg(o,t,void 0,i||0):js(o,i));return e.isParameter(r)&&r.name.kind===201&&Ln(s)&&!s.target.hasRestElement&&Q_(s)<r.name.elements.length?Q7(s,r.name):s}function Q7(r,i){for(var t=i.elements,o=Co(r).slice(),s=r.target.elementFlags.slice(),u=Q_(r);u<t.length;u++){var T=t[u];(u<t.length-1||!(T.kind===202&&T.dotDotDotToken))&&(o.push(!e.isOmittedExpression(T)&&tm(T)?Es(T,!1,!1):xe),s.push(2),!e.isOmittedExpression(T)&&!tm(T)&&Rp(T,xe))}return Ml(o,s,r.target.readonly)}function Kb(r,i){var t=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?i:Lp(i);if(e.isInJSFile(r)){if(oE(t))return Rp(r,xe),xe;if(ND(t))return Rp(r,Ki),Ki}return t}function p0(r,i){if(i){if(i.flags&3145728){var t=i.types;return e.some(t,function(s){return p0(r,s)})}if(i.flags&58982400){var o=Cc(i)||We;return ls(o,4)&&ls(r,128)||ls(o,8)&&ls(r,256)||ls(o,64)&&ls(r,2048)||ls(o,4096)&&ls(r,8192)||p0(r,o)}return!!(i.flags&406847616&&ls(r,128)||i.flags&256&&ls(r,256)||i.flags&2048&&ls(r,2048)||i.flags&512&&ls(r,512)||i.flags&8192&&ls(r,8192))}return!1}function lm(r){var i=r.parent;return e.isAssertionExpression(i)&&e.isConstTypeReference(i.type)||e.isJSDocTypeAssertion(i)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(i))||(e.isParenthesizedExpression(i)||e.isArrayLiteralExpression(i)||e.isSpreadElement(i))&&lm(i)||(e.isPropertyAssignment(i)||e.isShorthandPropertyAssignment(i)||e.isTemplateSpan(i))&&lm(i.parent)}function fm(r,i,t,o){var s=hn(r,i,o);return lm(r)?Vc(s):bk(r)?s:ID(s,Kh(arguments.length===2?Su(r):t,r))}function Sk(r,i){return r.name.kind===161&&Zf(r.name),fm(r.initializer,i)}function Tk(r,i){z6(r),r.name.kind===161&&Zf(r.name);var t=gk(r,i);return xk(r,t,i)}function xk(r,i,t){if(t&&t&10){var o=Ym(i,0,!0),s=Ym(i,1,!0),u=o||s;if(u&&u.typeParameters){var T=jp(r,2);if(T){var q=Ym(C_(T),o?0:1,!1);if(q&&!q.typeParameters){if(t&8)return Ek(r,t),bn;var fe=Xm(r),Ne=fe.signature&&So(fe.signature),$e=Ne&&RC(Ne);if($e&&!$e.typeParameters&&!e.every(fe.inferences,Ud)){var Ze=Z7(fe,u.typeParameters),lr=B1(u,Ze),yr=e.map(fe.inferences,function(Zr){return jD(Zr.typeParameter)});if(RD(lr,q,function(Zr,ui){Cf(yr,Zr,ui,0,!0)}),e.some(yr,Ud)&&(BD(lr,q,function(Zr,ui){Cf(yr,Zr,ui)}),!Y7(fe.inferences,yr)))return $7(fe.inferences,yr),fe.inferredTypeParameters=e.concatenate(fe.inferredTypeParameters,Ze),qg(lr)}return qg(BC(u,q,fe))}}}}return i}function Ek(r,i){if(i&2){var t=Xm(r);t.flags|=4}}function Ud(r){return!!(r.candidates||r.contraCandidates)}function Y7(r,i){for(var t=0;t<r.length;t++)if(Ud(r[t])&&Ud(i[t]))return!0;return!1}function $7(r,i){for(var t=0;t<r.length;t++)!Ud(r[t])&&Ud(i[t])&&(r[t]=i[t])}function Z7(r,i){for(var t=[],o,s,u=0,T=i;u<T.length;u++){var q=T[u],fe=q.symbol.escapedName;if(Gb(r.inferredTypeParameters,fe)||Gb(t,fe)){var Ne=eO(e.concatenate(r.inferredTypeParameters,t),fe),$e=bo(262144,Ne),Ze=vu($e);Ze.target=q,o=e.append(o,q),s=e.append(s,Ze),t.push(Ze)}else t.push(q)}if(s)for(var lr=Kc(o,s),yr=0,Zr=s;yr<Zr.length;yr++){var q=Zr[yr];q.mapper=lr}return t}function Gb(r,i){return e.some(r,function(t){return t.symbol.escapedName===i})}function eO(r,i){for(var t=i.length;t>1&&i.charCodeAt(t-1)>=48&&i.charCodeAt(t-1)<=57;)t--;for(var o=i.slice(0,t),s=1;;s++){var u=o+s;if(!Gb(r,u))return u}}function Ck(r){var i=jd(r);if(i&&!i.typeParameters)return So(i)}function rO(r){var i=hn(r.expression),t=Wm(i,r.expression),o=Ck(i);return o&&Ch(o,r,t!==i)}function ac(r){var i=kk(r);if(i)return i;if(r.flags&67108864&&ns){var t=ns[A(r)];if(t)return t}var o=is,s=hn(r);if(is!==o){var u=ns||(ns=[]);u[A(r)]=s,e.setNodeFlags(r,r.flags|67108864)}return s}function kk(r){var i=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(i)){var t=e.getJSDocTypeAssertionType(i);if(!e.isConstTypeReference(t))return Ua(t)}if(i=e.skipParentheses(r),e.isCallExpression(i)&&i.expression.kind!==106&&!e.isRequireCall(i,!0)&&!YC(i)){var t=e.isCallChain(i)?rO(i):Ck(nm(i.expression));if(t)return t}else{if(e.isAssertionExpression(i)&&!e.isConstTypeReference(i.type))return Ua(i.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return hn(r)}}function yy(r){var i=Da(r);if(i.contextFreeType)return i.contextFreeType;var t=r.contextualType;r.contextualType=xe;try{var o=i.contextFreeType=hn(r,4);return o}finally{r.contextualType=t}}function hn(r,i,t){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var o=er;er=r,gr=0;var s=aO(r,i,t),u=xk(r,s,i);return Wb(u)&&iO(r,u),er=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),u}function iO(r,i){var t=r.parent.kind===205&&r.parent.expression===r||r.parent.kind===206&&r.parent.expression===r||(r.kind===79||r.kind===160)&&k0(r)||r.parent.kind===180&&r.parent.exprName===r||r.parent.kind===274;if(t||Wr(r,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),ye.isolatedModules){e.Debug.assert(!!(i.symbol.flags&128));var o=i.symbol.valueDeclaration;o.flags&8388608&&Wr(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function tO(r,i){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var t=e.getJSDocTypeAssertionType(r);return tk(t,t,r.expression,i)}return hn(r.expression,i)}function aO(r,i,t){var o=r.kind;if(ce)switch(o){case 225:case 212:case 213:ce.throwIfCancellationRequested()}switch(o){case 79:return fw(r,i);case 80:return D5(r);case 108:return ay(r);case 106:return ab(r);case 104:return hi;case 14:case 10:return sg(Ou(r.text));case 8:return ES(r),sg(xf(+r.text));case 9:return H9(r),sg(cD({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return Rt;case 95:return ri;case 222:return G7(r);case 13:return _i;case 203:return oC(r,i,t);case 204:return r5(r,i);case 205:return bC(r,i);case 160:return SC(r,i);case 206:return L5(r,i);case 207:if(r.expression.kind===100)return f7(r);case 208:return l7(r,i);case 209:return _7(r);case 211:return tO(r,i);case 225:return FF(r);case 212:case 213:return gk(r,i);case 215:return I7(r);case 210:case 228:return p7(r);case 229:return g7(r);case 230:return m7(r);case 214:return P7(r);case 216:return w7(r);case 217:return O7(r);case 218:return F7(r);case 219:return M7(r);case 220:return Le(r,i);case 221:return K7(r,i);case 224:return Qw(r,i);case 226:return Ur;case 223:return V7(r);case 231:return Yw(r);case 287:return d5(r,i);case 277:return n5(r,i);case 278:return t5(r,i);case 281:return o5(r);case 285:return c5(r,i);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Oe}function Ak(r){r.expression&&Zs(r.expression,e.Diagnostics.Type_expected),$n(r.constraint),$n(r.default);var i=Tf(It(r));Cc(i),rh(i)||Wr(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,ht(i));var t=qc(i),o=H_(i);t&&o&&Gc(o,Wc(gn(t,Rd(i,o)),o),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),oe&&gm(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Pk(r){Af(r),D0(r);var i=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(i.kind===170&&e.nodeIsPresent(i.body)||Wr(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),i.kind===170&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Wr(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),r.questionToken&&e.isBindingPattern(r.name)&&i.body&&Wr(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(i.parameters.indexOf(r)!==0&&Wr(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(i.kind===170||i.kind===174||i.kind===179)&&Wr(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),i.kind===213&&Wr(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(i.kind===171||i.kind===172)&&Wr(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!oo(Lt(Jt(r.symbol)),ca)&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function nO(r){var i=oO(r);if(!i){Wr(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var t=Ku(i),o=wu(t);if(!!o){$n(r.type);var s=r.parameterName;if(o.kind===0||o.kind===2)dh(s);else if(o.parameterIndex>=0){if(U(t)&&o.parameterIndex===t.parameters.length-1)Wr(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(o.type){var u=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Gc(o.type,Jt(t.parameters[o.parameterIndex]),r.type,void 0,u)}}else if(s){for(var T=!1,q=0,fe=i.parameters;q<fe.length;q++){var Ne=fe[q].name;if(e.isBindingPattern(Ne)&&Nk(Ne,s,o.parameterName)){T=!0;break}}T||Wr(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function oO(r){switch(r.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var i=r.parent;if(r===i.type)return i}}function Nk(r,i,t){for(var o=0,s=r.elements;o<s.length;o++){var u=s[o];if(!e.isOmittedExpression(u)){var T=u.name;if(T.kind===79&&T.escapedText===t)return Wr(i,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((T.kind===201||T.kind===200)&&Nk(T,i,t))return!0}}}function iv(r){r.kind===175?D9(r):(r.kind===178||r.kind===255||r.kind===179||r.kind===173||r.kind===170||r.kind===174)&&O0(r);var i=e.getFunctionFlags(r);if(i&4||((i&3)===3&&Se<99&&dc(r,6144),(i&3)===2&&Se<4&&dc(r,64),(i&3)!==0&&Se<2&&dc(r,128)),Ey(e.getEffectiveTypeParameterDeclarations(r)),IF(r),e.forEach(r.parameters,Pk),r.type&&$n(r.type),oe){XO(r);var t=e.getEffectiveReturnTypeNode(r);if(Tr&&!t)switch(r.kind){case 174:Wr(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:Wr(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(t){var o=e.getFunctionFlags(r);if((o&5)===1){var s=Ua(t);if(s===Vt)Wr(t,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var u=Sg(0,s,(o&2)!==0)||xe,T=Sg(1,s,(o&2)!==0)||u,q=Sg(2,s,(o&2)!==0)||We,fe=lk(u,T,q,!!(o&2));Gc(fe,s,t)}}else(o&3)===2&&wO(r,t)}r.kind!==175&&r.kind!==315&&A_(r)}}function sO(r){for(var i=new e.Map,t=new e.Map,o=new e.Map,s=0,u=r.members;s<u.length;s++){var T=u[s];if(T.kind===170)for(var q=0,fe=T.parameters;q<fe.length;q++){var Ne=fe[q];e.isParameterPropertyDeclaration(Ne,T)&&!e.isBindingPattern(Ne.name)&&Ii(i,Ne.name,Ne.name.escapedText,3)}else{var $e=e.isStatic(T),Ze=T.name;if(!Ze)continue;var lr=e.isPrivateIdentifier(Ze),yr=lr&&$e?16:0,Zr=lr?o:$e?t:i,ui=Ze&&e.getPropertyNameForPropertyNameNode(Ze);if(ui)switch(T.kind){case 171:Ii(Zr,Ze,ui,1|yr);break;case 172:Ii(Zr,Ze,ui,2|yr);break;case 166:Ii(Zr,Ze,ui,3|yr);break;case 168:Ii(Zr,Ze,ui,8|yr);break}}}function Ii(Fi,Ri,Xi,ea){var lt=Fi.get(Xi);if(lt)if((lt&16)!==(ea&16))Wr(Ri,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(Ri));else{var Ia=!!(lt&8),fa=!!(ea&8);Ia||fa?Ia!==fa&&Wr(Ri,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Ri)):lt&ea&-17?Wr(Ri,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(Ri)):Fi.set(Xi,lt|ea)}else Fi.set(Xi,ea)}}function cO(r){for(var i=0,t=r.members;i<t.length;i++){var o=t[i],s=o.name,u=e.isStatic(o);if(u&&s){var T=e.getPropertyNameForPropertyNameNode(s);switch(T){case"name":case"length":case"caller":case"arguments":case"prototype":var q=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,fe=sl(It(r));Wr(s,q,T,fe);break}}}}function Ik(r){for(var i=new e.Map,t=0,o=r.members;t<o.length;t++){var s=o[t];if(s.kind===165){var u=void 0,T=s.name;switch(T.kind){case 10:case 8:u=T.text;break;case 79:u=e.idText(T);break;default:continue}i.get(u)?(Wr(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,u),Wr(s.name,e.Diagnostics.Duplicate_identifier_0,u)):i.set(u,!0)}}}function Hb(r){if(r.kind===257){var i=It(r);if(i.declarations&&i.declarations.length>0&&i.declarations[0]!==r)return}var t=RT(It(r));if(t!=null&&t.declarations){for(var o=new e.Map,s=function(fe){fe.parameters.length===1&&fe.parameters[0].type&&md(Ua(fe.parameters[0].type),function(Ne){var $e=o.get(Gu(Ne));$e?$e.declarations.push(fe):o.set(Gu(Ne),{type:Ne,declarations:[fe]})})},u=0,T=t.declarations;u<T.length;u++){var q=T[u];s(q)}o.forEach(function(fe){if(fe.declarations.length>1)for(var Ne=0,$e=fe.declarations;Ne<$e.length;Ne++){var Ze=$e[Ne];Wr(Ze,e.Diagnostics.Duplicate_index_signature_for_type_0,ht(fe.type))}})}}function wk(r){!Af(r)&&!W9(r)&&F0(r.name),D0(r),Xb(r),e.hasSyntacticModifier(r,128)&&r.kind===166&&r.initializer&&Wr(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function uO(r){return e.isPrivateIdentifier(r.name)&&Wr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),wk(r)}function lO(r){z6(r)||F0(r.name),Uk(r),e.hasSyntacticModifier(r,128)&&r.kind===168&&r.body&&Wr(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Wr(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xb(r)}function Xb(r){if(e.isPrivateIdentifier(r.name)&&Se<99){for(var i=e.getEnclosingBlockScopeContainer(r);i;i=e.getEnclosingBlockScopeContainer(i))Da(i).flags|=67108864;if(e.isClassExpression(r.parent)){var t=rb(r.parent);t&&(Da(r.name).flags|=524288,Da(t).flags|=65536)}}}function fO(r){Af(r),e.forEachChild(r,$n)}function _O(r){iv(r),U9(r)||z9(r),$n(r.body);var i=It(r),t=e.getDeclarationOfKind(i,r.kind);if(r===t&&v0(i),e.nodeIsMissing(r.body)||!oe)return;function o(lr){return e.isPrivateIdentifierClassElementDeclaration(lr)?!0:lr.kind===166&&!e.isStatic(lr)&&!!lr.initializer}var s=r.parent;if(e.getClassExtendsHeritageElement(s)){ib(r.parent,s);var u=XE(s),T=HE(r.body);if(T){u&&Wr(T,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var q=(e.getEmitScriptTarget(ye)!==99||!Fe)&&(e.some(r.parent.members,o)||e.some(r.parameters,function(lr){return e.hasSyntacticModifier(lr,16476)}));if(q)if(!pO(T,r.body))Wr(T,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{for(var fe=void 0,Ne=0,$e=r.body.statements;Ne<$e.length;Ne++){var Ze=$e[Ne];if(e.isExpressionStatement(Ze)&&e.isSuperCall(e.skipOuterExpressions(Ze.expression))){fe=Ze;break}if(!e.isPrologueDirective(Ze)&&Ok(Ze))break}fe===void 0&&Wr(r,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else u||Wr(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function pO(r,i){var t=e.walkUpParenthesizedExpressions(r.parent);return e.isExpressionStatement(t)&&t.parent===i}function Ok(r){return r.kind===106||r.kind===108?!0:e.isThisContainerOrFunctionBlock(r)?!1:!!e.forEachChild(r,Ok)}function Fk(r){if(oe){if(!O0(r)&&!N9(r)&&F0(r.name),hy(r),iv(r),r.kind===171&&!(r.flags&8388608)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Wr(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===161&&Zf(r.name),Pp(r)){var i=It(r),t=e.getDeclarationOfKind(i,171),o=e.getDeclarationOfKind(i,172);if(t&&o&&!(xg(t)&1)){Da(t).flags|=1;var s=e.getEffectiveModifierFlags(t),u=e.getEffectiveModifierFlags(o);(s&128)!==(u&128)&&(Wr(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Wr(o.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(u&24)||s&8&&!(u&8))&&(Wr(t.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Wr(o.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var T=d(t),q=d(o);T&&q&&Gc(T,q,t,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var fe=tr(It(r));r.kind===171&&Ub(r,fe)}$n(r.body),Xb(r)}function dO(r){hy(r)}function d0(r,i){return S_(e.map(r.typeArguments,Ua),i,Ol(i),e.isInJSFile(r))}function Mk(r,i){for(var t,o,s=!0,u=0;u<i.length;u++){var T=qc(i[u]);T&&(t||(t=d0(r,i),o=Kc(i,t)),s=s&&Gc(t[u],gn(T,o),r.typeArguments[u],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function Qb(r){var i=Uv(r);if(!ra(i)){var t=Da(r).resolvedSymbol;if(t)return t.flags&524288&&Ma(t).typeParameters||(e.getObjectFlags(i)&4?i.target.localTypeParameters:void 0)}}function Yb(r){Ay(r,r.typeArguments),r.kind===177&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&qp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,$n);var i=Uv(r);if(!ra(i)){if(r.typeArguments&&oe){var t=Qb(r);t&&Mk(r,t)}var o=Da(r).resolvedSymbol;o&&(e.some(o.declarations,function(s){return ky(s)&&!!(s.flags&134217728)})&&fu(_y(r),o.declarations,o.escapedName),i.flags&32&&o.flags&8&&Wr(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,ht(i)))}}function gO(r){var i=e.tryCast(r.parent,e.isTypeReferenceType);if(!!i){var t=Qb(i);if(!!t){var o=qc(t[i.typeArguments.indexOf(r)]);return o&&gn(o,Kc(t,d0(i,t)))}}}function mO(r){YT(r)}function vO(r){if(e.forEach(r.members,$n),oe){var i=Lx(r);T0(i,i.symbol),Hb(r),Ik(r)}}function yO(r){$n(r.elementType)}function hO(r){for(var i=r.elements,t=!1,o=!1,s=e.some(i,e.isNamedTupleMember),u=0,T=i;u<T.length;u++){var q=T[u];if(q.kind!==196&&s){vt(q,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var fe=V1(q);if(fe&8){var Ne=Ua(q.type);if(!ap(Ne)){Wr(q,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(_c(Ne)||Ln(Ne)&&Ne.target.combinedFlags&4)&&(o=!0)}else if(fe&4){if(o){vt(q,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}o=!0}else if(fe&2){if(o){vt(q,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(t){vt(q,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,$n),Ua(r)}function DO(r){e.forEach(r.types,$n),Ua(r)}function Lk(r,i){if(!(r.flags&8388608))return r;var t=r.objectType,o=r.indexType;if(oo(o,Ll(t,!1)))return i.kind===206&&e.isAssignmentTarget(i)&&e.getObjectFlags(t)&32&&ll(t)&1&&Wr(i,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ht(t)),r;var s=$(t);if(kc(s,Ui)&&ws(o,296))return r;if(Md(t)){var u=$1(o,i);if(u){var T=md(s,function(q){return tn(q,u)});if(T&&e.getDeclarationModifierFlagsFromSymbol(T)&24)return Wr(i,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(u)),Oe}}return Wr(i,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ht(o),ht(t)),Oe}function bO(r){$n(r.objectType),$n(r.indexType),Lk(Nx(r),r)}function SO(r){TO(r),$n(r.typeParameter),$n(r.nameType),$n(r.type),r.type||Rp(r,xe);var i=rD(r),t=h_(i);if(t)Gc(t,Pi,r.nameType);else{var o=Iu(i);Gc(o,Pi,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function TO(r){var i;if(!((i=r.members)===null||i===void 0)&&i.length)return vt(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function xO(r){dh(r)}function EO(r){w9(r),$n(r.type)}function CO(r){e.forEachChild(r,$n)}function kO(r){e.findAncestor(r,function(i){return i.parent&&i.parent.kind===188&&i.parent.extendsType===i})||vt(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),$n(r.typeParameter),A_(r)}function AO(r){for(var i=0,t=r.templateSpans;i<t.length;i++){var o=t[i];$n(o.type);var s=Ua(o.type);Gc(s,wi,o.type)}Ua(r)}function PO(r){$n(r.argument),Ua(r)}function NO(r){r.dotDotDotToken&&r.questionToken&&vt(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===184&&vt(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===185&&vt(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),$n(r.type),Ua(r)}function g0(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&8388608)}function m0(r,i){var t=e.getCombinedModifierFlags(r);return r.parent.kind!==257&&r.parent.kind!==256&&r.parent.kind!==225&&r.flags&8388608&&(!(t&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(t|=1),t|=2),t&i}function v0(r){if(!oe)return;function i(Qt,Qa){var En=Qa!==void 0&&Qa.parent===Qt[0].parent;return En?Qa:Qt[0]}function t(Qt,Qa,En,Gn,ia){var Xn=Gn^ia;if(Xn!==0){var ii=m0(i(Qt,Qa),En);e.forEach(Qt,function(Ar){var Pt=m0(Ar,En)^ii;Pt&1?Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):Pt&2?Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):Pt&24?Wr(e.getNameOfDeclaration(Ar)||Ar,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):Pt&128&&Wr(e.getNameOfDeclaration(Ar),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function o(Qt,Qa,En,Gn){if(En!==Gn){var ia=e.hasQuestionToken(i(Qt,Qa));e.forEach(Qt,function(Xn){var ii=e.hasQuestionToken(Xn)!==ia;ii&&Wr(e.getNameOfDeclaration(Xn),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,u=0,T=s,q=!1,fe=!0,Ne=!1,$e,Ze,lr,yr=r.declarations,Zr=(r.flags&16384)!==0;function ui(Qt){if(!(Qt.name&&e.nodeIsMissing(Qt.name))){var Qa=!1,En=e.forEachChild(Qt.parent,function(Pt){if(Qa)return Pt;Qa=Pt===Qt});if(En&&En.pos===Qt.end&&En.kind===Qt.kind){var Gn=En.name||En,ia=En.name;if(Qt.name&&ia&&(e.isPrivateIdentifier(Qt.name)&&e.isPrivateIdentifier(ia)&&Qt.name.escapedText===ia.escapedText||e.isComputedPropertyName(Qt.name)&&e.isComputedPropertyName(ia)||e.isPropertyNameLiteral(Qt.name)&&e.isPropertyNameLiteral(ia)&&e.getEscapedTextOfIdentifierOrLiteral(Qt.name)===e.getEscapedTextOfIdentifierOrLiteral(ia))){var Xn=(Qt.kind===168||Qt.kind===167)&&e.isStatic(Qt)!==e.isStatic(En);if(Xn){var ii=e.isStatic(Qt)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Wr(Gn,ii)}return}if(e.nodeIsPresent(En.body)){Wr(Gn,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Qt.name));return}}var Ar=Qt.name||Qt;Zr?Wr(Ar,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Qt,128)?Wr(Ar,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Wr(Ar,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Ii=!1,Fi=!1,Ri=!1,Xi=[];if(yr)for(var ea=0,lt=yr;ea<lt.length;ea++){var Ia=lt[ea],fa=Ia,Dn=fa.flags&8388608,Ra=fa.parent&&(fa.parent.kind===257||fa.parent.kind===181)||Dn;if(Ra&&(lr=void 0),(fa.kind===256||fa.kind===225)&&!Dn&&(Ri=!0),fa.kind===255||fa.kind===168||fa.kind===167||fa.kind===170){Xi.push(fa);var Bn=m0(fa,s);u|=Bn,T&=Bn,q=q||e.hasQuestionToken(fa),fe=fe&&e.hasQuestionToken(fa);var Jn=e.nodeIsPresent(fa.body);Jn&&$e?Zr?Fi=!0:Ii=!0:(lr==null?void 0:lr.parent)===fa.parent&&lr.end!==fa.pos&&ui(lr),Jn?$e||($e=fa):Ne=!0,lr=fa,Ra||(Ze=fa)}}if(Fi&&e.forEach(Xi,function(Qt){Wr(Qt,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Ii&&e.forEach(Xi,function(Qt){Wr(e.getNameOfDeclaration(Qt)||Qt,e.Diagnostics.Duplicate_function_implementation)}),Ri&&!Zr&&r.flags&16&&yr){var On=e.filter(yr,function(Qt){return Qt.kind===256}).map(function(Qt){return e.createDiagnosticForNode(Qt,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(yr,function(Qt){var Qa=Qt.kind===256?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Qt.kind===255?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Qa&&e.addRelatedInfo.apply(void 0,qe([Wr(e.getNameOfDeclaration(Qt)||Qt,Qa,e.symbolName(r))],On,!1))})}if(Ze&&!Ze.body&&!e.hasSyntacticModifier(Ze,128)&&!Ze.questionToken&&ui(Ze),Ne&&(yr&&(t(yr,$e,s,u,T),o(yr,$e,q,fe)),$e))for(var Ao=Ip(r),$i=Ku($e),Vi=0,Ot=Ao;Vi<Ot.length;Vi++){var Wa=Ot[Vi];if(!L8($i,Wa)){e.addRelatedInfo(Wr(Wa.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode($e,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function tv(r){if(!oe)return;var i=r.localSymbol;if(!i&&(i=It(r),!i.exportSymbol)||e.getDeclarationOfKind(i,r.kind)!==r)return;for(var t=0,o=0,s=0,u=0,T=i.declarations;u<T.length;u++){var q=T[u],fe=Ii(q),Ne=m0(q,513);Ne&1?Ne&512?s|=fe:t|=fe:o|=fe}var $e=t|o,Ze=t&o,lr=s&$e;if(Ze||lr)for(var yr=0,Zr=i.declarations;yr<Zr.length;yr++){var q=Zr[yr],fe=Ii(q),ui=e.getNameOfDeclaration(q);fe&lr?Wr(ui,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(ui)):fe&Ze&&Wr(ui,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(ui))}function Ii(Fi){var Ri=Fi;switch(Ri.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(Ri)||e.getModuleInstanceState(Ri)!==0?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var Xi=Ri,ea=e.isExportAssignment(Xi)?Xi.expression:Xi.right;if(!e.isEntityNameExpression(ea))return 1;Ri=ea;case 264:case 267:case 266:var lt=0,Ia=zo(It(Ri));return e.forEach(Ia.declarations,function(fa){lt|=Ii(fa)}),lt;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(Ri)}}}function av(r,i,t,o){var s=nv(r,i);return s&&zd(s,i,t,o)}function nv(r,i){if(!At(r)){var t=r;if(t.promisedTypeOfPromise)return t.promisedTypeOfPromise;if(qu(r,zv(!1)))return t.promisedTypeOfPromise=Co(r)[0];if(!Dg(r,262140)){var o=ai(r,"then");if(!At(o)){var s=o?za(o,0):e.emptyArray;if(s.length===0){i&&Wr(i,e.Diagnostics.A_promise_must_have_a_then_method);return}var u=$s(ba(e.map(s,Bb)),2097152);if(!At(u)){var T=za(u,0);if(T.length===0){i&&Wr(i,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return t.promisedTypeOfPromise=ba(e.map(T,Bb),2)}}}}}function ov(r,i,t,o,s){var u=i?zd(r,t,o,s):k_(r,t,o,s);return u||Oe}function Rk(r){if(Dg(r,262140))return!1;var i=ai(r,"then");return!!i&&za($s(i,2097152),0).length>0}function $b(r){var i;if(r.flags&16777216){var t=q1(!1);return!!t&&r.aliasSymbol===t&&((i=r.aliasTypeArguments)===null||i===void 0?void 0:i.length)===1}return!1}function sv(r){return r.flags&1048576?Cs(r,sv):$b(r)?r.aliasTypeArguments[0]:r}function IO(r){if(At(r)||$b(r))return r;if(Md(r)){var i=Cc(r);if(!i||i.flags&3||Ef(i)||Rk(i)){var t=q1(!0);if(t)return Kg(t,[sv(r)])}}return e.Debug.assert(nv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function zd(r,i,t,o){var s=k_(r,i,t,o);return s&&IO(s)}function k_(r,i,t,o){if(At(r)||$b(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){var u=i?function(fe){return k_(fe,i,t,o)}:k_;return s.awaitedTypeOfType=Cs(r,u)}var T=nv(r);if(T){if(r.id===T.id||Za.lastIndexOf(T.id)>=0){i&&Wr(i,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Za.push(r.id);var q=k_(T,i,t,o);return Za.pop(),q?s.awaitedTypeOfType=q:void 0}if(Rk(r)){i&&(e.Debug.assertIsDefined(t),Wr(i,t,o));return}return s.awaitedTypeOfType=r}function wO(r,i){var t=Ua(i);if(Se>=2){if(ra(t))return;var o=zv(!0);if(o!==qr&&!qu(t,o)){Wr(i,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ht(k_(t)||Vt));return}}else{if(FO(i),ra(t))return;var s=e.getEntityNameFromTypeNode(i);if(s===void 0){Wr(i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,ht(t));return}var u=Ps(s,111551,!0),T=u?Jt(u):Oe;if(ra(T)){s.kind===79&&s.escapedText==="Promise"&&bf(t)===zv(!1)?Wr(i,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Wr(i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var q=r3(!0);if(q===tt){Wr(i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!Gc(T,q,i,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var fe=s&&e.getFirstIdentifier(s),Ne=Pc(r.locals,fe.escapedText,111551);if(Ne){Wr(Ne.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(fe),e.entityNameToString(s));return}}ov(t,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function OO(r){var i=sm(r);u0(i,r);var t=So(i);if(!(t.flags&1)){var o,s;switch(r.parent.kind){case 256:o=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var u=It(r.parent),T=Jt(u);s=ba([T,Vt]);break;case 166:case 163:o=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,s=Vt;break;case 168:case 171:case 172:o=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1;var q=Wp(r.parent),fe=cx(q);s=ba([fe,Vt]);break;default:return e.Debug.fail()}Gc(t,s,r,o)}}function FO(r){Bk(r&&e.getEntityNameFromTypeNode(r))}function Bk(r){if(!!r){var i=e.getFirstIdentifier(r),t=(r.kind===79?788968:1920)|2097152,o=os(i,i.escapedText,t,void 0,void 0,!0);o&&o.flags&2097152&&Wf(o)&&!fv(zo(o))&&!gu(o)&&jf(o)}}function _m(r){var i=Zb(r);i&&e.isEntityName(i)&&Bk(i)}function Zb(r){if(r)switch(r.kind){case 187:case 186:return Jk(r.types);case 188:return Jk([r.trueType,r.falseType]);case 190:case 196:return Zb(r.type);case 177:return r.typeName}}function Jk(r){for(var i,t=0,o=r;t<o.length;t++){for(var s=o[t];s.kind===190||s.kind===196;)s=s.type;if(s.kind!==143&&!(!ur&&(s.kind===195&&s.literal.kind===104||s.kind===152))){var u=Zb(s);if(!u)return;if(i){if(!e.isIdentifier(i)||!e.isIdentifier(u)||i.escapedText!==u.escapedText)return}else i=u}}return i}function y0(r){var i=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(i):i}function hy(r){if(!!r.decorators&&!!e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){ye.experimentalDecorators||Wr(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var i=r.decorators[0];if(dc(i,8),r.kind===163&&dc(i,32),ye.emitDecoratorMetadata)switch(dc(i,16),r.kind){case 256:var t=e.getFirstConstructorWithBody(r);if(t)for(var o=0,s=t.parameters;o<s.length;o++){var u=s[o];_m(y0(u))}break;case 171:case 172:var T=r.kind===171?172:171,q=e.getDeclarationOfKind(It(r),T);_m(Wu(r)||q&&Wu(q));break;case 168:for(var fe=0,Ne=r.parameters;fe<Ne.length;fe++){var u=Ne[fe];_m(y0(u))}_m(e.getEffectiveReturnTypeNode(r));break;case 166:_m(e.getEffectiveTypeAnnotationNode(r));break;case 163:_m(y0(r));for(var $e=r.parent,Ze=0,lr=$e.parameters;Ze<lr.length;Ze++){var u=lr[Ze];_m(y0(u))}break}e.forEach(r.decorators,OO)}}function MO(r){oe&&(Uk(r),SS(r),pm(r,r.name))}function LO(r){r.typeExpression||Wr(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&gm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),$n(r.typeExpression),Ey(e.getEffectiveTypeParameterDeclarations(r))}function RO(r){$n(r.constraint);for(var i=0,t=r.typeParameters;i<t.length;i++){var o=t[i];$n(o)}}function BO(r){$n(r.typeExpression)}function JO(r){$n(r.typeExpression)}function jO(r){$n(r.typeExpression)}function UO(r){oe&&!r.type&&!e.isJSDocConstructSignature(r)&&Rp(r,xe),iv(r)}function zO(r){var i=e.getEffectiveJSDocHost(r);(!i||!e.isClassDeclaration(i)&&!e.isClassExpression(i))&&Wr(i,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function WO(r){var i=e.getEffectiveJSDocHost(r);if(!i||!e.isClassDeclaration(i)&&!e.isClassExpression(i)){Wr(i,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var t=e.getJSDocTags(i).filter(e.isJSDocAugmentsTag);e.Debug.assert(t.length>0),t.length>1&&Wr(t[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=jk(r.class.expression),s=e.getClassExtendsHeritageElement(i);if(s){var u=jk(s.expression);u&&o.escapedText!==u.escapedText&&Wr(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(o),e.idText(u))}}function qO(r){var i=e.getJSDocHost(r);i&&e.isPrivateIdentifierClassElementDeclaration(i)&&Wr(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function jk(r){switch(r.kind){case 79:return r;case 205:return r.name;default:return}}function Uk(r){var i;hy(r),iv(r);var t=e.getFunctionFlags(r);if(r.name&&r.name.kind===161&&Zf(r.name),Pp(r)){var o=It(r),s=r.localSymbol||o,u=(i=s.declarations)===null||i===void 0?void 0:i.find(function(fe){return fe.kind===r.kind&&!(fe.flags&131072)});r===u&&v0(s),o.parent&&v0(o)}var T=r.kind===167?void 0:r.body;if($n(T),Ub(r,ag(r)),oe&&!e.getEffectiveReturnTypeNode(r)&&(e.nodeIsMissing(T)&&!g0(r)&&Rp(r,xe),t&1&&e.nodeIsPresent(T)&&So(Ku(r))),e.isInJSFile(r)){var q=e.getJSDocTypeTag(r);q&&q.typeExpression&&!fb(Ua(q.typeExpression),r)&&Wr(q.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function A_(r){if(oe){var i=e.getSourceFileOfNode(r),t=Zt.get(i.path);t||(t=[],Zt.set(i.path,t)),t.push(r)}}function zk(r,i){for(var t=0,o=r;t<o.length;t++){var s=o[t];switch(s.kind){case 256:case 225:VO(s,i),eS(s,i);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:Vk(s,i);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:s.body&&Vk(s,i),eS(s,i);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:eS(s,i);break;case 189:KO(s,i);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function Wk(r,i,t){var o=e.getNameOfDeclaration(r)||r,s=ky(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;t(r,0,e.createDiagnosticForNode(o,s,i))}function Dy(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function VO(r,i){for(var t=0,o=r.members;t<o.length;t++){var s=o[t];switch(s.kind){case 168:case 166:case 171:case 172:if(s.kind===172&&s.symbol.flags&32768)break;var u=It(s);!u.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&i(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ga(u)));break;case 170:for(var T=0,q=s.parameters;T<q.length;T++){var fe=q[T];!fe.symbol.isReferenced&&e.hasSyntacticModifier(fe,8)&&i(fe,0,e.createDiagnosticForNode(fe.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(fe.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function KO(r,i){var t=r.typeParameter;rS(t)&&i(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(t.name)))}function eS(r,i){var t=It(r).declarations;if(!(!t||e.last(t)!==r))for(var o=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,u=0,T=o;u<T.length;u++){var q=T[u];if(!!rS(q)){var fe=e.idText(q.name),Ne=q.parent;if(Ne.kind!==189&&Ne.typeParameters.every(rS)){if(e.tryAddToSet(s,Ne)){var $e=e.getSourceFileOfNode(Ne),Ze=e.isJSDocTemplateTag(Ne)?e.rangeOfNode(Ne):e.rangeOfTypeParameters($e,Ne.typeParameters),lr=Ne.typeParameters.length===1,yr=lr?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Zr=lr?fe:void 0;i(q,1,e.createFileDiagnostic($e,Ze.pos,Ze.end-Ze.pos,yr,Zr))}}else i(q,1,e.createDiagnosticForNode(q,e.Diagnostics._0_is_declared_but_its_value_is_never_read,fe))}}}function rS(r){return!(Wn(r.symbol).isReferenced&262144)&&!Dy(r.name)}function by(r,i,t,o){var s=String(o(i)),u=r.get(s);u?u[1].push(t):r.set(s,[i,[t]])}function qk(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function GO(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&Dy(r.name)):Dy(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||Kk(r))&&Dy(r.name)}function Vk(r,i){var t=new e.Map,o=new e.Map,s=new e.Map;r.locals.forEach(function(u){if(!(u.flags&262144?!(u.flags&3&&!(u.isReferenced&3)):u.isReferenced||u.exportSymbol)&&u.declarations)for(var T=0,q=u.declarations;T<q.length;T++){var fe=q[T];if(!GO(fe))if(Kk(fe))by(t,HO(fe),fe,A);else if(e.isBindingElement(fe)&&e.isObjectBindingPattern(fe.parent)){var Ne=e.last(fe.parent.elements);(fe===Ne||!e.last(fe.parent.elements).dotDotDotToken)&&by(o,fe.parent,fe,A)}else if(e.isVariableDeclaration(fe))by(s,fe.parent,fe,A);else{var $e=u.valueDeclaration&&qk(u.valueDeclaration),Ze=u.valueDeclaration&&e.getNameOfDeclaration(u.valueDeclaration);$e&&Ze?!e.isParameterPropertyDeclaration($e,$e.parent)&&!e.parameterIsThisKeyword($e)&&!Dy(Ze)&&(e.isBindingElement(fe)&&e.isArrayBindingPattern(fe.parent)?by(o,fe.parent,fe,A):i($e,1,e.createDiagnosticForNode(Ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(u)))):Wk(fe,e.symbolName(u),i)}}}),t.forEach(function(u){var T=u[0],q=u[1],fe=T.parent,Ne=(T.name?1:0)+(T.namedBindings?T.namedBindings.kind===267?1:T.namedBindings.elements.length:0);if(Ne===q.length)i(fe,0,q.length===1?e.createDiagnosticForNode(fe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(q).name)):e.createDiagnosticForNode(fe,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var $e=0,Ze=q;$e<Ze.length;$e++){var lr=Ze[$e];Wk(lr,e.idText(lr.name),i)}}),o.forEach(function(u){var T=u[0],q=u[1],fe=qk(T.parent)?1:0;if(T.elements.length===q.length)q.length===1&&T.parent.kind===253&&T.parent.parent.kind===254?by(s,T.parent.parent,T.parent,A):i(T,fe,q.length===1?e.createDiagnosticForNode(T,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(e.first(q).name)):e.createDiagnosticForNode(T,e.Diagnostics.All_destructured_elements_are_unused));else for(var Ne=0,$e=q;Ne<$e.length;Ne++){var Ze=$e[Ne];i(Ze,fe,e.createDiagnosticForNode(Ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(Ze.name)))}}),s.forEach(function(u){var T=u[0],q=u[1];if(T.declarations.length===q.length)i(T,0,q.length===1?e.createDiagnosticForNode(e.first(q).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy(e.first(q).name)):e.createDiagnosticForNode(T.parent.kind===236?T.parent:T,e.Diagnostics.All_variables_are_unused));else for(var fe=0,Ne=q;fe<Ne.length;fe++){var $e=Ne[fe];i($e,0,e.createDiagnosticForNode($e,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Sy($e.name)))}})}function Sy(r){switch(r.kind){case 79:return e.idText(r);case 201:case 200:return Sy(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function Kk(r){return r.kind===266||r.kind===269||r.kind===267}function HO(r){return r.kind===266?r:r.kind===267?r.parent:r.parent.parent}function h0(r){if(r.kind===234&&Pf(r),e.isFunctionOrModuleBlock(r)){var i=jr;e.forEach(r.statements,$n),jr=i}else e.forEach(r.statements,$n);r.locals&&A_(r)}function XO(r){Se>=2||!e.hasRestParameter(r)||r.flags&8388608||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(i){i.name&&!e.isBindingPattern(i.name)&&i.name.escapedText===ci.escapedName&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function cv(r,i,t){if((i==null?void 0:i.escapedText)!==t||r.kind===166||r.kind===165||r.kind===168||r.kind===167||r.kind===171||r.kind===172||r.kind===294||r.flags&8388608||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var o=e.getRootDeclaration(r);return!(e.isParameter(o)&&e.nodeIsMissing(o.parent.body))}function QO(r){e.findAncestor(r,function(i){if(xg(i)&4){var t=r.kind!==79;return t?Wr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Wr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function YO(r){e.findAncestor(r,function(i){if(xg(i)&8){var t=r.kind!==79;return t?Wr(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Wr(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function $O(r,i){if(!(ge>=e.ModuleKind.ES2015&&!(ge>=e.ModuleKind.Node12&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!i||!cv(r,i,"require")&&!cv(r,i,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var t=b(r);t.kind===303&&e.isExternalOrCommonJsModule(t)&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(i),e.declarationNameToString(i))}}function ZO(r,i){if(!(!i||Se>=4||!cv(r,i,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var t=b(r);t.kind===303&&e.isExternalOrCommonJsModule(t)&&t.flags&2048&&Jo("noEmit",i,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(i),e.declarationNameToString(i))}}function eF(r,i){Se<=8&&(cv(r,i,"WeakMap")||cv(r,i,"WeakSet"))&&jt.push(r)}function rF(r){var i=e.getEnclosingBlockScopeContainer(r);xg(i)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Jo("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function iF(r,i){i&&Se>=2&&Se<=8&&cv(r,i,"Reflect")&&na.push(r)}function tF(r){var i=!1;if(e.isClassExpression(r))for(var t=0,o=r.members;t<o.length;t++){var s=o[t];if(xg(s)&134217728){i=!0;break}}else if(e.isFunctionExpression(r))xg(r)&134217728&&(i=!0);else{var u=e.getEnclosingBlockScopeContainer(r);u&&xg(u)&134217728&&(i=!0)}i&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),Jo("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function pm(r,i){!i||($O(r,i),ZO(r,i),eF(r,i),iF(r,i),e.isClassLike(r)?(gm(i,e.Diagnostics.Class_name_cannot_be_0),r.flags&8388608||NF(i)):e.isEnumDeclaration(r)&&gm(i,e.Diagnostics.Enum_name_cannot_be_0))}function aF(r){if(!((e.getCombinedNodeFlags(r)&3)!==0||e.isParameterDeclaration(r))&&!(r.kind===253&&!r.initializer)){var i=It(r);if(i.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var t=os(r,r.name.escapedText,3,void 0,void 0,!1);if(t&&t!==i&&t.flags&2&&Yh(t)&3){var o=e.getAncestor(t.valueDeclaration,254),s=o.parent.kind===236&&o.parent.parent?o.parent.parent:void 0,u=s&&(s.kind===234&&e.isFunctionLike(s.parent)||s.kind===261||s.kind===260||s.kind===303);if(!u){var T=Ga(t);Wr(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}}function uv(r){return r===ze?xe:r===Nt?Ki:r}function D0(r){var i;if(hy(r),e.isBindingElement(r)||$n(r.type),!!r.name){if(r.name.kind===161&&(Zf(r.name),r.initializer&&js(r.initializer)),e.isBindingElement(r)){e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&Se<5&&dc(r,4),r.propertyName&&r.propertyName.kind===161&&Zf(r.propertyName);var t=r.parent.parent,o=r.dotDotDotToken?32:0,s=La(t,o),u=r.propertyName||r.name;if(s&&!e.isBindingPattern(u)){var T=$_(u);if(ul(T)){var q=Nl(T),fe=tn(s,q);fe&&(ly(fe,void 0,!1),bb(r,!!t.initializer&&t.initializer.kind===106,!1,s,fe))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===201&&Se<2&&ye.downlevelIteration&&dc(r,512),e.forEach(r.name.elements,$n)),r.initializer&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Wr(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var Ne=r.initializer&&r.parent.parent.kind!==242,$e=r.name.elements.length===0;if(Ne||$e){var Ze=Is(r);if(Ne){var lr=js(r.initializer);ur&&$e?DC(lr,r):tp(lr,Is(r),r,r.initializer)}$e&&(e.isArrayBindingPattern(r.name)?P_(65,Ze,Nr,r):ur&&DC(Ze,r))}return}var yr=It(r);if(yr.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)){x0(r);return}var Zr=uv(Jt(yr));if(r===yr.valueDeclaration){var ui=e.getEffectiveInitializer(r);if(ui){var Ii=e.isInJSFile(r)&&e.isObjectLiteralExpression(ui)&&(ui.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((i=yr.exports)===null||i===void 0)&&i.size);!Ii&&r.parent.parent.kind!==242&&tp(js(ui),Zr,r,ui,void 0)}yr.declarations&&yr.declarations.length>1&&e.some(yr.declarations,function(Ri){return Ri!==r&&e.isVariableLike(Ri)&&!Hk(Ri,r)})&&Wr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Fi=uv(Is(r));!ra(Zr)&&!ra(Fi)&&!Qf(Zr,Fi)&&!(yr.flags&67108864)&&Gk(yr.valueDeclaration,Zr,r,Fi),r.initializer&&tp(js(r.initializer),Fi,r,r.initializer,void 0),yr.valueDeclaration&&!Hk(r,yr.valueDeclaration)&&Wr(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==166&&r.kind!==165&&(tv(r),(r.kind===253||r.kind===202)&&aF(r),pm(r,r.name))}}function Gk(r,i,t,o){var s=e.getNameOfDeclaration(t),u=t.kind===166||t.kind===165?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=e.declarationNameToString(s),q=Wr(s,u,T,ht(i),ht(o));r&&e.addRelatedInfo(q,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,T))}function Hk(r,i){if(r.kind===163&&i.kind===253||r.kind===253&&i.kind===163)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(i))return!1;var t=504;return e.getSelectedEffectiveModifierFlags(r,t)===e.getSelectedEffectiveModifierFlags(i,t)}function iS(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),R9(r),D0(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function nF(r){return F9(r),D0(r)}function oF(r){!Af(r)&&!xS(r.declarationList)&&B9(r),e.forEach(r.declarationList.declarations,$n)}function sF(r){Pf(r),hn(r.expression)}function cF(r){Pf(r);var i=dm(r.expression);tS(r.expression,i,r.thenStatement),$n(r.thenStatement),r.thenStatement.kind===235&&Wr(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),$n(r.elseStatement)}function tS(r,i,t){if(!!ur&&!Fu(i)){var o=e.isBinaryExpression(r)?r.right:r;if(!(e.isPropertyAccessExpression(o)&&bk(o.expression))){var s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,u=za(i,0),T=!!av(i);if(!(u.length===0&&!T)){var q=s&&Xu(s);if(!(!q&&!T)){var fe=q&&e.isBinaryExpression(r.parent)&&lF(r.parent,q)||q&&t&&uF(r,t,s,q);fe||(T?Tu(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Yl(i)):Wr(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function uF(r,i,t,o){return!!e.forEachChild(i,function s(u){if(e.isIdentifier(u)){var T=Xu(u);if(T&&T===o){if(e.isIdentifier(r))return!0;for(var q=t.parent,fe=u.parent;q&&fe;){if(e.isIdentifier(q)&&e.isIdentifier(fe)||q.kind===108&&fe.kind===108)return Xu(q)===Xu(fe);if(e.isPropertyAccessExpression(q)&&e.isPropertyAccessExpression(fe)){if(Xu(q.name)!==Xu(fe.name))return!1;fe=fe.expression,q=q.expression}else if(e.isCallExpression(q)&&e.isCallExpression(fe))fe=fe.expression,q=q.expression;else return!1}}}return e.forEachChild(u,s)})}function lF(r,i){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var t=e.forEachChild(r.right,function o(s){if(e.isIdentifier(s)){var u=Xu(s);if(u&&u===i)return!0}return e.forEachChild(s,o)});if(t)return!0;r=r.parent}return!1}function fF(r){Pf(r),$n(r.statement),dm(r.expression)}function _F(r){Pf(r),dm(r.expression),$n(r.statement)}function Xk(r,i){return r.flags&16384&&Wr(i,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function dm(r,i){return Xk(hn(r,i),r)}function pF(r){Pf(r)||r.initializer&&r.initializer.kind===254&&xS(r.initializer),r.initializer&&(r.initializer.kind===254?e.forEach(r.initializer.declarations,iS):hn(r.initializer)),r.condition&&dm(r.condition),r.incrementor&&hn(r.incrementor),$n(r.statement),r.locals&&A_(r)}function dF(r){U6(r);var i=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(i&&e.isClassStaticBlockDeclaration(i))vt(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var t=e.getFunctionFlags(i);(t&6)===2&&Se<99&&dc(r,16384)}else ye.downlevelIteration&&Se<2&&dc(r,256);if(r.initializer.kind===254)Qk(r);else{var o=r.initializer,s=Ty(r);if(o.kind===203||o.kind===204)Dd(o,s||Oe);else{var u=hn(o);rv(o,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&tp(s,u,o,r.expression)}}$n(r.statement),r.locals&&A_(r)}function gF(r){U6(r);var i=Sb(hn(r.expression));if(r.initializer.kind===254){var t=r.initializer.declarations[0];t&&e.isBindingPattern(t.name)&&Wr(t.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Qk(r)}else{var o=r.initializer,s=hn(o);o.kind===203||o.kind===204?Wr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):oo(J3(i),s)?rv(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Wr(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(i===St||!ws(i,126091264))&&Wr(r.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,ht(i)),$n(r.statement),r.locals&&A_(r)}function Qk(r){var i=r.initializer;if(i.declarations.length>=1){var t=i.declarations[0];iS(t)}}function Ty(r){var i=r.awaitModifier?15:13;return P_(i,nm(r.expression),Nr,r.expression)}function P_(r,i,t,o){return At(i)?i:aS(r,i,t,o,!0)||xe}function aS(r,i,t,o,s){var u=(r&2)!==0;if(i===St){cS(o,i,u);return}var T=Se>=2,q=!T&&ye.downlevelIteration,fe=ye.noUncheckedIndexedAccess&&!!(r&128);if(T||q||u){var Ne=xy(i,r,T?o:void 0);if(s&&Ne){var $e=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;$e&&Gc(t,Ne.nextType,o,$e)}if(Ne||T)return fe?Gm(Ne&&Ne.yieldType):Ne&&Ne.yieldType}var Ze=i,lr=!1,yr=!1;if(r&4){if(Ze.flags&1048576){var Zr=i.types,ui=e.filter(Zr,function(Ia){return!(Ia.flags&402653316)});ui!==Zr&&(Ze=ba(ui,2))}else Ze.flags&402653316&&(Ze=St);if(yr=Ze!==i,yr&&(Se<1&&o&&(Wr(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),lr=!0),Ze.flags&131072))return fe?Gm(ki):ki}if(!ap(Ze)){if(o&&!lr){var Ii=!!(r&4)&&!yr,Fi=lt(Ii,q),Ri=Fi[0],Xi=Fi[1];Tu(o,Xi&&!!av(Ze),Ri,ht(Ze))}return yr?fe?Gm(ki):ki:void 0}var ea=fl(Ze,Ui);if(yr&&ea)return ea.flags&402653316&&!ye.noUncheckedIndexedAccess?ki:ba(fe?[ea,ki,Nr]:[ea,ki],2);return r&128?Gm(ea):ea;function lt(Ia,fa){var Dn;if(fa)return Ia?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var Ra=Yk(r,0,i,void 0);return Ra?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:mF((Dn=i.symbol)===null||Dn===void 0?void 0:Dn.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ia?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function mF(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Yk(r,i,t,o){if(!At(t)){var s=xy(t,r,o);return s&&s[j(i)]}}function e_(r,i,t){if(r===void 0&&(r=St),i===void 0&&(i=St),t===void 0&&(t=We),r.flags&67359327&&i.flags&180227&&t.flags&180227){var o=bu([r,i,t]),s=Do.get(o);return s||(s={yieldType:r,returnType:i,nextType:t},Do.set(o,s)),s}return{yieldType:r,returnType:i,nextType:t}}function $k(r){for(var i,t,o,s=0,u=r;s<u.length;s++){var T=u[s];if(!(T===void 0||T===io)){if(T===pn)return pn;i=e.append(i,T.yieldType),t=e.append(t,T.returnType),o=e.append(o,T.nextType)}}return i||t||o?e_(i&&ba(i),t&&ba(t),o&&To(o)):io}function b0(r,i){return r[i]}function rf(r,i,t){return r[i]=t}function xy(r,i,t){if(At(r))return pn;if(!(r.flags&1048576)){var o=Zk(r,i,t);if(o===io){t&&cS(t,r,!!(i&2));return}return o}var s=i&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",u=b0(r,s);if(u)return u===io?void 0:u;for(var T,q=0,fe=r.types;q<fe.length;q++){var Ne=fe[q],$e=Zk(Ne,i,t);if($e===io){t&&cS(t,r,!!(i&2)),rf(r,s,io);return}else T=e.append(T,$e)}var Ze=T?$k(T):io;return rf(r,s,Ze),Ze===io?void 0:Ze}function nS(r,i){if(r===io)return io;if(r===pn)return pn;var t=r.yieldType,o=r.returnType,s=r.nextType;return i&&q1(!0),e_(zd(t,i)||xe,zd(o,i)||xe,s)}function Zk(r,i,t){if(At(r))return pn;if(i&2){var o=oS(r,xo)||r6(r,xo);if(o)return i&8?nS(o,t):o}if(i&1){var o=oS(r,ds)||r6(r,ds);if(o)if(i&2){if(o!==io)return rf(r,"iterationTypesOfAsyncIterable",nS(o,t))}else return o}if(i&2){var o=sS(r,xo,t);if(o!==io)return o}if(i&1){var o=sS(r,ds,t);if(o!==io)return i&2?rf(r,"iterationTypesOfAsyncIterable",o?nS(o,t):io):o}return io}function oS(r,i){return b0(r,i.iterableCacheKey)}function e6(r,i){var t=oS(r,i)||sS(r,i,void 0);return t===io?wo:t}function r6(r,i){var t;if(qu(r,t=i.getGlobalIterableType(!1))||qu(r,t=i.getGlobalIterableIteratorType(!1))){var o=Co(r)[0],s=e6(t,i),u=s.returnType,T=s.nextType;return rf(r,i.iterableCacheKey,e_(i.resolveIterationType(o,void 0)||o,i.resolveIterationType(u,void 0)||u,T))}if(qu(r,i.getGlobalGeneratorType(!1))){var q=Co(r),o=q[0],u=q[1],T=q[2];return rf(r,i.iterableCacheKey,e_(i.resolveIterationType(o,void 0)||o,i.resolveIterationType(u,void 0)||u,T))}}function vF(r){var i=tx(!1),t=i&&ai(Jt(i),e.escapeLeadingUnderscores(r));return t&&ul(t)?Nl(t):"__@".concat(r)}function sS(r,i,t){var o,s=tn(r,vF(i.iteratorSymbolName)),u=s&&!(s.flags&16777216)?Jt(s):void 0;if(At(u))return rf(r,i.iterableCacheKey,pn);var T=u?za(u,0):void 0;if(!e.some(T))return rf(r,i.iterableCacheKey,io);var q=To(e.map(T,So)),fe=(o=i6(q,i,t))!==null&&o!==void 0?o:io;return rf(r,i.iterableCacheKey,fe)}function cS(r,i,t){var o=t?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Tu(r,!!av(i),o,ht(i))}function i6(r,i,t){if(At(r))return pn;var o=t6(r,i)||yF(r,i)||n6(r,i,t);return o===io?void 0:o}function t6(r,i){return b0(r,i.iteratorCacheKey)}function yF(r,i){var t=i.getGlobalIterableIteratorType(!1);if(qu(r,t)){var o=Co(r)[0],s=t6(t,i)||n6(t,i,void 0),u=s===io?wo:s,T=u.returnType,q=u.nextType;return rf(r,i.iteratorCacheKey,e_(o,T,q))}if(qu(r,i.getGlobalIteratorType(!1))||qu(r,i.getGlobalGeneratorType(!1))){var fe=Co(r),o=fe[0],T=fe[1],q=fe[2];return rf(r,i.iteratorCacheKey,e_(o,T,q))}}function a6(r,i){var t=ai(r,"done")||ri;return oo(i===0?ri:Rt,t)}function hF(r){return a6(r,0)}function DF(r){return a6(r,1)}function bF(r){if(At(r))return pn;var i=b0(r,"iterationTypesOfIteratorResult");if(i)return i;if(qu(r,u3(!1))){var t=Co(r)[0];return rf(r,"iterationTypesOfIteratorResult",e_(t,void 0,void 0))}if(qu(r,l3(!1))){var o=Co(r)[0];return rf(r,"iterationTypesOfIteratorResult",e_(void 0,o,void 0))}var s=pc(r,hF),u=s!==St?ai(s,"value"):void 0,T=pc(r,DF),q=T!==St?ai(T,"value"):void 0;return!u&&!q?rf(r,"iterationTypesOfIteratorResult",io):rf(r,"iterationTypesOfIteratorResult",e_(u,q||Vt,void 0))}function uS(r,i,t,o){var s,u,T,q,fe=tn(r,t);if(!(!fe&&t!=="next")){var Ne=fe&&!(t==="next"&&fe.flags&16777216)?t==="next"?Jt(fe):$s(Jt(fe),2097152):void 0;if(At(Ne))return t==="next"?pn:Qn;var $e=Ne?za(Ne,0):e.emptyArray;if($e.length===0){if(o){var Ze=t==="next"?i.mustHaveANextMethodDiagnostic:i.mustBeAMethodDiagnostic;Wr(o,Ze,t)}return t==="next"?pn:void 0}if((Ne==null?void 0:Ne.symbol)&&$e.length===1){var lr=i.getGlobalGeneratorType(!1),yr=i.getGlobalIteratorType(!1),Zr=((u=(s=lr.symbol)===null||s===void 0?void 0:s.members)===null||u===void 0?void 0:u.get(t))===Ne.symbol,ui=!Zr&&((q=(T=yr.symbol)===null||T===void 0?void 0:T.members)===null||q===void 0?void 0:q.get(t))===Ne.symbol;if(Zr||ui){var Ii=Zr?lr:yr,Fi=Ne.mapper;return e_(ip(Ii.typeParameters[0],Fi),ip(Ii.typeParameters[1],Fi),t==="next"?ip(Ii.typeParameters[2],Fi):void 0)}}for(var Ri,Xi,ea=0,lt=$e;ea<lt.length;ea++){var Ia=lt[ea];t!=="throw"&&e.some(Ia.parameters)&&(Ri=e.append(Ri,Hu(Ia,0))),Xi=e.append(Xi,So(Ia))}var fa,Dn;if(t!=="throw"){var Ra=Ri?ba(Ri):We;if(t==="next")Dn=Ra;else if(t==="return"){var Bn=i.resolveIterationType(Ra,o)||xe;fa=e.append(fa,Bn)}}var Jn,On=Xi?To(Xi):St,Ao=i.resolveIterationType(On,o)||xe,$i=bF(Ao);return $i===io?(o&&Wr(o,i.mustHaveAValueDiagnostic,t),Jn=xe,fa=e.append(fa,xe)):(Jn=$i.yieldType,fa=e.append(fa,$i.returnType)),e_(Jn,ba(fa),Dn)}}function n6(r,i,t){var o=$k([uS(r,i,"next",t),uS(r,i,"return",t),uS(r,i,"throw",t)]);return rf(r,i.iteratorCacheKey,o)}function Sg(r,i,t){if(!At(i)){var o=o6(i,t);return o&&o[j(r)]}}function o6(r,i){if(At(r))return pn;var t=i?2:1,o=i?xo:ds;return xy(r,t,void 0)||i6(r,o,void 0)}function SF(r){Pf(r)||O9(r)}function S0(r,i){var t=!!(i&1),o=!!(i&2);return t?Sg(1,r,o)||Oe:o?k_(r)||Oe:r}function s6(r,i){var t=S0(i,e.getFunctionFlags(r));return!!t&&ls(t,16387)}function TF(r){var i;if(!Pf(r)){var t=e.getContainingFunctionOrClassStaticBlock(r);if(t&&e.isClassStaticBlockDeclaration(t)){Zs(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!t){Zs(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var o=Ku(t),s=So(o),u=e.getFunctionFlags(t);if(ur||r.expression||s.flags&131072){var T=r.expression?js(r.expression):Nr;if(t.kind===172)r.expression&&Wr(r,e.Diagnostics.Setters_cannot_return_a_value);else if(t.kind===170)r.expression&&!tp(T,s,r,r.expression)&&Wr(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(ag(t)){var q=(i=S0(s,u))!==null&&i!==void 0?i:s,fe=u&2?ov(T,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T;q&&tp(fe,q,r,r.expression)}}else t.kind!==170&&ye.noImplicitReturns&&!s6(t,s)&&Wr(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function xF(r){Pf(r)||r.flags&32768&&Zs(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),hn(r.expression);var i=e.getSourceFileOfNode(r);if(!bd(i)){var t=e.getSpanOfTokenAtPosition(i,r.pos).start,o=r.statement.pos;qp(i,t,o-t,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function EF(r){Pf(r);var i,t=!1,o=hn(r.expression),s=fg(o);e.forEach(r.caseBlock.clauses,function(u){if(u.kind===289&&!t&&(i===void 0?i=u:(vt(u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),t=!0)),oe&&u.kind===288){var T=hn(u.expression),q=fg(T),fe=o;(!q||!s)&&(T=q?Bl(T):T,fe=Bl(o)),Vb(fe,T)||Qx(T,fe,u.expression,void 0)}e.forEach(u.statements,$n),ye.noFallthroughCasesInSwitch&&u.fallthroughFlowNode&&ry(u.fallthroughFlowNode)&&Wr(u,e.Diagnostics.Fallthrough_case_in_switch)}),r.caseBlock.locals&&A_(r.caseBlock)}function CF(r){Pf(r)||e.findAncestor(r.parent,function(i){return e.isFunctionLike(i)?"quit":i.kind===249&&i.label.escapedText===r.label.escapedText?(vt(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),$n(r.statement)}function kF(r){Pf(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&X9(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&hn(r.expression)}function AF(r){Pf(r),h0(r.tryBlock);var i=r.catchClause;if(i){if(i.variableDeclaration){var t=i.variableDeclaration,o=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(t));if(o){var s=Zl(t,!1,0);s&&!(s.flags&3)&&Zs(o,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(t.initializer)Zs(t.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var u=i.block.locals;u&&e.forEachKey(i.locals,function(T){var q=u.get(T);(q==null?void 0:q.valueDeclaration)&&(q.flags&2)!==0&&vt(q.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,T)})}}h0(i.block)}r.finallyBlock&&h0(r.finallyBlock)}function T0(r,i,t){var o=Js(r);if(o.length!==0){for(var s=0,u=Gf(r);s<u.length;s++){var T=u[s];t&&T.flags&4194304||c6(r,T,Hg(T,8576,!0),Df(T))}var q=i.valueDeclaration;if(q&&e.isClassLike(q))for(var fe=0,Ne=q.members;fe<Ne.length;fe++){var $e=Ne[fe];if(!e.isStatic($e)&&!Pp($e)){var Ze=It($e);c6(r,Ze,ac($e.name.expression),Df(Ze))}}if(o.length>1)for(var lr=0,yr=o;lr<yr.length;lr++){var Zr=yr[lr];PF(r,Zr)}}}function c6(r,i,t,o){var s=i.valueDeclaration,u=e.getNameOfDeclaration(s);if(!(u&&e.isPrivateIdentifier(u)))for(var T=jg(r,t),q=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,fe=s&&s.kind===220||u&&u.kind===161||Rs(i)===r.symbol?s:void 0,Ne=function(yr){var Zr=yr.declaration&&Rs(It(yr.declaration))===r.symbol?yr.declaration:void 0,ui=fe||Zr||(q&&!e.some(zc(r),function(Ii){return!!D_(Ii,i.escapedName)&&!!fl(Ii,yr.keyType)})?q:void 0);ui&&!oo(o,yr.type)&&Wr(ui,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ga(i),ht(o),ht(yr.keyType),ht(yr.type))},$e=0,Ze=T;$e<Ze.length;$e++){var lr=Ze[$e];Ne(lr)}}function PF(r,i){for(var t=i.declaration,o=jg(r,i.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,u=t&&Rs(It(t))===r.symbol?t:void 0,T=function($e){if($e===i)return"continue";var Ze=$e.declaration&&Rs(It($e.declaration))===r.symbol?$e.declaration:void 0,lr=u||Ze||(s&&!e.some(zc(r),function(yr){return!!kc(yr,i.keyType)&&!!fl(yr,$e.keyType)})?s:void 0);lr&&!oo(i.type,$e.type)&&Wr(lr,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,ht(i.keyType),ht(i.type),ht($e.keyType),ht($e.type))},q=0,fe=o;q<fe.length;q++){var Ne=fe[q];T(Ne)}}function gm(r,i){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Wr(r,i,r.escapedText)}}function NF(r){Se>=1&&r.escapedText==="Object"&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Wr(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[ge])}function IF(r){var i=e.filter(e.getJSDocTags(r),e.isJSDocParameterTag);if(!!e.length(i)){var t=e.isInJSFile(r),o=new e.Set,s=new e.Set;e.forEach(r.parameters,function(q,fe){var Ne=q.name;e.isIdentifier(Ne)&&o.add(Ne.escapedText),e.isBindingPattern(Ne)&&s.add(fe)});var u=L1(r);if(u){var T=e.lastOrUndefined(i);t&&T&&e.isIdentifier(T.name)&&T.typeExpression&&T.typeExpression.type&&!o.has(T.name.escapedText)&&!_c(Ua(T.typeExpression.type))&&Wr(T.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(T.name))}else e.forEach(i,function(q,fe){var Ne=q.name;s.has(fe)||e.isIdentifier(Ne)&&o.has(Ne.escapedText)||(e.isQualifiedName(Ne)?t&&Wr(Ne,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(Ne),e.entityNameToString(Ne.left)):nu(t,Ne,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(Ne)))})}}function Ey(r){if(r)for(var i=!1,t=0;t<r.length;t++){var o=r[t];if(Ak(o),oe){o.default?(i=!0,wF(o.default,r,t)):i&&Wr(o,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<t;s++)r[s].symbol===o.symbol&&Wr(o.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(o.name))}}}function wF(r,i,t){o(r);function o(s){if(s.kind===177){var u=Uv(s);if(u.flags&262144)for(var T=t;T<i.length;T++)u.symbol===It(i[T])&&Wr(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,o)}}function u6(r){if(!(r.declarations&&r.declarations.length===1)){var i=Ma(r);if(!i.typeParametersChecked){i.typeParametersChecked=!0;var t=jF(r);if(!t||t.length<=1)return;var o=Io(r);if(!OF(t,o.localTypeParameters))for(var s=Ga(r),u=0,T=t;u<T.length;u++){var q=T[u];Wr(q.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function OF(r,i){for(var t=e.length(i),o=Ol(i),s=0,u=r;s<u.length;s++){var T=u[s],q=e.getEffectiveTypeParameterDeclarations(T),fe=q.length;if(fe<o||fe>t)return!1;for(var Ne=0;Ne<fe;Ne++){var $e=q[Ne],Ze=i[Ne];if($e.name.escapedText!==Ze.symbol.escapedName)return!1;var lr=e.getEffectiveConstraintOfTypeParameter($e),yr=lr&&Ua(lr),Zr=qc(Ze);if(yr&&Zr&&!Qf(yr,Zr))return!1;var ui=$e.default&&Ua($e.default),Ii=H_(Ze);if(ui&&Ii&&!Qf(ui,Ii))return!1}}return!0}function FF(r){return l6(r),lv(r),Jt(It(r))}function MF(r){e.forEach(r.members,$n),A_(r)}function LF(r){e.some(r.decorators)&&e.some(r.members,function(i){return e.hasStaticModifier(i)&&e.isPrivateIdentifierClassElementDeclaration(i)})&&vt(r.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,512)&&Zs(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),l6(r),e.forEach(r.members,$n),A_(r)}function l6(r){v9(r),hy(r),pm(r,r.name),Ey(e.getEffectiveTypeParameterDeclarations(r)),tv(r);var i=It(r),t=Io(i),o=Wc(t),s=Jt(i);u6(i),v0(i),sO(r);var u=!!(r.flags&8388608);u||cO(r);var T=e.getEffectiveBaseTypeNode(r);if(T){e.forEach(T.typeArguments,$n),Se<2&&dc(T.parent,1);var q=e.getClassExtendsHeritageElement(r);q&&q!==T&&hn(q.expression);var fe=zc(t);if(fe.length&&oe){var Ne=fe[0],$e=ef(t),Ze=$($e);if(BF(Ze,T),$n(T.expression),e.some(T.typeArguments)){e.forEach(T.typeArguments,$n);for(var lr=0,yr=Ng(Ze,T.typeArguments,T);lr<yr.length;lr++){var Zr=yr[lr];if(!Mk(T,Zr.typeParameters))break}}var ui=Wc(Ne,t.thisType);if(Gc(o,ui,void 0)?Gc(s,Kx(Ze),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):p6(r,o,ui,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),$e.flags&8650752)if(!Pg(s))Wr(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Ii=za($e,1);Ii.some(function(Dn){return Dn.flags&4})&&!e.hasSyntacticModifier(r,128)&&Wr(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Ze.symbol&&Ze.symbol.flags&32)&&!($e.flags&8650752)){var Fi=Fd(Ze,T.typeArguments,T);e.forEach(Fi,function(Dn){return!ml(Dn.declaration)&&!Qf(So(Dn),Ne)})&&Wr(T.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}UF(t,Ne)}}RF(r,t,o,s);var Ri=e.getEffectiveImplementsTypeNodes(r);if(Ri)for(var Xi=0,ea=Ri;Xi<ea.length;Xi++){var lt=ea[Xi];if((!e.isEntityNameExpression(lt.expression)||e.isOptionalChain(lt.expression))&&Wr(lt.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Yb(lt),oe){var Ia=Lt(Ua(lt));if(!ra(Ia))if(ma(Ia)){var fa=Ia.symbol&&Ia.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,ui=Wc(Ia,t.thisType);Gc(o,ui,void 0)||p6(r,o,ui,fa)}else Wr(lt,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}oe&&(T0(t,i),T0(s,i,!0),Hb(r),qF(r))}function RF(r,i,t,o){for(var s=e.getEffectiveBaseTypeNode(r),u=s&&zc(i),T=u!=null&&u.length?Wc(e.first(u),i.thisType):void 0,q=ef(i),fe=function(lr){if(e.hasAmbientModifier(lr))return"continue";e.isConstructorDeclaration(lr)&&e.forEach(lr.parameters,function(yr){e.isParameterPropertyDeclaration(yr,lr)&&f6(r,o,q,T,i,t,yr,!0)}),f6(r,o,q,T,i,t,lr,!1)},Ne=0,$e=r.members;Ne<$e.length;Ne++){var Ze=$e[Ne];fe(Ze)}}function f6(r,i,t,o,s,u,T,q,fe){fe===void 0&&(fe=!0);var Ne=T.name&&Xu(T.name)||Xu(T);return Ne?_6(r,i,t,o,s,u,e.hasOverrideModifier(T),e.hasAbstractModifier(T),e.isStatic(T),q,e.symbolName(Ne),fe?T:void 0):0}function _6(r,i,t,o,s,u,T,q,fe,Ne,$e,Ze){var lr=e.isInJSFile(r),yr=!!(r.flags&8388608);if(o&&(T||ye.noImplicitOverride)){var Zr=e.escapeLeadingUnderscores($e),ui=fe?i:u,Ii=fe?t:o,Fi=tn(ui,Zr),Ri=tn(Ii,Zr),Xi=ht(o);if(Fi&&!Ri&&T){if(Ze){var ea=PC($e,Ii);ea?Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Xi,Ga(ea)):Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Xi)}return 2}else if(Fi&&(Ri==null?void 0:Ri.declarations)&&ye.noImplicitOverride&&!yr){var lt=e.some(Ri.declarations,e.hasAbstractModifier);if(T)return 0;if(lt){if(q&<)return Ze&&Wr(Ze,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Xi),1}else{if(Ze){var Ia=Ne?lr?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:lr?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Wr(Ze,Ia,Xi)}return 1}}}else if(T){if(Ze){var fa=ht(s);Wr(Ze,lr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,fa)}return 2}return 0}function p6(r,i,t,o){for(var s=!1,u=function(Ne){if(e.isStatic(Ne))return"continue";var $e=Ne.name&&Xu(Ne.name)||Xu(Ne);if($e){var Ze=tn(i,$e.escapedName),lr=tn(t,$e.escapedName);if(Ze&&lr){var yr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ga($e),ht(i),ht(t))};Gc(Jt(Ze),Jt(lr),Ne.name||Ne,void 0,yr)||(s=!0)}}},T=0,q=r.members;T<q.length;T++){var fe=q[T];u(fe)}s||Gc(i,t,r.name||r,o)}function BF(r,i){var t=za(r,1);if(t.length){var o=t[0].declaration;if(o&&e.hasEffectiveModifier(o,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);dS(i,s)||Wr(i,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ts(r.symbol))}}}function JF(r,i){if(!i.name)return 0;var t=It(r),o=Io(t),s=Wc(o),u=Jt(t),T=e.getEffectiveBaseTypeNode(r),q=T&&zc(o),fe=q!=null&&q.length?Wc(e.first(q),o.thisType):void 0,Ne=ef(o),$e=i.parent?e.hasOverrideModifier(i):e.hasSyntacticModifier(i,16384),Ze=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(i.name));return _6(r,u,Ne,fe,o,s,$e,e.hasAbstractModifier(i),e.isStatic(i),!1,Ze)}function Tg(r){return e.getCheckFlags(r)&1?r.target:r}function jF(r){return e.filter(r.declarations,function(i){return i.kind===256||i.kind===257})}function UF(r,i){var t,o,s=_o(i);e:for(var u=0,T=s;u<T.length;u++){var q=T[u],fe=Tg(q);if(!(fe.flags&4194304)){var Ne=D_(r,fe.escapedName);if(!!Ne){var $e=Tg(Ne),Ze=e.getDeclarationModifierFlagsFromSymbol(fe);if(e.Debug.assert(!!$e,"derived should point to something, even if it is the base class' declaration."),$e===fe){var lr=e.getClassLikeDeclarationOfSymbol(r.symbol);if(Ze&128&&(!lr||!e.hasSyntacticModifier(lr,128))){for(var yr=0,Zr=zc(r);yr<Zr.length;yr++){var ui=Zr[yr];if(ui!==i){var Ii=D_(ui,fe.escapedName),Fi=Ii&&Tg(Ii);if(Fi&&Fi!==fe)continue e}}lr.kind===225?Wr(lr,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ga(q),ht(i)):Wr(lr,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ht(r),Ga(q),ht(i))}}else{var Ri=e.getDeclarationModifierFlagsFromSymbol($e);if(Ze&8||Ri&8)continue;var Xi=void 0,ea=fe.flags&98308,lt=$e.flags&98308;if(ea&<){if(Ze&128&&!(fe.valueDeclaration&&e.isPropertyDeclaration(fe.valueDeclaration)&&fe.valueDeclaration.initializer)||fe.valueDeclaration&&fe.valueDeclaration.parent.kind===257||$e.valueDeclaration&&e.isBinaryExpression($e.valueDeclaration))continue;var Ia=ea!==4&<===4,fa=ea===4&<!==4;if(Ia||fa){var Dn=Ia?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,Dn,Ga(fe),ht(i),ht(r))}else if(Fe){var Ra=(t=$e.declarations)===null||t===void 0?void 0:t.find(function(Ao){return Ao.kind===166&&!Ao.initializer});if(Ra&&!($e.flags&33554432)&&!(Ze&128)&&!(Ri&128)&&!(!((o=$e.declarations)===null||o===void 0)&&o.some(function(Ao){return!!(Ao.flags&8388608)}))){var Bn=Gl(e.getClassLikeDeclarationOfSymbol(r.symbol)),Jn=Ra.name;if(Ra.exclamationToken||!Bn||!e.isIdentifier(Jn)||!ur||!g6(Jn,r,Bn)){var On=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,On,Ga(fe),ht(i))}}}continue}else if(Db(fe)){if(Db($e)||$e.flags&4)continue;e.Debug.assert(!!($e.flags&98304)),Xi=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else fe.flags&98304?Xi=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Xi=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Wr(e.getNameOfDeclaration($e.valueDeclaration)||$e.valueDeclaration,Xi,ht(i),Ga(fe),ht(r))}}}}}function zF(r,i,t){if(!e.length(i))return t;var o=new e.Map;e.forEach(t,function(lr){o.set(lr.escapedName,lr)});for(var s=0,u=i;s<u.length;s++)for(var T=u[s],q=_o(Wc(T,r.thisType)),fe=0,Ne=q;fe<Ne.length;fe++){var $e=Ne[fe],Ze=o.get($e.escapedName);Ze&&$e.parent===Ze.parent&&o.delete($e.escapedName)}return e.arrayFrom(o.values())}function WF(r,i){var t=zc(r);if(t.length<2)return!0;var o=new e.Map;e.forEach(Tv(r).declaredProperties,function(Fi){o.set(Fi.escapedName,{prop:Fi,containingType:r})});for(var s=!0,u=0,T=t;u<T.length;u++)for(var q=T[u],fe=_o(Wc(q,r.thisType)),Ne=0,$e=fe;Ne<$e.length;Ne++){var Ze=$e[Ne],lr=o.get(Ze.escapedName);if(!lr)o.set(Ze.escapedName,{prop:Ze,containingType:q});else{var yr=lr.containingType!==r;if(yr&&!G8(lr.prop,Ze)){s=!1;var Zr=ht(lr.containingType),ui=ht(q),Ii=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ga(Ze),Zr,ui);Ii=e.chainDiagnosticMessages(Ii,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,ht(r),Zr,ui),ya.add(e.createDiagnosticForNodeFromMessageChain(i,Ii))}}}return s}function qF(r){if(!(!ur||!Br||r.flags&8388608))for(var i=Gl(r),t=0,o=r.members;t<o.length;t++){var s=o[t];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&d6(s)){var u=s.name;if(e.isIdentifier(u)||e.isPrivateIdentifier(u)){var T=Jt(It(s));T.flags&3||Fu(T)&32768||(!i||!g6(u,T,i))&&Wr(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(u))}}}}function d6(r){return r.kind===166&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function VF(r,i,t,o,s){for(var u=0,T=t;u<T.length;u++){var q=T[u];if(q.pos>=o&&q.pos<=s){var fe=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(fe.expression,fe),e.setParent(fe,q),fe.flowNode=q.returnFlowNode;var Ne=op(fe,i,$f(i));if(!(Fu(Ne)&32768))return!0}}return!1}function g6(r,i,t){var o=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(o.expression,o),e.setParent(o,t),o.flowNode=t.returnFlowNode;var s=op(o,i,$f(i));return!(Fu(s)&32768)}function KF(r){if(Af(r)||E9(r),Ey(r.typeParameters),oe){gm(r.name,e.Diagnostics.Interface_name_cannot_be_0),tv(r);var i=It(r);u6(i);var t=e.getDeclarationOfKind(i,257);if(r===t){var o=Io(i),s=Wc(o);if(WF(o,r.name)){for(var u=0,T=zc(o);u<T.length;u++){var q=T[u];Gc(s,Wc(q,o.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}T0(o,i)}}Ik(r)}e.forEach(e.getInterfaceBaseTypeNodes(r),function(fe){(!e.isEntityNameExpression(fe.expression)||e.isOptionalChain(fe.expression))&&Wr(fe.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Yb(fe)}),e.forEach(r.members,$n),oe&&(Hb(r),A_(r))}function GF(r){Af(r),gm(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),tv(r),Ey(r.typeParameters),r.type.kind===138?(!I.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Wr(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):($n(r.type),A_(r))}function m6(r){var i=Da(r);if(!(i.flags&16384)){i.flags|=16384;for(var t=0,o=0,s=r.members;o<s.length;o++){var u=s[o],T=HF(u,t);Da(u).enumMemberValue=T,t=typeof T=="number"?T+1:void 0}}}function HF(r,i){if(e.isComputedNonLiteralName(r.name))Wr(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var t=e.getTextOfPropertyName(r.name);e.isNumericLiteralName(t)&&!e.isInfinityOrNaNString(t)&&Wr(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return XF(r);if(!(r.parent.flags&8388608&&!e.isEnumConst(r.parent)&&Oc(It(r.parent))===0)){if(i!==void 0)return i;Wr(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function XF(r){var i=Oc(It(r.parent)),t=e.isEnumConst(r.parent),o=r.initializer,s=i===1&&!Sc(r)?void 0:T(o);if(s!==void 0)t&&typeof s=="number"&&!isFinite(s)&&Wr(o,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(i===1)return Wr(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(t)Wr(o,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&8388608)Wr(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var u=hn(o);ws(u,296)?Gc(u,Io(It(r.parent)),o,void 0):Wr(o,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,ht(u))}}return s;function T(fe){switch(fe.kind){case 218:var Ne=T(fe.operand);if(typeof Ne=="number")switch(fe.operator){case 39:return Ne;case 40:return-Ne;case 54:return~Ne}break;case 220:var $e=T(fe.left),Ze=T(fe.right);if(typeof $e=="number"&&typeof Ze=="number")switch(fe.operatorToken.kind){case 51:return $e|Ze;case 50:return $e&Ze;case 48:return $e>>Ze;case 49:return $e>>>Ze;case 47:return $e<<Ze;case 52:return $e^Ze;case 41:return $e*Ze;case 43:return $e/Ze;case 39:return $e+Ze;case 40:return $e-Ze;case 44:return $e%Ze;case 42:return Math.pow($e,Ze)}else if(typeof $e=="string"&&typeof Ze=="string"&&fe.operatorToken.kind===39)return $e+Ze;break;case 10:case 14:return fe.text;case 8:return ES(fe),+fe.text;case 211:return T(fe.expression);case 79:var lr=fe;return e.isInfinityOrNaNString(lr.escapedText)?+lr.escapedText:e.nodeIsMissing(fe)?0:q(fe,It(r.parent),lr.escapedText);case 206:case 205:if(lS(fe)){var yr=ac(fe.expression);if(yr.symbol&&yr.symbol.flags&384){var Zr=void 0;return fe.kind===205?Zr=fe.name.escapedText:Zr=e.escapeLeadingUnderscores(e.cast(fe.argumentExpression,e.isLiteralExpression).text),q(fe,yr.symbol,Zr)}}break}}function q(fe,Ne,$e){var Ze=Ne.exports.get($e);if(Ze){var lr=Ze.valueDeclaration;if(lr!==r)return lr&&wf(lr,r)&&e.isEnumDeclaration(lr.parent)?w0(lr):(Wr(fe,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Wr(fe,e.Diagnostics.Property_0_is_used_before_being_assigned,Ga(Ze))}}}function lS(r){var i=ac(r);return i===Oe?!1:r.kind===79||r.kind===205&&lS(r.expression)||r.kind===206&&lS(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function QF(r){if(!!oe){Af(r),pm(r,r.name),tv(r),r.members.forEach(YF),m6(r);var i=It(r),t=e.getDeclarationOfKind(i,r.kind);if(r===t){if(i.declarations&&i.declarations.length>1){var o=e.isEnumConst(r);e.forEach(i.declarations,function(u){e.isEnumDeclaration(u)&&e.isEnumConst(u)!==o&&Wr(e.getNameOfDeclaration(u),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(i.declarations,function(u){if(u.kind!==259)return!1;var T=u;if(!T.members.length)return!1;var q=T.members[0];q.initializer||(s?Wr(q.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function YF(r){e.isPrivateIdentifier(r.name)&&Wr(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function $F(r){var i=r.declarations;if(i)for(var t=0,o=i;t<o.length;t++){var s=o[t];if((s.kind===256||s.kind===255&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function ZF(r,i){var t=e.getEnclosingBlockScopeContainer(r),o=e.getEnclosingBlockScopeContainer(i);return Ju(t)?Ju(o):Ju(o)?!1:t===o}function eM(r){if(oe){var i=e.isGlobalScopeAugmentation(r),t=r.flags&8388608;i&&!t&&Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var o=e.isAmbientModule(r),s=o?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Cy(r,s))return;Af(r)||!t&&r.name.kind===10&&vt(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&pm(r,r.name),tv(r);var u=It(r);if(u.flags&512&&!t&&u.declarations&&u.declarations.length>1&&P(r,e.shouldPreserveConstEnums(ye))){var T=$F(u);T&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(T)?Wr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<T.pos&&Wr(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var q=e.getDeclarationOfKind(u,256);q&&ZF(r,q)&&(Da(r).flags|=32768)}if(o)if(e.isExternalModuleAugmentation(r)){var fe=i||It(r).flags&33554432;if(fe&&r.body)for(var Ne=0,$e=r.body.statements;Ne<$e.length;Ne++){var Ze=$e[Ne];fS(Ze,i)}}else Ju(r.parent)?i?Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Wr(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):i?Wr(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Wr(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}r.body&&($n(r.body),e.isGlobalScopeAugmentation(r)||A_(r))}function fS(r,i){var t;switch(r.kind){case 236:for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var u=s[o];fS(u,i)}break;case 270:case 271:Zs(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:Zs(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var T=r.name;if(e.isBindingPattern(T)){for(var q=0,fe=T.elements;q<fe.length;q++){var Ne=fe[q];fS(Ne,i)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(i)return;var $e=It(r);if($e){var Ze=!($e.flags&33554432);Ze||(Ze=!!(!((t=$e.parent)===null||t===void 0)&&t.declarations)&&e.isExternalModuleAugmentation($e.parent.declarations[0]))}break}}function rM(r){switch(r.kind){case 79:return r;case 160:do r=r.left;while(r.kind!==79);return r;case 205:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function _S(r){var i=e.getExternalModuleName(r);if(!i||e.nodeIsMissing(i))return!1;if(!e.isStringLiteral(i))return Wr(i,e.Diagnostics.String_literal_expected),!1;var t=r.parent.kind===261&&e.isAmbientModule(r.parent.parent);if(r.parent.kind!==303&&!t)return Wr(i,r.kind===271?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(t&&e.isExternalModuleNameRelative(i.text)&&!V_(r))return Wr(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(r)&&r.assertClause){for(var o=!1,s=0,u=r.assertClause.elements;s<u.length;s++){var T=u[s];e.isStringLiteral(T.value)||(o=!0,Wr(T.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!o}return!0}function x0(r){var i=It(r),t=zo(i);if(t!==hr){i=Wn(i.exportSymbol||i);var o=(i.flags&1160127?111551:0)|(i.flags&788968?788968:0)|(i.flags&1920?1920:0);if(t.flags&o){var s=r.kind===274?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Wr(r,s,Ga(i))}if(ye.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&8388608)){var u=gu(i),T=!(t.flags&111551);if(T||u)switch(r.kind){case 266:case 269:case 264:{if(ye.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var s=T?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,q=e.idText(r.kind===269&&r.propertyName||r.name);Of(Wr(r,s,q),T?void 0:u,q)}T&&r.kind===264&&e.hasEffectiveModifier(r,1)&&Wr(r,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break}case 274:if(e.getSourceFileOfNode(u)!==e.getSourceFileOfNode(r)){var s=T?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,q=e.idText(r.propertyName||r.name);Of(Wr(r,s,q),T?void 0:u,q);return}}}if(e.isImportSpecifier(r)){var fe=y6(i,r);v6(fe)&&fe.declarations&&fu(r,fe.declarations,fe.escapedName)}}}function v6(r){return!!r.declarations&&e.every(r.declarations,function(i){return!!(e.getCombinedNodeFlags(i)&134217728)})}function y6(r,i){if(!(r.flags&2097152))return r;var t=zo(r);if(t===hr)return t;for(;r.flags&2097152;){var o=db(r);if(o){if(o===t)break;if(o.declarations&&e.length(o.declarations))if(v6(o)){fu(i,o.declarations,o.escapedName);break}else{if(r===t)break;r=o}}else break}return t}function E0(r){pm(r,r.name),x0(r),r.kind===269&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(ye)&&ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&dc(r,131072)}function h6(r){var i;if(r.assertClause){var t=ge===e.ModuleKind.NodeNext&&r.moduleSpecifier&&n_(r.moduleSpecifier);if(t!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.ESNext)return vt(r.assertClause,ge===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(r)?(i=r.importClause)===null||i===void 0?void 0:i.isTypeOnly:r.isTypeOnly)return vt(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function iM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),_S(r)){var i=r.importClause;if(i&&!Y9(i)&&(i.name&&E0(i),i.namedBindings))if(i.namedBindings.kind===267)E0(i.namedBindings),ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(ye)&&dc(r,65536);else{var t=ko(r,r.moduleSpecifier);t&&e.forEach(i.namedBindings.elements,E0)}}h6(r)}}function tM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Af(r),e.isInternalModuleImportEqualsDeclaration(r)||_S(r)))if(E0(r),e.hasSyntacticModifier(r,1)&&Jf(r),r.moduleReference.kind!==276){var i=zo(It(r));if(i!==hr){if(i.flags&111551){var t=e.getFirstIdentifier(r.moduleReference);Ps(t,112575).flags&1920||Wr(t,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(t))}i.flags&788968&&gm(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&vt(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else ge>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&8388608)&&vt(r,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function aM(r){if(!Cy(r,e.isInJSFile(r)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&Se===0&&dc(r,4194304),nM(r),!r.moduleSpecifier||_S(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,fM);var i=r.parent.kind===261&&e.isAmbientModule(r.parent.parent),t=!i&&r.parent.kind===261&&!r.moduleSpecifier&&r.flags&8388608;r.parent.kind!==303&&!i&&!t&&Wr(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=ko(r,r.moduleSpecifier);o&&ff(o)?Wr(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ga(o)):r.exportClause&&x0(r.exportClause),ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(ye)&&dc(r,65536):dc(r,32768))}h6(r)}}function nM(r){var i;return r.isTypeOnly?((i=r.exportClause)===null||i===void 0?void 0:i.kind)===272?H6(r.exportClause):vt(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function Cy(r,i){var t=r.parent.kind===303||r.parent.kind===261||r.parent.kind===260;return t||Zs(r,i),!t}function oM(r){return e.forEachImportClauseDeclaration(r,function(i){return!!It(i).isReferenced})}function sM(r){return e.forEachImportClauseDeclaration(r,function(i){return!!Ma(It(i)).constEnumReferenced})}function cM(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&oM(r.importClause)&&!I0(r.importClause,!0)&&!sM(r.importClause)}function uM(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&It(r).isReferenced&&!I0(r,!1)&&!Ma(It(r)).constEnumReferenced}function lM(r){for(var i=0,t=r.statements;i<t.length;i++){var o=t[i];(cM(o)||uM(o))&&Wr(o,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function fM(r){if(x0(r),e.getEmitDeclarations(ye)&&Vf(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(ye)&&ge!==e.ModuleKind.System&&(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&dc(r,131072);else{var i=r.propertyName||r.name,t=os(i,i.escapedText,2998271,void 0,void 0,!0);if(t&&(t===Jr||t===Rr||t.declarations&&Ju(b(t.declarations[0]))))Wr(i,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(i));else{Jf(r);var o=t&&(t.flags&2097152?zo(t):t);(!o||o===hr||o.flags&111551)&&js(r.propertyName||r.name)}}}function _M(r){var i=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!Cy(r,i)){var t=r.parent.kind===303?r.parent:r.parent.parent;if(t.kind===260&&!e.isAmbientModule(t)){r.isExportEquals?Wr(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Wr(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Af(r)&&e.hasEffectiveModifiers(r)&&Zs(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var o=e.getEffectiveTypeAnnotationNode(r);if(o&&Gc(js(r.expression),Ua(o),r.expression),r.expression.kind===79){var s=r.expression,u=Ps(s,67108863,!0,!0,r);if(u){qh(u,s);var T=u.flags&2097152?zo(u):u;(T===hr||T.flags&111551)&&js(r.expression)}else js(r.expression);e.getEmitDeclarations(ye)&&Vf(r.expression,!0)}else js(r.expression);D6(t),r.flags&8388608&&!e.isEntityNameExpression(r.expression)&&vt(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&8388608)&&(ge>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?vt(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ge===e.ModuleKind.System&&vt(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function pM(r){return e.forEachEntry(r.exports,function(i,t){return t!=="export="})}function D6(r){var i=It(r),t=Ma(i);if(!t.exportsChecked){var o=i.exports.get("export=");if(o&&pM(i)){var s=ju(o)||o.valueDeclaration;s&&!V_(s)&&!e.isInJSFile(s)&&Wr(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var u=al(i);u&&u.forEach(function(T,q){var fe=T.declarations,Ne=T.flags;if(q!=="__export"&&!(Ne&1984)){var $e=e.countWhere(fe,ie);if(!(Ne&524288&&$e<=2)&&$e>1&&!C0(fe))for(var Ze=0,lr=fe;Ze<lr.length;Ze++){var yr=lr[Ze];_(yr)&&ya.add(e.createDiagnosticForNode(yr,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(q)))}}}),t.exportsChecked=!0}}function C0(r){return r&&r.length>1&&r.every(function(i){return e.isInJSFile(i)&&e.isAccessExpression(i)&&(e.isExportsIdentifier(i.expression)||e.isModuleExportsAccessExpression(i.expression))})}function $n(r){if(r){var i=er;er=r,gr=0,dM(r),er=i}}function dM(r){e.isInJSFile(r)&&e.forEach(r.jsDoc,function(t){var o=t.tags;return e.forEach(o,$n)});var i=r.kind;if(ce)switch(i){case 260:case 256:case 257:case 255:ce.throwIfCancellationRequested()}switch(i>=236&&i<=252&&r.flowNode&&!ry(r.flowNode)&&nu(ye.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),i){case 162:return Ak(r);case 163:return Pk(r);case 166:return wk(r);case 165:return uO(r);case 179:case 178:case 173:case 174:case 175:return iv(r);case 168:case 167:return lO(r);case 169:return fO(r);case 170:return _O(r);case 171:case 172:return Fk(r);case 177:return Yb(r);case 176:return nO(r);case 180:return mO(r);case 181:return vO(r);case 182:return yO(r);case 183:return hO(r);case 186:case 187:return DO(r);case 190:case 184:case 185:return $n(r.type);case 191:return xO(r);case 192:return EO(r);case 188:return CO(r);case 189:return kO(r);case 197:return AO(r);case 199:return PO(r);case 196:return NO(r);case 326:return WO(r);case 327:return zO(r);case 343:case 336:case 337:return LO(r);case 342:return RO(r);case 341:return BO(r);case 338:return JO(r);case 345:return jO(r);case 315:UO(r);case 313:case 312:case 310:case 311:case 320:b6(r),e.forEachChild(r,$n);return;case 316:gM(r);return;case 307:return $n(r.type);case 331:case 333:case 332:return qO(r);case 193:return bO(r);case 194:return SO(r);case 255:return MO(r);case 234:case 261:return h0(r);case 236:return oF(r);case 237:return sF(r);case 238:return cF(r);case 239:return fF(r);case 240:return _F(r);case 241:return pF(r);case 242:return gF(r);case 243:return dF(r);case 244:case 245:return SF(r);case 246:return TF(r);case 247:return xF(r);case 248:return EF(r);case 249:return CF(r);case 250:return kF(r);case 251:return AF(r);case 253:return iS(r);case 202:return nF(r);case 256:return LF(r);case 257:return KF(r);case 258:return GF(r);case 259:return QF(r);case 260:return eM(r);case 265:return iM(r);case 264:return tM(r);case 271:return aM(r);case 270:return _M(r);case 235:case 252:Pf(r);return;case 275:return dO(r)}}function b6(r){e.isInJSFile(r)||vt(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function gM(r){b6(r),$n(r.type);var i=r.parent;if(e.isParameter(i)&&e.isJSDocFunctionType(i.parent)){e.last(i.parent.parameters)!==i&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(i)||Wr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var t=r.parent.parent;if(!e.isJSDocParameterTag(t)){Wr(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(t);if(!!o){var s=e.getHostSignatureFromJSDoc(t);(!s||e.last(s.parameters).symbol!==o)&&Wr(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function mM(r){var i=Ua(r.type),t=r.parent,o=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),u=e.isJSDocCallbackTag(o.parent.parent);if(s||u){var T=u?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),q=e.getParameterSymbolFromJSDoc(o);if(!T||q&&T.symbol===q&&e.isRestParameter(T))return tc(i)}}return e.isParameter(t)&&e.isJSDocFunctionType(t.parent)?tc(i):Ec(i)}function lv(r){var i=e.getSourceFileOfNode(r),t=Da(i);t.flags&1||(t.deferredNodes||(t.deferredNodes=new e.Set),t.deferredNodes.add(r))}function vM(r){var i=Da(r);i.deferredNodes&&i.deferredNodes.forEach(yM)}function yM(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});var i=er;switch(er=r,gr=0,r.kind){case 207:case 208:case 209:case 164:case 279:hg(r);break;case 212:case 213:case 168:case 167:k7(r);break;case 171:case 172:Fk(r);break;case 225:MF(r);break;case 278:i5(r);break;case 277:a5(r);break}er=i,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function pS(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),hM(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function S6(r,i){if(i)return!1;switch(r){case 0:return!!ye.noUnusedLocals;case 1:return!!ye.noUnusedParameters;default:return e.Debug.assertNever(r)}}function T6(r){return Zt.get(r.path)||e.emptyArray}function hM(r){var i=Da(r);if(!(i.flags&1)){if(e.skipTypeChecking(r,ye,y))return;K9(r),e.clear(Tt),e.clear(Dt),e.clear(jt),e.clear(na),e.forEach(r.statements,$n),$n(r.endOfFileToken),vM(r),e.isExternalOrCommonJsModule(r)&&A_(r),!r.isDeclarationFile&&(ye.noUnusedLocals||ye.noUnusedParameters)&&zk(T6(r),function(t,o,s){!e.containsParseError(t)&&S6(o,!!(t.flags&8388608))&&ya.add(s)}),ye.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&lM(r),e.isExternalOrCommonJsModule(r)&&D6(r),Tt.length&&(e.forEach(Tt,QO),e.clear(Tt)),Dt.length&&(e.forEach(Dt,YO),e.clear(Dt)),jt.length&&(e.forEach(jt,rF),e.clear(jt)),na.length&&(e.forEach(na,tF),e.clear(na)),i.flags|=1}}function x6(r,i){try{return ce=i,DM(r)}finally{ce=void 0}}function DM(r){if(E6(),r){var i=ya.getGlobalDiagnostics(),t=i.length;pS(r);var o=ya.getDiagnostics(r.fileName),s=ya.getGlobalDiagnostics();if(s!==i){var u=e.relativeComplement(i,s,e.compareDiagnostics);return e.concatenate(u,o)}else if(t===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(y.getSourceFiles(),pS),ya.getDiagnostics()}function bM(){return E6(),ya.getGlobalDiagnostics()}function E6(){if(!oe)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function SM(r,i){if(r.flags&16777216)return[];var t=e.createSymbolTable(),o=!1;return s(),t.delete("this"),Bv(t);function s(){for(;r;){switch(r.locals&&!Ju(r)&&T(r.locals,i),r.kind){case 303:if(!e.isExternalModule(r))break;case 260:q(It(r).exports,i&2623475);break;case 259:T(It(r).exports,i&8);break;case 225:var fe=r.name;fe&&u(r.symbol,i);case 256:case 257:o||T(Il(It(r)),i&788968);break;case 212:var Ne=r.name;Ne&&u(r.symbol,i);break}e.introducesArgumentsExoticObject(r)&&u(ci,i),o=e.isStatic(r),r=r.parent}T(Lr,i)}function u(fe,Ne){if(e.getCombinedLocalAndExportSymbolFlags(fe)&Ne){var $e=fe.escapedName;t.has($e)||t.set($e,fe)}}function T(fe,Ne){Ne&&fe.forEach(function($e){u($e,Ne)})}function q(fe,Ne){Ne&&fe.forEach(function($e){!e.getDeclarationOfKind($e,274)&&!e.getDeclarationOfKind($e,273)&&u($e,Ne)})}}function TM(r){return r.kind===79&&ky(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function ky(r){switch(r.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return r.isTypeOnly;case 269:case 274:return r.parent.parent.isTypeOnly;default:return!1}}function C6(r){for(;r.parent.kind===160;)r=r.parent;return r.parent.kind===177}function xM(r){for(;r.parent.kind===205;)r=r.parent;return r.parent.kind===227}function k6(r,i){for(var t;r=e.getContainingClass(r),!(!r||(t=i(r))););return t}function EM(r){return!!e.findAncestor(r,function(i){return e.isConstructorDeclaration(i)&&e.nodeIsPresent(i.body)||e.isPropertyDeclaration(i)?!0:e.isClassLike(i)||e.isFunctionLikeDeclaration(i)?"quit":!1})}function dS(r,i){return!!k6(r,function(t){return t===i})}function CM(r){for(;r.parent.kind===160;)r=r.parent;if(r.parent.kind===264)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===270)return r.parent.expression===r?r.parent:void 0}function k0(r){return CM(r)!==void 0}function kM(r){var i=e.getAssignmentDeclarationKind(r.parent.parent);switch(i){case 1:case 3:return It(r.parent);case 4:case 2:case 5:return It(r.parent.parent)}}function AM(r){for(var i=r.parent;e.isQualifiedName(i);)r=i,i=i.parent;if(i&&i.kind===199&&i.qualifier===r)return i}function A6(r){if(e.isDeclarationName(r))return It(r.parent);if(e.isInJSFile(r)&&r.parent.kind===205&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var i=kM(r);if(i)return i}if(r.parent.kind===270&&e.isEntityNameExpression(r)){var t=Ps(r,2998271,!0);if(t&&t!==hr)return t}else if(e.isEntityName(r)&&k0(r)){var o=e.getAncestor(r,264);return e.Debug.assert(o!==void 0),Kt(r,!0)}if(e.isEntityName(r)){var s=AM(r);if(s){Ua(s);var u=Da(r).resolvedSymbol;return u===hr?void 0:u}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(xM(r)){var T=0;r.parent.kind===227?(T=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(T|=111551)):T=1920,T|=2097152;var q=e.isEntityNameExpression(r)?Ps(r,T):void 0;if(q)return q}if(r.parent.kind===338)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===162&&r.parent.parent.kind===342){e.Debug.assert(!e.isInJSFile(r));var fe=e.getTypeParameterFromJsDoc(r.parent);return fe&&fe.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var Ne=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),T=Ne?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&am(r)){var $e=mb(r.parent);return $e===hr?void 0:$e}var Ze=Ps(r,T,!1,!Ne,e.getHostSignatureFromJSDoc(r));if(!Ze&&Ne){var lr=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(lr)return A0(r,It(lr))}return Ze}else{if(e.isPrivateIdentifier(r))return e0(r);if(r.kind===205||r.kind===160){var yr=Da(r);return yr.resolvedSymbol?yr.resolvedSymbol:(r.kind===205?bC(r,0):SC(r,0),!yr.resolvedSymbol&&Ne&&e.isQualifiedName(r)?A0(r):yr.resolvedSymbol)}else if(e.isJSDocMemberName(r))return A0(r)}}else if(C6(r)){var T=r.parent.kind===177?788968:1920,$e=Ps(r,T,!1,!0);return $e&&$e!==hr?$e:oh(r)}if(r.parent.kind===176)return Ps(r,1)}function A0(r,i){if(e.isEntityName(r)){var t=901119,o=Ps(r,t,!1,!0,e.getHostSignatureFromJSDoc(r));if(!o&&e.isIdentifier(r)&&i&&(o=Wn(Pc(Ns(i),r.escapedText,t))),o)return o}var s=e.isIdentifier(r)?i:A0(r.left),u=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(s){var T=s.flags&111551&&tn(Jt(s),"prototype"),q=T?Jt(T):Io(s);return tn(q,u)}}function Xu(r,i){if(r.kind===303)return e.isExternalModule(r)?Wn(r.symbol):void 0;var t=r.parent,o=t.parent;if(!(r.flags&16777216)){if(J(r)){var s=It(t);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?db(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return It(t.parent);if(r.kind===79){if(k0(r))return A6(r);if(t.kind===202&&o.kind===200&&r===t.propertyName){var u=Wp(o),T=tn(u,r.escapedText);if(T)return T}else if(e.isMetaProperty(t)){var q=Wp(t),T=tn(q,r.escapedText);if(T)return T;if(t.keywordToken===103)return Rb(t).symbol}}switch(r.kind){case 79:case 80:case 205:case 160:if(!e.isThisInTypeQuery(r))return A6(r);case 108:var fe=e.getThisContainer(r,!1);if(e.isFunctionLike(fe)){var Ne=Ku(fe);if(Ne.thisParameter)return Ne.thisParameter}if(e.isInExpressionContext(r))return hn(r).symbol;case 191:return dh(r).symbol;case 106:return hn(r).symbol;case 134:var $e=r.parent;return $e&&$e.kind===170?$e.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===265||r.parent.kind===271)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return ko(r,r,i);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===r)return It(t);case 8:var Ze=e.isElementAccessExpression(t)?t.argumentExpression===r?ac(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(o)?Ua(o.objectType):void 0;return Ze&&tn(Ze,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return It(r.parent);case 199:return e.isLiteralImportTypeNode(r)?Xu(r.argument.literal,i):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?ak(r.parent).symbol:void 0;case 230:return hn(r).symbol;default:return}}}function PM(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var i=$_(r),t=ac(r.parent.expression),o=t.flags&1048576?t.types:[t];return e.flatMap(o,function(s){return e.filter(Js(s),function(u){return iu(i,u.keyType)})})}}function NM(r){if(r&&r.kind===295)return Ps(r.name,2208703)}function IM(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Jc(r.parent.parent,r):Ps(r.propertyName||r.name,2998271):Ps(r,2998271)}function Wp(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&16777216)return Oe;var i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),t=i&&Pn(It(i.class));if(e.isPartOfTypeNode(r)){var o=Ua(r);return t?Wc(o,t.thisType):o}if(e.isExpressionNode(r))return P6(r);if(t&&!i.isImplements){var s=e.firstOrUndefined(zc(t));return s?Wc(s,t.thisType):Oe}if(ky(r)){var u=It(r);return Io(u)}if(TM(r)){var u=Xu(r);return u?Io(u):Oe}if(e.isDeclaration(r)){var u=It(r);return Jt(u)}if(J(r)){var u=Xu(r);return u?Jt(u):Oe}if(e.isBindingPattern(r))return Zl(r.parent,!0,0)||Oe;if(k0(r)){var u=Xu(r);if(u){var T=Io(u);return ra(T)?Jt(u):T}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?ak(r.parent):Oe}function P0(r){if(e.Debug.assert(r.kind===204||r.kind===203),r.parent.kind===243){var i=Ty(r.parent);return Dd(r,i||Oe)}if(r.parent.kind===220){var i=ac(r.parent.right);return Dd(r,i||Oe)}if(r.parent.kind===294){var t=e.cast(r.parent.parent,e.isObjectLiteralExpression),o=P0(t)||Oe,s=e.indexOfNode(t.properties,r.parent);return vk(t,o,s)}var u=e.cast(r.parent,e.isArrayLiteralExpression),T=P0(u)||Oe,q=P_(65,T,Nr,r.parent)||Oe;return yk(u,T,u.elements.indexOf(r),q)}function wM(r){var i=P0(e.cast(r.parent.parent,e.isAssignmentPattern));return i&&tn(i,r.escapedText)}function P6(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),Vc(ac(r))}function OM(r){var i=It(r.parent);return e.isStatic(r)?Jt(i):Io(i)}function FM(r){var i=r.name;switch(i.kind){case 79:return Ou(e.idText(i));case 8:case 10:return Ou(i.text);case 161:var t=Zf(i);return ws(t,12288)?t:ki;default:return e.Debug.fail("Unsupported property name.")}}function gS(r){r=$(r);var i=e.createSymbolTable(_o(r)),t=za(r,0).length?an:za(r,1).length?Ke:void 0;return t&&e.forEach(_o(t),function(o){i.has(o.escapedName)||i.set(o.escapedName,o)}),df(i)}function mS(r){return e.typeHasCallOrConstructSignatures(r,Kr)}function N6(r){var i=MM(r);return i?e.flatMap(i,N6):[r]}function MM(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Ma(r).containingType.types,function(u){return tn(u,r.escapedName)});if(r.flags&33554432){var i=r,t=i.leftSpread,o=i.rightSpread,s=i.syntheticOrigin;return t?[t,o]:s?[s]:e.singleElementArray(LM(r))}}function LM(r){for(var i,t=r;t=Ma(t).target;)i=t;return i}function RM(r){if(e.isGeneratedIdentifier(r))return!1;var i=e.getParseTreeNode(r,e.isIdentifier);if(!i)return!1;var t=i.parent;if(!t)return!1;var o=(e.isPropertyAccessExpression(t)||e.isPropertyAssignment(t))&&t.name===i;return!o&&_v(i)===ci}function BM(r){var i=ko(r.parent,r);if(!i||e.isShorthandAmbientModuleSymbol(i))return!0;var t=ff(i);i=Fs(i);var o=Ma(i);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=t?!!(i.flags&111551):e.forEachEntry(al(i),s)),o.exportsSomeValue;function s(u){return u=Qo(u),u&&!!(u.flags&111551)}}function JM(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function jM(r,i){var t,o=e.getParseTreeNode(r,e.isIdentifier);if(o){var s=_v(o,JM(o));if(s){if(s.flags&1048576){var u=Wn(s.exportSymbol);if(!i&&u.flags&944&&!(u.flags&3))return;s=u}var T=Rs(s);if(T){if(T.flags&512&&((t=T.valueDeclaration)===null||t===void 0?void 0:t.kind)===303){var q=T.valueDeclaration,fe=e.getSourceFileOfNode(o),Ne=q!==fe;return Ne?void 0:q}return e.findAncestor(o.parent,function($e){return e.isModuleOrEnumDeclaration($e)&&It($e)===T})}}}}function UM(r){if(r.generatedImportReference)return r.generatedImportReference;var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(il(t,111551)&&!gu(t))return ju(t)}}function zM(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===291}function I6(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var i=Ma(r);if(i.isDeclarationWithCollidingName===void 0){var t=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(t)||zM(r)){var o=Da(r.valueDeclaration);if(os(t.parent,r.escapedName,111551,void 0,void 0,!1))i.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,u=e.isIterationStatement(t,!1),T=t.kind===234&&e.isIterationStatement(t.parent,!1);i.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(t)&&(!s||!u&&!T)}else i.isDeclarationWithCollidingName=!1}}return i.isDeclarationWithCollidingName}return!1}function WM(r){if(!e.isGeneratedIdentifier(r)){var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(t&&I6(t))return t.valueDeclaration}}}function qM(r){var i=e.getParseTreeNode(r,e.isDeclaration);if(i){var t=It(i);if(t)return I6(t)}return!1}function w6(r){switch(r.kind){case 264:return N0(It(r));case 266:case 267:case 269:case 274:var i=It(r);return!!i&&N0(i)&&!gu(i);case 271:var t=r.exportClause;return!!t&&(e.isNamespaceExport(t)||e.some(t.elements,w6));case 270:return r.expression&&r.expression.kind===79?N0(It(r)):!0}return!1}function VM(r){var i=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(i===void 0||i.parent.kind!==303||!e.isInternalModuleImportEqualsDeclaration(i))return!1;var t=N0(It(i));return t&&i.moduleReference&&!e.nodeIsMissing(i.moduleReference)}function N0(r){if(!r)return!1;var i=$c(zo(r));return i===hr?!0:!!(i.flags&111551)&&(e.shouldPreserveConstEnums(ye)||!fv(i))}function fv(r){return qb(r)||!!r.constEnumOnlyModule}function I0(r,i){if(_u(r)){var t=It(r),o=t&&Ma(t);if(o!=null&&o.referenced)return!0;var s=Ma(t).target;if(s&&e.getEffectiveModifierFlags(r)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(ye)||!fv(s)))return!0}return i?!!e.forEachChild(r,function(u){return I0(u,i)}):!1}function O6(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var i=It(r),t=Ip(i);return t.length>1||t.length===1&&t[0].declaration!==r}return!1}function F6(r){return!!ur&&!ud(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function KM(r){return ur&&ud(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function GM(r){return!!ur&&ud(r)&&!r.initializer}function HM(r){var i=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!i)return!1;var t=It(i);return!t||!(t.flags&16)?!1:!!e.forEachEntry(Ns(t),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function XM(r){var i=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!i)return e.emptyArray;var t=It(i);return t&&_o(Jt(t))||e.emptyArray}function xg(r){var i,t=r.id||0;return t<0||t>=lu.length?0:((i=lu[t])===null||i===void 0?void 0:i.flags)||0}function w0(r){return m6(r.parent),Da(r).enumMemberValue}function M6(r){switch(r.kind){case 297:case 205:case 206:return!0}return!1}function vS(r){if(r.kind===297)return w0(r);var i=Da(r).resolvedSymbol;if(i&&i.flags&8){var t=i.valueDeclaration;if(e.isEnumConst(t.parent))return w0(t)}}function yS(r){return!!(r.flags&524288)&&za(r,0).length>0}function QM(r,i){var t,o,s=e.getParseTreeNode(r,e.isEntityName);if(!s||i&&(i=e.getParseTreeNode(i),!i))return e.TypeReferenceSerializationKind.Unknown;var u=!1;if(e.isQualifiedName(s)){var T=Ps(e.getFirstIdentifier(s),111551,!0,!0,i);u=!!(!((t=T==null?void 0:T.declarations)===null||t===void 0)&&t.every(e.isTypeOnlyImportOrExportDeclaration))}var q=Ps(s,111551,!0,!0,i),fe=q&&q.flags&2097152?zo(q):q;u||(u=!!(!((o=q==null?void 0:q.declarations)===null||o===void 0)&&o.every(e.isTypeOnlyImportOrExportDeclaration)));var Ne=Ps(s,788968,!0,!1,i);if(fe&&fe===Ne){var $e=W1(!1);if($e&&fe===$e)return e.TypeReferenceSerializationKind.Promise;var Ze=Jt(fe);if(Ze&&Hd(Ze))return u?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Ne)return u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var lr=Io(Ne);return ra(lr)?u?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:lr.flags&3?e.TypeReferenceSerializationKind.ObjectType:ws(lr,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:ws(lr,528)?e.TypeReferenceSerializationKind.BooleanType:ws(lr,296)?e.TypeReferenceSerializationKind.NumberLikeType:ws(lr,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:ws(lr,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Ln(lr)?e.TypeReferenceSerializationKind.ArrayLikeType:ws(lr,12288)?e.TypeReferenceSerializationKind.ESSymbolType:yS(lr)?e.TypeReferenceSerializationKind.TypeWithCallSignature:_c(lr)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function YM(r,i,t,o,s){var u=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!u)return e.factory.createToken(130);var T=It(u),q=T&&!(T.flags&133120)?Lp(Jt(T)):Oe;return q.flags&8192&&q.symbol===T&&(t|=1048576),s&&(q=$f(q)),Cr.typeToTypeNode(q,i,t|1024,o)}function $M(r,i,t,o){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(130);var u=Ku(s);return Cr.typeToTypeNode(So(u),i,t|1024,o)}function ZM(r,i,t,o){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(130);var u=Hc(P6(s));return Cr.typeToTypeNode(u,i,t|1024,o)}function e9(r){return Lr.has(e.escapeLeadingUnderscores(r))}function _v(r,i){var t=Da(r).resolvedSymbol;if(t)return t;var o=r;if(i){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(o=b(s))}return os(o,r.escapedText,3257279,void 0,void 0,!0)}function r9(r){if(!e.isGeneratedIdentifier(r)){var i=e.getParseTreeNode(r,e.isIdentifier);if(i){var t=_v(i);if(t)return $c(t).valueDeclaration}}}function i9(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Mp(Jt(It(r))):!1}function t9(r,i,t){var o=r.flags&1024?Cr.symbolToExpression(r.symbol,111551,i,void 0,t):r===Rt?e.factory.createTrue():r===ri&&e.factory.createFalse();if(o)return o;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function a9(r,i){var t=Jt(It(r));return t9(t,r,i)}function L6(r){return r?(no(r),e.getSourceFileOfNode(r).localJsxFactory||lo):lo}function hS(r){if(r){var i=e.getSourceFileOfNode(r);if(i){if(i.localJsxFragmentFactory)return i.localJsxFragmentFactory;var t=i.pragmas.get("jsxfrag"),o=e.isArray(t)?t[0]:t;if(o)return i.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Se),i.localJsxFragmentFactory}}if(ye.jsxFragmentFactory)return e.parseIsolatedEntityName(ye.jsxFragmentFactory,Se)}function n9(){var r=y.getResolvedTypeReferenceDirectives(),i;return r&&(i=new e.Map,r.forEach(function(fe,Ne){if(!(!fe||!fe.resolvedFileName)){var $e=y.getSourceFile(fe.resolvedFileName);$e&&q($e,Ne)}})),{getReferencedExportContainer:jM,getReferencedImportDeclaration:UM,getReferencedDeclarationWithCollidingName:WM,isDeclarationWithCollidingName:qM,isValueAliasDeclaration:function(fe){var Ne=e.getParseTreeNode(fe);return Ne?w6(Ne):!0},hasGlobalName:e9,isReferencedAliasDeclaration:function(fe,Ne){var $e=e.getParseTreeNode(fe);return $e?I0($e,Ne):!0},getNodeCheckFlags:function(fe){var Ne=e.getParseTreeNode(fe);return Ne?xg(Ne):0},isTopLevelValueImportEqualsWithEntityName:VM,isDeclarationVisible:sc,isImplementationOfOverload:O6,isRequiredInitializedParameter:F6,isOptionalUninitializedParameterProperty:KM,isExpandoFunctionDeclaration:HM,getPropertiesOfContainerFunction:XM,createTypeOfDeclaration:YM,createReturnTypeOfSignatureDeclaration:$M,createTypeOfExpression:ZM,createLiteralConstValue:a9,isSymbolAccessible:mf,isEntityNameVisible:nl,getConstantValue:function(fe){var Ne=e.getParseTreeNode(fe,M6);return Ne?vS(Ne):void 0},collectLinkedAliases:Vf,getReferencedValueDeclaration:r9,getTypeReferenceSerializationKind:QM,isOptionalParameter:ud,moduleExportsSomeValue:BM,isArgumentsLocalBinding:RM,getExternalModuleFileFromDeclaration:function(fe){var Ne=e.getParseTreeNode(fe,e.hasPossibleExternalModuleReference);return Ne&&DS(Ne)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:u,isLiteralConstDeclaration:i9,isLateBound:function(fe){var Ne=e.getParseTreeNode(fe,e.isDeclaration),$e=Ne&&It(Ne);return!!($e&&e.getCheckFlags($e)&4096)},getJsxFactoryEntity:L6,getJsxFragmentFactoryEntity:hS,getAllAccessorDeclarations:function(fe){fe=e.getParseTreeNode(fe,e.isGetOrSetAccessorDeclaration);var Ne=fe.kind===172?171:172,$e=e.getDeclarationOfKind(It(fe),Ne),Ze=$e&&$e.pos<fe.pos?$e:fe,lr=$e&&$e.pos<fe.pos?fe:$e,yr=fe.kind===172?fe:$e,Zr=fe.kind===171?fe:$e;return{firstAccessor:Ze,secondAccessor:lr,setAccessor:yr,getAccessor:Zr}},getSymbolOfExternalModuleSpecifier:function(fe){return xc(fe,fe,void 0)},isBindingCapturedByNode:function(fe,Ne){var $e=e.getParseTreeNode(fe),Ze=e.getParseTreeNode(Ne);return!!$e&&!!Ze&&(e.isVariableDeclaration(Ze)||e.isBindingElement(Ze))&&gw($e,Ze)},getDeclarationStatementsForSourceFile:function(fe,Ne,$e,Ze){var lr=e.getParseTreeNode(fe);e.Debug.assert(lr&&lr.kind===303,"Non-sourcefile node passed into getDeclarationsForSourceFile");var yr=It(fe);return yr?yr.exports?Cr.symbolTableToDeclarationStatements(yr.exports,fe,Ne,$e,Ze):[]:fe.locals?Cr.symbolTableToDeclarationStatements(fe.locals,fe,Ne,$e,Ze):[]},isImportRequiredByAugmentation:t};function t(fe){var Ne=e.getSourceFileOfNode(fe);if(!Ne.symbol)return!1;var $e=DS(fe);if(!$e||$e===Ne)return!1;for(var Ze=al(Ne.symbol),lr=0,yr=e.arrayFrom(Ze.values());lr<yr.length;lr++){var Zr=yr[lr];if(Zr.mergeId){var ui=Wn(Zr);if(ui.declarations)for(var Ii=0,Fi=ui.declarations;Ii<Fi.length;Ii++){var Ri=Fi[Ii],Xi=e.getSourceFileOfNode(Ri);if(Xi===$e)return!0}}}return!1}function o(fe){return fe.parent&&fe.parent.kind===227&&fe.parent.parent&&fe.parent.parent.kind===290}function s(fe){if(!!i){var Ne=790504;(fe.kind===79&&im(fe)||fe.kind===205&&!o(fe))&&(Ne=1160127);var $e=Ps(fe,Ne,!0);return $e&&$e!==hr?u($e,Ne):void 0}}function u(fe,Ne){if(!(!i||!T(fe))){for(var $e,Ze=0,lr=fe.declarations;Ze<lr.length;Ze++){var yr=lr[Ze];if(yr.symbol&&yr.symbol.flags&Ne){var Zr=e.getSourceFileOfNode(yr),ui=i.get(Zr.path);if(ui)($e||($e=[])).push(ui);else return}}return $e}}function T(fe){if(!fe.declarations)return!1;for(var Ne=fe;;){var $e=Rs(Ne);if($e)Ne=$e;else break}if(Ne.valueDeclaration&&Ne.valueDeclaration.kind===303&&Ne.flags&512)return!1;for(var Ze=0,lr=fe.declarations;Ze<lr.length;Ze++){var yr=lr[Ze],Zr=e.getSourceFileOfNode(yr);if(i.has(Zr.path))return!0}return!1}function q(fe,Ne){if(!i.has(fe.path)){i.set(fe.path,Ne);for(var $e=0,Ze=fe.referencedFiles;$e<Ze.length;$e++){var lr=Ze[$e].fileName,yr=e.resolveTripleslashReference(lr,fe.fileName),Zr=y.getSourceFile(yr);Zr&&q(Zr,Ne)}}}}function DS(r){var i=r.kind===260?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),t=xc(i,i,void 0);if(!!t)return e.getDeclarationOfKind(t,303)}function o9(){for(var r=0,i=y.getSourceFiles();r<i.length;r++){var t=i[r];e.bindSourceFile(t,ye)}No=new e.Map;for(var o,s=0,u=y.getSourceFiles();s<u.length;s++){var t=u[s];if(!t.redirectInfo){if(!e.isExternalOrCommonJsModule(t)){var T=t.locals.get("globalThis");if(T!=null&&T.declarations)for(var q=0,fe=T.declarations;q<fe.length;q++){var Ne=fe[q];ya.add(e.createDiagnosticForNode(Ne,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Yc(Lr,t.locals)}if(t.jsGlobalAugmentations&&Yc(Lr,t.jsGlobalAugmentations),t.patternAmbientModules&&t.patternAmbientModules.length&&(bi=e.concatenate(bi,t.patternAmbientModules)),t.moduleAugmentations.length&&(o||(o=[])).push(t.moduleAugmentations),t.symbol&&t.symbol.globalExports){var $e=t.symbol.globalExports;$e.forEach(function(Ia,fa){Lr.has(fa)||Lr.set(fa,Ia)})}}}if(o)for(var Ze=0,lr=o;Ze<lr.length;Ze++)for(var yr=lr[Ze],Zr=0,ui=yr;Zr<ui.length;Zr++){var Ii=ui[Zr];!e.isGlobalScopeAugmentation(Ii.parent)||Vs(Ii)}if(Zu(Lr,Na,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Ma(Jr).type=Ur,Ma(ci).type=fc("IArguments",0,!0),Ma(hr).type=Oe,Ma(Rr).type=Uc(16,Rr),h=fc("Array",1,!0),Ht=fc("Object",0,!0),Ka=fc("Function",0,!0),an=dr&&fc("CallableFunction",0,!0)||Ka,Ke=dr&&fc("NewableFunction",0,!0)||Ka,Re=fc("String",0,!0),nr=fc("Number",0,!0),Gr=fc("Boolean",0,!0),_i=fc("RegExp",0,!0),Ki=tc(xe),Nt=tc(ze),Nt===tt&&(Nt=_s(void 0,he,e.emptyArray,e.emptyArray,e.emptyArray)),Ee=sx("ReadonlyArray",1)||h,ca=Ee?Fm(Ee,[xe]):Ki,Ei=sx("ThisType",1),o)for(var Fi=0,Ri=o;Fi<Ri.length;Fi++)for(var yr=Ri[Fi],Xi=0,ea=yr;Xi<ea.length;Xi++){var Ii=ea[Xi];e.isGlobalScopeAugmentation(Ii.parent)||Vs(Ii)}No.forEach(function(lt){var Ia=lt.firstFile,fa=lt.secondFile,Dn=lt.conflictingSymbols;if(Dn.size<8)Dn.forEach(function(Bn,Jn){for(var On=Bn.isBlockScoped,Ao=Bn.firstFileLocations,$i=Bn.secondFileLocations,Vi=On?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,Ot=0,Wa=Ao;Ot<Wa.length;Ot++){var Qt=Wa[Ot];tf(Qt,Vi,Jn,$i)}for(var Qa=0,En=$i;Qa<En.length;Qa++){var Qt=En[Qa];tf(Qt,Vi,Jn,Ao)}});else{var Ra=e.arrayFrom(Dn.keys()).join(", ");ya.add(e.addRelatedInfo(e.createDiagnosticForNode(Ia,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ra),e.createDiagnosticForNode(fa,e.Diagnostics.Conflicts_are_in_this_file))),ya.add(e.addRelatedInfo(e.createDiagnosticForNode(fa,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,Ra),e.createDiagnosticForNode(Ia,e.Diagnostics.Conflicts_are_in_this_file)))}}),No=void 0}function dc(r,i){if((m&i)!==i&&ye.importHelpers){var t=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(t,ye)&&!(r.flags&8388608)){var o=c9(t,r);if(o!==hr){for(var s=i&~m,u=1;u<=4194304;u<<=1)if(s&u){var T=s9(u),q=Pc(o.exports,e.escapeLeadingUnderscores(T),111551);q?u&524288?e.some(Ip(q),function(fe){return Lc(fe)>3})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,4):u&1048576?e.some(Ip(q),function(fe){return Lc(fe)>4})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,5):u&1024&&(e.some(Ip(q),function(fe){return Lc(fe)>2})||Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T,3)):Wr(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,T)}}m|=i}}}function s9(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function c9(r,i){return de||(de=ou(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,i)||hr),de}function Af(r){return u9(r)||l9(r)}function u9(r){if(!r.decorators)return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===171||r.kind===172){var i=e.getAllAccessorDeclarations(r.parent.members,r);if(i.firstAccessor.decorators&&r===i.secondAccessor)return Zs(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===168&&!e.nodeIsPresent(r.body)?Zs(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Zs(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function l9(r){var i=f9(r);if(i!==void 0)return i;for(var t,o,s,u,T=0,q=0,fe=r.modifiers;q<fe.length;q++){var Ne=fe[q];if(Ne.kind!==144){if(r.kind===165||r.kind===167)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(Ne.kind));if(r.kind===175&&(Ne.kind!==124||!e.isClassLike(r.parent)))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(Ne.kind))}switch(Ne.kind){case 85:if(r.kind!==259)return vt(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"override");if(T&2)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");T|=16384,u=Ne;break;case 123:case 122:case 121:var $e=p_(e.modifierToFlag(Ne.kind));if(T&28)return vt(Ne,e.Diagnostics.Accessibility_modifier_already_seen);if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"override");if(T&32)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"static");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"async");if(r.parent.kind===261||r.parent.kind===303)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,$e);if(T&128)return Ne.kind===121?vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,$e,"abstract"):vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,$e,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return vt(Ne,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);T|=e.modifierToFlag(Ne.kind);break;case 124:if(T&32)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"static");if(T&64)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(r.parent.kind===261||r.parent.kind===303)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");T|=32,t=Ne;break;case 144:if(T&64)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==166&&r.kind!==165&&r.kind!==175&&r.kind!==163)return vt(Ne,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);T|=64;break;case 93:if(T&1)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"export");if(T&2)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");T|=1;break;case 88:var Ze=r.parent.kind===303?r.parent:r.parent.parent;if(Ze.kind===260&&!e.isAmbientModule(Ze))return vt(Ne,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(T&1))return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");T|=512;break;case 135:if(T&2)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"declare");if(T&256)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&8388608&&r.parent.kind===261)return vt(Ne,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");T|=2,o=Ne;break;case 126:if(T&128)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==256&&r.kind!==179){if(r.kind!==168&&r.kind!==166&&r.kind!==171&&r.kind!==172)return vt(Ne,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===256&&e.hasSyntacticModifier(r.parent,128)))return vt(Ne,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(T&32)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(T&8)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(T&256&&s)return vt(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(T&16384)return vt(Ne,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");T|=128;break;case 131:if(T&256)return vt(Ne,e.Diagnostics._0_modifier_already_seen,"async");if(T&2||r.parent.flags&8388608)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===163)return vt(Ne,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(T&128)return vt(Ne,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");T|=256,s=Ne;break}}return r.kind===170?T&32?vt(t,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):T&16384?vt(u,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):T&256?vt(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===265||r.kind===264)&&T&2?vt(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===163&&T&16476&&e.isBindingPattern(r.name)?vt(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===163&&T&16476&&r.dotDotDotToken?vt(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):T&256?p9(r,s):!1}function f9(r){return r.modifiers?_9(r)?Zs(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function _9(r){switch(r.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(r.parent.kind===261||r.parent.kind===303)return!1;switch(r.kind){case 255:return bS(r,131);case 256:case 179:return bS(r,126);case 257:case 236:case 258:case 169:return!0;case 259:return bS(r,85);default:e.Debug.fail()}}}function bS(r,i){return r.modifiers.length>1||r.modifiers[0].kind!==i}function p9(r,i){switch(r.kind){case 168:case 255:case 212:case 213:return!1}return vt(i,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Wd(r,i){return i===void 0&&(i=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?qp(r[0],r.end-1,1,i):!1}function R6(r,i){if(r&&r.length===0){var t=r.pos-1,o=e.skipTrivia(i.text,r.end)+1;return qp(i,t,o-t,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function d9(r){for(var i=!1,t=r.length,o=0;o<t;o++){var s=r[o];if(s.dotDotDotToken){if(o!==t-1)return vt(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||Wd(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return vt(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return vt(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(ud(s)){if(i=!0,s.questionToken&&s.initializer)return vt(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(i&&!s.initializer)return vt(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function g9(r){return e.filter(r,function(i){return!!i.initializer||e.isBindingPattern(i.name)||e.isRestParameter(i)})}function m9(r){if(Se>=3){var i=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(i){var t=g9(r.parameters);if(e.length(t)){e.forEach(t,function(s){e.addRelatedInfo(Wr(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(i,e.Diagnostics.use_strict_directive_used_here))});var o=t.map(function(s,u){return u===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,qe([Wr(i,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o,!1)),!0}}}return!1}function O0(r){var i=e.getSourceFileOfNode(r);return Af(r)||R6(r.typeParameters,i)||d9(r.parameters)||y9(r,i)||e.isFunctionLikeDeclaration(r)&&m9(r)}function v9(r){var i=e.getSourceFileOfNode(r);return x9(r)||R6(r.typeParameters,i)}function y9(r,i){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&i&&e.fileExtensionIsOneOf(i.fileName,[".mts",".cts"])&&vt(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var t=r.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(i,t.pos).line,s=e.getLineAndCharacterOfPosition(i,t.end).line;return o!==s&&vt(t,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function h9(r){var i=r.parameters[0];if(r.parameters.length!==1)return vt(i?i.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(Wd(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),i.dotDotDotToken)return vt(i.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(i))return vt(i.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(i.questionToken)return vt(i.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(i.initializer)return vt(i.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!i.type)return vt(i.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var t=Ua(i.type);return dg(t,function(o){return!!(o.flags&8576)})||Rm(t)?vt(i.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):kf(t,nh)?r.type?!1:vt(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):vt(i.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function D9(r){return Af(r)||h9(r)}function b9(r,i){if(i&&i.length===0){var t=e.getSourceFileOfNode(r),o=i.pos-1,s=e.skipTrivia(t.text,i.end)+1;return qp(t,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Ay(r,i){return Wd(i)||b9(r,i)}function S9(r){return r.questionDotToken||r.flags&32?vt(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function B6(r){var i=r.types;if(Wd(i))return!0;if(i&&i.length===0){var t=e.tokenToString(r.token);return qp(r,i.pos,0,e.Diagnostics._0_list_cannot_be_empty,t)}return e.some(i,T9)}function T9(r){return Ay(r,r.typeArguments)}function x9(r){var i=!1,t=!1;if(!Af(r)&&r.heritageClauses)for(var o=0,s=r.heritageClauses;o<s.length;o++){var u=s[o];if(u.token===94){if(i)return Zs(u,e.Diagnostics.extends_clause_already_seen);if(t)return Zs(u,e.Diagnostics.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Zs(u.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);i=!0}else{if(e.Debug.assert(u.token===117),t)return Zs(u,e.Diagnostics.implements_clause_already_seen);t=!0}B6(u)}}function E9(r){var i=!1;if(r.heritageClauses)for(var t=0,o=r.heritageClauses;t<o.length;t++){var s=o[t];if(s.token===94){if(i)return Zs(s,e.Diagnostics.extends_clause_already_seen);i=!0}else return e.Debug.assert(s.token===117),Zs(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);B6(s)}return!1}function F0(r){if(r.kind!==161)return!1;var i=r;return i.expression.kind===220&&i.expression.operatorToken.kind===27?vt(i.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function SS(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===255||r.kind===212||r.kind===168),r.flags&8388608)return vt(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return vt(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function J6(r,i){return!!r&&vt(r,i)}function j6(r,i){return!!r&&vt(r,i)}function C9(r,i){for(var t=new e.Map,o=0,s=r.properties;o<s.length;o++){var u=s[o];if(u.kind===296){if(i){var T=e.skipParentheses(u.expression);if(e.isArrayLiteralExpression(T)||e.isObjectLiteralExpression(T))return vt(u.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var q=u.name;if(q.kind===161&&F0(q),u.kind===295&&!i&&u.objectAssignmentInitializer&&vt(u.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),q.kind===80&&vt(q,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),u.modifiers)for(var fe=0,Ne=u.modifiers;fe<Ne.length;fe++){var $e=Ne[fe];($e.kind!==131||u.kind!==168)&&vt($e,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode($e))}var Ze=void 0;switch(u.kind){case 295:j6(u.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:J6(u.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),q.kind===8&&ES(q),Ze=4;break;case 168:Ze=8;break;case 171:Ze=1;break;case 172:Ze=2;break;default:throw e.Debug.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!i){var lr=e.getPropertyNameForPropertyNameNode(q);if(lr===void 0)continue;var yr=t.get(lr);if(!yr)t.set(lr,Ze);else if(Ze&8&&yr&8)vt(q,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(q));else if(Ze&4&&yr&4)vt(q,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(q));else if(Ze&3&&yr&3)if(yr!==3&&Ze!==yr)t.set(lr,Ze|yr);else return vt(q,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return vt(q,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function k9(r){A9(r.tagName),Ay(r,r.typeArguments);for(var i=new e.Map,t=0,o=r.attributes.properties;t<o.length;t++){var s=o[t];if(s.kind!==286){var u=s.name,T=s.initializer;if(!i.get(u.escapedText))i.set(u.escapedText,!0);else return vt(u,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(T&&T.kind===287&&!T.expression)return vt(T,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function A9(r){if(e.isPropertyAccessExpression(r)){var i=r;do{var t=s(i.name);if(t)return t;i=i.expression}while(e.isPropertyAccessExpression(i));var o=s(i);if(o)return o}function s(u){if(e.isIdentifier(u)&&e.idText(u).indexOf(":")!==-1)return vt(u,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function P9(r){if(r.expression&&e.isCommaSequence(r.expression))return vt(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function U6(r){if(Pf(r))return!0;if(r.kind===243&&r.awaitModifier&&!(r.flags&32768)){var i=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r))bd(i)||(e.isEffectiveExternalModule(i,ye)||ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(ge!==e.ModuleKind.ES2022&&ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.System&&!(ge===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Se<4)&&ya.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!bd(i)){var t=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),o=e.getContainingFunction(r);if(o&&o.kind!==170){e.Debug.assert((e.getFunctionFlags(o)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(t,s)}return ya.add(t),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return vt(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===254){var u=r.initializer;if(!xS(u)){var T=u.declarations;if(!T.length)return!1;if(T.length>1){var t=r.kind===242?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Zs(u.declarations[1],t)}var q=T[0];if(q.initializer){var t=r.kind===242?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return vt(q.name,t)}if(q.type){var t=r.kind===242?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return vt(q,t)}}}return!1}function N9(r){if(!(r.flags&8388608)&&r.parent.kind!==181&&r.parent.kind!==257){if(Se<1)return vt(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,128))return qp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,128))return vt(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===181||r.parent.kind===257)return vt(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return vt(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!I9(r))return vt(r.name,r.kind===171?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===172){if(r.type)return vt(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var i=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(i.dotDotDotToken)return vt(i.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(i.questionToken)return vt(i.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(i.initializer)return vt(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function I9(r){return TS(r)||r.parameters.length===(r.kind===171?0:1)}function TS(r){if(r.parameters.length===(r.kind===171?1:2))return e.getThisParameter(r)}function w9(r){if(r.operator===153){if(r.type.kind!==150)return vt(r.type,e.Diagnostics._0_expected,e.tokenToString(150));var i=e.walkUpParenthesizedTypes(r.parent);switch(e.isInJSFile(i)&&e.isJSDocTypeExpression(i)&&(i=i.parent,e.isJSDocTypeTag(i)&&(i=i.parent.parent)),i.kind){case 253:var t=i;if(t.name.kind!==79)return vt(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(t))return vt(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(t.parent.flags&2))return vt(i.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(i)||!e.hasEffectiveReadonlyModifier(i))return vt(i.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(i,64))return vt(i.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return vt(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===144&&r.type.kind!==182&&r.type.kind!==183)return Zs(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}function mm(r,i){if(jy(r))return vt(r,i)}function z6(r){if(O0(r))return!0;if(r.kind===168){if(r.parent.kind===204){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===131))return Zs(r,e.Diagnostics.Modifiers_cannot_appear_here);if(J6(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(j6(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return qp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(SS(r))return!0}if(e.isClassLike(r.parent)){if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&8388608)return mm(r.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===168&&!r.body)return mm(r.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===257)return mm(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===181)return mm(r.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function O9(r){for(var i=r;i;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(i))return vt(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(i.kind){case 249:if(r.label&&i.label.escapedText===r.label.escapedText){var t=r.kind===244&&!e.isIterationStatement(i.statement,!0);return t?vt(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 248:if(r.kind===245&&!r.label)return!1;break;default:if(e.isIterationStatement(i,!1)&&!r.label)return!1;break}i=i.parent}if(r.label){var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return vt(r,o)}else{var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return vt(r,o)}}function F9(r){if(r.dotDotDotToken){var i=r.parent.elements;if(r!==e.last(i))return vt(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Wd(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return vt(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return qp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function W6(r){return e.isStringOrNumericLiteralLike(r)||r.kind===218&&r.operator===40&&r.operand.kind===8}function M9(r){return r.kind===9||r.kind===218&&r.operator===40&&r.operand.kind===9}function L9(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&W6(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(js(r).flags&1024)}function q6(r){var i=r.initializer;if(i){var t=!(W6(i)||L9(i)||i.kind===110||i.kind===95||M9(i)),o=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(o&&!r.type){if(t)return vt(i,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return vt(i,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||t)return vt(i,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function R9(r){if(r.parent.parent.kind!==242&&r.parent.parent.kind!==243){if(r.flags&8388608)q6(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return vt(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return vt(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==236||!r.type||r.initializer||r.flags&8388608)){var i=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vt(r.exclamationToken,i)}(ge<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&ge!==e.ModuleKind.System&&!(r.parent.parent.flags&8388608)&&e.hasSyntacticModifier(r.parent.parent,1)&&V6(r.name);var t=e.isLet(r)||e.isVarConst(r);return t&&K6(r.name)}function V6(r){if(r.kind===79){if(e.idText(r)==="__esModule")return j9("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var i=r.elements,t=0,o=i;t<o.length;t++){var s=o[t];if(!e.isOmittedExpression(s))return V6(s.name)}return!1}function K6(r){if(r.kind===79){if(r.originalKeywordKind===119)return vt(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var i=r.elements,t=0,o=i;t<o.length;t++){var s=o[t];e.isOmittedExpression(s)||K6(s.name)}return!1}function xS(r){var i=r.declarations;return Wd(r.declarations)?!0:r.declarations.length?!1:qp(r,i.pos,i.end-i.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function G6(r){switch(r.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return G6(r.parent)}return!0}function B9(r){if(!G6(r.parent)){if(e.isLet(r.declarationList))return vt(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return vt(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function J9(r){var i=r.name.escapedText;switch(r.keywordToken){case 103:if(i!=="target")return vt(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(i!=="meta")return vt(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function bd(r){return r.parseDiagnostics.length>0}function Zs(r,i,t,o,s){var u=e.getSourceFileOfNode(r);if(!bd(u)){var T=e.getSpanOfTokenAtPosition(u,r.pos);return ya.add(e.createFileDiagnostic(u,T.start,T.length,i,t,o,s)),!0}return!1}function qp(r,i,t,o,s,u,T){var q=e.getSourceFileOfNode(r);return bd(q)?!1:(ya.add(e.createFileDiagnostic(q,i,t,o,s,u,T)),!0)}function j9(r,i,t,o,s,u){var T=e.getSourceFileOfNode(i);return bd(T)?!1:(Jo(r,i,t,o,s,u),!0)}function vt(r,i,t,o,s){var u=e.getSourceFileOfNode(r);return bd(u)?!1:(ya.add(e.createDiagnosticForNode(r,i,t,o,s)),!0)}function U9(r){var i=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,t=r.typeParameters||i&&e.firstOrUndefined(i);if(t){var o=t.pos===t.end?t.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,t.pos);return qp(r,o,t.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function z9(r){var i=e.getEffectiveReturnTypeNode(r);if(i)return vt(i,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function W9(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return vt(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return vt(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(mm(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Se<2&&e.isPrivateIdentifier(r.name))return vt(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(r.parent.kind===257){if(mm(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(r.initializer)return vt(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(mm(r.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(r.initializer)return vt(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&8388608&&q6(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&8388608||e.isStatic(r)||e.hasAbstractModifier(r))){var i=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return vt(r.exclamationToken,i)}}function q9(r){return r.kind===257||r.kind===258||r.kind===265||r.kind===264||r.kind===271||r.kind===270||r.kind===263||e.hasSyntacticModifier(r,515)?!1:Zs(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function V9(r){for(var i=0,t=r.statements;i<t.length;i++){var o=t[i];if((e.isDeclaration(o)||o.kind===236)&&q9(o))return!0}return!1}function K9(r){return!!(r.flags&8388608)&&V9(r)}function Pf(r){if(r.flags&8388608){var i=Da(r);if(!i.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Da(r).hasReportedStatementInAmbientContext=Zs(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===234||r.parent.kind===261||r.parent.kind===303){var t=Da(r.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Zs(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ES(r){if(r.numericLiteralFlags&32){var i=void 0;if(Se>=1?i=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,195)?i=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,297)&&(i=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),i){var t=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,o=(t?"-":"")+"0o"+r.text;return vt(t?r.parent:r,i,o)}}return G9(r),!1}function G9(r){var i=e.getTextOfNode(r).indexOf(".")!==-1,t=r.numericLiteralFlags&16;if(!(i||t)){var o=+r.text;o<=Math.pow(2,53)-1||Ws(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function H9(r){var i=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!i&&Se<7&&vt(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function X9(r,i,t,o,s){var u=e.getSourceFileOfNode(r);if(!bd(u)){var T=e.getSpanOfTokenAtPosition(u,r.pos);return ya.add(e.createFileDiagnostic(u,e.textSpanEnd(T),0,i,t,o,s)),!0}return!1}function Q9(){return xr||(xr=[],Lr.forEach(function(r,i){a.test(i)&&xr.push(r)})),xr}function Y9(r){var i;return r.isTypeOnly&&r.name&&r.namedBindings?vt(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((i=r.namedBindings)===null||i===void 0?void 0:i.kind)===268?H6(r.namedBindings):!1}function H6(r){return!!e.forEach(r.elements,function(i){if(i.isTypeOnly)return Zs(i,i.kind===269?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function $9(r){if(ge===e.ModuleKind.ES2015)return vt(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(r.typeArguments)return vt(r,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var i=r.arguments;if(ge!==e.ModuleKind.ESNext&&ge!==e.ModuleKind.NodeNext&&(Wd(i),i.length>1)){var t=i[1];return vt(t,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext)}if(i.length===0||i.length>2)return vt(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var o=e.find(i,e.isSpreadElement);return o?vt(o,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Z9(r,i){var t=e.getObjectFlags(r);if(t&20&&i.flags&1048576)return e.find(i.types,function(o){if(o.flags&524288){var s=t&e.getObjectFlags(o);if(s&4)return r.target===o.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===o.aliasSymbol}return!1})}function eL(r,i){if(e.getObjectFlags(r)&128&&dg(i,ap))return e.find(i.types,function(t){return!ap(t)})}function rL(r,i){var t=0,o=za(r,t).length>0||(t=1,za(r,t).length>0);if(o)return e.find(i.types,function(s){return za(s,t).length>0})}function iL(r,i){var t;if(!(r.flags&406978556))for(var o=0,s=0,u=i.types;s<u.length;s++){var T=u[s];if(!(T.flags&406978556)){var q=To([Ll(r),Ll(T)]);if(q.flags&4194304)return T;if(Rl(q)||q.flags&1048576){var fe=q.flags&1048576?e.countWhere(q.types,Rl):1;fe>=o&&(t=T,o=fe)}}}return t}function tL(r){if(ls(r,67108864)){var i=pc(r,function(t){return!(t.flags&131068)});if(!(i.flags&131072))return i}return r}function X6(r,i,t,o){if(i.flags&1048576&&r.flags&2621440){var s=PE(i,r);if(s)return s;var u=_o(r);if(u){var T=AE(u,i);if(T)return xD(i,e.map(T,function(q){return[function(){return Jt(q)},q.escapedName]}),t,void 0,o)}}}}e.createTypeChecker=D;function l(y){return!e.isAccessor(y)}function _(y){return y.kind!==255&&y.kind!==168||!!y.body}function J(y){switch(y.parent.kind){case 269:case 274:return e.isIdentifier(y);default:return e.isDeclarationName(y)}}var w;(function(y){y.JSX="JSX",y.IntrinsicElements="IntrinsicElements",y.ElementClass="ElementClass",y.ElementAttributesPropertyNameContainer="ElementAttributesProperty",y.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",y.Element="Element",y.IntrinsicAttributes="IntrinsicAttributes",y.IntrinsicClassAttributes="IntrinsicClassAttributes",y.LibraryManagedAttributes="LibraryManagedAttributes"})(w||(w={}));function j(y){switch(y){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function U(y){return!!(y.flags&1)}e.signatureHasRestParameter=U;function z(y){return!!(y.flags&2)}e.signatureHasLiteralTypes=z})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G,E){if(p===void 0||C===void 0)return p;var ue=C(p);if(ue===p)return p;var B;if(ue!==void 0)return e.isArray(ue)?B=(E||se)(ue):B=ue,e.Debug.assertNode(B,G),B}e.visitNode=a;function O(p,C,G,E,ue){if(p===void 0||C===void 0)return p;var B,re=p.length;(E===void 0||E<0)&&(E=0),(ue===void 0||ue>re-E)&&(ue=re-E);var M,x=-1,ie=-1;(E>0||ue<re)&&(B=[],M=p.hasTrailingComma&&E+ue===re);for(var _e=0;_e<ue;_e++){var Y=p[_e+E],Z=Y!==void 0?C(Y):void 0;if((B!==void 0||Z===void 0||Z!==Y)&&(B===void 0&&(B=p.slice(0,_e),M=p.hasTrailingComma,x=p.pos,ie=p.end),Z))if(e.isArray(Z))for(var k=0,I=Z;k<I.length;k++){var ne=I[k];e.Debug.assertNode(ne,G),B.push(ne)}else e.Debug.assertNode(Z,G),B.push(Z)}if(B){var ee=e.factory.createNodeArray(B,M);return e.setTextRangePosEnd(ee,x,ie),ee}return p}e.visitNodes=O;function L(p,C,G,E,ue,B){return B===void 0&&(B=O),G.startLexicalEnvironment(),p=B(p,C,e.isStatement,E),ue&&(p=G.factory.ensureUseStrict(p)),e.factory.mergeLexicalEnvironment(p,G.endLexicalEnvironment())}e.visitLexicalEnvironment=L;function W(p,C,G,E){E===void 0&&(E=O);var ue;return G.startLexicalEnvironment(),p&&(G.setLexicalEnvironmentFlags(1,!0),ue=E(p,C,e.isParameterDeclaration),G.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget(G.getCompilerOptions())>=2&&(ue=N(ue,G)),G.setLexicalEnvironmentFlags(1,!1)),G.suspendLexicalEnvironment(),ue}e.visitParameterList=W;function N(p,C){for(var G,E=0;E<p.length;E++){var ue=p[E],B=Q(ue,C);(G||B!==ue)&&(G||(G=p.slice(0,E)),G[E]=B)}return G?e.setTextRange(C.factory.createNodeArray(G,p.hasTrailingComma),p):p}function Q(p,C){return p.dotDotDotToken?p:e.isBindingPattern(p.name)?pe(p,C):p.initializer?F(p,p.name,p.initializer,C):p}function pe(p,C){var G=C.factory;return C.addInitializationStatement(G.createVariableStatement(void 0,G.createVariableDeclarationList([G.createVariableDeclaration(p.name,void 0,p.type,p.initializer?G.createConditionalExpression(G.createStrictEquality(G.getGeneratedNameForNode(p),G.createVoidZero()),void 0,p.initializer,void 0,G.getGeneratedNameForNode(p)):G.getGeneratedNameForNode(p))]))),G.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,G.getGeneratedNameForNode(p),p.questionToken,p.type,void 0)}function F(p,C,G,E){var ue=E.factory;return E.addInitializationStatement(ue.createIfStatement(ue.createTypeCheck(ue.cloneNode(C),"undefined"),e.setEmitFlags(e.setTextRange(ue.createBlock([ue.createExpressionStatement(e.setEmitFlags(e.setTextRange(ue.createAssignment(e.setEmitFlags(ue.cloneNode(C),48),e.setEmitFlags(G,48|e.getEmitFlags(G)|1536)),p),1536))]),p),1953))),ue.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type,void 0)}function g(p,C,G,E){E===void 0&&(E=a),G.resumeLexicalEnvironment();var ue=E(p,C,e.isConciseBody),B=G.endLexicalEnvironment();if(e.some(B)){if(!ue)return G.factory.createBlock(B);var re=G.factory.converters.convertToFunctionBlock(ue),M=e.factory.mergeLexicalEnvironment(re.statements,B);return G.factory.updateBlock(re,M)}return ue}e.visitFunctionBody=g;function S(p,C,G){G.startBlockScope();var E=a(p,C,e.isStatement,G.factory.liftToBlock),ue=G.endBlockScope();return e.some(ue)?e.isBlock(E)?(ue.push.apply(ue,E.statements),G.factory.updateBlock(E,ue)):(ue.push(E),G.factory.createBlock(ue)):E}e.visitIterationBody=S;function H(p,C,G,E,ue,B){if(E===void 0&&(E=O),B===void 0&&(B=a),p!==void 0){var re=p.kind;if(re>0&&re<=159||re===191)return p;var M=G.factory;switch(re){case 79:return e.Debug.type(p),M.updateIdentifier(p,E(p.typeArguments,C,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(p),M.updateQualifiedName(p,B(p.left,C,e.isEntityName),B(p.right,C,e.isIdentifier));case 161:return e.Debug.type(p),M.updateComputedPropertyName(p,B(p.expression,C,e.isExpression));case 162:return e.Debug.type(p),M.updateTypeParameterDeclaration(p,B(p.name,C,e.isIdentifier),B(p.constraint,C,e.isTypeNode),B(p.default,C,e.isTypeNode));case 163:return e.Debug.type(p),M.updateParameterDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.dotDotDotToken,ue,e.isDotDotDotToken),B(p.name,C,e.isBindingName),B(p.questionToken,ue,e.isQuestionToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 164:return e.Debug.type(p),M.updateDecorator(p,B(p.expression,C,e.isExpression));case 165:return e.Debug.type(p),M.updatePropertySignature(p,E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isToken),B(p.type,C,e.isTypeNode));case 166:return e.Debug.type(p),M.updatePropertyDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken||p.exclamationToken,ue,e.isQuestionOrExclamationToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 167:return e.Debug.type(p),M.updateMethodSignature(p,E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isQuestionToken),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 168:return e.Debug.type(p),M.updateMethodDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isPropertyName),B(p.questionToken,ue,e.isQuestionToken),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 170:return e.Debug.type(p),M.updateConstructorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),W(p.parameters,C,G,E),g(p.body,C,G,B));case 171:return e.Debug.type(p),M.updateGetAccessorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 172:return e.Debug.type(p),M.updateSetAccessorDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isPropertyName),W(p.parameters,C,G,E),g(p.body,C,G,B));case 169:return e.Debug.type(p),G.startLexicalEnvironment(),G.suspendLexicalEnvironment(),M.updateClassStaticBlockDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),g(p.body,C,G,B));case 173:return e.Debug.type(p),M.updateCallSignature(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 174:return e.Debug.type(p),M.updateConstructSignature(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 175:return e.Debug.type(p),M.updateIndexSignature(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 176:return e.Debug.type(p),M.updateTypePredicateNode(p,B(p.assertsModifier,C,e.isAssertsKeyword),B(p.parameterName,C,e.isIdentifierOrThisTypeNode),B(p.type,C,e.isTypeNode));case 177:return e.Debug.type(p),M.updateTypeReferenceNode(p,B(p.typeName,C,e.isEntityName),E(p.typeArguments,C,e.isTypeNode));case 178:return e.Debug.type(p),M.updateFunctionTypeNode(p,E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 179:return e.Debug.type(p),M.updateConstructorTypeNode(p,E(p.modifiers,C,e.isModifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.parameters,C,e.isParameterDeclaration),B(p.type,C,e.isTypeNode));case 180:return e.Debug.type(p),M.updateTypeQueryNode(p,B(p.exprName,C,e.isEntityName));case 181:return e.Debug.type(p),M.updateTypeLiteralNode(p,E(p.members,C,e.isTypeElement));case 182:return e.Debug.type(p),M.updateArrayTypeNode(p,B(p.elementType,C,e.isTypeNode));case 183:return e.Debug.type(p),M.updateTupleTypeNode(p,E(p.elements,C,e.isTypeNode));case 184:return e.Debug.type(p),M.updateOptionalTypeNode(p,B(p.type,C,e.isTypeNode));case 185:return e.Debug.type(p),M.updateRestTypeNode(p,B(p.type,C,e.isTypeNode));case 186:return e.Debug.type(p),M.updateUnionTypeNode(p,E(p.types,C,e.isTypeNode));case 187:return e.Debug.type(p),M.updateIntersectionTypeNode(p,E(p.types,C,e.isTypeNode));case 188:return e.Debug.type(p),M.updateConditionalTypeNode(p,B(p.checkType,C,e.isTypeNode),B(p.extendsType,C,e.isTypeNode),B(p.trueType,C,e.isTypeNode),B(p.falseType,C,e.isTypeNode));case 189:return e.Debug.type(p),M.updateInferTypeNode(p,B(p.typeParameter,C,e.isTypeParameterDeclaration));case 199:return e.Debug.type(p),M.updateImportTypeNode(p,B(p.argument,C,e.isTypeNode),B(p.qualifier,C,e.isEntityName),O(p.typeArguments,C,e.isTypeNode),p.isTypeOf);case 196:return e.Debug.type(p),M.updateNamedTupleMember(p,a(p.dotDotDotToken,C,e.isDotDotDotToken),a(p.name,C,e.isIdentifier),a(p.questionToken,C,e.isQuestionToken),a(p.type,C,e.isTypeNode));case 190:return e.Debug.type(p),M.updateParenthesizedType(p,B(p.type,C,e.isTypeNode));case 192:return e.Debug.type(p),M.updateTypeOperatorNode(p,B(p.type,C,e.isTypeNode));case 193:return e.Debug.type(p),M.updateIndexedAccessTypeNode(p,B(p.objectType,C,e.isTypeNode),B(p.indexType,C,e.isTypeNode));case 194:return e.Debug.type(p),M.updateMappedTypeNode(p,B(p.readonlyToken,ue,e.isReadonlyKeywordOrPlusOrMinusToken),B(p.typeParameter,C,e.isTypeParameterDeclaration),B(p.nameType,C,e.isTypeNode),B(p.questionToken,ue,e.isQuestionOrPlusOrMinusToken),B(p.type,C,e.isTypeNode),E(p.members,C,e.isTypeElement));case 195:return e.Debug.type(p),M.updateLiteralTypeNode(p,B(p.literal,C,e.isExpression));case 197:return e.Debug.type(p),M.updateTemplateLiteralType(p,B(p.head,C,e.isTemplateHead),E(p.templateSpans,C,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(p),M.updateTemplateLiteralTypeSpan(p,B(p.type,C,e.isTypeNode),B(p.literal,C,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(p),M.updateObjectBindingPattern(p,E(p.elements,C,e.isBindingElement));case 201:return e.Debug.type(p),M.updateArrayBindingPattern(p,E(p.elements,C,e.isArrayBindingElement));case 202:return e.Debug.type(p),M.updateBindingElement(p,B(p.dotDotDotToken,ue,e.isDotDotDotToken),B(p.propertyName,C,e.isPropertyName),B(p.name,C,e.isBindingName),B(p.initializer,C,e.isExpression));case 203:return e.Debug.type(p),M.updateArrayLiteralExpression(p,E(p.elements,C,e.isExpression));case 204:return e.Debug.type(p),M.updateObjectLiteralExpression(p,E(p.properties,C,e.isObjectLiteralElementLike));case 205:return p.flags&32?(e.Debug.type(p),M.updatePropertyAccessChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),B(p.name,C,e.isMemberName))):(e.Debug.type(p),M.updatePropertyAccessExpression(p,B(p.expression,C,e.isExpression),B(p.name,C,e.isMemberName)));case 206:return p.flags&32?(e.Debug.type(p),M.updateElementAccessChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),B(p.argumentExpression,C,e.isExpression))):(e.Debug.type(p),M.updateElementAccessExpression(p,B(p.expression,C,e.isExpression),B(p.argumentExpression,C,e.isExpression)));case 207:return p.flags&32?(e.Debug.type(p),M.updateCallChain(p,B(p.expression,C,e.isExpression),B(p.questionDotToken,ue,e.isQuestionDotToken),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression))):(e.Debug.type(p),M.updateCallExpression(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression)));case 208:return e.Debug.type(p),M.updateNewExpression(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode),E(p.arguments,C,e.isExpression));case 209:return e.Debug.type(p),M.updateTaggedTemplateExpression(p,B(p.tag,C,e.isExpression),O(p.typeArguments,C,e.isTypeNode),B(p.template,C,e.isTemplateLiteral));case 210:return e.Debug.type(p),M.updateTypeAssertion(p,B(p.type,C,e.isTypeNode),B(p.expression,C,e.isExpression));case 211:return e.Debug.type(p),M.updateParenthesizedExpression(p,B(p.expression,C,e.isExpression));case 212:return e.Debug.type(p),M.updateFunctionExpression(p,E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 213:return e.Debug.type(p),M.updateArrowFunction(p,E(p.modifiers,C,e.isModifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),B(p.equalsGreaterThanToken,ue,e.isEqualsGreaterThanToken),g(p.body,C,G,B));case 214:return e.Debug.type(p),M.updateDeleteExpression(p,B(p.expression,C,e.isExpression));case 215:return e.Debug.type(p),M.updateTypeOfExpression(p,B(p.expression,C,e.isExpression));case 216:return e.Debug.type(p),M.updateVoidExpression(p,B(p.expression,C,e.isExpression));case 217:return e.Debug.type(p),M.updateAwaitExpression(p,B(p.expression,C,e.isExpression));case 218:return e.Debug.type(p),M.updatePrefixUnaryExpression(p,B(p.operand,C,e.isExpression));case 219:return e.Debug.type(p),M.updatePostfixUnaryExpression(p,B(p.operand,C,e.isExpression));case 220:return e.Debug.type(p),M.updateBinaryExpression(p,B(p.left,C,e.isExpression),B(p.operatorToken,ue,e.isBinaryOperatorToken),B(p.right,C,e.isExpression));case 221:return e.Debug.type(p),M.updateConditionalExpression(p,B(p.condition,C,e.isExpression),B(p.questionToken,ue,e.isQuestionToken),B(p.whenTrue,C,e.isExpression),B(p.colonToken,ue,e.isColonToken),B(p.whenFalse,C,e.isExpression));case 222:return e.Debug.type(p),M.updateTemplateExpression(p,B(p.head,C,e.isTemplateHead),E(p.templateSpans,C,e.isTemplateSpan));case 223:return e.Debug.type(p),M.updateYieldExpression(p,B(p.asteriskToken,ue,e.isAsteriskToken),B(p.expression,C,e.isExpression));case 224:return e.Debug.type(p),M.updateSpreadElement(p,B(p.expression,C,e.isExpression));case 225:return e.Debug.type(p),M.updateClassExpression(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isClassElement));case 227:return e.Debug.type(p),M.updateExpressionWithTypeArguments(p,B(p.expression,C,e.isExpression),E(p.typeArguments,C,e.isTypeNode));case 228:return e.Debug.type(p),M.updateAsExpression(p,B(p.expression,C,e.isExpression),B(p.type,C,e.isTypeNode));case 229:return p.flags&32?(e.Debug.type(p),M.updateNonNullChain(p,B(p.expression,C,e.isExpression))):(e.Debug.type(p),M.updateNonNullExpression(p,B(p.expression,C,e.isExpression)));case 230:return e.Debug.type(p),M.updateMetaProperty(p,B(p.name,C,e.isIdentifier));case 232:return e.Debug.type(p),M.updateTemplateSpan(p,B(p.expression,C,e.isExpression),B(p.literal,C,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(p),M.updateBlock(p,E(p.statements,C,e.isStatement));case 236:return e.Debug.type(p),M.updateVariableStatement(p,E(p.modifiers,C,e.isModifier),B(p.declarationList,C,e.isVariableDeclarationList));case 237:return e.Debug.type(p),M.updateExpressionStatement(p,B(p.expression,C,e.isExpression));case 238:return e.Debug.type(p),M.updateIfStatement(p,B(p.expression,C,e.isExpression),B(p.thenStatement,C,e.isStatement,M.liftToBlock),B(p.elseStatement,C,e.isStatement,M.liftToBlock));case 239:return e.Debug.type(p),M.updateDoStatement(p,S(p.statement,C,G),B(p.expression,C,e.isExpression));case 240:return e.Debug.type(p),M.updateWhileStatement(p,B(p.expression,C,e.isExpression),S(p.statement,C,G));case 241:return e.Debug.type(p),M.updateForStatement(p,B(p.initializer,C,e.isForInitializer),B(p.condition,C,e.isExpression),B(p.incrementor,C,e.isExpression),S(p.statement,C,G));case 242:return e.Debug.type(p),M.updateForInStatement(p,B(p.initializer,C,e.isForInitializer),B(p.expression,C,e.isExpression),S(p.statement,C,G));case 243:return e.Debug.type(p),M.updateForOfStatement(p,B(p.awaitModifier,ue,e.isAwaitKeyword),B(p.initializer,C,e.isForInitializer),B(p.expression,C,e.isExpression),S(p.statement,C,G));case 244:return e.Debug.type(p),M.updateContinueStatement(p,B(p.label,C,e.isIdentifier));case 245:return e.Debug.type(p),M.updateBreakStatement(p,B(p.label,C,e.isIdentifier));case 246:return e.Debug.type(p),M.updateReturnStatement(p,B(p.expression,C,e.isExpression));case 247:return e.Debug.type(p),M.updateWithStatement(p,B(p.expression,C,e.isExpression),B(p.statement,C,e.isStatement,M.liftToBlock));case 248:return e.Debug.type(p),M.updateSwitchStatement(p,B(p.expression,C,e.isExpression),B(p.caseBlock,C,e.isCaseBlock));case 249:return e.Debug.type(p),M.updateLabeledStatement(p,B(p.label,C,e.isIdentifier),B(p.statement,C,e.isStatement,M.liftToBlock));case 250:return e.Debug.type(p),M.updateThrowStatement(p,B(p.expression,C,e.isExpression));case 251:return e.Debug.type(p),M.updateTryStatement(p,B(p.tryBlock,C,e.isBlock),B(p.catchClause,C,e.isCatchClause),B(p.finallyBlock,C,e.isBlock));case 253:return e.Debug.type(p),M.updateVariableDeclaration(p,B(p.name,C,e.isBindingName),B(p.exclamationToken,ue,e.isExclamationToken),B(p.type,C,e.isTypeNode),B(p.initializer,C,e.isExpression));case 254:return e.Debug.type(p),M.updateVariableDeclarationList(p,E(p.declarations,C,e.isVariableDeclaration));case 255:return e.Debug.type(p),M.updateFunctionDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.asteriskToken,ue,e.isAsteriskToken),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),W(p.parameters,C,G,E),B(p.type,C,e.isTypeNode),g(p.body,C,G,B));case 256:return e.Debug.type(p),M.updateClassDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isClassElement));case 257:return e.Debug.type(p),M.updateInterfaceDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),E(p.heritageClauses,C,e.isHeritageClause),E(p.members,C,e.isTypeElement));case 258:return e.Debug.type(p),M.updateTypeAliasDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.typeParameters,C,e.isTypeParameterDeclaration),B(p.type,C,e.isTypeNode));case 259:return e.Debug.type(p),M.updateEnumDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isIdentifier),E(p.members,C,e.isEnumMember));case 260:return e.Debug.type(p),M.updateModuleDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.name,C,e.isModuleName),B(p.body,C,e.isModuleBody));case 261:return e.Debug.type(p),M.updateModuleBlock(p,E(p.statements,C,e.isStatement));case 262:return e.Debug.type(p),M.updateCaseBlock(p,E(p.clauses,C,e.isCaseOrDefaultClause));case 263:return e.Debug.type(p),M.updateNamespaceExportDeclaration(p,B(p.name,C,e.isIdentifier));case 264:return e.Debug.type(p),M.updateImportEqualsDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),p.isTypeOnly,B(p.name,C,e.isIdentifier),B(p.moduleReference,C,e.isModuleReference));case 265:return e.Debug.type(p),M.updateImportDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.importClause,C,e.isImportClause),B(p.moduleSpecifier,C,e.isExpression),B(p.assertClause,C,e.isAssertClause));case 292:return e.Debug.type(p),M.updateAssertClause(p,E(p.elements,C,e.isAssertEntry),p.multiLine);case 293:return e.Debug.type(p),M.updateAssertEntry(p,B(p.name,C,e.isAssertionKey),B(p.value,C,e.isExpressionNode));case 266:return e.Debug.type(p),M.updateImportClause(p,p.isTypeOnly,B(p.name,C,e.isIdentifier),B(p.namedBindings,C,e.isNamedImportBindings));case 267:return e.Debug.type(p),M.updateNamespaceImport(p,B(p.name,C,e.isIdentifier));case 273:return e.Debug.type(p),M.updateNamespaceExport(p,B(p.name,C,e.isIdentifier));case 268:return e.Debug.type(p),M.updateNamedImports(p,E(p.elements,C,e.isImportSpecifier));case 269:return e.Debug.type(p),M.updateImportSpecifier(p,p.isTypeOnly,B(p.propertyName,C,e.isIdentifier),B(p.name,C,e.isIdentifier));case 270:return e.Debug.type(p),M.updateExportAssignment(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),B(p.expression,C,e.isExpression));case 271:return e.Debug.type(p),M.updateExportDeclaration(p,E(p.decorators,C,e.isDecorator),E(p.modifiers,C,e.isModifier),p.isTypeOnly,B(p.exportClause,C,e.isNamedExportBindings),B(p.moduleSpecifier,C,e.isExpression),B(p.assertClause,C,e.isAssertClause));case 272:return e.Debug.type(p),M.updateNamedExports(p,E(p.elements,C,e.isExportSpecifier));case 274:return e.Debug.type(p),M.updateExportSpecifier(p,p.isTypeOnly,B(p.propertyName,C,e.isIdentifier),B(p.name,C,e.isIdentifier));case 276:return e.Debug.type(p),M.updateExternalModuleReference(p,B(p.expression,C,e.isExpression));case 277:return e.Debug.type(p),M.updateJsxElement(p,B(p.openingElement,C,e.isJsxOpeningElement),E(p.children,C,e.isJsxChild),B(p.closingElement,C,e.isJsxClosingElement));case 278:return e.Debug.type(p),M.updateJsxSelfClosingElement(p,B(p.tagName,C,e.isJsxTagNameExpression),E(p.typeArguments,C,e.isTypeNode),B(p.attributes,C,e.isJsxAttributes));case 279:return e.Debug.type(p),M.updateJsxOpeningElement(p,B(p.tagName,C,e.isJsxTagNameExpression),E(p.typeArguments,C,e.isTypeNode),B(p.attributes,C,e.isJsxAttributes));case 280:return e.Debug.type(p),M.updateJsxClosingElement(p,B(p.tagName,C,e.isJsxTagNameExpression));case 281:return e.Debug.type(p),M.updateJsxFragment(p,B(p.openingFragment,C,e.isJsxOpeningFragment),E(p.children,C,e.isJsxChild),B(p.closingFragment,C,e.isJsxClosingFragment));case 284:return e.Debug.type(p),M.updateJsxAttribute(p,B(p.name,C,e.isIdentifier),B(p.initializer,C,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(p),M.updateJsxAttributes(p,E(p.properties,C,e.isJsxAttributeLike));case 286:return e.Debug.type(p),M.updateJsxSpreadAttribute(p,B(p.expression,C,e.isExpression));case 287:return e.Debug.type(p),M.updateJsxExpression(p,B(p.expression,C,e.isExpression));case 288:return e.Debug.type(p),M.updateCaseClause(p,B(p.expression,C,e.isExpression),E(p.statements,C,e.isStatement));case 289:return e.Debug.type(p),M.updateDefaultClause(p,E(p.statements,C,e.isStatement));case 290:return e.Debug.type(p),M.updateHeritageClause(p,E(p.types,C,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(p),M.updateCatchClause(p,B(p.variableDeclaration,C,e.isVariableDeclaration),B(p.block,C,e.isBlock));case 294:return e.Debug.type(p),M.updatePropertyAssignment(p,B(p.name,C,e.isPropertyName),B(p.initializer,C,e.isExpression));case 295:return e.Debug.type(p),M.updateShorthandPropertyAssignment(p,B(p.name,C,e.isIdentifier),B(p.objectAssignmentInitializer,C,e.isExpression));case 296:return e.Debug.type(p),M.updateSpreadAssignment(p,B(p.expression,C,e.isExpression));case 297:return e.Debug.type(p),M.updateEnumMember(p,B(p.name,C,e.isPropertyName),B(p.initializer,C,e.isExpression));case 303:return e.Debug.type(p),M.updateSourceFile(p,L(p.statements,C,G));case 348:return e.Debug.type(p),M.updatePartiallyEmittedExpression(p,B(p.expression,C,e.isExpression));case 349:return e.Debug.type(p),M.updateCommaListExpression(p,E(p.elements,C,e.isExpression));default:return p}}}e.visitEachChild=H;function se(p){return e.Debug.assert(p.length<=1,"Too many nodes written to output."),e.singleOrUndefined(p)}})(Pe||(Pe={}));var Pe;(function(e){function a(x,ie,_e,Y,Z){var k=Z.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,I=k.enter,ne=k.exit,ee=[],A=[],f=new e.Map,P,D=[],l,_=[],J="",w=0,j=0,U=0,z=0,y=0,oe=0,ve=!1,ce=0,m=0,de=0,ae=0,V=0,le=0,ke=!1,Ue=!1,He=!1;return{getSources:function(){return ee},addSource:ar,setSourceContent:gr,addName:me,addMapping:he,appendSourceMap:we,toJSON:cr,toString:function(){return JSON.stringify(cr())}};function ar(Ir){I();var dr=e.getRelativePathToDirectoryOrUrl(Y,Ir,x.getCurrentDirectory(),x.getCanonicalFileName,!0),Br=f.get(dr);return Br===void 0&&(Br=A.length,A.push(dr),ee.push(Ir),f.set(dr,Br)),ne(),Br}function gr(Ir,dr){if(I(),dr!==null){for(P||(P=[]);P.length<Ir;)P.push(null);P[Ir]=dr}ne()}function me(Ir){I(),l||(l=new e.Map);var dr=l.get(Ir);return dr===void 0&&(dr=D.length,D.push(Ir),l.set(Ir,dr)),ne(),dr}function Ge(Ir,dr){return!ke||ce!==Ir||m!==dr}function er(Ir,dr,Br){return Ir!==void 0&&dr!==void 0&&Br!==void 0&&de===Ir&&(ae>dr||ae===dr&&V>Br)}function he(Ir,dr,Br,Tr,n,Er){e.Debug.assert(Ir>=ce,"generatedLine cannot backtrack"),e.Debug.assert(dr>=0,"generatedCharacter cannot be negative"),e.Debug.assert(Br===void 0||Br>=0,"sourceIndex cannot be negative"),e.Debug.assert(Tr===void 0||Tr>=0,"sourceLine cannot be negative"),e.Debug.assert(n===void 0||n>=0,"sourceCharacter cannot be negative"),I(),(Ge(Ir,dr)||er(Br,Tr,n))&&(ge(),ce=Ir,m=dr,Ue=!1,He=!1,ke=!0),Br!==void 0&&Tr!==void 0&&n!==void 0&&(de=Br,ae=Tr,V=n,Ue=!0,Er!==void 0&&(le=Er,He=!0)),ne()}function we(Ir,dr,Br,Tr,n,Er){e.Debug.assert(Ir>=ce,"generatedLine cannot backtrack"),e.Debug.assert(dr>=0,"generatedCharacter cannot be negative"),I();for(var br=[],Pr,Ce=g(Br.mappings),Le=Ce.next();!Le.done;Le=Ce.next()){var Xe=Le.value;if(Er&&(Xe.generatedLine>Er.line||Xe.generatedLine===Er.line&&Xe.generatedCharacter>Er.character))break;if(!(n&&(Xe.generatedLine<n.line||n.line===Xe.generatedLine&&Xe.generatedCharacter<n.character))){var Cr=void 0,Lr=void 0,Jr=void 0,Rr=void 0;if(Xe.sourceIndex!==void 0){if(Cr=br[Xe.sourceIndex],Cr===void 0){var ci=Br.sources[Xe.sourceIndex],be=Br.sourceRoot?e.combinePaths(Br.sourceRoot,ci):ci,or=e.combinePaths(e.getDirectoryPath(Tr),be);br[Xe.sourceIndex]=Cr=ar(or),Br.sourcesContent&&typeof Br.sourcesContent[Xe.sourceIndex]=="string"&&gr(Cr,Br.sourcesContent[Xe.sourceIndex])}Lr=Xe.sourceLine,Jr=Xe.sourceCharacter,Br.names&&Xe.nameIndex!==void 0&&(Pr||(Pr=[]),Rr=Pr[Xe.nameIndex],Rr===void 0&&(Pr[Xe.nameIndex]=Rr=me(Br.names[Xe.nameIndex])))}var Kr=Xe.generatedLine-(n?n.line:0),ei=Kr+Ir,li=n&&n.line===Xe.generatedLine?Xe.generatedCharacter-n.character:Xe.generatedCharacter,Si=Kr===0?li+dr:li;he(ei,Si,Cr,Lr,Jr,Rr)}}ne()}function ye(){return!ve||w!==ce||j!==m||U!==de||z!==ae||y!==V||oe!==le}function Se(Ir){_.push(Ir),_.length>=1024&&Fe()}function ge(){if(!(!ke||!ye())){if(I(),w<ce){do Se(59),w++;while(w<ce);j=0}else e.Debug.assertEqual(w,ce,"generatedLine cannot backtrack"),ve&&Se(44);ur(m-j),j=m,Ue&&(ur(de-U),U=de,ur(ae-z),z=ae,ur(V-y),y=V,He&&(ur(le-oe),oe=le)),ve=!0,ne()}}function Fe(){_.length>0&&(J+=String.fromCharCode.apply(void 0,_),_.length=0)}function cr(){return ge(),Fe(),{version:3,file:ie,sourceRoot:_e,sources:A,names:D,mappings:J,sourcesContent:P}}function ur(Ir){Ir<0?Ir=(-Ir<<1)+1:Ir=Ir<<1;do{var dr=Ir&31;Ir=Ir>>5,Ir>0&&(dr=dr|32),Se(se(dr))}while(Ir>0)}}e.createSourceMapGenerator=a;var O=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,L=/^\s*(\/\/[@#] .*)?$/;function W(x,ie){return{getLineCount:function(){return ie.length},getLineText:function(_e){return x.substring(ie[_e],ie[_e+1])}}}e.getLineInfo=W;function N(x){for(var ie=x.getLineCount()-1;ie>=0;ie--){var _e=x.getLineText(ie),Y=O.exec(_e);if(Y)return e.trimStringEnd(Y[1]);if(!_e.match(L))break}}e.tryGetSourceMappingURL=N;function Q(x){return typeof x=="string"||x===null}function pe(x){return x!==null&&typeof x=="object"&&x.version===3&&typeof x.file=="string"&&typeof x.mappings=="string"&&e.isArray(x.sources)&&e.every(x.sources,e.isString)&&(x.sourceRoot===void 0||x.sourceRoot===null||typeof x.sourceRoot=="string")&&(x.sourcesContent===void 0||x.sourcesContent===null||e.isArray(x.sourcesContent)&&e.every(x.sourcesContent,Q))&&(x.names===void 0||x.names===null||e.isArray(x.names)&&e.every(x.names,e.isString))}e.isRawSourceMap=pe;function F(x){try{var ie=JSON.parse(x);if(pe(ie))return ie}catch{}}e.tryParseRawSourceMap=F;function g(x){var ie=!1,_e=0,Y=0,Z=0,k=0,I=0,ne=0,ee=0,A;return{get pos(){return _e},get error(){return A},get state(){return f(!0,!0)},next:function(){for(;!ie&&_e<x.length;){var j=x.charCodeAt(_e);if(j===59){Y++,Z=0,_e++;continue}if(j===44){_e++;continue}var U=!1,z=!1;if(Z+=w(),_())return P();if(Z<0)return l("Invalid generatedCharacter found");if(!J()){if(U=!0,k+=w(),_())return P();if(k<0)return l("Invalid sourceIndex found");if(J())return l("Unsupported Format: No entries after sourceIndex");if(I+=w(),_())return P();if(I<0)return l("Invalid sourceLine found");if(J())return l("Unsupported Format: No entries after sourceLine");if(ne+=w(),_())return P();if(ne<0)return l("Invalid sourceCharacter found");if(!J()){if(z=!0,ee+=w(),_())return P();if(ee<0)return l("Invalid nameIndex found");if(!J())return l("Unsupported Error Format: Entries after nameIndex")}}return{value:f(U,z),done:ie}}return P()}};function f(j,U){return{generatedLine:Y,generatedCharacter:Z,sourceIndex:j?k:void 0,sourceLine:j?I:void 0,sourceCharacter:j?ne:void 0,nameIndex:U?ee:void 0}}function P(){return ie=!0,{value:void 0,done:!0}}function D(j){A===void 0&&(A=j)}function l(j){return D(j),P()}function _(){return A!==void 0}function J(){return _e===x.length||x.charCodeAt(_e)===44||x.charCodeAt(_e)===59}function w(){for(var j=!0,U=0,z=0;j;_e++){if(_e>=x.length)return D("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var y=p(x.charCodeAt(_e));if(y===-1)return D("Invalid character in VLQ"),-1;j=(y&32)!==0,z=z|(y&31)<<U,U+=5}return(z&1)===0?z=z>>1:(z=z>>1,z=-z),z}}e.decodeMappings=g;function S(x,ie){return x===ie||x.generatedLine===ie.generatedLine&&x.generatedCharacter===ie.generatedCharacter&&x.sourceIndex===ie.sourceIndex&&x.sourceLine===ie.sourceLine&&x.sourceCharacter===ie.sourceCharacter&&x.nameIndex===ie.nameIndex}e.sameMapping=S;function H(x){return x.sourceIndex!==void 0&&x.sourceLine!==void 0&&x.sourceCharacter!==void 0}e.isSourceMapping=H;function se(x){return x>=0&&x<26?65+x:x>=26&&x<52?97+x-26:x>=52&&x<62?48+x-52:x===62?43:x===63?47:e.Debug.fail("".concat(x,": not a base64 value"))}function p(x){return x>=65&&x<=90?x-65:x>=97&&x<=122?x-97+26:x>=48&&x<=57?x-48+52:x===43?62:x===47?63:-1}function C(x){return x.sourceIndex!==void 0&&x.sourcePosition!==void 0}function G(x,ie){return x.generatedPosition===ie.generatedPosition&&x.sourceIndex===ie.sourceIndex&&x.sourcePosition===ie.sourcePosition}function E(x,ie){return e.Debug.assert(x.sourceIndex===ie.sourceIndex),e.compareValues(x.sourcePosition,ie.sourcePosition)}function ue(x,ie){return e.compareValues(x.generatedPosition,ie.generatedPosition)}function B(x){return x.sourcePosition}function re(x){return x.generatedPosition}function M(x,ie,_e){var Y=e.getDirectoryPath(_e),Z=ie.sourceRoot?e.getNormalizedAbsolutePath(ie.sourceRoot,Y):Y,k=e.getNormalizedAbsolutePath(ie.file,Y),I=x.getSourceFileLike(k),ne=ie.sources.map(function(U){return e.getNormalizedAbsolutePath(U,Z)}),ee=new e.Map(ne.map(function(U,z){return[x.getCanonicalFileName(U),z]})),A,f,P;return{getSourcePosition:j,getGeneratedPosition:w};function D(U){var z=I!==void 0?e.getPositionOfLineAndCharacter(I,U.generatedLine,U.generatedCharacter,!0):-1,y,oe;if(H(U)){var ve=x.getSourceFileLike(ne[U.sourceIndex]);y=ie.sources[U.sourceIndex],oe=ve!==void 0?e.getPositionOfLineAndCharacter(ve,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:z,source:y,sourceIndex:U.sourceIndex,sourcePosition:oe,nameIndex:U.nameIndex}}function l(){if(A===void 0){var U=g(ie.mappings),z=e.arrayFrom(U,D);U.error!==void 0?(x.log&&x.log("Encountered error while decoding sourcemap: ".concat(U.error)),A=e.emptyArray):A=z}return A}function _(U){if(P===void 0){for(var z=[],y=0,oe=l();y<oe.length;y++){var ve=oe[y];if(!!C(ve)){var ce=z[ve.sourceIndex];ce||(z[ve.sourceIndex]=ce=[]),ce.push(ve)}}P=z.map(function(m){return e.sortAndDeduplicate(m,E,G)})}return P[U]}function J(){if(f===void 0){for(var U=[],z=0,y=l();z<y.length;z++){var oe=y[z];U.push(oe)}f=e.sortAndDeduplicate(U,ue,G)}return f}function w(U){var z=ee.get(x.getCanonicalFileName(U.fileName));if(z===void 0)return U;var y=_(z);if(!e.some(y))return U;var oe=e.binarySearchKey(y,U.pos,B,e.compareValues);oe<0&&(oe=~oe);var ve=y[oe];return ve===void 0||ve.sourceIndex!==z?U:{fileName:k,pos:ve.generatedPosition}}function j(U){var z=J();if(!e.some(z))return U;var y=e.binarySearchKey(z,U.pos,re,e.compareValues);y<0&&(y=~y);var oe=z[y];return oe===void 0||!C(oe)?U:{fileName:ne[oe.sourceIndex],pos:oe.sourcePosition}}}e.createDocumentPositionMapper=M,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(Pe||(Pe={}));var Pe;(function(e){function a(Y){return Y=e.getOriginalNode(Y),Y?e.getNodeId(Y):0}e.getOriginalNodeId=a;function O(Y){return!Y||!e.isNamedImports(Y)?!1:e.some(Y.elements,L)}function L(Y){return Y.propertyName!==void 0&&Y.propertyName.escapedText==="default"}function W(Y,Z){return k;function k(ne){return ne.kind===303?Z(ne):I(ne)}function I(ne){return Y.factory.createBundle(e.map(ne.sourceFiles,Z),ne.prepends)}}e.chainBundle=W;function N(Y){return!!e.getNamespaceDeclarationNode(Y)}e.getExportNeedsImportStarHelper=N;function Q(Y){if(e.getNamespaceDeclarationNode(Y))return!0;var Z=Y.importClause&&Y.importClause.namedBindings;if(!Z||!e.isNamedImports(Z))return!1;for(var k=0,I=0,ne=Z.elements;I<ne.length;I++){var ee=ne[I];L(ee)&&k++}return k>0&&k!==Z.elements.length||!!(Z.elements.length-k)&&e.isDefaultImport(Y)}e.getImportNeedsImportStarHelper=Q;function pe(Y){return!Q(Y)&&(e.isDefaultImport(Y)||!!Y.importClause&&e.isNamedImports(Y.importClause.namedBindings)&&O(Y.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=pe;function F(Y,Z,k,I){for(var ne=[],ee=e.createMultiMap(),A=[],f=new e.Map,P,D=!1,l,_=!1,J=!1,w=!1,j=0,U=Z.statements;j<U.length;j++){var z=U[j];switch(z.kind){case 265:ne.push(z),!J&&Q(z)&&(J=!0),!w&&pe(z)&&(w=!0);break;case 264:z.moduleReference.kind===276&&ne.push(z);break;case 271:if(z.moduleSpecifier)if(!z.exportClause)ne.push(z),_=!0;else if(ne.push(z),e.isNamedExports(z.exportClause))de(z);else{var y=z.exportClause.name;f.get(e.idText(y))||(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y)),J=!0}else de(z);break;case 270:z.isExportEquals&&!l&&(l=z);break;case 236:if(e.hasSyntacticModifier(z,1))for(var oe=0,ve=z.declarationList.declarations;oe<ve.length;oe++){var ce=ve[oe];P=g(ce,f,P)}break;case 255:if(e.hasSyntacticModifier(z,1))if(e.hasSyntacticModifier(z,512))D||(S(A,a(z),Y.factory.getDeclarationName(z)),D=!0);else{var y=z.name;f.get(e.idText(y))||(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y))}break;case 256:if(e.hasSyntacticModifier(z,1))if(e.hasSyntacticModifier(z,512))D||(S(A,a(z),Y.factory.getDeclarationName(z)),D=!0);else{var y=z.name;y&&!f.get(e.idText(y))&&(S(A,a(z),y),f.set(e.idText(y),!0),P=e.append(P,y))}break}}var m=e.createExternalHelpersImportDeclarationIfNeeded(Y.factory,Y.getEmitHelperFactory(),Z,I,_,J,w);return m&&ne.unshift(m),{externalImports:ne,exportSpecifiers:ee,exportEquals:l,hasExportStarsToExportValues:_,exportedBindings:A,exportedNames:P,externalHelpersImportDeclaration:m};function de(ae){for(var V=0,le=e.cast(ae.exportClause,e.isNamedExports).elements;V<le.length;V++){var ke=le[V];if(!f.get(e.idText(ke.name))){var Ue=ke.propertyName||ke.name;ae.moduleSpecifier||ee.add(e.idText(Ue),ke);var He=k.getReferencedImportDeclaration(Ue)||k.getReferencedValueDeclaration(Ue);He&&S(A,a(He),ke.name),f.set(e.idText(ke.name),!0),P=e.append(P,ke.name)}}}}e.collectExternalModuleInfo=F;function g(Y,Z,k){if(e.isBindingPattern(Y.name))for(var I=0,ne=Y.name.elements;I<ne.length;I++){var ee=ne[I];e.isOmittedExpression(ee)||(k=g(ee,Z,k))}else if(!e.isGeneratedIdentifier(Y.name)){var A=e.idText(Y.name);Z.get(A)||(Z.set(A,!0),k=e.append(k,Y.name))}return k}function S(Y,Z,k){var I=Y[Z];return I?I.push(k):Y[Z]=I=[k],I}function H(Y){return e.isStringLiteralLike(Y)||Y.kind===8||e.isKeyword(Y.kind)||e.isIdentifier(Y)}e.isSimpleCopiableExpression=H;function se(Y){return!e.isIdentifier(Y)&&H(Y)}e.isSimpleInlineableExpression=se;function p(Y){return Y>=64&&Y<=78}e.isCompoundAssignment=p;function C(Y){switch(Y){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=C;function G(Y){if(!!e.isExpressionStatement(Y)){var Z=e.skipParentheses(Y.expression);return e.isSuperCall(Z)?Z:void 0}}e.getSuperCallFromStatement=G;function E(Y,Z){for(var k=Z;k<Y.length;k+=1){var I=Y[k];if(G(I))return k}return-1}e.findSuperStatementIndex=E;function ue(Y,Z,k){return e.filter(Y.members,function(I){return M(I,Z,k)})}e.getProperties=ue;function B(Y){return x(Y)||e.isClassStaticBlockDeclaration(Y)}function re(Y){return e.filter(Y.members,B)}e.getStaticPropertiesAndClassStaticBlock=re;function M(Y,Z,k){return e.isPropertyDeclaration(Y)&&(!!Y.initializer||!Z)&&e.hasStaticModifier(Y)===k}function x(Y){return e.isPropertyDeclaration(Y)&&e.hasStaticModifier(Y)}function ie(Y){return Y.kind===166&&Y.initializer!==void 0}e.isInitializedProperty=ie;function _e(Y){return!e.isStatic(Y)&&e.isMethodOrAccessor(Y)&&e.isPrivateIdentifier(Y.name)}e.isNonStaticMethodOrAccessorWithPrivateName=_e})(Pe||(Pe={}));var Pe;(function(e){var a;(function(x){x[x.All=0]="All",x[x.ObjectRest=1]="ObjectRest"})(a=e.FlattenLevel||(e.FlattenLevel={}));function O(x,ie,_e,Y,Z,k){var I=x,ne;if(e.isDestructuringAssignment(x))for(ne=x.right;e.isEmptyArrayLiteral(x.left)||e.isEmptyObjectLiteral(x.left);)if(e.isDestructuringAssignment(ne))I=x=ne,ne=x.right;else return e.visitNode(ne,ie,e.isExpression);var ee,A={context:_e,level:Y,downlevelIteration:!!_e.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:f,emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:function(D){return E(_e.factory,D)},createObjectBindingOrAssignmentPattern:function(D){return B(_e.factory,D)},createArrayBindingOrAssignmentElement:M,visitor:ie};if(ne&&(ne=e.visitNode(ne,ie,e.isExpression),e.isIdentifier(ne)&&L(x,ne.escapedText)||N(x)?ne=C(A,ne,!1,I):Z?ne=C(A,ne,!0,I):e.nodeIsSynthesized(x)&&(I=ne)),F(A,x,ne,I,e.isDestructuringAssignment(x)),ne&&Z){if(!e.some(ee))return ne;ee.push(ne)}return _e.factory.inlineExpressions(ee)||_e.factory.createOmittedExpression();function f(D){ee=e.append(ee,D)}function P(D,l,_,J){e.Debug.assertNode(D,k?e.isIdentifier:e.isExpression);var w=k?k(D,l,_):e.setTextRange(_e.factory.createAssignment(e.visitNode(D,ie,e.isExpression),l),_);w.original=J,f(w)}}e.flattenDestructuringAssignment=O;function L(x,ie){var _e=e.getTargetOfBindingOrAssignmentElement(x);return e.isBindingOrAssignmentPattern(_e)?W(_e,ie):e.isIdentifier(_e)?_e.escapedText===ie:!1}function W(x,ie){for(var _e=e.getElementsOfBindingOrAssignmentPattern(x),Y=0,Z=_e;Y<Z.length;Y++){var k=Z[Y];if(L(k,ie))return!0}return!1}function N(x){var ie=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(ie&&e.isComputedPropertyName(ie)&&!e.isLiteralExpression(ie.expression))return!0;var _e=e.getTargetOfBindingOrAssignmentElement(x);return!!_e&&e.isBindingOrAssignmentPattern(_e)&&Q(_e)}function Q(x){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(x),N)}function pe(x,ie,_e,Y,Z,k,I){k===void 0&&(k=!1);var ne,ee=[],A=[],f={context:_e,level:Y,downlevelIteration:!!_e.getCompilerOptions().downlevelIteration,hoistTempVariables:k,emitExpression:ce,emitBindingOrAssignment:m,createArrayBindingOrAssignmentPattern:function(de){return G(_e.factory,de)},createObjectBindingOrAssignmentPattern:function(de){return ue(_e.factory,de)},createArrayBindingOrAssignmentElement:function(de){return re(_e.factory,de)},visitor:ie};if(e.isVariableDeclaration(x)){var P=e.getInitializerOfBindingOrAssignmentElement(x);P&&(e.isIdentifier(P)&&L(x,P.escapedText)||N(x))&&(P=C(f,e.visitNode(P,f.visitor),!1,P),x=_e.factory.updateVariableDeclaration(x,x.name,void 0,void 0,P))}if(F(f,x,Z,x,I),ne){var D=_e.factory.createTempVariable(void 0);if(k){var l=_e.factory.inlineExpressions(ne);ne=void 0,m(D,l,void 0,void 0)}else{_e.hoistVariableDeclaration(D);var _=e.last(ee);_.pendingExpressions=e.append(_.pendingExpressions,_e.factory.createAssignment(D,_.value)),e.addRange(_.pendingExpressions,ne),_.value=D}}for(var J=0,w=ee;J<w.length;J++){var j=w[J],U=j.pendingExpressions,z=j.name,l=j.value,y=j.location,oe=j.original,ve=_e.factory.createVariableDeclaration(z,void 0,void 0,U?_e.factory.inlineExpressions(e.append(U,l)):l);ve.original=oe,e.setTextRange(ve,y),A.push(ve)}return A;function ce(de){ne=e.append(ne,de)}function m(de,ae,V,le){e.Debug.assertNode(de,e.isBindingName),ne&&(ae=_e.factory.inlineExpressions(e.append(ne,ae)),ne=void 0),ee.push({pendingExpressions:ne,name:de,value:ae,location:V,original:le})}}e.flattenDestructuringBinding=pe;function F(x,ie,_e,Y,Z){var k=e.getTargetOfBindingOrAssignmentElement(ie);if(!Z){var I=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(ie),x.visitor,e.isExpression);I?_e?(_e=se(x,_e,I,Y),!e.isSimpleInlineableExpression(I)&&e.isBindingOrAssignmentPattern(k)&&(_e=C(x,_e,!0,Y))):_e=I:_e||(_e=x.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(k)?g(x,ie,k,_e,Y):e.isArrayBindingOrAssignmentPattern(k)?S(x,ie,k,_e,Y):x.emitBindingOrAssignment(k,_e,Y,ie)}function g(x,ie,_e,Y,Z){var k=e.getElementsOfBindingOrAssignmentPattern(_e),I=k.length;if(I!==1){var ne=!e.isDeclarationBindingElement(ie)||I!==0;Y=C(x,Y,ne,Z)}for(var ee,A,f=0;f<I;f++){var P=k[f];if(e.getRestIndicatorOfBindingOrAssignmentElement(P)){if(f===I-1){ee&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e),ee=void 0);var l=x.context.getEmitHelperFactory().createRestHelper(Y,k,A,_e);F(x,P,l,P)}}else{var D=e.getPropertyNameOfBindingOrAssignmentElement(P);if(x.level>=1&&!(P.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(P).transformFlags&49152)&&!e.isComputedPropertyName(D))ee=e.append(ee,e.visitNode(P,x.visitor));else{ee&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e),ee=void 0);var l=p(x,Y,D);e.isComputedPropertyName(D)&&(A=e.append(A,l.argumentExpression)),F(x,P,l,P)}}}ee&&x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(ee),Y,Z,_e)}function S(x,ie,_e,Y,Z){var k=e.getElementsOfBindingOrAssignmentPattern(_e),I=k.length;if(x.level<1&&x.downlevelIteration)Y=C(x,e.setTextRange(x.context.getEmitHelperFactory().createReadHelper(Y,I>0&&e.getRestIndicatorOfBindingOrAssignmentElement(k[I-1])?void 0:I),Z),!1,Z);else if(I!==1&&(x.level<1||I===0)||e.every(k,e.isOmittedExpression)){var ne=!e.isDeclarationBindingElement(ie)||I!==0;Y=C(x,Y,ne,Z)}for(var ee,A,f=0;f<I;f++){var P=k[f];if(x.level>=1)if(P.transformFlags&32768||x.hasTransformedPriorElement&&!H(P)){x.hasTransformedPriorElement=!0;var D=x.context.factory.createTempVariable(void 0);x.hoistTempVariables&&x.context.hoistVariableDeclaration(D),A=e.append(A,[D,P]),ee=e.append(ee,x.createArrayBindingOrAssignmentElement(D))}else ee=e.append(ee,P);else{if(e.isOmittedExpression(P))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(P)){if(f===I-1){var l=x.context.factory.createArraySliceCall(Y,f);F(x,P,l,P)}}else{var l=x.context.factory.createElementAccessExpression(Y,f);F(x,P,l,P)}}}if(ee&&x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern(ee),Y,Z,_e),A)for(var _=0,J=A;_<J.length;_++){var w=J[_],j=w[0],P=w[1];F(x,P,j,P)}}function H(x){var ie=e.getTargetOfBindingOrAssignmentElement(x);if(!ie||e.isOmittedExpression(ie))return!0;var _e=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(_e&&!e.isPropertyNameLiteral(_e))return!1;var Y=e.getInitializerOfBindingOrAssignmentElement(x);return Y&&!e.isSimpleInlineableExpression(Y)?!1:e.isBindingOrAssignmentPattern(ie)?e.every(e.getElementsOfBindingOrAssignmentPattern(ie),H):e.isIdentifier(ie)}function se(x,ie,_e,Y){return ie=C(x,ie,!0,Y),x.context.factory.createConditionalExpression(x.context.factory.createTypeCheck(ie,"undefined"),void 0,_e,void 0,ie)}function p(x,ie,_e){if(e.isComputedPropertyName(_e)){var Y=C(x,e.visitNode(_e.expression,x.visitor),!1,_e);return x.context.factory.createElementAccessExpression(ie,Y)}else if(e.isStringOrNumericLiteralLike(_e)){var Y=e.factory.cloneNode(_e);return x.context.factory.createElementAccessExpression(ie,Y)}else{var Z=x.context.factory.createIdentifier(e.idText(_e));return x.context.factory.createPropertyAccessExpression(ie,Z)}}function C(x,ie,_e,Y){if(e.isIdentifier(ie)&&_e)return ie;var Z=x.context.factory.createTempVariable(void 0);return x.hoistTempVariables?(x.context.hoistVariableDeclaration(Z),x.emitExpression(e.setTextRange(x.context.factory.createAssignment(Z,ie),Y))):x.emitBindingOrAssignment(Z,ie,Y,void 0),Z}function G(x,ie){return e.Debug.assertEachNode(ie,e.isArrayBindingElement),x.createArrayBindingPattern(ie)}function E(x,ie){return x.createArrayLiteralExpression(e.map(ie,x.converters.convertToArrayAssignmentElement))}function ue(x,ie){return e.Debug.assertEachNode(ie,e.isBindingElement),x.createObjectBindingPattern(ie)}function B(x,ie){return x.createObjectLiteralExpression(e.map(ie,x.converters.convertToObjectAssignmentElement))}function re(x,ie){return x.createBindingElement(void 0,void 0,ie)}function M(x){return x}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(N){N[N.LiftRestriction=0]="LiftRestriction",N[N.All=1]="All"})(a=e.ProcessLevel||(e.ProcessLevel={}));function O(N,Q,pe,F,g,S){var H=e.visitNode(Q.tag,pe,e.isExpression),se=[void 0],p=[],C=[],G=Q.template;if(S===a.LiftRestriction&&!e.hasInvalidEscape(G))return e.visitEachChild(Q,pe,N);if(e.isNoSubstitutionTemplateLiteral(G))p.push(L(G)),C.push(W(G,F));else{p.push(L(G.head)),C.push(W(G.head,F));for(var E=0,ue=G.templateSpans;E<ue.length;E++){var B=ue[E];p.push(L(B.literal)),C.push(W(B.literal,F)),se.push(e.visitNode(B.expression,pe,e.isExpression))}}var re=N.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(C));if(e.isExternalModule(F)){var M=e.factory.createUniqueName("templateObject");g(M),se[0]=e.factory.createLogicalOr(M,e.factory.createAssignment(M,re))}else se[0]=re;return e.factory.createCallExpression(H,void 0,se)}e.processTaggedTemplateExpression=O;function L(N){return N.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(N.text)}function W(N,Q){var pe=N.rawText;if(pe===void 0){e.Debug.assertIsDefined(Q,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),pe=e.getSourceTextOfNodeFromSourceFile(Q,N);var F=N.kind===14||N.kind===17;pe=pe.substring(1,pe.length-(F?1:2))}return pe=pe.replace(/\r\n?/g,`
|
|
`),e.setTextRange(e.factory.createStringLiteral(pe),N)}})(Pe||(Pe={}));var Pe;(function(e){var a=!1,O;(function(N){N[N.ClassAliases=1]="ClassAliases",N[N.NamespaceExports=2]="NamespaceExports",N[N.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(O||(O={}));var L;(function(N){N[N.None=0]="None",N[N.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",N[N.HasConstructorDecorators=2]="HasConstructorDecorators",N[N.HasMemberDecorators=4]="HasMemberDecorators",N[N.IsExportOfNamespace=8]="IsExportOfNamespace",N[N.IsNamedExternalExport=16]="IsNamedExternalExport",N[N.IsDefaultExternalExport=32]="IsDefaultExternalExport",N[N.IsDerivedClass=64]="IsDerivedClass",N[N.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",N[N.HasAnyDecorators=6]="HasAnyDecorators",N[N.NeedsName=5]="NeedsName",N[N.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",N[N.IsExported=56]="IsExported"})(L||(L={}));function W(N){var Q=N.factory,pe=N.getEmitHelperFactory,F=N.startLexicalEnvironment,g=N.resumeLexicalEnvironment,S=N.endLexicalEnvironment,H=N.hoistVariableDeclaration,se=N.getEmitResolver(),p=N.getCompilerOptions(),C=e.getStrictOptionValue(p,"strictNullChecks"),G=e.getEmitScriptTarget(p),E=e.getEmitModuleKind(p),ue=N.onEmitNode,B=N.onSubstituteNode;N.onEmitNode=xo,N.onSubstituteNode=ds,N.enableSubstitution(205),N.enableSubstitution(206);var re,M,x,ie,_e,Y,Z,k,I,ne;return ee;function ee(h){return h.kind===304?A(h):f(h)}function A(h){return Q.createBundle(h.sourceFiles.map(f),e.mapDefined(h.prepends,function(Ee){return Ee.kind===306?e.createUnparsedSourceFile(Ee,"js"):Ee}))}function f(h){if(h.isDeclarationFile)return h;re=h;var Ee=P(h,m);return e.addEmitHelpers(Ee,N.readEmitHelpers()),re=void 0,Ee}function P(h,Ee){var Re=ie,nr=_e,Gr=Y,_i=Z;D(h);var Ei=Ee(h);return ie!==Re&&(Y=Gr),ie=Re,_e=nr,Z=_i,Ei}function D(h){switch(h.kind){case 303:case 262:case 261:case 234:ie=h,_e=void 0,Y=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(h,2))break;h.name?ua(h):e.Debug.assert(h.kind===256||e.hasSyntacticModifier(h,512)),e.isClassDeclaration(h)&&(_e=h);break}}function l(h){return P(h,_)}function _(h){return h.transformFlags&1?ce(h):h}function J(h){return P(h,w)}function w(h){switch(h.kind){case 265:case 264:case 270:case 271:return j(h);default:return _(h)}}function j(h){var Ee=e.getParseTreeNode(h);if(Ee!==h)return h.transformFlags&1?e.visitEachChild(h,l,N):h;switch(h.kind){case 265:return gt(h);case 264:return on(h);case 270:return Oi(h);case 271:return wi(h);default:e.Debug.fail("Unhandled ellided statement")}}function U(h){return P(h,z)}function z(h){if(!(h.kind===271||h.kind===265||h.kind===266||h.kind===264&&h.moduleReference.kind===276))return h.transformFlags&1||e.hasSyntacticModifier(h,1)?ce(h):h}function y(h){return P(h,oe)}function oe(h){switch(h.kind){case 170:return Qe(h);case 166:return Be(h);case 175:case 171:case 172:case 168:case 169:return _(h);case 233:return h;default:return e.Debug.failBadSyntaxKind(h)}}function ve(h){if(!(e.modifierToFlag(h.kind)&18654)&&!(M&&h.kind===93))return h}function ce(h){if(e.isStatement(h)&&e.hasSyntacticModifier(h,2))return Q.createNotEmittedStatement(h);switch(h.kind){case 93:case 88:return M?void 0:h;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return Q.createNotEmittedStatement(h);case 166:return Be(h);case 263:return;case 170:return Qe(h);case 257:return Q.createNotEmittedStatement(h);case 256:return le(h);case 225:return He(h);case 290:return di(h);case 227:return X(h);case 168:return Dr(h);case 171:return v(h);case 172:return xe(h);case 255:return ze(h);case 212:return Je(h);case 213:return Oe(h);case 163:return Fr(h);case 211:return mr(h);case 210:case 228:return Nr(h);case 207:return si(h);case 208:return mi(h);case 209:return Ti(h);case 229:return Ur(h);case 259:return zi(h);case 236:return Xr(h);case 253:return We(h);case 260:return Hi(h);case 264:return on(h);case 278:return hi(h);case 279:return ki(h);default:return e.visitEachChild(h,l,N)}}function m(h){var Ee=e.getStrictOptionValue(p,"alwaysStrict")&&!(e.isExternalModule(h)&&E>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(h);return Q.updateSourceFile(h,e.visitLexicalEnvironment(h.statements,J,N,0,Ee))}function de(h,Ee){var Re=0;e.some(Ee)&&(Re|=1);var nr=e.getEffectiveBaseTypeNode(h);return nr&&e.skipOuterExpressions(nr.expression).kind!==104&&(Re|=64),e.classOrConstructorParameterIsDecorated(h)&&(Re|=2),e.childIsDecorated(h)&&(Re|=4),qr(h)?Re|=8:Sn(h)?Re|=32:Rn(h)&&(Re|=16),G<=1&&Re&7&&(Re|=128),Re}function ae(h){return!!(h.transformFlags&4096)}function V(h){return e.some(h.decorators)||e.some(h.typeParameters)||e.some(h.heritageClauses,ae)||e.some(h.members,ae)}function le(h){if(!V(h)&&!(M&&e.hasSyntacticModifier(h,1)))return e.visitEachChild(h,l,N);var Ee=e.getProperties(h,!0,!0),Re=de(h,Ee);Re&128&&N.startLexicalEnvironment();var nr=h.name||(Re&5?Q.getGeneratedNameForNode(h):void 0),Gr=Re&2?Ue(h,nr):ke(h,nr,Re),_i=[Gr];if(ur(_i,h,!1),ur(_i,h,!0),Br(_i,h),Re&128){var Ei=e.createTokenRange(e.skipTrivia(re.text,h.members.end),19),Ki=Q.getInternalName(h),Nt=Q.createPartiallyEmittedExpression(Ki);e.setTextRangeEnd(Nt,Ei.end),e.setEmitFlags(Nt,1536);var ca=Q.createReturnStatement(Nt);e.setTextRangePos(ca,Ei.pos),e.setEmitFlags(ca,1920),_i.push(ca),e.insertStatementsAfterStandardPrologue(_i,N.endLexicalEnvironment());var Fa=Q.createImmediatelyInvokedArrowFunction(_i);e.setEmitFlags(Fa,33554432);var Ta=Q.createVariableStatement(void 0,Q.createVariableDeclarationList([Q.createVariableDeclaration(Q.getLocalName(h,!1,!1),void 0,void 0,Fa)]));e.setOriginalNode(Ta,h),e.setCommentRange(Ta,h),e.setSourceMapRange(Ta,e.moveRangePastDecorators(h)),e.startOnNewLine(Ta),_i=[Ta]}return Re&8?Zn(_i,h):(Re&128||Re&2)&&(Re&32?_i.push(Q.createExportDefault(Q.getLocalName(h,!1,!0))):Re&16&&_i.push(Q.createExternalModuleExport(Q.getLocalName(h,!1,!0)))),_i.length>1&&(_i.push(Q.createEndOfDeclarationMarker(h)),e.setEmitFlags(Gr,e.getEmitFlags(Gr)|4194304)),e.singleOrMany(_i)}function ke(h,Ee,Re){var nr=Re&128?void 0:e.visitNodes(h.modifiers,ve,e.isModifier),Gr=Q.createClassDeclaration(void 0,nr,Ee,void 0,e.visitNodes(h.heritageClauses,l,e.isHeritageClause),ar(h)),_i=e.getEmitFlags(h);return Re&1&&(_i|=32),e.setTextRange(Gr,h),e.setOriginalNode(Gr,h),e.setEmitFlags(Gr,_i),Gr}function Ue(h,Ee){var Re=e.moveRangePastDecorators(h),nr=Ko(h),Gr=G<=2?Q.getInternalName(h,!1,!0):Q.getLocalName(h,!1,!0),_i=e.visitNodes(h.heritageClauses,l,e.isHeritageClause),Ei=ar(h),Ki=Q.createClassExpression(void 0,void 0,Ee,void 0,_i,Ei);e.setOriginalNode(Ki,h),e.setTextRange(Ki,Re);var Nt=Q.createVariableStatement(void 0,Q.createVariableDeclarationList([Q.createVariableDeclaration(Gr,void 0,void 0,nr?Q.createAssignment(nr,Ki):Ki)],1));return e.setOriginalNode(Nt,h),e.setTextRange(Nt,Re),e.setCommentRange(Nt,h),Nt}function He(h){if(!V(h))return e.visitEachChild(h,l,N);var Ee=Q.createClassExpression(void 0,void 0,h.name,void 0,e.visitNodes(h.heritageClauses,l,e.isHeritageClause),ar(h));return e.setOriginalNode(Ee,h),e.setTextRange(Ee,h),Ee}function ar(h){var Ee=[],Re=e.getFirstConstructorWithBody(h),nr=Re&&e.filter(Re.parameters,function(Ki){return e.isParameterPropertyDeclaration(Ki,Re)});if(nr)for(var Gr=0,_i=nr;Gr<_i.length;Gr++){var Ei=_i[Gr];e.isIdentifier(Ei.name)&&Ee.push(e.setOriginalNode(Q.createPropertyDeclaration(void 0,void 0,Ei.name,void 0,void 0,void 0),Ei))}return e.addRange(Ee,e.visitNodes(h.members,y,e.isClassElement)),e.setTextRange(Q.createNodeArray(Ee),h.members)}function gr(h,Ee){return e.filter(h.members,Ee?function(Re){return me(Re,h)}:function(Re){return Ge(Re,h)})}function me(h,Ee){return er(h,!0,Ee)}function Ge(h,Ee){return er(h,!1,Ee)}function er(h,Ee,Re){return e.nodeOrChildIsDecorated(h,Re)&&Ee===e.isStatic(h)}function he(h){var Ee;if(h)for(var Re=h.parameters,nr=Re.length>0&&e.parameterIsThisKeyword(Re[0]),Gr=nr?1:0,_i=nr?Re.length-1:Re.length,Ei=0;Ei<_i;Ei++){var Ki=Re[Ei+Gr];(Ee||Ki.decorators)&&(Ee||(Ee=new Array(_i)),Ee[Ei]=Ki.decorators)}return Ee}function we(h){var Ee=h.decorators,Re=he(e.getFirstConstructorWithBody(h));if(!(!Ee&&!Re))return{decorators:Ee,parameters:Re}}function ye(h,Ee){switch(Ee.kind){case 171:case 172:return Se(h,Ee);case 168:return ge(Ee);case 166:return Fe(Ee);default:return}}function Se(h,Ee){if(!!Ee.body){var Re=e.getAllAccessorDeclarations(h.members,Ee),nr=Re.firstAccessor,Gr=Re.secondAccessor,_i=Re.setAccessor,Ei=nr.decorators?nr:Gr&&Gr.decorators?Gr:void 0;if(!(!Ei||Ee!==Ei)){var Ki=Ei.decorators,Nt=he(_i);if(!(!Ki&&!Nt))return{decorators:Ki,parameters:Nt}}}}function ge(h){if(!!h.body){var Ee=h.decorators,Re=he(h);if(!(!Ee&&!Re))return{decorators:Ee,parameters:Re}}}function Fe(h){var Ee=h.decorators;if(!!Ee)return{decorators:Ee}}function cr(h,Ee,Re){if(!!Re){var nr=[];return e.addRange(nr,e.map(Re.decorators,n)),e.addRange(nr,e.flatMap(Re.parameters,Er)),br(h,Ee,nr),nr}}function ur(h,Ee,Re){e.addRange(h,e.map(Ir(Ee,Re),zn))}function Ir(h,Ee){for(var Re=gr(h,Ee),nr,Gr=0,_i=Re;Gr<_i.length;Gr++){var Ei=_i[Gr],Ki=dr(h,Ei);Ki&&(nr?nr.push(Ki):nr=[Ki])}return nr}function dr(h,Ee){var Re=ye(h,Ee),nr=cr(Ee,h,Re);if(!!nr){var Gr=rn(h,Ee),_i=sr(Ee,!e.hasSyntacticModifier(Ee,2)),Ei=G>0?Ee.kind===166?Q.createVoidZero():Q.createNull():void 0,Ki=pe().createDecorateHelper(nr,Gr,_i,Ei);return e.setTextRange(Ki,e.moveRangePastDecorators(Ee)),e.setEmitFlags(Ki,1536),Ki}}function Br(h,Ee){var Re=Tr(Ee);Re&&h.push(e.setOriginalNode(Q.createExpressionStatement(Re),Ee))}function Tr(h){var Ee=we(h),Re=cr(h,h,Ee);if(!!Re){var nr=I&&I[e.getOriginalNodeId(h)],Gr=G<=2?Q.getInternalName(h,!1,!0):Q.getLocalName(h,!1,!0),_i=pe().createDecorateHelper(Re,Gr),Ei=Q.createAssignment(Gr,nr?Q.createAssignment(nr,_i):_i);return e.setEmitFlags(Ei,1536),e.setSourceMapRange(Ei,e.moveRangePastDecorators(h)),Ei}}function n(h){return e.visitNode(h.expression,l,e.isExpression)}function Er(h,Ee){var Re;if(h){Re=[];for(var nr=0,Gr=h;nr<Gr.length;nr++){var _i=Gr[nr],Ei=pe().createParamHelper(n(_i),Ee);e.setTextRange(Ei,_i.expression),e.setEmitFlags(Ei,1536),Re.push(Ei)}}return Re}function br(h,Ee,Re){a?Ce(h,Ee,Re):Pr(h,Ee,Re)}function Pr(h,Ee,Re){p.emitDecoratorMetadata&&(Le(h)&&Re.push(pe().createMetadataHelper("design:type",Jr(h))),Cr(h)&&Re.push(pe().createMetadataHelper("design:paramtypes",Rr(h,Ee))),Xe(h)&&Re.push(pe().createMetadataHelper("design:returntype",be(h))))}function Ce(h,Ee,Re){if(p.emitDecoratorMetadata){var nr=void 0;Le(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("type",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),Jr(h)))),Cr(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("paramTypes",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),Rr(h,Ee)))),Xe(h)&&(nr||(nr=[])).push(Q.createPropertyAssignment("returnType",Q.createArrowFunction(void 0,void 0,[],void 0,Q.createToken(38),be(h)))),nr&&Re.push(pe().createMetadataHelper("design:typeinfo",Q.createObjectLiteralExpression(nr,!0)))}}function Le(h){var Ee=h.kind;return Ee===168||Ee===171||Ee===172||Ee===166}function Xe(h){return h.kind===168}function Cr(h){switch(h.kind){case 256:case 225:return e.getFirstConstructorWithBody(h)!==void 0;case 168:case 171:case 172:return!0}return!1}function Lr(h){var Ee=se.getAllAccessorDeclarations(h);return Ee.setAccessor&&e.getSetAccessorTypeAnnotationNode(Ee.setAccessor)||Ee.getAccessor&&e.getEffectiveReturnTypeNode(Ee.getAccessor)}function Jr(h){switch(h.kind){case 166:case 163:return or(h.type);case 172:case 171:return or(Lr(h));case 256:case 225:case 168:return Q.createIdentifier("Function");default:return Q.createVoidZero()}}function Rr(h,Ee){var Re=e.isClassLike(h)?e.getFirstConstructorWithBody(h):e.isFunctionLike(h)&&e.nodeIsPresent(h.body)?h:void 0,nr=[];if(Re)for(var Gr=ci(Re,Ee),_i=Gr.length,Ei=0;Ei<_i;Ei++){var Ki=Gr[Ei];Ei===0&&e.isIdentifier(Ki.name)&&Ki.name.escapedText==="this"||(Ki.dotDotDotToken?nr.push(or(e.getRestParameterElementType(Ki.type))):nr.push(Jr(Ki)))}return Q.createArrayLiteralExpression(nr)}function ci(h,Ee){if(Ee&&h.kind===171){var Re=e.getAllAccessorDeclarations(Ee.members,h).setAccessor;if(Re)return Re.parameters}return h.parameters}function be(h){return e.isFunctionLike(h)&&h.type?or(h.type):e.isAsyncFunction(h)?Q.createIdentifier("Promise"):Q.createVoidZero()}function or(h){if(h===void 0)return Q.createIdentifier("Object");switch(h.kind){case 114:case 152:case 143:return Q.createVoidZero();case 190:return or(h.type);case 178:case 179:return Q.createIdentifier("Function");case 182:case 183:return Q.createIdentifier("Array");case 176:case 133:return Q.createIdentifier("Boolean");case 197:case 149:return Q.createIdentifier("String");case 147:return Q.createIdentifier("Object");case 195:switch(h.literal.kind){case 10:case 14:return Q.createIdentifier("String");case 218:case 8:return Q.createIdentifier("Number");case 9:return aa();case 110:case 95:return Q.createIdentifier("Boolean");case 104:return Q.createVoidZero();default:return e.Debug.failBadSyntaxKind(h.literal)}case 146:return Q.createIdentifier("Number");case 157:return aa();case 150:return G<2?bt():Q.createIdentifier("Symbol");case 177:return ei(h);case 187:case 186:return Kr(h.types);case 188:return Kr([h.trueType,h.falseType]);case 192:if(h.operator===144)return or(h.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return or(h.type);default:return e.Debug.failBadSyntaxKind(h)}return Q.createIdentifier("Object")}function Kr(h){for(var Ee,Re=0,nr=h;Re<nr.length;Re++){for(var Gr=nr[Re];Gr.kind===190;)Gr=Gr.type;if(Gr.kind!==143&&!(!C&&(Gr.kind===195&&Gr.literal.kind===104||Gr.kind===152))){var _i=or(Gr);if(e.isIdentifier(_i)&&_i.escapedText==="Object")return _i;if(Ee){if(!e.isIdentifier(Ee)||!e.isIdentifier(_i)||Ee.escapedText!==_i.escapedText)return Q.createIdentifier("Object")}else Ee=_i}}return Ee||Q.createVoidZero()}function ei(h){var Ee=se.getTypeReferenceSerializationKind(h.typeName,_e||ie);switch(Ee){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(h,function(Gr){return Gr.parent&&e.isConditionalTypeNode(Gr.parent)&&(Gr.parent.trueType===Gr||Gr.parent.falseType===Gr)}))return Q.createIdentifier("Object");var Re=Si(h.typeName),nr=Q.createTempVariable(H);return Q.createConditionalExpression(Q.createTypeCheck(Q.createAssignment(nr,Re),"function"),void 0,nr,void 0,Q.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return qi(h.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return Q.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return aa();case e.TypeReferenceSerializationKind.BooleanType:return Q.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return Q.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return Q.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return Q.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return G<2?bt():Q.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return Q.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return Q.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return Q.createIdentifier("Object");default:return e.Debug.assertNever(Ee)}}function li(h,Ee){return Q.createLogicalAnd(Q.createStrictInequality(Q.createTypeOfExpression(h),Q.createStringLiteral("undefined")),Ee)}function Si(h){if(h.kind===79){var Ee=qi(h);return li(Ee,Ee)}if(h.left.kind===79)return li(qi(h.left),qi(h));var Re=Si(h.left),nr=Q.createTempVariable(H);return Q.createLogicalAnd(Q.createLogicalAnd(Re.left,Q.createStrictInequality(Q.createAssignment(nr,Re.right),Q.createVoidZero())),Q.createPropertyAccessExpression(nr,h.right))}function qi(h){switch(h.kind){case 79:var Ee=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(h),h),h.parent);return Ee.original=void 0,e.setParent(Ee,e.getParseTreeNode(ie)),Ee;case 160:return ft(h)}}function ft(h){return Q.createPropertyAccessExpression(qi(h.left),h.right)}function bt(){return Q.createConditionalExpression(Q.createTypeCheck(Q.createIdentifier("Symbol"),"function"),void 0,Q.createIdentifier("Symbol"),void 0,Q.createIdentifier("Object"))}function aa(){return G<99?Q.createConditionalExpression(Q.createTypeCheck(Q.createIdentifier("BigInt"),"function"),void 0,Q.createIdentifier("BigInt"),void 0,Q.createIdentifier("Object")):Q.createIdentifier("BigInt")}function sr(h,Ee){var Re=h.name;return e.isPrivateIdentifier(Re)?Q.createIdentifier(""):e.isComputedPropertyName(Re)?Ee&&!e.isSimpleInlineableExpression(Re.expression)?Q.getGeneratedNameForNode(Re):Re.expression:e.isIdentifier(Re)?Q.createStringLiteral(e.idText(Re)):Q.cloneNode(Re)}function Ji(h){var Ee=h.name;if(e.isComputedPropertyName(Ee)&&(!e.hasStaticModifier(h)&&Z||e.some(h.decorators))){var Re=e.visitNode(Ee.expression,l,e.isExpression),nr=e.skipPartiallyEmittedExpressions(Re);if(!e.isSimpleInlineableExpression(nr)){var Gr=Q.getGeneratedNameForNode(Ee);return H(Gr),Q.updateComputedPropertyName(Ee,Q.createAssignment(Gr,Re))}}return e.visitNode(Ee,l,e.isPropertyName)}function di(h){if(h.token!==117)return e.visitEachChild(h,l,N)}function X(h){return Q.updateExpressionWithTypeArguments(h,e.visitNode(h.expression,l,e.isLeftHandSideExpression),void 0)}function Ye(h){return!e.nodeIsMissing(h.body)}function Be(h){if(!(h.flags&8388608||e.hasSyntacticModifier(h,128))){var Ee=Q.updatePropertyDeclaration(h,void 0,e.visitNodes(h.modifiers,l,e.isModifier),Ji(h),void 0,void 0,e.visitNode(h.initializer,l));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function Qe(h){if(!!Ye(h))return Q.updateConstructorDeclaration(h,void 0,void 0,e.visitParameterList(h.parameters,l,N),_r(h.body,h))}function _r(h,Ee){var Re=Ee&&e.filter(Ee.parameters,function(Nt){return e.isParameterPropertyDeclaration(Nt,Ee)});if(!e.some(Re))return e.visitFunctionBody(h,l,N);var nr=[];g();var Gr=Q.copyPrologue(h.statements,nr,!1,l),_i=e.findSuperStatementIndex(h.statements,Gr);_i>=0&&e.addRange(nr,e.visitNodes(h.statements,l,e.isStatement,Gr,_i+1-Gr));var Ei=e.mapDefined(Re,hr);_i>=0?e.addRange(nr,Ei):nr=e.addRange(Ei,nr),e.addRange(nr,e.visitNodes(h.statements,l,e.isStatement,_i+1)),nr=Q.mergeLexicalEnvironment(nr,S());var Ki=Q.createBlock(e.setTextRange(Q.createNodeArray(nr),h.statements),!0);return e.setTextRange(Ki,h),e.setOriginalNode(Ki,h),Ki}function hr(h){var Ee=h.name;if(!!e.isIdentifier(Ee)){var Re=e.setParent(e.setTextRange(Q.cloneNode(Ee),Ee),Ee.parent);e.setEmitFlags(Re,1584);var nr=e.setParent(e.setTextRange(Q.cloneNode(Ee),Ee),Ee.parent);return e.setEmitFlags(nr,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(Q.createExpressionStatement(Q.createAssignment(e.setTextRange(Q.createPropertyAccessExpression(Q.createThis(),Re),h.name),nr)),h),e.moveRangePos(h,-1))))}}function Dr(h){if(!!Ye(h)){var Ee=Q.updateMethodDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,Ji(h),void 0,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function Me(h){return!(e.nodeIsMissing(h.body)&&e.hasSyntacticModifier(h,128))}function v(h){if(!!Me(h)){var Ee=Q.updateGetAccessorDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),Ji(h),e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function xe(h){if(!!Me(h)){var Ee=Q.updateSetAccessorDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),Ji(h),e.visitParameterList(h.parameters,l,N),e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee!==h&&(e.setCommentRange(Ee,h),e.setSourceMapRange(Ee,e.moveRangePastDecorators(h))),Ee}}function ze(h){if(!Ye(h))return Q.createNotEmittedStatement(h);var Ee=Q.updateFunctionDeclaration(h,void 0,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,h.name,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));if(qr(h)){var Re=[Ee];return Zn(Re,h),Re}return Ee}function Je(h){if(!Ye(h))return Q.createOmittedExpression();var Ee=Q.updateFunctionExpression(h,e.visitNodes(h.modifiers,ve,e.isModifier),h.asteriskToken,h.name,void 0,e.visitParameterList(h.parameters,l,N),void 0,e.visitFunctionBody(h.body,l,N)||Q.createBlock([]));return Ee}function Oe(h){var Ee=Q.updateArrowFunction(h,e.visitNodes(h.modifiers,ve,e.isModifier),void 0,e.visitParameterList(h.parameters,l,N),void 0,h.equalsGreaterThanToken,e.visitFunctionBody(h.body,l,N));return Ee}function Fr(h){if(!e.parameterIsThisKeyword(h)){var Ee=Q.updateParameterDeclaration(h,void 0,void 0,h.dotDotDotToken,e.visitNode(h.name,l,e.isBindingName),void 0,void 0,e.visitNode(h.initializer,l,e.isExpression));return Ee!==h&&(e.setCommentRange(Ee,h),e.setTextRange(Ee,e.moveRangePastModifiers(h)),e.setSourceMapRange(Ee,e.moveRangePastModifiers(h)),e.setEmitFlags(Ee.name,32)),Ee}}function Xr(h){if(qr(h)){var Ee=e.getInitializedVariables(h.declarationList);return Ee.length===0?void 0:e.setTextRange(Q.createExpressionStatement(Q.inlineExpressions(e.map(Ee,Or))),h)}else return e.visitEachChild(h,l,N)}function Or(h){var Ee=h.name;return e.isBindingPattern(Ee)?e.flattenDestructuringAssignment(h,l,N,0,!1,Vo):e.setTextRange(Q.createAssignment(Cn(Ee),e.visitNode(h.initializer,l,e.isExpression)),h)}function We(h){return Q.updateVariableDeclaration(h,e.visitNode(h.name,l,e.isBindingName),void 0,void 0,e.visitNode(h.initializer,l,e.isExpression))}function mr(h){var Ee=e.skipOuterExpressions(h.expression,-7);if(e.isAssertionExpression(Ee)){var Re=e.visitNode(h.expression,l,e.isExpression);return Q.createPartiallyEmittedExpression(Re,h)}return e.visitEachChild(h,l,N)}function Nr(h){var Ee=e.visitNode(h.expression,l,e.isExpression);return Q.createPartiallyEmittedExpression(Ee,h)}function Ur(h){var Ee=e.visitNode(h.expression,l,e.isLeftHandSideExpression);return Q.createPartiallyEmittedExpression(Ee,h)}function si(h){return Q.updateCallExpression(h,e.visitNode(h.expression,l,e.isExpression),void 0,e.visitNodes(h.arguments,l,e.isExpression))}function mi(h){return Q.updateNewExpression(h,e.visitNode(h.expression,l,e.isExpression),void 0,e.visitNodes(h.arguments,l,e.isExpression))}function Ti(h){return Q.updateTaggedTemplateExpression(h,e.visitNode(h.tag,l,e.isExpression),void 0,e.visitNode(h.template,l,e.isExpression))}function hi(h){return Q.updateJsxSelfClosingElement(h,e.visitNode(h.tagName,l,e.isJsxTagNameExpression),void 0,e.visitNode(h.attributes,l,e.isJsxAttributes))}function ki(h){return Q.updateJsxOpeningElement(h,e.visitNode(h.tagName,l,e.isJsxTagNameExpression),void 0,e.visitNode(h.attributes,l,e.isJsxAttributes))}function Ui(h){return!e.isEnumConst(h)||e.shouldPreserveConstEnums(p)}function zi(h){if(!Ui(h))return Q.createNotEmittedStatement(h);var Ee=[],Re=2,nr=Ci(Ee,h);nr&&(E!==e.ModuleKind.System||ie!==re)&&(Re|=512);var Gr=go(h),_i=ro(h),Ei=e.hasSyntacticModifier(h,1)?Q.getExternalModuleOrNamespaceExportName(x,h,!1,!0):Q.getLocalName(h,!1,!0),Ki=Q.createLogicalOr(Ei,Q.createAssignment(Ei,Q.createObjectLiteralExpression()));if(xt(h)){var Nt=Q.getLocalName(h,!1,!0);Ki=Q.createAssignment(Nt,Ki)}var ca=Q.createExpressionStatement(Q.createCallExpression(Q.createFunctionExpression(void 0,void 0,void 0,void 0,[Q.createParameterDeclaration(void 0,void 0,void 0,Gr)],void 0,ri(h,_i)),void 0,[Ki]));return e.setOriginalNode(ca,h),nr&&(e.setSyntheticLeadingComments(ca,void 0),e.setSyntheticTrailingComments(ca,void 0)),e.setTextRange(ca,h),e.addEmitFlags(ca,Re),Ee.push(ca),Ee.push(Q.createEndOfDeclarationMarker(h)),Ee}function ri(h,Ee){var Re=x;x=Ee;var nr=[];F();var Gr=e.map(h.members,Gi);return e.insertStatementsAfterStandardPrologue(nr,S()),e.addRange(nr,Gr),x=Re,Q.createBlock(e.setTextRange(Q.createNodeArray(nr),h.members),!0)}function Gi(h){var Ee=sr(h,!1),Re=Rt(h),nr=Q.createAssignment(Q.createElementAccessExpression(x,Ee),Re),Gr=Re.kind===10?nr:Q.createAssignment(Q.createElementAccessExpression(x,nr),Ee);return e.setTextRange(Q.createExpressionStatement(e.setTextRange(Gr,h)),h)}function Rt(h){var Ee=se.getConstantValue(h);return Ee!==void 0?typeof Ee=="string"?Q.createStringLiteral(Ee):Q.createNumericLiteral(Ee):(Do(),h.initializer?e.visitNode(h.initializer,l,e.isExpression):Q.createVoidZero())}function pa(h){var Ee=e.getParseTreeNode(h,e.isModuleDeclaration);return Ee?e.isInstantiatedModule(Ee,e.shouldPreserveConstEnums(p)):!0}function xt(h){return qr(h)||bn(h)&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ES2020&&E!==e.ModuleKind.ES2022&&E!==e.ModuleKind.ESNext&&E!==e.ModuleKind.System}function ua(h){Y||(Y=new e.Map);var Ee=St(h);Y.has(Ee)||Y.set(Ee,h)}function Vt(h){if(Y){var Ee=St(h);return Y.get(Ee)===h}return!0}function St(h){return e.Debug.assertNode(h.name,e.isIdentifier),h.name.escapedText}function Ci(h,Ee){var Re=Q.createVariableStatement(e.visitNodes(Ee.modifiers,ve,e.isModifier),Q.createVariableDeclarationList([Q.createVariableDeclaration(Q.getLocalName(Ee,!1,!0))],ie.kind===303?0:1));if(e.setOriginalNode(Re,Ee),ua(Ee),Vt(Ee))return Ee.kind===259?e.setSourceMapRange(Re.declarationList,Ee):e.setSourceMapRange(Re,Ee),e.setCommentRange(Re,Ee),e.addEmitFlags(Re,4195328),h.push(Re),!0;var nr=Q.createMergeDeclarationMarker(Re);return e.setEmitFlags(nr,4195840),h.push(nr),!1}function Hi(h){if(!pa(h))return Q.createNotEmittedStatement(h);e.Debug.assertNode(h.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),pn();var Ee=[],Re=2,nr=Ci(Ee,h);nr&&(E!==e.ModuleKind.System||ie!==re)&&(Re|=512);var Gr=go(h),_i=ro(h),Ei=e.hasSyntacticModifier(h,1)?Q.getExternalModuleOrNamespaceExportName(x,h,!1,!0):Q.getLocalName(h,!1,!0),Ki=Q.createLogicalOr(Ei,Q.createAssignment(Ei,Q.createObjectLiteralExpression()));if(xt(h)){var Nt=Q.getLocalName(h,!1,!0);Ki=Q.createAssignment(Nt,Ki)}var ca=Q.createExpressionStatement(Q.createCallExpression(Q.createFunctionExpression(void 0,void 0,void 0,void 0,[Q.createParameterDeclaration(void 0,void 0,void 0,Gr)],void 0,Yi(h,_i)),void 0,[Ki]));return e.setOriginalNode(ca,h),nr&&(e.setSyntheticLeadingComments(ca,void 0),e.setSyntheticTrailingComments(ca,void 0)),e.setTextRange(ca,h),e.addEmitFlags(ca,Re),Ee.push(ca),Ee.push(Q.createEndOfDeclarationMarker(h)),Ee}function Yi(h,Ee){var Re=x,nr=M,Gr=Y;x=Ee,M=h,Y=void 0;var _i=[];F();var Ei,Ki;if(h.body)if(h.body.kind===261)P(h.body,function(Ta){return e.addRange(_i,e.visitNodes(Ta.statements,U,e.isStatement))}),Ei=h.body.statements,Ki=h.body;else{var Nt=Hi(h.body);Nt&&(e.isArray(Nt)?e.addRange(_i,Nt):_i.push(Nt));var ca=yt(h).body;Ei=e.moveRangePos(ca.statements,-1)}e.insertStatementsAfterStandardPrologue(_i,S()),x=Re,M=nr,Y=Gr;var Fa=Q.createBlock(e.setTextRange(Q.createNodeArray(_i),Ei),!0);return e.setTextRange(Fa,Ki),(!h.body||h.body.kind!==261)&&e.setEmitFlags(Fa,e.getEmitFlags(Fa)|1536),Fa}function yt(h){if(h.body.kind===260){var Ee=yt(h.body);return Ee||h.body}}function gt(h){if(!h.importClause)return h;if(!h.importClause.isTypeOnly){var Ee=e.visitNode(h.importClause,oa,e.isImportClause);return Ee||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?Q.updateImportDeclaration(h,void 0,void 0,Ee,h.moduleSpecifier,h.assertClause):void 0}}function oa(h){e.Debug.assert(!h.isTypeOnly);var Ee=Ke(h)?h.name:void 0,Re=e.visitNode(h.namedBindings,Bt,e.isNamedImportBindings);return Ee||Re?Q.updateImportClause(h,!1,Ee,Re):void 0}function Bt(h){if(h.kind===267)return Ke(h)?h:void 0;var Ee=p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Re=e.visitNodes(h.elements,Pi,e.isImportSpecifier);return Ee||e.some(Re)?Q.updateNamedImports(h,Re):void 0}function Pi(h){return!h.isTypeOnly&&Ke(h)?h:void 0}function Oi(h){return se.isValueAliasDeclaration(h)?e.visitEachChild(h,l,N):void 0}function wi(h){if(!h.isTypeOnly){if(!h.exportClause||e.isNamespaceExport(h.exportClause))return h;var Ee=!!h.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Re=e.visitNode(h.exportClause,function(nr){return tt(nr,Ee)},e.isNamedExportBindings);return Re?Q.updateExportDeclaration(h,void 0,void 0,h.isTypeOnly,Re,h.moduleSpecifier,h.assertClause):void 0}}function Qr(h,Ee){var Re=e.visitNodes(h.elements,ta,e.isExportSpecifier);return Ee||e.some(Re)?Q.updateNamedExports(h,Re):void 0}function Ct(h){return Q.updateNamespaceExport(h,e.visitNode(h.name,l,e.isIdentifier))}function tt(h,Ee){return e.isNamespaceExport(h)?Ct(h):Qr(h,Ee)}function ta(h){return!h.isTypeOnly&&se.isValueAliasDeclaration(h)?h:void 0}function Xa(h){return Ke(h)||!e.isExternalModule(re)&&se.isTopLevelValueImportEqualsWithEntityName(h)}function on(h){if(!h.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(h)){var Ee=Ke(h);return!Ee&&p.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(Q.createImportDeclaration(void 0,void 0,void 0,h.moduleReference.expression,void 0),h),h):Ee?e.visitEachChild(h,l,N):void 0}if(!!Xa(h)){var Re=e.createExpressionFromEntityName(Q,h.moduleReference);return e.setEmitFlags(Re,3584),Rn(h)||!qr(h)?e.setOriginalNode(e.setTextRange(Q.createVariableStatement(e.visitNodes(h.modifiers,ve,e.isModifier),Q.createVariableDeclarationList([e.setOriginalNode(Q.createVariableDeclaration(h.name,void 0,void 0,Re),h)])),h),h):e.setOriginalNode(ho(h.name,Re,h),h)}}}function qr(h){return M!==void 0&&e.hasSyntacticModifier(h,1)}function bn(h){return M===void 0&&e.hasSyntacticModifier(h,1)}function Rn(h){return bn(h)&&!e.hasSyntacticModifier(h,512)}function Sn(h){return bn(h)&&e.hasSyntacticModifier(h,512)}function zn(h){return Q.createExpressionStatement(h)}function Zn(h,Ee){var Re=Q.createAssignment(Q.getExternalModuleOrNamespaceExportName(x,Ee,!1,!0),Q.getLocalName(Ee));e.setSourceMapRange(Re,e.createRange(Ee.name?Ee.name.pos:Ee.pos,Ee.end));var nr=Q.createExpressionStatement(Re);e.setSourceMapRange(nr,e.createRange(-1,Ee.end)),h.push(nr)}function ho(h,Ee,Re){return e.setTextRange(Q.createExpressionStatement(Q.createAssignment(Q.getNamespaceMemberName(x,h,!1,!0),Ee)),Re)}function Vo(h,Ee,Re){return e.setTextRange(Q.createAssignment(Cn(h),Ee),Re)}function Cn(h){return Q.getNamespaceMemberName(x,h,!1,!0)}function go(h){var Ee=Q.getGeneratedNameForNode(h);return e.setSourceMapRange(Ee,h.name),Ee}function ro(h){return Q.getGeneratedNameForNode(h)}function Ko(h){if(se.getNodeCheckFlags(h)&16777216){io();var Ee=Q.createUniqueName(h.name&&!e.isGeneratedIdentifier(h.name)?e.idText(h.name):"default");return I[e.getOriginalNodeId(h)]=Ee,H(Ee),Ee}}function rs(h){return Q.createPropertyAccessExpression(Q.getDeclarationName(h),"prototype")}function rn(h,Ee){return e.isStatic(Ee)?Q.getDeclarationName(h):rs(h)}function Do(){(k&8)===0&&(k|=8,N.enableSubstitution(79))}function io(){(k&1)===0&&(k|=1,N.enableSubstitution(79),I=[])}function pn(){(k&2)===0&&(k|=2,N.enableSubstitution(79),N.enableSubstitution(295),N.enableEmitNotification(260))}function Qn(h){return e.getOriginalNode(h).kind===260}function wo(h){return e.getOriginalNode(h).kind===259}function xo(h,Ee,Re){var nr=ne,Gr=re;e.isSourceFile(Ee)&&(re=Ee),k&2&&Qn(Ee)&&(ne|=2),k&8&&wo(Ee)&&(ne|=8),ue(h,Ee,Re),ne=nr,re=Gr}function ds(h,Ee){return Ee=B(h,Ee),h===1?Ts(Ee):e.isShorthandPropertyAssignment(Ee)?No(Ee):Ee}function No(h){if(k&2){var Ee=h.name,Re=bi(Ee);if(Re){if(h.objectAssignmentInitializer){var nr=Q.createAssignment(Re,h.objectAssignmentInitializer);return e.setTextRange(Q.createPropertyAssignment(Ee,nr),h)}return e.setTextRange(Q.createPropertyAssignment(Ee,Re),h)}}return h}function Ts(h){switch(h.kind){case 79:return Ms(h);case 205:return ut(h);case 206:return Ht(h)}return h}function Ms(h){return xr(h)||bi(h)||h}function xr(h){if(k&1&&se.getNodeCheckFlags(h)&33554432){var Ee=se.getReferencedValueDeclaration(h);if(Ee){var Re=I[Ee.id];if(Re){var nr=Q.cloneNode(Re);return e.setSourceMapRange(nr,h),e.setCommentRange(nr,h),nr}}}}function bi(h){if(k&ne&&!e.isGeneratedIdentifier(h)&&!e.isLocalName(h)){var Ee=se.getReferencedExportContainer(h,!1);if(Ee&&Ee.kind!==303){var Re=ne&2&&Ee.kind===260||ne&8&&Ee.kind===259;if(Re)return e.setTextRange(Q.createPropertyAccessExpression(Q.getGeneratedNameForNode(Ee),h),h)}}}function ut(h){return Ka(h)}function Ht(h){return Ka(h)}function Ka(h){var Ee=an(h);if(Ee!==void 0){e.setConstantValue(h,Ee);var Re=typeof Ee=="string"?Q.createStringLiteral(Ee):Q.createNumericLiteral(Ee);if(!p.removeComments){var nr=e.getOriginalNode(h,e.isAccessExpression),Gr=e.isPropertyAccessExpression(nr)?e.declarationNameToString(nr.name):e.getTextOfNode(nr.argumentExpression);e.addSyntheticTrailingComment(Re,3," ".concat(Gr," "))}return Re}return h}function an(h){if(!p.isolatedModules)return e.isPropertyAccessExpression(h)||e.isElementAccessExpression(h)?se.getConstantValue(h):void 0}function Ke(h){return p.preserveValueImports?se.isValueAliasDeclaration(h):se.isReferencedAliasDeclaration(h)}}e.transformTypeScript=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(g){g[g.ClassAliases=1]="ClassAliases",g[g.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(a||(a={}));var O;(function(g){g.Field="f",g.Method="m",g.Accessor="a"})(O=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var L;(function(g){g[g.None=0]="None",g[g.ClassWasDecorated=1]="ClassWasDecorated",g[g.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",g[g.NeedsClassSuperReference=4]="NeedsClassSuperReference",g[g.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(L||(L={}));function W(g){var S=g.factory,H=g.hoistVariableDeclaration,se=g.endLexicalEnvironment,p=g.startLexicalEnvironment,C=g.resumeLexicalEnvironment,G=g.addBlockScopedVariable,E=g.getEmitResolver(),ue=g.getCompilerOptions(),B=e.getEmitScriptTarget(ue),re=e.getUseDefineForClassFields(ue),M=B<9,x=B<9,ie=x&&B>=2,_e=g.onSubstituteNode;g.onSubstituteNode=Kr;var Y=g.onEmitNode;g.onEmitNode=or;var Z,k,I,ne,ee=[],A=new e.Map,f,P,D;return e.chainBundle(g,l);function l(v){var xe=g.getCompilerOptions();if(v.isDeclarationFile||re&&e.getEmitScriptTarget(xe)>=9)return v;var ze=e.visitEachChild(v,w,g);return e.addEmitHelpers(ze,g.readEmitHelpers()),ze}function _(v,xe){if(v.transformFlags&8388608)switch(v.kind){case 225:case 256:return Se(v);case 166:return ae(v);case 236:return ve(v);case 80:return z(v);case 169:return Br(v)}if(v.transformFlags&8388608||v.transformFlags&33554432&&ie&&D&&f)switch(v.kind){case 218:case 219:return He(v,xe);case 220:return we(v,xe);case 207:return Ge(v);case 209:return er(v);case 205:return ke(v);case 206:return Ue(v);case 237:return gr(v);case 241:return ar(v);case 255:case 212:case 170:case 168:case 171:case 172:{var ze=D;D=void 0;var Je=e.visitEachChild(v,w,g);return D=ze,Je}}return e.visitEachChild(v,w,g)}function J(v){return _(v,!0)}function w(v){return _(v,!1)}function j(v){switch(v.kind){case 290:return e.visitEachChild(v,j,g);case 227:return ur(v)}return w(v)}function U(v){switch(v.kind){case 204:case 203:return Me(v);default:return w(v)}}function z(v){return!M||e.isStatement(v.parent)?v:e.setOriginalNode(S.createIdentifier(""),v)}function y(v){if(!M)return v;var xe=v.left;e.Debug.assertNode(xe,e.isPrivateIdentifier),e.Debug.assert(v.operatorToken.kind===101);var ze=Qe(xe);if(ze){var Je=e.visitNode(v.right,w,e.isExpression);return e.setOriginalNode(g.getEmitHelperFactory().createClassPrivateFieldInHelper(ze.brandCheckIdentifier,Je),v)}return e.visitEachChild(v,w,g)}function oe(v){switch(v.kind){case 170:return;case 171:case 172:case 168:return m(v);case 166:return ae(v);case 161:return ce(v);case 233:return v;default:return w(v)}}function ve(v){var xe=ne;ne=[];var ze=e.visitEachChild(v,w,g),Je=e.some(ne)?qe([ze],ne,!0):ze;return ne=xe,Je}function ce(v){var xe=e.visitEachChild(v,w,g);if(e.some(I)){var ze=I;ze.push(xe.expression),I=[],xe=S.updateComputedPropertyName(xe,S.inlineExpressions(ze))}return xe}function m(v){if(e.Debug.assert(!e.some(v.decorators)),!M||!e.isPrivateIdentifier(v.name))return e.visitEachChild(v,oe,g);var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),!xe.isValid)return v;var ze=de(v);ze&&di().push(S.createAssignment(ze,S.createFunctionExpression(e.filter(v.modifiers,function(Je){return!e.isStaticModifier(Je)}),v.asteriskToken,ze,void 0,e.visitParameterList(v.parameters,oe,g),void 0,e.visitFunctionBody(v.body,oe,g))))}function de(v){e.Debug.assert(e.isPrivateIdentifier(v.name));var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),xe.kind==="m")return xe.methodName;if(xe.kind==="a"){if(e.isGetAccessor(v))return xe.getterName;if(e.isSetAccessor(v))return xe.setterName}}function ae(v){if(e.Debug.assert(!e.some(v.decorators)),e.isPrivateIdentifier(v.name)){if(!M)return e.isStatic(v)?e.visitEachChild(v,w,g):S.updatePropertyDeclaration(v,void 0,e.visitNodes(v.modifiers,w,e.isModifier),v.name,void 0,void 0,void 0);var xe=Qe(v.name);if(e.Debug.assert(xe,"Undeclared private name for property declaration."),!xe.isValid)return v}var ze=ft(v.name,!!v.initializer||re);if(ze&&!e.isSimpleInlineableExpression(ze)&&di().push(ze),e.isStatic(v)&&!M&&!re){var Je=Le(v,S.createThis());if(Je){var Oe=S.createClassStaticBlockDeclaration(void 0,void 0,S.createBlock([Je]));return e.setOriginalNode(Oe,v),e.setCommentRange(Oe,v),e.setCommentRange(Je,{pos:-1,end:-1}),e.setSyntheticLeadingComments(Je,void 0),e.setSyntheticTrailingComments(Je,void 0),Oe}}}function V(v,xe){return le(v,e.visitNode(xe,w,e.isExpression))}function le(v,xe){switch(e.setCommentRange(xe,e.moveRangePos(xe,-1)),v.kind){case"a":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.getterName);case"m":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.methodName);case"f":return g.getEmitHelperFactory().createClassPrivateFieldGetHelper(xe,v.brandCheckIdentifier,v.kind,v.variableName);default:e.Debug.assertNever(v,"Unknown private element type")}}function ke(v){if(M&&e.isPrivateIdentifier(v.name)){var xe=Qe(v.name);if(xe)return e.setTextRange(e.setOriginalNode(V(xe,v.expression),v),v)}if(ie&&e.isSuperProperty(v)&&e.isIdentifier(v.name)&&D&&f){var ze=f.classConstructor,Je=f.superClassReference,Oe=f.facts;if(Oe&1)return be(v);if(ze&&Je){var Fr=S.createReflectGetCall(Je,S.createStringLiteralFromNode(v.name),ze);return e.setOriginalNode(Fr,v.expression),e.setTextRange(Fr,v.expression),Fr}}return e.visitEachChild(v,w,g)}function Ue(v){if(ie&&e.isSuperProperty(v)&&D&&f){var xe=f.classConstructor,ze=f.superClassReference,Je=f.facts;if(Je&1)return be(v);if(xe&&ze){var Oe=S.createReflectGetCall(ze,e.visitNode(v.argumentExpression,w,e.isExpression),xe);return e.setOriginalNode(Oe,v.expression),e.setTextRange(Oe,v.expression),Oe}}return e.visitEachChild(v,w,g)}function He(v,xe){if(v.operator===45||v.operator===46){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.operand)){var ze=void 0;if(ze=Qe(v.operand.name)){var Je=e.visitNode(v.operand.expression,w,e.isExpression),Oe=me(Je),Fr=Oe.readExpression,Xr=Oe.initializeExpression,Or=V(ze,Fr),We=e.isPrefixUnaryExpression(v)||xe?void 0:S.createTempVariable(H);return Or=e.expandPreOrPostfixIncrementOrDecrementExpression(S,v,Or,H,We),Or=ye(ze,Xr||Fr,Or,63),e.setOriginalNode(Or,v),e.setTextRange(Or,v),We&&(Or=S.createComma(Or,We),e.setTextRange(Or,v)),Or}}else if(ie&&e.isSuperProperty(v.operand)&&D&&f){var mr=f.classConstructor,Nr=f.superClassReference,Ur=f.facts;if(Ur&1){var si=be(v.operand);return e.isPrefixUnaryExpression(v)?S.updatePrefixUnaryExpression(v,si):S.updatePostfixUnaryExpression(v,si)}if(mr&&Nr){var mi=void 0,Ti=void 0;if(e.isPropertyAccessExpression(v.operand)?e.isIdentifier(v.operand.name)&&(Ti=mi=S.createStringLiteralFromNode(v.operand.name)):e.isSimpleInlineableExpression(v.operand.argumentExpression)?Ti=mi=v.operand.argumentExpression:(Ti=S.createTempVariable(H),mi=S.createAssignment(Ti,e.visitNode(v.operand.argumentExpression,w,e.isExpression))),mi&&Ti){var Or=S.createReflectGetCall(Nr,Ti,mr);e.setTextRange(Or,v.operand);var We=xe?void 0:S.createTempVariable(H);return Or=e.expandPreOrPostfixIncrementOrDecrementExpression(S,v,Or,H,We),Or=S.createReflectSetCall(Nr,mi,Or,mr),e.setOriginalNode(Or,v),e.setTextRange(Or,v),We&&(Or=S.createComma(Or,We),e.setTextRange(Or,v)),Or}}}}return e.visitEachChild(v,w,g)}function ar(v){return S.updateForStatement(v,e.visitNode(v.initializer,J,e.isForInitializer),e.visitNode(v.condition,w,e.isExpression),e.visitNode(v.incrementor,J,e.isExpression),e.visitIterationBody(v.statement,w,g))}function gr(v){return S.updateExpressionStatement(v,e.visitNode(v.expression,J,e.isExpression))}function me(v){var xe=e.nodeIsSynthesized(v)?v:S.cloneNode(v);if(e.isSimpleInlineableExpression(v))return{readExpression:xe,initializeExpression:void 0};var ze=S.createTempVariable(H),Je=S.createAssignment(ze,xe);return{readExpression:ze,initializeExpression:Je}}function Ge(v){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.expression)){var xe=S.createCallBinding(v.expression,H,B),ze=xe.thisArg,Je=xe.target;return e.isCallChain(v)?S.updateCallChain(v,S.createPropertyAccessChain(e.visitNode(Je,w),v.questionDotToken,"call"),void 0,void 0,qe([e.visitNode(ze,w,e.isExpression)],e.visitNodes(v.arguments,w,e.isExpression),!0)):S.updateCallExpression(v,S.createPropertyAccessExpression(e.visitNode(Je,w),"call"),void 0,qe([e.visitNode(ze,w,e.isExpression)],e.visitNodes(v.arguments,w,e.isExpression),!0))}if(ie&&e.isSuperProperty(v.expression)&&D&&(f==null?void 0:f.classConstructor)){var Oe=S.createFunctionCallCall(e.visitNode(v.expression,w,e.isExpression),f.classConstructor,e.visitNodes(v.arguments,w,e.isExpression));return e.setOriginalNode(Oe,v),e.setTextRange(Oe,v),Oe}return e.visitEachChild(v,w,g)}function er(v){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.tag)){var xe=S.createCallBinding(v.tag,H,B),ze=xe.thisArg,Je=xe.target;return S.updateTaggedTemplateExpression(v,S.createCallExpression(S.createPropertyAccessExpression(e.visitNode(Je,w),"bind"),void 0,[e.visitNode(ze,w,e.isExpression)]),void 0,e.visitNode(v.template,w,e.isTemplateLiteral))}if(ie&&e.isSuperProperty(v.tag)&&D&&(f==null?void 0:f.classConstructor)){var Oe=S.createFunctionBindCall(e.visitNode(v.tag,w,e.isExpression),f.classConstructor,[]);return e.setOriginalNode(Oe,v),e.setTextRange(Oe,v),S.updateTaggedTemplateExpression(v,Oe,void 0,e.visitNode(v.template,w,e.isTemplateLiteral))}return e.visitEachChild(v,w,g)}function he(v){if(M){f&&A.set(e.getOriginalNodeId(v),f),p();var xe=D;D=v;var ze=e.visitNodes(v.body.statements,w,e.isStatement);ze=S.mergeLexicalEnvironment(ze,se()),D=xe;var Je=S.createImmediatelyInvokedArrowFunction(ze);return e.setOriginalNode(Je,v),e.setTextRange(Je,v),e.addEmitFlags(Je,2),Je}}function we(v,xe){if(e.isDestructuringAssignment(v)){var ze=I;I=void 0,v=S.updateBinaryExpression(v,e.visitNode(v.left,U),v.operatorToken,e.visitNode(v.right,w));var Je=e.some(I)?S.inlineExpressions(e.compact(qe(qe([],I,!0),[v],!1))):v;return I=ze,Je}if(e.isAssignmentExpression(v)){if(M&&e.isPrivateIdentifierPropertyAccessExpression(v.left)){var Oe=Qe(v.left.name);if(Oe)return e.setTextRange(e.setOriginalNode(ye(Oe,v.left.expression,v.right,v.operatorToken.kind),v),v)}else if(ie&&e.isSuperProperty(v.left)&&D&&f){var Fr=f.classConstructor,Xr=f.superClassReference,Or=f.facts;if(Or&1)return S.updateBinaryExpression(v,be(v.left),v.operatorToken,e.visitNode(v.right,w,e.isExpression));if(Fr&&Xr){var We=e.isElementAccessExpression(v.left)?e.visitNode(v.left.argumentExpression,w,e.isExpression):e.isIdentifier(v.left.name)?S.createStringLiteralFromNode(v.left.name):void 0;if(We){var mr=e.visitNode(v.right,w,e.isExpression);if(e.isCompoundAssignment(v.operatorToken.kind)){var Nr=We;e.isSimpleInlineableExpression(We)||(Nr=S.createTempVariable(H),We=S.createAssignment(Nr,We));var Ur=S.createReflectGetCall(Xr,Nr,Fr);e.setOriginalNode(Ur,v.left),e.setTextRange(Ur,v.left),mr=S.createBinaryExpression(Ur,e.getNonAssignmentOperatorForCompoundAssignment(v.operatorToken.kind),mr),e.setTextRange(mr,v)}var si=xe?void 0:S.createTempVariable(H);return si&&(mr=S.createAssignment(si,mr),e.setTextRange(si,v)),mr=S.createReflectSetCall(Xr,We,mr,Fr),e.setOriginalNode(mr,v),e.setTextRange(mr,v),si&&(mr=S.createComma(mr,si),e.setTextRange(mr,v)),mr}}}}return v.operatorToken.kind===101&&e.isPrivateIdentifier(v.left)?y(v):e.visitEachChild(v,w,g)}function ye(v,xe,ze,Je){if(xe=e.visitNode(xe,w,e.isExpression),ze=e.visitNode(ze,w,e.isExpression),e.isCompoundAssignment(Je)){var Oe=me(xe),Fr=Oe.readExpression,Xr=Oe.initializeExpression;xe=Xr||Fr,ze=S.createBinaryExpression(le(v,Fr),e.getNonAssignmentOperatorForCompoundAssignment(Je),ze)}switch(e.setCommentRange(xe,e.moveRangePos(xe,-1)),v.kind){case"a":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,v.setterName);case"m":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,void 0);case"f":return g.getEmitHelperFactory().createClassPrivateFieldSetHelper(xe,v.brandCheckIdentifier,ze,v.kind,v.variableName);default:e.Debug.assertNever(v,"Unknown private element type")}}function Se(v){if(!e.forEach(v.members,ge))return e.visitEachChild(v,w,g);var xe=I;if(I=void 0,bt(),M){var ze=e.getNameOfDeclaration(v);ze&&e.isIdentifier(ze)&&(Ji().className=e.idText(ze));var Je=Fe(v);e.some(Je)&&(Ji().weakSetName=Ye("instances",Je[0].name))}var Oe=e.isClassDeclaration(v)?Ir(v):dr(v);return aa(),I=xe,Oe}function ge(v){return e.isPropertyDeclaration(v)||e.isClassStaticBlockDeclaration(v)||M&&v.name&&e.isPrivateIdentifier(v.name)}function Fe(v){return e.filter(v.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function cr(v){var xe=0,ze=e.getOriginalNode(v);e.isClassDeclaration(ze)&&e.classOrConstructorParameterIsDecorated(ze)&&(xe|=1);for(var Je=0,Oe=v.members;Je<Oe.length;Je++){var Fr=Oe[Je];!e.isStatic(Fr)||(Fr.name&&e.isPrivateIdentifier(Fr.name)&&M&&(xe|=2),(e.isPropertyDeclaration(Fr)||e.isClassStaticBlockDeclaration(Fr))&&(x&&Fr.transformFlags&8192&&(xe|=8,xe&1||(xe|=2)),ie&&Fr.transformFlags&33554432&&(xe&1||(xe|=6))))}return xe}function ur(v){var xe=(f==null?void 0:f.facts)||0;if(xe&4){var ze=S.createTempVariable(H,!0);return sr().superClassReference=ze,S.updateExpressionWithTypeArguments(v,S.createAssignment(ze,e.visitNode(v.expression,w,e.isExpression)),void 0)}return e.visitEachChild(v,w,g)}function Ir(v){var xe=cr(v);xe&&(sr().facts=xe),xe&8&&Rr();var ze;if(xe&2){var Je=S.createTempVariable(H,!0);sr().classConstructor=S.cloneNode(Je),ze=S.createAssignment(Je,S.getInternalName(v))}var Oe=e.getEffectiveBaseTypeNode(v),Fr=!!(Oe&&e.skipOuterExpressions(Oe.expression).kind!==104),Xr=[S.updateClassDeclaration(v,void 0,v.modifiers,v.name,void 0,e.visitNodes(v.heritageClauses,j,e.isHeritageClause),Tr(v,Fr))];ze&&di().unshift(ze),e.some(I)&&Xr.push(S.createExpressionStatement(S.inlineExpressions(I)));var Or=e.getStaticPropertiesAndClassStaticBlock(v);return e.some(Or)&&Ce(Xr,Or,S.getInternalName(v)),Xr}function dr(v){var xe=cr(v);xe&&(sr().facts=xe),xe&8&&Rr();var ze=!!(xe&1),Je=e.getStaticPropertiesAndClassStaticBlock(v),Oe=e.getEffectiveBaseTypeNode(v),Fr=!!(Oe&&e.skipOuterExpressions(Oe.expression).kind!==104),Xr=E.getNodeCheckFlags(v)&16777216,Or;function We(){var mi=E.getNodeCheckFlags(v),Ti=mi&16777216,hi=mi&524288;return S.createTempVariable(hi?G:H,!!Ti)}xe&2&&(Or=We(),sr().classConstructor=S.cloneNode(Or));var mr=S.updateClassExpression(v,e.visitNodes(v.decorators,w,e.isDecorator),v.modifiers,v.name,void 0,e.visitNodes(v.heritageClauses,j,e.isHeritageClause),Tr(v,Fr)),Nr=M&&e.some(Je,function(mi){return e.isClassStaticBlockDeclaration(mi)||!!mi.initializer||e.isPrivateIdentifier(mi.name)});if(Nr||e.some(I)){if(ze)return e.Debug.assertIsDefined(ne,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ne&&I&&e.some(I)&&ne.push(S.createExpressionStatement(S.inlineExpressions(I))),ne&&e.some(Je)&&Ce(ne,Je,S.getInternalName(v)),Or?S.inlineExpressions([S.createAssignment(Or,mr),Or]):mr;var Ur=[];if(Or||(Or=We()),Xr){Jr();var si=S.cloneNode(Or);si.autoGenerateFlags&=-9,k[e.getOriginalNodeId(v)]=si}return e.setEmitFlags(mr,65536|e.getEmitFlags(mr)),Ur.push(e.startOnNewLine(S.createAssignment(Or,mr))),e.addRange(Ur,e.map(I,e.startOnNewLine)),e.addRange(Ur,Xe(Je,Or)),Ur.push(e.startOnNewLine(Or)),S.inlineExpressions(Ur)}return mr}function Br(v){if(!M)return e.visitEachChild(v,oe,g)}function Tr(v,xe){var ze=[];if(M){for(var Je=0,Oe=v.members;Je<Oe.length;Je++){var Fr=Oe[Je];e.isPrivateIdentifierClassElementDeclaration(Fr)&&X(Fr)}e.some(Fe(v))&&n()}var Xr=br(v,xe),Or=e.visitNodes(v.members,oe,e.isClassElement);return Xr&&ze.push(Xr),!M&&e.some(I)&&(ze.push(S.createClassStaticBlockDeclaration(void 0,void 0,S.createBlock([S.createExpressionStatement(S.inlineExpressions(I))]))),I=void 0),e.addRange(ze,Or),e.setTextRange(S.createNodeArray(ze),v.members)}function n(){var v=Ji().weakSetName;e.Debug.assert(v,"weakSetName should be set in private identifier environment"),di().push(S.createAssignment(v,S.createNewExpression(S.createIdentifier("WeakSet"),void 0,[])))}function Er(v){return e.isStatic(v)||e.hasSyntacticModifier(e.getOriginalNode(v),128)?!1:re?B<9:e.isInitializedProperty(v)||M&&e.isPrivateIdentifierClassElementDeclaration(v)}function br(v,xe){var ze=e.visitNode(e.getFirstConstructorWithBody(v),w,e.isConstructorDeclaration),Je=v.members.filter(Er);if(!e.some(Je))return ze;var Oe=e.visitParameterList(ze?ze.parameters:void 0,w,g),Fr=Pr(v,ze,xe);if(!!Fr)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(S.createConstructorDeclaration(void 0,void 0,Oe!=null?Oe:[],Fr),ze||v),ze))}function Pr(v,xe,ze){var Je,Oe=e.getProperties(v,!1,!1);re||(Oe=e.filter(Oe,function(ri){return!!ri.initializer||e.isPrivateIdentifier(ri.name)}));var Fr=Fe(v),Xr=e.some(Oe)||e.some(Fr);if(!xe&&!Xr)return e.visitFunctionBody(void 0,w,g);C();var Or=!xe&&ze,We=0,mr=0,Nr=-1,Ur=[];!((Je=xe==null?void 0:xe.body)===null||Je===void 0)&&Je.statements&&(mr=S.copyPrologue(xe.body.statements,Ur,!1,w),Nr=e.findSuperStatementIndex(xe.body.statements,mr),Nr>=0&&(We=Nr+1,Ur=qe(qe(qe([],Ur.slice(0,mr),!0),e.visitNodes(xe.body.statements,w,e.isStatement,mr,We-mr),!0),Ur.slice(mr),!0))),Or&&Ur.push(S.createExpressionStatement(S.createCallExpression(S.createSuper(),void 0,[S.createSpreadElement(S.createIdentifier("arguments"))])));var si=0;if(xe!=null&&xe.body)if(re)Ur=Ur.filter(function(ri){return!e.isParameterPropertyDeclaration(e.getOriginalNode(ri),xe)});else{for(var mi=0,Ti=xe.body.statements;mi<Ti.length;mi++){var hi=Ti[mi];e.isParameterPropertyDeclaration(e.getOriginalNode(hi),xe)&&si++}if(si>0){var ki=e.visitNodes(xe.body.statements,w,e.isStatement,We,si);Nr>=0?e.addRange(Ur,ki):Or?Ur=qe(qe([Ur[0]],ki,!0),Ur.slice(1),!0):Ur=qe(qe([],ki,!0),Ur,!0),We+=si}}var Ui=S.createThis();return ci(Ur,Fr,Ui),Ce(Ur,Oe,Ui),xe&&e.addRange(Ur,e.visitNodes(xe.body.statements,zi,e.isStatement,We+mr)),Ur=S.mergeLexicalEnvironment(Ur,se()),e.setTextRange(S.createBlock(e.setTextRange(S.createNodeArray(Ur),xe?xe.body.statements:v.members),!0),xe?xe.body:void 0);function zi(ri){if(!(re&&e.isParameterPropertyDeclaration(e.getOriginalNode(ri),xe)))return w(ri)}}function Ce(v,xe,ze){for(var Je=0,Oe=xe;Je<Oe.length;Je++){var Fr=Oe[Je];if(!(e.isStatic(Fr)&&!M&&!re)){var Xr=Le(Fr,ze);!Xr||v.push(Xr)}}}function Le(v,xe){var ze=e.isClassStaticBlockDeclaration(v)?he(v):Cr(v,xe);if(!!ze){var Je=S.createExpressionStatement(ze);return e.setSourceMapRange(Je,e.moveRangePastModifiers(v)),e.setCommentRange(Je,v),e.setOriginalNode(Je,v),e.setSyntheticLeadingComments(ze,void 0),e.setSyntheticTrailingComments(ze,void 0),Je}}function Xe(v,xe){for(var ze=[],Je=0,Oe=v;Je<Oe.length;Je++){var Fr=Oe[Je],Xr=e.isClassStaticBlockDeclaration(Fr)?he(Fr):Cr(Fr,xe);!Xr||(e.startOnNewLine(Xr),e.setSourceMapRange(Xr,e.moveRangePastModifiers(Fr)),e.setCommentRange(Xr,Fr),e.setOriginalNode(Xr,Fr),ze.push(Xr))}return ze}function Cr(v,xe){var ze=D,Je=Lr(v,xe);return Je&&e.hasStaticModifier(v)&&(f==null?void 0:f.facts)&&(e.setOriginalNode(Je,v),e.addEmitFlags(Je,2),A.set(e.getOriginalNodeId(Je),f)),D=ze,Je}function Lr(v,xe){var ze,Je=!re,Oe=e.isComputedPropertyName(v.name)&&!e.isSimpleInlineableExpression(v.name.expression)?S.updateComputedPropertyName(v.name,S.getGeneratedNameForNode(v.name)):v.name;if(e.hasStaticModifier(v)&&(D=v),M&&e.isPrivateIdentifier(Oe)){var Fr=Qe(Oe);if(Fr)return Fr.kind==="f"?Fr.isStatic?N(Fr.variableName,e.visitNode(v.initializer,w,e.isExpression)):Q(xe,e.visitNode(v.initializer,w,e.isExpression),Fr.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Oe)||e.hasStaticModifier(v))&&!v.initializer)){var Xr=e.getOriginalNode(v);if(!e.hasSyntacticModifier(Xr,128)){var Or=v.initializer||Je?(ze=e.visitNode(v.initializer,w,e.isExpression))!==null&&ze!==void 0?ze:S.createVoidZero():e.isParameterPropertyDeclaration(Xr,Xr.parent)&&e.isIdentifier(Oe)?Oe:S.createVoidZero();if(Je||e.isPrivateIdentifier(Oe)){var We=e.createMemberAccessForPropertyName(S,xe,Oe,Oe);return S.createAssignment(We,Or)}else{var mr=e.isComputedPropertyName(Oe)?Oe.expression:e.isIdentifier(Oe)?S.createStringLiteral(e.unescapeLeadingUnderscores(Oe.escapedText)):Oe,Nr=S.createPropertyDescriptor({value:Or,configurable:!0,writable:!0,enumerable:!0});return S.createObjectDefinePropertyCall(xe,mr,Nr)}}}}function Jr(){(Z&1)===0&&(Z|=1,g.enableSubstitution(79),k=[])}function Rr(){(Z&2)===0&&(Z|=2,g.enableSubstitution(108),g.enableEmitNotification(255),g.enableEmitNotification(212),g.enableEmitNotification(170),g.enableEmitNotification(171),g.enableEmitNotification(172),g.enableEmitNotification(168),g.enableEmitNotification(166),g.enableEmitNotification(161))}function ci(v,xe,ze){if(!(!M||!e.some(xe))){var Je=Ji().weakSetName;e.Debug.assert(Je,"weakSetName should be set in private identifier environment"),v.push(S.createExpressionStatement(pe(ze,Je)))}}function be(v){return e.isPropertyAccessExpression(v)?S.updatePropertyAccessExpression(v,S.createVoidZero(),v.name):S.updateElementAccessExpression(v,S.createVoidZero(),e.visitNode(v.argumentExpression,w,e.isExpression))}function or(v,xe,ze){var Je=e.getOriginalNode(xe);if(Je.id){var Oe=A.get(Je.id);if(Oe){var Fr=f,Xr=P;f=Oe,P=Oe,Y(v,xe,ze),f=Fr,P=Xr;return}}switch(xe.kind){case 212:if(e.isArrowFunction(Je)||e.getEmitFlags(xe)&262144)break;case 255:case 170:{var Fr=f,Xr=P;f=void 0,P=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}case 171:case 172:case 168:case 166:{var Fr=f,Xr=P;P=f,f=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}case 161:{var Fr=f,Xr=P;f=P,P=void 0,Y(v,xe,ze),f=Fr,P=Xr;return}}Y(v,xe,ze)}function Kr(v,xe){return xe=_e(v,xe),v===1?ei(xe):xe}function ei(v){switch(v.kind){case 79:return Si(v);case 108:return li(v)}return v}function li(v){if(Z&2&&f){var xe=f.facts,ze=f.classConstructor;if(xe&1)return S.createParenthesizedExpression(S.createVoidZero());if(ze)return e.setTextRange(e.setOriginalNode(S.cloneNode(ze),v),v)}return v}function Si(v){return qi(v)||v}function qi(v){if(Z&1&&E.getNodeCheckFlags(v)&33554432){var xe=E.getReferencedValueDeclaration(v);if(xe){var ze=k[xe.id];if(ze){var Je=S.cloneNode(ze);return e.setSourceMapRange(Je,v),e.setCommentRange(Je,v),Je}}}}function ft(v,xe){if(e.isComputedPropertyName(v)){var ze=e.visitNode(v.expression,w,e.isExpression),Je=e.skipPartiallyEmittedExpressions(ze),Oe=e.isSimpleInlineableExpression(Je),Fr=e.isAssignmentExpression(Je)&&e.isGeneratedIdentifier(Je.left);if(!Fr&&!Oe&&xe){var Xr=S.getGeneratedNameForNode(v);return E.getNodeCheckFlags(v)&524288?G(Xr):H(Xr),S.createAssignment(Xr,ze)}return Oe||e.isIdentifier(Je)?void 0:ze}}function bt(){ee.push(f),f=void 0}function aa(){f=ee.pop()}function sr(){return f||(f={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Ji(){var v=sr();return v.privateIdentifierEnvironment||(v.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),v.privateIdentifierEnvironment}function di(){return I||(I=[])}function X(v){var xe,ze=e.getTextOfPropertyName(v.name),Je=sr(),Oe=Je.classConstructor,Fr=Ji(),Xr=Fr.weakSetName,Or=[],We=v.name.escapedText,mr=Fr.identifiers.get(We),Nr=!F(v.name)&&mr===void 0;if(e.hasStaticModifier(v))if(e.Debug.assert(Oe,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(v)){var Ur=Be(ze,v);Fr.identifiers.set(We,{kind:"f",variableName:Ur,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isMethodDeclaration(v)){var si=Be(ze,v);Fr.identifiers.set(We,{kind:"m",methodName:si,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isGetAccessorDeclaration(v)){var mi=Be(ze+"_get",v);(mr==null?void 0:mr.kind)==="a"&&mr.isStatic&&!mr.getterName?mr.getterName=mi:Fr.identifiers.set(We,{kind:"a",getterName:mi,setterName:void 0,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else if(e.isSetAccessorDeclaration(v)){var Ti=Be(ze+"_set",v);(mr==null?void 0:mr.kind)==="a"&&mr.isStatic&&!mr.setterName?mr.setterName=Ti:Fr.identifiers.set(We,{kind:"a",getterName:void 0,setterName:Ti,brandCheckIdentifier:Oe,isStatic:!0,isValid:Nr})}else e.Debug.assertNever(v,"Unknown class element type.");else if(e.isPropertyDeclaration(v)){var hi=Be(ze,v);Fr.identifiers.set(We,{kind:"f",brandCheckIdentifier:hi,isStatic:!1,variableName:void 0,isValid:Nr}),Or.push(S.createAssignment(hi,S.createNewExpression(S.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(v))e.Debug.assert(Xr,"weakSetName should be set in private identifier environment"),Fr.identifiers.set(We,{kind:"m",methodName:Be(ze,v),brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr});else if(e.isAccessor(v))if(e.Debug.assert(Xr,"weakSetName should be set in private identifier environment"),e.isGetAccessor(v)){var mi=Be(ze+"_get",v);(mr==null?void 0:mr.kind)==="a"&&!mr.isStatic&&!mr.getterName?mr.getterName=mi:Fr.identifiers.set(We,{kind:"a",getterName:mi,setterName:void 0,brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr})}else{var Ti=Be(ze+"_set",v);(mr==null?void 0:mr.kind)==="a"&&!mr.isStatic&&!mr.setterName?mr.setterName=Ti:Fr.identifiers.set(We,{kind:"a",getterName:void 0,setterName:Ti,brandCheckIdentifier:Xr,isStatic:!1,isValid:Nr})}else e.Debug.assertNever(v,"Unknown class element type.");(xe=di()).push.apply(xe,Or)}function Ye(v,xe){var ze=Ji().className,Je=ze?"_".concat(ze):"",Oe=S.createUniqueName("".concat(Je,"_").concat(v),16);return E.getNodeCheckFlags(xe)&524288?G(Oe):H(Oe),Oe}function Be(v,xe){return Ye(v.substring(1),xe.name)}function Qe(v){var xe;if(f!=null&&f.privateIdentifierEnvironment){var ze=f.privateIdentifierEnvironment.identifiers.get(v.escapedText);if(ze)return ze}for(var Je=ee.length-1;Je>=0;--Je){var Oe=ee[Je];if(!!Oe){var ze=(xe=Oe.privateIdentifierEnvironment)===null||xe===void 0?void 0:xe.identifiers.get(v.escapedText);if(ze)return ze}}}function _r(v){var xe=S.getGeneratedNameForNode(v),ze=Qe(v.name);if(!ze)return e.visitEachChild(v,w,g);var Je=v.expression;return(e.isThisProperty(v)||e.isSuperProperty(v)||!e.isSimpleCopiableExpression(v.expression))&&(Je=S.createTempVariable(H,!0),di().push(S.createBinaryExpression(Je,63,e.visitNode(v.expression,w,e.isExpression)))),S.createAssignmentTargetWrapper(xe,ye(ze,Je,xe,63))}function hr(v){var xe=e.getTargetOfBindingOrAssignmentElement(v);if(xe){var ze=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(xe))ze=_r(xe);else if(ie&&e.isSuperProperty(xe)&&D&&f){var Je=f.classConstructor,Oe=f.superClassReference,Fr=f.facts;if(Fr&1)ze=be(xe);else if(Je&&Oe){var Xr=e.isElementAccessExpression(xe)?e.visitNode(xe.argumentExpression,w,e.isExpression):e.isIdentifier(xe.name)?S.createStringLiteralFromNode(xe.name):void 0;if(Xr){var Or=S.createTempVariable(void 0);ze=S.createAssignmentTargetWrapper(Or,S.createReflectSetCall(Oe,Xr,Or,Je))}}}if(ze)return e.isAssignmentExpression(v)?S.updateBinaryExpression(v,ze,v.operatorToken,e.visitNode(v.right,w,e.isExpression)):e.isSpreadElement(v)?S.updateSpreadElement(v,ze):ze}return e.visitNode(v,U)}function Dr(v){if(e.isObjectBindingOrAssignmentElement(v)&&!e.isShorthandPropertyAssignment(v)){var xe=e.getTargetOfBindingOrAssignmentElement(v),ze=void 0;if(xe){if(e.isPrivateIdentifierPropertyAccessExpression(xe))ze=_r(xe);else if(ie&&e.isSuperProperty(xe)&&D&&f){var Je=f.classConstructor,Oe=f.superClassReference,Fr=f.facts;if(Fr&1)ze=be(xe);else if(Je&&Oe){var Xr=e.isElementAccessExpression(xe)?e.visitNode(xe.argumentExpression,w,e.isExpression):e.isIdentifier(xe.name)?S.createStringLiteralFromNode(xe.name):void 0;if(Xr){var Or=S.createTempVariable(void 0);ze=S.createAssignmentTargetWrapper(Or,S.createReflectSetCall(Oe,Xr,Or,Je))}}}}if(e.isPropertyAssignment(v)){var We=e.getInitializerOfBindingOrAssignmentElement(v);return S.updatePropertyAssignment(v,e.visitNode(v.name,w,e.isPropertyName),ze?We?S.createAssignment(ze,e.visitNode(We,w)):ze:e.visitNode(v.initializer,U,e.isExpression))}if(e.isSpreadAssignment(v))return S.updateSpreadAssignment(v,ze||e.visitNode(v.expression,U,e.isExpression));e.Debug.assert(ze===void 0,"Should not have generated a wrapped target")}return e.visitNode(v,w)}function Me(v){return e.isArrayLiteralExpression(v)?S.updateArrayLiteralExpression(v,e.visitNodes(v.elements,hr,e.isExpression)):S.updateObjectLiteralExpression(v,e.visitNodes(v.properties,Dr,e.isObjectLiteralElementLike))}}e.transformClassFields=W;function N(g,S){return e.factory.createAssignment(g,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",S||e.factory.createVoidZero())]))}function Q(g,S,H){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(H,"set"),void 0,[g,S||e.factory.createVoidZero()])}function pe(g,S){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(S,"add"),void 0,[g])}function F(g){return g.escapedText==="#constructor"}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(N){N[N.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var O;(function(N){N[N.NonTopLevel=1]="NonTopLevel",N[N.HasLexicalThis=2]="HasLexicalThis"})(O||(O={}));function L(N){var Q=N.factory,pe=N.getEmitHelperFactory,F=N.resumeLexicalEnvironment,g=N.endLexicalEnvironment,S=N.hoistVariableDeclaration,H=N.getEmitResolver(),se=N.getCompilerOptions(),p=e.getEmitScriptTarget(se),C,G=0,E,ue,B,re=[],M=0,x=N.onEmitNode,ie=N.onSubstituteNode;return N.onEmitNode=ar,N.onSubstituteNode=gr,e.chainBundle(N,_e);function _e(Se){if(Se.isDeclarationFile)return Se;Y(1,!1),Y(2,!e.isEffectiveStrictModeSourceFile(Se,se));var ge=e.visitEachChild(Se,A,N);return e.addEmitHelpers(ge,N.readEmitHelpers()),ge}function Y(Se,ge){M=ge?M|Se:M&~Se}function Z(Se){return(M&Se)!==0}function k(){return!Z(1)}function I(){return Z(2)}function ne(Se,ge,Fe){var cr=Se&~M;if(cr){Y(cr,!0);var ur=ge(Fe);return Y(cr,!1),ur}return ge(Fe)}function ee(Se){return e.visitEachChild(Se,A,N)}function A(Se){if((Se.transformFlags&256)===0)return Se;switch(Se.kind){case 131:return;case 217:return w(Se);case 168:return ne(3,j,Se);case 255:return ne(3,U,Se);case 212:return ne(3,z,Se);case 213:return ne(1,y,Se);case 205:return ue&&e.isPropertyAccessExpression(Se)&&Se.expression.kind===106&&ue.add(Se.name.escapedText),e.visitEachChild(Se,A,N);case 206:return ue&&Se.expression.kind===106&&(B=!0),e.visitEachChild(Se,A,N);case 171:case 172:case 170:case 256:case 225:return ne(3,ee,Se);default:return e.visitEachChild(Se,A,N)}}function f(Se){if(e.isNodeWithPossibleHoistedDeclaration(Se))switch(Se.kind){case 236:return D(Se);case 241:return J(Se);case 242:return l(Se);case 243:return _(Se);case 291:return P(Se);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(Se,f,N);default:return e.Debug.assertNever(Se,"Unhandled node.")}return A(Se)}function P(Se){var ge=new e.Set;oe(Se.variableDeclaration,ge);var Fe;if(ge.forEach(function(Ir,dr){E.has(dr)&&(Fe||(Fe=new e.Set(E)),Fe.delete(dr))}),Fe){var cr=E;E=Fe;var ur=e.visitEachChild(Se,f,N);return E=cr,ur}else return e.visitEachChild(Se,f,N)}function D(Se){if(ve(Se.declarationList)){var ge=ce(Se.declarationList,!1);return ge?Q.createExpressionStatement(ge):void 0}return e.visitEachChild(Se,A,N)}function l(Se){return Q.updateForInStatement(Se,ve(Se.initializer)?ce(Se.initializer,!0):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.expression,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function _(Se){return Q.updateForOfStatement(Se,e.visitNode(Se.awaitModifier,A,e.isToken),ve(Se.initializer)?ce(Se.initializer,!0):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.expression,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function J(Se){var ge=Se.initializer;return Q.updateForStatement(Se,ve(ge)?ce(ge,!1):e.visitNode(Se.initializer,A,e.isForInitializer),e.visitNode(Se.condition,A,e.isExpression),e.visitNode(Se.incrementor,A,e.isExpression),e.visitIterationBody(Se.statement,f,N))}function w(Se){return k()?e.visitEachChild(Se,A,N):e.setOriginalNode(e.setTextRange(Q.createYieldExpression(void 0,e.visitNode(Se.expression,A,e.isExpression)),Se),Se)}function j(Se){return Q.updateMethodDeclaration(Se,void 0,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function U(Se){return Q.updateFunctionDeclaration(Se,void 0,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function z(Se){return Q.updateFunctionExpression(Se,e.visitNodes(Se.modifiers,A,e.isModifier),Se.asteriskToken,Se.name,void 0,e.visitParameterList(Se.parameters,A,N),void 0,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function y(Se){return Q.updateArrowFunction(Se,e.visitNodes(Se.modifiers,A,e.isModifier),void 0,e.visitParameterList(Se.parameters,A,N),void 0,Se.equalsGreaterThanToken,e.getFunctionFlags(Se)&2?le(Se):e.visitFunctionBody(Se.body,A,N))}function oe(Se,ge){var Fe=Se.name;if(e.isIdentifier(Fe))ge.add(Fe.escapedText);else for(var cr=0,ur=Fe.elements;cr<ur.length;cr++){var Ir=ur[cr];e.isOmittedExpression(Ir)||oe(Ir,ge)}}function ve(Se){return!!Se&&e.isVariableDeclarationList(Se)&&!(Se.flags&3)&&Se.declarations.some(V)}function ce(Se,ge){m(Se);var Fe=e.getInitializedVariables(Se);return Fe.length===0?ge?e.visitNode(Q.converters.convertToAssignmentElementTarget(Se.declarations[0].name),A,e.isExpression):void 0:Q.inlineExpressions(e.map(Fe,ae))}function m(Se){e.forEach(Se.declarations,de)}function de(Se){var ge=Se.name;if(e.isIdentifier(ge))S(ge);else for(var Fe=0,cr=ge.elements;Fe<cr.length;Fe++){var ur=cr[Fe];e.isOmittedExpression(ur)||de(ur)}}function ae(Se){var ge=e.setSourceMapRange(Q.createAssignment(Q.converters.convertToAssignmentElementTarget(Se.name),Se.initializer),Se);return e.visitNode(ge,A,e.isExpression)}function V(Se){var ge=Se.name;if(e.isIdentifier(ge))return E.has(ge.escapedText);for(var Fe=0,cr=ge.elements;Fe<cr.length;Fe++){var ur=cr[Fe];if(!e.isOmittedExpression(ur)&&V(ur))return!0}return!1}function le(Se){F();var ge=e.getOriginalNode(Se,e.isFunctionLike),Fe=ge.type,cr=p<2?Ue(Fe):void 0,ur=Se.kind===213,Ir=(H.getNodeCheckFlags(Se)&8192)!==0,dr=E;E=new e.Set;for(var Br=0,Tr=Se.parameters;Br<Tr.length;Br++){var n=Tr[Br];oe(n,E)}var Er=ue,br=B;ur||(ue=new e.Set,B=!1);var Pr;if(ur){var Jr=pe().createAwaiterHelper(I(),Ir,cr,ke(Se.body)),Rr=g();if(e.some(Rr)){var Lr=Q.converters.convertToFunctionBlock(Jr);Pr=Q.updateBlock(Lr,e.setTextRange(Q.createNodeArray(e.concatenate(Rr,Lr.statements)),Lr.statements))}else Pr=Jr}else{var Ce=[],Le=Q.copyPrologue(Se.body.statements,Ce,!1,A);Ce.push(Q.createReturnStatement(pe().createAwaiterHelper(I(),Ir,cr,ke(Se.body,Le)))),e.insertStatementsAfterStandardPrologue(Ce,g());var Xe=p>=2&&H.getNodeCheckFlags(Se)&6144;if(Xe&&(He(),ue.size)){var Cr=W(Q,H,Se,ue);re[e.getNodeId(Cr)]=!0,e.insertStatementsAfterStandardPrologue(Ce,[Cr])}var Lr=Q.createBlock(Ce,!0);e.setTextRange(Lr,Se.body),Xe&&B&&(H.getNodeCheckFlags(Se)&4096?e.addEmitHelper(Lr,e.advancedAsyncSuperHelper):H.getNodeCheckFlags(Se)&2048&&e.addEmitHelper(Lr,e.asyncSuperHelper)),Pr=Lr}return E=dr,ur||(ue=Er,B=br),Pr}function ke(Se,ge){return e.isBlock(Se)?Q.updateBlock(Se,e.visitNodes(Se.statements,f,e.isStatement,ge)):Q.converters.convertToFunctionBlock(e.visitNode(Se,f,e.isConciseBody))}function Ue(Se){var ge=Se&&e.getEntityNameFromTypeNode(Se);if(ge&&e.isEntityName(ge)){var Fe=H.getTypeReferenceSerializationKind(ge);if(Fe===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Fe===e.TypeReferenceSerializationKind.Unknown)return ge}}function He(){(C&1)===0&&(C|=1,N.enableSubstitution(207),N.enableSubstitution(205),N.enableSubstitution(206),N.enableEmitNotification(256),N.enableEmitNotification(168),N.enableEmitNotification(171),N.enableEmitNotification(172),N.enableEmitNotification(170),N.enableEmitNotification(236))}function ar(Se,ge,Fe){if(C&1&&we(ge)){var cr=H.getNodeCheckFlags(ge)&6144;if(cr!==G){var ur=G;G=cr,x(Se,ge,Fe),G=ur;return}}else if(C&&re[e.getNodeId(ge)]){var ur=G;G=0,x(Se,ge,Fe),G=ur;return}x(Se,ge,Fe)}function gr(Se,ge){return ge=ie(Se,ge),Se===1&&G?me(ge):ge}function me(Se){switch(Se.kind){case 205:return Ge(Se);case 206:return er(Se);case 207:return he(Se)}return Se}function Ge(Se){return Se.expression.kind===106?e.setTextRange(Q.createPropertyAccessExpression(Q.createUniqueName("_super",48),Se.name),Se):Se}function er(Se){return Se.expression.kind===106?ye(Se.argumentExpression,Se):Se}function he(Se){var ge=Se.expression;if(e.isSuperProperty(ge)){var Fe=e.isPropertyAccessExpression(ge)?Ge(ge):er(ge);return Q.createCallExpression(Q.createPropertyAccessExpression(Fe,"call"),void 0,qe([Q.createThis()],Se.arguments,!0))}return Se}function we(Se){var ge=Se.kind;return ge===256||ge===170||ge===168||ge===171||ge===172}function ye(Se,ge){return G&4096?e.setTextRange(Q.createPropertyAccessExpression(Q.createCallExpression(Q.createUniqueName("_superIndex",48),void 0,[Se]),"value"),ge):e.setTextRange(Q.createCallExpression(Q.createUniqueName("_superIndex",48),void 0,[Se]),ge)}}e.transformES2017=L;function W(N,Q,pe,F){var g=(Q.getNodeCheckFlags(pe)&4096)!==0,S=[];return F.forEach(function(H,se){var p=e.unescapeLeadingUnderscores(se),C=[];C.push(N.createPropertyAssignment("get",N.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(N.createPropertyAccessExpression(e.setEmitFlags(N.createSuper(),4),p),4)))),g&&C.push(N.createPropertyAssignment("set",N.createArrowFunction(void 0,void 0,[N.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,N.createAssignment(e.setEmitFlags(N.createPropertyAccessExpression(e.setEmitFlags(N.createSuper(),4),p),4),N.createIdentifier("v"))))),S.push(N.createPropertyAssignment(p,N.createObjectLiteralExpression(C)))}),N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.createUniqueName("_super",48),void 0,void 0,N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"create"),void 0,[N.createNull(),N.createObjectLiteralExpression(S,!0)]))],2))}e.createSuperAccessVariableStatement=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(W){W[W.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var O;(function(W){W[W.None=0]="None",W[W.HasLexicalThis=1]="HasLexicalThis",W[W.IterationContainer=2]="IterationContainer",W[W.AncestorFactsMask=3]="AncestorFactsMask",W[W.SourceFileIncludes=1]="SourceFileIncludes",W[W.SourceFileExcludes=2]="SourceFileExcludes",W[W.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",W[W.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",W[W.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",W[W.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",W[W.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",W[W.IterationStatementIncludes=2]="IterationStatementIncludes",W[W.IterationStatementExcludes=0]="IterationStatementExcludes"})(O||(O={}));function L(W){var N=W.factory,Q=W.getEmitHelperFactory,pe=W.resumeLexicalEnvironment,F=W.endLexicalEnvironment,g=W.hoistVariableDeclaration,S=W.getEmitResolver(),H=W.getCompilerOptions(),se=e.getEmitScriptTarget(H),p=W.onEmitNode;W.onEmitNode=Ce;var C=W.onSubstituteNode;W.onSubstituteNode=Le;var G=!1,E,ue,B,re=0,M=0,x,ie,_e,Y,Z=[];return e.chainBundle(W,A);function k(be,or){return M!==(M&~be|or)}function I(be,or){var Kr=M;return M=(M&~be|or)&3,Kr}function ne(be){M=be}function ee(be){ie=e.append(ie,N.createVariableDeclaration(be))}function A(be){if(be.isDeclarationFile)return be;x=be;var or=m(be);return e.addEmitHelpers(or,W.readEmitHelpers()),x=void 0,ie=void 0,or}function f(be){return J(be,!1)}function P(be){return J(be,!0)}function D(be){if(be.kind!==131)return be}function l(be,or,Kr,ei){if(k(Kr,ei)){var li=I(Kr,ei),Si=be(or);return ne(li),Si}return be(or)}function _(be){return e.visitEachChild(be,f,W)}function J(be,or){if((be.transformFlags&128)===0)return be;switch(be.kind){case 217:return w(be);case 223:return j(be);case 246:return U(be);case 249:return z(be);case 204:return oe(be);case 220:return ae(be,or);case 349:return V(be,or);case 291:return le(be);case 236:return ke(be);case 253:return Ue(be);case 239:case 240:case 242:return l(_,be,0,2);case 243:return me(be,void 0);case 241:return l(ar,be,0,2);case 216:return gr(be);case 170:return l(Fe,be,2,1);case 168:return l(Ir,be,2,1);case 171:return l(cr,be,2,1);case 172:return l(ur,be,2,1);case 255:return l(dr,be,2,1);case 212:return l(Tr,be,2,1);case 213:return l(Br,be,2,0);case 163:return Se(be);case 237:return ve(be);case 211:return ce(be,or);case 209:return de(be);case 205:return _e&&e.isPropertyAccessExpression(be)&&be.expression.kind===106&&_e.add(be.name.escapedText),e.visitEachChild(be,f,W);case 206:return _e&&be.expression.kind===106&&(Y=!0),e.visitEachChild(be,f,W);case 256:case 225:return l(_,be,2,1);default:return e.visitEachChild(be,f,W)}}function w(be){return ue&2&&ue&1?e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,Q().createAwaitHelper(e.visitNode(be.expression,f,e.isExpression))),be),be):e.visitEachChild(be,f,W)}function j(be){if(ue&2&&ue&1){if(be.asteriskToken){var or=e.visitNode(e.Debug.checkDefined(be.expression),f,e.isExpression);return e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,Q().createAwaitHelper(N.updateYieldExpression(be,be.asteriskToken,e.setTextRange(Q().createAsyncDelegatorHelper(e.setTextRange(Q().createAsyncValuesHelper(or),or)),or)))),be),be)}return e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,he(be.expression?e.visitNode(be.expression,f,e.isExpression):N.createVoidZero())),be),be)}return e.visitEachChild(be,f,W)}function U(be){return ue&2&&ue&1?N.updateReturnStatement(be,he(be.expression?e.visitNode(be.expression,f,e.isExpression):N.createVoidZero())):e.visitEachChild(be,f,W)}function z(be){if(ue&2){var or=e.unwrapInnermostStatementOfLabel(be);return or.kind===243&&or.awaitModifier?me(or,be):N.restoreEnclosingLabel(e.visitNode(or,f,e.isStatement,N.liftToBlock),be)}return e.visitEachChild(be,f,W)}function y(be){for(var or,Kr=[],ei=0,li=be;ei<li.length;ei++){var Si=li[ei];if(Si.kind===296){or&&(Kr.push(N.createObjectLiteralExpression(or)),or=void 0);var qi=Si.expression;Kr.push(e.visitNode(qi,f,e.isExpression))}else or=e.append(or,Si.kind===294?N.createPropertyAssignment(Si.name,e.visitNode(Si.initializer,f,e.isExpression)):e.visitNode(Si,f,e.isObjectLiteralElementLike))}return or&&Kr.push(N.createObjectLiteralExpression(or)),Kr}function oe(be){if(be.transformFlags&32768){var or=y(be.properties);or.length&&or[0].kind!==204&&or.unshift(N.createObjectLiteralExpression());var Kr=or[0];if(or.length>1){for(var ei=1;ei<or.length;ei++)Kr=Q().createAssignHelper([Kr,or[ei]]);return Kr}else return Q().createAssignHelper(or)}return e.visitEachChild(be,f,W)}function ve(be){return e.visitEachChild(be,P,W)}function ce(be,or){return e.visitEachChild(be,or?P:f,W)}function m(be){var or=I(2,e.isEffectiveStrictModeSourceFile(be,H)?0:1);G=!1;var Kr=e.visitEachChild(be,f,W),ei=e.concatenate(Kr.statements,ie&&[N.createVariableStatement(void 0,N.createVariableDeclarationList(ie))]),li=N.updateSourceFile(Kr,e.setTextRange(N.createNodeArray(ei),be.statements));return ne(or),li}function de(be){return e.processTaggedTemplateExpression(W,be,f,x,ee,e.ProcessLevel.LiftRestriction)}function ae(be,or){return e.isDestructuringAssignment(be)&&be.left.transformFlags&32768?e.flattenDestructuringAssignment(be,f,W,1,!or):be.operatorToken.kind===27?N.updateBinaryExpression(be,e.visitNode(be.left,P,e.isExpression),be.operatorToken,e.visitNode(be.right,or?P:f,e.isExpression)):e.visitEachChild(be,f,W)}function V(be,or){if(or)return e.visitEachChild(be,P,W);for(var Kr,ei=0;ei<be.elements.length;ei++){var li=be.elements[ei],Si=e.visitNode(li,ei<be.elements.length-1?P:f,e.isExpression);(Kr||Si!==li)&&(Kr||(Kr=be.elements.slice(0,ei)),Kr.push(Si))}var qi=Kr?e.setTextRange(N.createNodeArray(Kr),be.elements):be.elements;return N.updateCommaListExpression(be,qi)}function le(be){if(be.variableDeclaration&&e.isBindingPattern(be.variableDeclaration.name)&&be.variableDeclaration.name.transformFlags&32768){var or=N.getGeneratedNameForNode(be.variableDeclaration.name),Kr=N.updateVariableDeclaration(be.variableDeclaration,be.variableDeclaration.name,void 0,void 0,or),ei=e.flattenDestructuringBinding(Kr,f,W,1),li=e.visitNode(be.block,f,e.isBlock);return e.some(ei)&&(li=N.updateBlock(li,qe([N.createVariableStatement(void 0,ei)],li.statements,!0))),N.updateCatchClause(be,N.updateVariableDeclaration(be.variableDeclaration,or,void 0,void 0,void 0),li)}return e.visitEachChild(be,f,W)}function ke(be){if(e.hasSyntacticModifier(be,1)){var or=G;G=!0;var Kr=e.visitEachChild(be,f,W);return G=or,Kr}return e.visitEachChild(be,f,W)}function Ue(be){if(G){var or=G;G=!1;var Kr=He(be,!0);return G=or,Kr}return He(be,!1)}function He(be,or){return e.isBindingPattern(be.name)&&be.name.transformFlags&32768?e.flattenDestructuringBinding(be,f,W,1,void 0,or):e.visitEachChild(be,f,W)}function ar(be){return N.updateForStatement(be,e.visitNode(be.initializer,P,e.isForInitializer),e.visitNode(be.condition,f,e.isExpression),e.visitNode(be.incrementor,P,e.isExpression),e.visitIterationBody(be.statement,f,W))}function gr(be){return e.visitEachChild(be,P,W)}function me(be,or){var Kr=I(0,2);be.initializer.transformFlags&32768&&(be=Ge(be));var ei=be.awaitModifier?we(be,or,Kr):N.restoreEnclosingLabel(e.visitEachChild(be,f,W),or);return ne(Kr),ei}function Ge(be){var or=e.skipParentheses(be.initializer);if(e.isVariableDeclarationList(or)||e.isAssignmentPattern(or)){var Kr=void 0,ei=void 0,li=N.createTempVariable(void 0),Si=[e.createForOfBindingStatement(N,or,li)];return e.isBlock(be.statement)?(e.addRange(Si,be.statement.statements),Kr=be.statement,ei=be.statement.statements):be.statement&&(e.append(Si,be.statement),Kr=be.statement,ei=be.statement),N.updateForOfStatement(be,be.awaitModifier,e.setTextRange(N.createVariableDeclarationList([e.setTextRange(N.createVariableDeclaration(li),be.initializer)],1),be.initializer),be.expression,e.setTextRange(N.createBlock(e.setTextRange(N.createNodeArray(Si),ei),!0),Kr))}return be}function er(be,or){var Kr=e.createForOfBindingStatement(N,be.initializer,or),ei,li,Si=[e.visitNode(Kr,f,e.isStatement)],qi=e.visitIterationBody(be.statement,f,W);return e.isBlock(qi)?(e.addRange(Si,qi.statements),ei=qi,li=qi.statements):Si.push(qi),e.setEmitFlags(e.setTextRange(N.createBlock(e.setTextRange(N.createNodeArray(Si),li),!0),ei),432)}function he(be){return ue&1?N.createYieldExpression(void 0,Q().createAwaitHelper(be)):N.createAwaitExpression(be)}function we(be,or,Kr){var ei=e.visitNode(be.expression,f,e.isExpression),li=e.isIdentifier(ei)?N.getGeneratedNameForNode(ei):N.createTempVariable(void 0),Si=e.isIdentifier(ei)?N.getGeneratedNameForNode(li):N.createTempVariable(void 0),qi=N.createUniqueName("e"),ft=N.getGeneratedNameForNode(qi),bt=N.createTempVariable(void 0),aa=e.setTextRange(Q().createAsyncValuesHelper(ei),be.expression),sr=N.createCallExpression(N.createPropertyAccessExpression(li,"next"),void 0,[]),Ji=N.createPropertyAccessExpression(Si,"done"),di=N.createPropertyAccessExpression(Si,"value"),X=N.createFunctionCallCall(bt,li,[]);g(qi),g(bt);var Ye=Kr&2?N.inlineExpressions([N.createAssignment(qi,N.createVoidZero()),aa]):aa,Be=e.setEmitFlags(e.setTextRange(N.createForStatement(e.setEmitFlags(e.setTextRange(N.createVariableDeclarationList([e.setTextRange(N.createVariableDeclaration(li,void 0,void 0,Ye),be.expression),N.createVariableDeclaration(Si)]),be.expression),2097152),N.createComma(N.createAssignment(Si,he(sr)),N.createLogicalNot(Ji)),void 0,er(be,di)),be),256);return e.setOriginalNode(Be,be),N.createTryStatement(N.createBlock([N.restoreEnclosingLabel(Be,or)]),N.createCatchClause(N.createVariableDeclaration(ft),e.setEmitFlags(N.createBlock([N.createExpressionStatement(N.createAssignment(qi,N.createObjectLiteralExpression([N.createPropertyAssignment("error",ft)])))]),1)),N.createBlock([N.createTryStatement(N.createBlock([e.setEmitFlags(N.createIfStatement(N.createLogicalAnd(N.createLogicalAnd(Si,N.createLogicalNot(Ji)),N.createAssignment(bt,N.createPropertyAccessExpression(li,"return"))),N.createExpressionStatement(he(X))),1)]),void 0,e.setEmitFlags(N.createBlock([e.setEmitFlags(N.createIfStatement(qi,N.createThrowStatement(N.createPropertyAccessExpression(qi,"error"))),1)]),1))]))}function ye(be){return e.Debug.assertNode(be,e.isParameter),Se(be)}function Se(be){return B!=null&&B.has(be)?N.updateParameterDeclaration(be,void 0,void 0,be.dotDotDotToken,e.isBindingPattern(be.name)?N.getGeneratedNameForNode(be):be.name,void 0,void 0,void 0):be.transformFlags&32768?N.updateParameterDeclaration(be,void 0,void 0,be.dotDotDotToken,N.getGeneratedNameForNode(be),void 0,void 0,e.visitNode(be.initializer,f,e.isExpression)):e.visitEachChild(be,f,W)}function ge(be){for(var or,Kr=0,ei=be.parameters;Kr<ei.length;Kr++){var li=ei[Kr];or?or.add(li):li.transformFlags&32768&&(or=new e.Set)}return or}function Fe(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateConstructorDeclaration(be,void 0,be.modifiers,e.visitParameterList(be.parameters,ye,W),Er(be));return ue=or,B=Kr,ei}function cr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateGetAccessorDeclaration(be,void 0,be.modifiers,e.visitNode(be.name,f,e.isPropertyName),e.visitParameterList(be.parameters,ye,W),void 0,Er(be));return ue=or,B=Kr,ei}function ur(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateSetAccessorDeclaration(be,void 0,be.modifiers,e.visitNode(be.name,f,e.isPropertyName),e.visitParameterList(be.parameters,ye,W),Er(be));return ue=or,B=Kr,ei}function Ir(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateMethodDeclaration(be,void 0,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,e.visitNode(be.name,f,e.isPropertyName),e.visitNode(void 0,f,e.isToken),void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function dr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateFunctionDeclaration(be,void 0,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,be.name,void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function Br(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateArrowFunction(be,be.modifiers,void 0,e.visitParameterList(be.parameters,ye,W),void 0,be.equalsGreaterThanToken,Er(be));return ue=or,B=Kr,ei}function Tr(be){var or=ue,Kr=B;ue=e.getFunctionFlags(be),B=ge(be);var ei=N.updateFunctionExpression(be,ue&1?e.visitNodes(be.modifiers,D,e.isModifier):be.modifiers,ue&2?void 0:be.asteriskToken,be.name,void 0,e.visitParameterList(be.parameters,ye,W),void 0,ue&2&&ue&1?n(be):Er(be));return ue=or,B=Kr,ei}function n(be){pe();var or=[],Kr=N.copyPrologue(be.body.statements,or,!1,f);br(or,be);var ei=_e,li=Y;_e=new e.Set,Y=!1;var Si=N.createReturnStatement(Q().createAsyncGeneratorHelper(N.createFunctionExpression(void 0,N.createToken(41),be.name&&N.getGeneratedNameForNode(be.name),void 0,[],void 0,N.updateBlock(be.body,e.visitLexicalEnvironment(be.body.statements,f,W,Kr))),!!(M&1))),qi=se>=2&&S.getNodeCheckFlags(be)&6144;if(qi){Pr();var ft=e.createSuperAccessVariableStatement(N,S,be,_e);Z[e.getNodeId(ft)]=!0,e.insertStatementsAfterStandardPrologue(or,[ft])}or.push(Si),e.insertStatementsAfterStandardPrologue(or,F());var bt=N.updateBlock(be.body,or);return qi&&Y&&(S.getNodeCheckFlags(be)&4096?e.addEmitHelper(bt,e.advancedAsyncSuperHelper):S.getNodeCheckFlags(be)&2048&&e.addEmitHelper(bt,e.asyncSuperHelper)),_e=ei,Y=li,bt}function Er(be){var or;pe();var Kr=0,ei=[],li=(or=e.visitNode(be.body,f,e.isConciseBody))!==null&&or!==void 0?or:N.createBlock([]);e.isBlock(li)&&(Kr=N.copyPrologue(li.statements,ei,!1,f)),e.addRange(ei,br(void 0,be));var Si=F();if(Kr>0||e.some(ei)||e.some(Si)){var qi=N.converters.convertToFunctionBlock(li,!0);return e.insertStatementsAfterStandardPrologue(ei,Si),e.addRange(ei,qi.statements.slice(Kr)),N.updateBlock(qi,e.setTextRange(N.createNodeArray(ei),qi.statements))}return li}function br(be,or){for(var Kr=!1,ei=0,li=or.parameters;ei<li.length;ei++){var Si=li[ei];if(Kr){if(e.isBindingPattern(Si.name)){if(Si.name.elements.length>0){var qi=e.flattenDestructuringBinding(Si,f,W,0,N.getGeneratedNameForNode(Si));if(e.some(qi)){var ft=N.createVariableDeclarationList(qi),bt=N.createVariableStatement(void 0,ft);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}else if(Si.initializer){var aa=N.getGeneratedNameForNode(Si),sr=e.visitNode(Si.initializer,f,e.isExpression),Ji=N.createAssignment(aa,sr),bt=N.createExpressionStatement(Ji);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}else if(Si.initializer){var aa=N.cloneNode(Si.name);e.setTextRange(aa,Si.name),e.setEmitFlags(aa,48);var sr=e.visitNode(Si.initializer,f,e.isExpression);e.addEmitFlags(sr,1584);var Ji=N.createAssignment(aa,sr);e.setTextRange(Ji,Si),e.setEmitFlags(Ji,1536);var di=N.createBlock([N.createExpressionStatement(Ji)]);e.setTextRange(di,Si),e.setEmitFlags(di,1953);var X=N.createTypeCheck(N.cloneNode(Si.name),"undefined"),bt=N.createIfStatement(X,di);e.startOnNewLine(bt),e.setTextRange(bt,Si),e.setEmitFlags(bt,1050528),be=e.append(be,bt)}}else if(Si.transformFlags&32768){Kr=!0;var qi=e.flattenDestructuringBinding(Si,f,W,1,N.getGeneratedNameForNode(Si),!1,!0);if(e.some(qi)){var ft=N.createVariableDeclarationList(qi),bt=N.createVariableStatement(void 0,ft);e.setEmitFlags(bt,1048576),be=e.append(be,bt)}}}return be}function Pr(){(E&1)===0&&(E|=1,W.enableSubstitution(207),W.enableSubstitution(205),W.enableSubstitution(206),W.enableEmitNotification(256),W.enableEmitNotification(168),W.enableEmitNotification(171),W.enableEmitNotification(172),W.enableEmitNotification(170),W.enableEmitNotification(236))}function Ce(be,or,Kr){if(E&1&&Rr(or)){var ei=S.getNodeCheckFlags(or)&6144;if(ei!==re){var li=re;re=ei,p(be,or,Kr),re=li;return}}else if(E&&Z[e.getNodeId(or)]){var li=re;re=0,p(be,or,Kr),re=li;return}p(be,or,Kr)}function Le(be,or){return or=C(be,or),be===1&&re?Xe(or):or}function Xe(be){switch(be.kind){case 205:return Cr(be);case 206:return Lr(be);case 207:return Jr(be)}return be}function Cr(be){return be.expression.kind===106?e.setTextRange(N.createPropertyAccessExpression(N.createUniqueName("_super",48),be.name),be):be}function Lr(be){return be.expression.kind===106?ci(be.argumentExpression,be):be}function Jr(be){var or=be.expression;if(e.isSuperProperty(or)){var Kr=e.isPropertyAccessExpression(or)?Cr(or):Lr(or);return N.createCallExpression(N.createPropertyAccessExpression(Kr,"call"),void 0,qe([N.createThis()],be.arguments,!0))}return be}function Rr(be){var or=be.kind;return or===256||or===170||or===168||or===171||or===172}function ci(be,or){return re&4096?e.setTextRange(N.createPropertyAccessExpression(N.createCallExpression(N.createIdentifier("_superIndex"),void 0,[be]),"value"),or):e.setTextRange(N.createCallExpression(N.createIdentifier("_superIndex"),void 0,[be]),or)}}e.transformES2018=L})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory;return e.chainBundle(O,W);function W(pe){return pe.isDeclarationFile?pe:e.visitEachChild(pe,N,O)}function N(pe){if((pe.transformFlags&64)===0)return pe;switch(pe.kind){case 291:return Q(pe);default:return e.visitEachChild(pe,N,O)}}function Q(pe){return pe.variableDeclaration?e.visitEachChild(pe,N,O):L.updateCatchClause(pe,L.createVariableDeclaration(L.createTempVariable(void 0)),e.visitNode(pe.block,N,e.isBlock))}}e.transformES2019=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.hoistVariableDeclaration;return e.chainBundle(O,N);function N(E){return E.isDeclarationFile?E:e.visitEachChild(E,Q,O)}function Q(E){if((E.transformFlags&32)===0)return E;switch(E.kind){case 207:{var ue=S(E,!1);return e.Debug.assertNotNode(ue,e.isSyntheticReference),ue}case 205:case 206:if(e.isOptionalChain(E)){var ue=se(E,!1,!1);return e.Debug.assertNotNode(ue,e.isSyntheticReference),ue}return e.visitEachChild(E,Q,O);case 220:return E.operatorToken.kind===60?C(E):e.visitEachChild(E,Q,O);case 214:return G(E);default:return e.visitEachChild(E,Q,O)}}function pe(E){e.Debug.assertNotNode(E,e.isNonNullChain);for(var ue=[E];!E.questionDotToken&&!e.isTaggedTemplateExpression(E);)E=e.cast(e.skipPartiallyEmittedExpressions(E.expression),e.isOptionalChain),e.Debug.assertNotNode(E,e.isNonNullChain),ue.unshift(E);return{expression:E.expression,chain:ue}}function F(E,ue,B){var re=H(E.expression,ue,B);return e.isSyntheticReference(re)?L.createSyntheticReferenceExpression(L.updateParenthesizedExpression(E,re.expression),re.thisArg):L.updateParenthesizedExpression(E,re)}function g(E,ue,B){if(e.isOptionalChain(E))return se(E,ue,B);var re=e.visitNode(E.expression,Q,e.isExpression);e.Debug.assertNotNode(re,e.isSyntheticReference);var M;return ue&&(e.isSimpleCopiableExpression(re)?M=re:(M=L.createTempVariable(W),re=L.createAssignment(M,re))),re=E.kind===205?L.updatePropertyAccessExpression(E,re,e.visitNode(E.name,Q,e.isIdentifier)):L.updateElementAccessExpression(E,re,e.visitNode(E.argumentExpression,Q,e.isExpression)),M?L.createSyntheticReferenceExpression(re,M):re}function S(E,ue){if(e.isOptionalChain(E))return se(E,ue,!1);if(e.isParenthesizedExpression(E.expression)&&e.isOptionalChain(e.skipParentheses(E.expression))){var B=F(E.expression,!0,!1),re=e.visitNodes(E.arguments,Q,e.isExpression);return e.isSyntheticReference(B)?e.setTextRange(L.createFunctionCallCall(B.expression,B.thisArg,re),E):L.updateCallExpression(E,B,void 0,re)}return e.visitEachChild(E,Q,O)}function H(E,ue,B){switch(E.kind){case 211:return F(E,ue,B);case 205:case 206:return g(E,ue,B);case 207:return S(E,ue);default:return e.visitNode(E,Q,e.isExpression)}}function se(E,ue,B){var re=pe(E),M=re.expression,x=re.chain,ie=H(e.skipPartiallyEmittedExpressions(M),e.isCallChain(x[0]),!1),_e=e.isSyntheticReference(ie)?ie.thisArg:void 0,Y=e.isSyntheticReference(ie)?ie.expression:ie,Z=L.restoreOuterExpressions(M,Y,8);e.isSimpleCopiableExpression(Y)||(Y=L.createTempVariable(W),Z=L.createAssignment(Y,Z));for(var k=Y,I,ne=0;ne<x.length;ne++){var ee=x[ne];switch(ee.kind){case 205:case 206:ne===x.length-1&&ue&&(e.isSimpleCopiableExpression(k)?I=k:(I=L.createTempVariable(W),k=L.createAssignment(I,k))),k=ee.kind===205?L.createPropertyAccessExpression(k,e.visitNode(ee.name,Q,e.isIdentifier)):L.createElementAccessExpression(k,e.visitNode(ee.argumentExpression,Q,e.isExpression));break;case 207:ne===0&&_e?(e.isGeneratedIdentifier(_e)||(_e=L.cloneNode(_e),e.addEmitFlags(_e,1536)),k=L.createFunctionCallCall(k,_e.kind===106?L.createThis():_e,e.visitNodes(ee.arguments,Q,e.isExpression))):k=L.createCallExpression(k,void 0,e.visitNodes(ee.arguments,Q,e.isExpression));break}e.setOriginalNode(k,ee)}var A=B?L.createConditionalExpression(p(Z,Y,!0),void 0,L.createTrue(),void 0,L.createDeleteExpression(k)):L.createConditionalExpression(p(Z,Y,!0),void 0,L.createVoidZero(),void 0,k);return e.setTextRange(A,E),I?L.createSyntheticReferenceExpression(A,I):A}function p(E,ue,B){return L.createBinaryExpression(L.createBinaryExpression(E,L.createToken(B?36:37),L.createNull()),L.createToken(B?56:55),L.createBinaryExpression(ue,L.createToken(B?36:37),L.createVoidZero()))}function C(E){var ue=e.visitNode(E.left,Q,e.isExpression),B=ue;return e.isSimpleCopiableExpression(ue)||(B=L.createTempVariable(W),ue=L.createAssignment(B,ue)),e.setTextRange(L.createConditionalExpression(p(ue,B),void 0,B,void 0,e.visitNode(E.right,Q,e.isExpression)),E)}function G(E){return e.isOptionalChain(e.skipParentheses(E.expression))?e.setOriginalNode(H(E.expression,!1,!0),E):L.updateDeleteExpression(E,e.visitNode(E.expression,Q,e.isExpression))}}e.transformES2020=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.hoistVariableDeclaration,W=O.factory;return e.chainBundle(O,N);function N(F){return F.isDeclarationFile?F:e.visitEachChild(F,Q,O)}function Q(F){if((F.transformFlags&16)===0)return F;switch(F.kind){case 220:var g=F;if(e.isLogicalOrCoalescingAssignmentExpression(g))return pe(g);default:return e.visitEachChild(F,Q,O)}}function pe(F){var g=F.operatorToken,S=e.getNonAssignmentOperatorForCompoundAssignment(g.kind),H=e.skipParentheses(e.visitNode(F.left,Q,e.isLeftHandSideExpression)),se=H,p=e.skipParentheses(e.visitNode(F.right,Q,e.isExpression));if(e.isAccessExpression(H)){var C=e.isSimpleCopiableExpression(H.expression),G=C?H.expression:W.createTempVariable(L),E=C?H.expression:W.createAssignment(G,H.expression);if(e.isPropertyAccessExpression(H))se=W.createPropertyAccessExpression(G,H.name),H=W.createPropertyAccessExpression(E,H.name);else{var ue=e.isSimpleCopiableExpression(H.argumentExpression),B=ue?H.argumentExpression:W.createTempVariable(L);se=W.createElementAccessExpression(G,B),H=W.createElementAccessExpression(E,ue?H.argumentExpression:W.createAssignment(B,H.argumentExpression))}}return W.createBinaryExpression(H,S,W.createParenthesizedExpression(W.createAssignment(se,p)))}}e.transformES2021=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){return e.chainBundle(O,L);function L(N){return N.isDeclarationFile?N:e.visitEachChild(N,W,O)}function W(N){if((N.transformFlags&4)===0)return N;switch(N.kind){default:return e.visitEachChild(N,W,O)}}}e.transformESNext=a})(Pe||(Pe={}));var Pe;(function(e){function a(L){var W=L.factory,N=L.getEmitHelperFactory,Q=L.getCompilerOptions(),pe,F;return e.chainBundle(L,C);function g(){if(F.filenameDeclaration)return F.filenameDeclaration.name;var m=W.createVariableDeclaration(W.createUniqueName("_jsxFileName",48),void 0,void 0,W.createStringLiteral(pe.fileName));return F.filenameDeclaration=m,F.filenameDeclaration.name}function S(m){return Q.jsx===5?"jsxDEV":m?"jsxs":"jsx"}function H(m){var de=S(m);return p(de)}function se(){return p("Fragment")}function p(m){var de,ae,V=m==="createElement"?F.importSpecifier:e.getJSXRuntimeImport(F.importSpecifier,Q),le=(ae=(de=F.utilizedImplicitRuntimeImports)===null||de===void 0?void 0:de.get(V))===null||ae===void 0?void 0:ae.get(m);if(le)return le.name;F.utilizedImplicitRuntimeImports||(F.utilizedImplicitRuntimeImports=new e.Map);var ke=F.utilizedImplicitRuntimeImports.get(V);ke||(ke=new e.Map,F.utilizedImplicitRuntimeImports.set(V,ke));var Ue=W.createUniqueName("_".concat(m),112),He=W.createImportSpecifier(!1,W.createIdentifier(m),Ue);return Ue.generatedImportReference=He,ke.set(m,He),Ue}function C(m){if(m.isDeclarationFile)return m;pe=m,F={},F.importSpecifier=e.getJSXImplicitImportBase(Q,m);var de=e.visitEachChild(m,G,L);e.addEmitHelpers(de,L.readEmitHelpers());var ae=de.statements;if(F.filenameDeclaration&&(ae=e.insertStatementAfterCustomPrologue(ae.slice(),W.createVariableStatement(void 0,W.createVariableDeclarationList([F.filenameDeclaration],2)))),F.utilizedImplicitRuntimeImports)for(var V=0,le=e.arrayFrom(F.utilizedImplicitRuntimeImports.entries());V<le.length;V++){var ke=le[V],Ue=ke[0],He=ke[1];if(e.isExternalModule(m)){var ar=W.createImportDeclaration(void 0,void 0,W.createImportClause(!1,void 0,W.createNamedImports(e.arrayFrom(He.values()))),W.createStringLiteral(Ue),void 0);e.setParentRecursive(ar,!1),ae=e.insertStatementAfterCustomPrologue(ae.slice(),ar)}else if(e.isExternalOrCommonJsModule(m)){var gr=W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.createObjectBindingPattern(e.map(e.arrayFrom(He.values()),function(me){return W.createBindingElement(void 0,me.propertyName,me.name)})),void 0,void 0,W.createCallExpression(W.createIdentifier("require"),void 0,[W.createStringLiteral(Ue)]))],2));e.setParentRecursive(gr,!1),ae=e.insertStatementAfterCustomPrologue(ae.slice(),gr)}}return ae!==de.statements&&(de=W.updateSourceFile(de,ae)),F=void 0,de}function G(m){return m.transformFlags&2?E(m):m}function E(m){switch(m.kind){case 277:return M(m,!1);case 278:return x(m,!1);case 281:return ie(m,!1);case 287:return ce(m);default:return e.visitEachChild(m,G,L)}}function ue(m){switch(m.kind){case 11:return w(m);case 287:return ce(m);case 277:return M(m,!0);case 278:return x(m,!0);case 281:return ie(m,!0);default:return e.Debug.failBadSyntaxKind(m)}}function B(m){for(var de=!1,ae=0,V=m.attributes.properties;ae<V.length;ae++){var le=V[ae];if(e.isJsxSpreadAttribute(le))de=!0;else if(de&&e.isJsxAttribute(le)&&le.name.escapedText==="key")return!0}return!1}function re(m){return F.importSpecifier===void 0||B(m)}function M(m,de){var ae=re(m.openingElement)?I:Z;return ae(m.openingElement,m.children,de,m)}function x(m,de){var ae=re(m)?I:Z;return ae(m,void 0,de,m)}function ie(m,de){var ae=F.importSpecifier===void 0?ee:ne;return ae(m.openingFragment,m.children,de,m)}function _e(m){var de=Y(m);return de&&W.createObjectLiteralExpression([de])}function Y(m){var de=e.getSemanticJsxChildren(m);if(e.length(de)===1&&!de[0].dotDotDotToken){var ae=ue(de[0]);return ae&&W.createPropertyAssignment("children",ae)}var V=e.mapDefined(m,ue);return e.length(V)?W.createPropertyAssignment("children",W.createArrayLiteralExpression(V)):void 0}function Z(m,de,ae,V){var le=oe(m),ke=de&&de.length?Y(de):void 0,Ue=e.find(m.attributes.properties,function(gr){return!!gr.name&&e.isIdentifier(gr.name)&&gr.name.escapedText==="key"}),He=Ue?e.filter(m.attributes.properties,function(gr){return gr!==Ue}):m.attributes.properties,ar=e.length(He)?f(He,ke):W.createObjectLiteralExpression(ke?[ke]:e.emptyArray);return k(le,ar,Ue,de||e.emptyArray,ae,V)}function k(m,de,ae,V,le,ke){var Ue,He=e.getSemanticJsxChildren(V),ar=e.length(He)>1||!!(!((Ue=He[0])===null||Ue===void 0)&&Ue.dotDotDotToken),gr=[m,de];if(ae&&gr.push(J(ae.initializer)),Q.jsx===5){var me=e.getOriginalNode(pe);if(me&&e.isSourceFile(me)){ae===void 0&&gr.push(W.createVoidZero()),gr.push(ar?W.createTrue():W.createFalse());var Ge=e.getLineAndCharacterOfPosition(me,ke.pos);gr.push(W.createObjectLiteralExpression([W.createPropertyAssignment("fileName",g()),W.createPropertyAssignment("lineNumber",W.createNumericLiteral(Ge.line+1)),W.createPropertyAssignment("columnNumber",W.createNumericLiteral(Ge.character+1))])),gr.push(W.createThis())}}var er=e.setTextRange(W.createCallExpression(H(ar),void 0,gr),ke);return le&&e.startOnNewLine(er),er}function I(m,de,ae,V){var le=oe(m),ke=m.attributes.properties,Ue=e.length(ke)?f(ke):W.createNull(),He=F.importSpecifier===void 0?e.createJsxFactoryExpression(W,L.getEmitResolver().getJsxFactoryEntity(pe),Q.reactNamespace,m):p("createElement"),ar=e.createExpressionForJsxElement(W,He,le,Ue,e.mapDefined(de,ue),V);return ae&&e.startOnNewLine(ar),ar}function ne(m,de,ae,V){var le;if(de&&de.length){var ke=_e(de);ke&&(le=ke)}return k(se(),le||W.createObjectLiteralExpression([]),void 0,de,ae,V)}function ee(m,de,ae,V){var le=e.createExpressionForJsxFragment(W,L.getEmitResolver().getJsxFactoryEntity(pe),L.getEmitResolver().getJsxFragmentFactoryEntity(pe),Q.reactNamespace,e.mapDefined(de,ue),m,V);return ae&&e.startOnNewLine(le),le}function A(m){return W.createSpreadAssignment(e.visitNode(m.expression,G,e.isExpression))}function f(m,de){var ae=e.getEmitScriptTarget(Q);return ae&&ae>=5?W.createObjectLiteralExpression(P(m,de)):D(m,de)}function P(m,de){var ae=e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,function(V,le){return e.map(V,function(ke){return le?A(ke):_(ke)})}));return de&&ae.push(de),ae}function D(m,de){var ae=e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,function(V,le){return le?e.map(V,l):W.createObjectLiteralExpression(e.map(V,_))}));return e.isJsxSpreadAttribute(m[0])&&ae.unshift(W.createObjectLiteralExpression()),de&&ae.push(W.createObjectLiteralExpression([de])),e.singleOrUndefined(ae)||N().createAssignHelper(ae)}function l(m){return e.visitNode(m.expression,G,e.isExpression)}function _(m){var de=ve(m),ae=J(m.initializer);return W.createPropertyAssignment(de,ae)}function J(m){if(m===void 0)return W.createTrue();if(m.kind===10){var de=m.singleQuote!==void 0?m.singleQuote:!e.isStringDoubleQuoted(m,pe),ae=W.createStringLiteral(y(m.text)||m.text,de);return e.setTextRange(ae,m)}else return m.kind===287?m.expression===void 0?W.createTrue():e.visitNode(m.expression,G,e.isExpression):e.Debug.failBadSyntaxKind(m)}function w(m){var de=j(m.text);return de===void 0?void 0:W.createStringLiteral(de)}function j(m){for(var de,ae=0,V=-1,le=0;le<m.length;le++){var ke=m.charCodeAt(le);e.isLineBreak(ke)?(ae!==-1&&V!==-1&&(de=U(de,m.substr(ae,V-ae+1))),ae=-1):e.isWhiteSpaceSingleLine(ke)||(V=le,ae===-1&&(ae=le))}return ae!==-1?U(de,m.substr(ae)):de}function U(m,de){var ae=z(de);return m===void 0?ae:m+" "+ae}function z(m){return m.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(de,ae,V,le,ke,Ue,He){if(ke)return e.utf16EncodeAsString(parseInt(ke,10));if(Ue)return e.utf16EncodeAsString(parseInt(Ue,16));var ar=O.get(He);return ar?e.utf16EncodeAsString(ar):de})}function y(m){var de=z(m);return de===m?void 0:de}function oe(m){if(m.kind===277)return oe(m.openingElement);var de=m.tagName;return e.isIdentifier(de)&&e.isIntrinsicJsxName(de.escapedText)?W.createStringLiteral(e.idText(de)):e.createExpressionFromEntityName(W,de)}function ve(m){var de=m.name,ae=e.idText(de);return/^[A-Za-z_]\w*$/.test(ae)?de:W.createStringLiteral(ae)}function ce(m){var de=e.visitNode(m.expression,G,e.isExpression);return m.dotDotDotToken?W.createSpreadElement(de):de}}e.transformJsx=a;var O=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.hoistVariableDeclaration;return e.chainBundle(O,N);function N(S){return S.isDeclarationFile?S:e.visitEachChild(S,Q,O)}function Q(S){if((S.transformFlags&512)===0)return S;switch(S.kind){case 220:return pe(S);default:return e.visitEachChild(S,Q,O)}}function pe(S){switch(S.operatorToken.kind){case 67:return F(S);case 42:return g(S);default:return e.visitEachChild(S,Q,O)}}function F(S){var H,se,p=e.visitNode(S.left,Q,e.isExpression),C=e.visitNode(S.right,Q,e.isExpression);if(e.isElementAccessExpression(p)){var G=L.createTempVariable(W),E=L.createTempVariable(W);H=e.setTextRange(L.createElementAccessExpression(e.setTextRange(L.createAssignment(G,p.expression),p.expression),e.setTextRange(L.createAssignment(E,p.argumentExpression),p.argumentExpression)),p),se=e.setTextRange(L.createElementAccessExpression(G,E),p)}else if(e.isPropertyAccessExpression(p)){var G=L.createTempVariable(W);H=e.setTextRange(L.createPropertyAccessExpression(e.setTextRange(L.createAssignment(G,p.expression),p.expression),p.name),p),se=e.setTextRange(L.createPropertyAccessExpression(G,p.name),p)}else H=p,se=p;return e.setTextRange(L.createAssignment(H,e.setTextRange(L.createGlobalMethodCall("Math","pow",[se,C]),S)),S)}function g(S){var H=e.visitNode(S.left,Q,e.isExpression),se=e.visitNode(S.right,Q,e.isExpression);return e.setTextRange(L.createGlobalMethodCall("Math","pow",[H,se]),S)}}e.transformES2016=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(g){g[g.CapturedThis=1]="CapturedThis",g[g.BlockScopedBindings=2]="BlockScopedBindings"})(a||(a={}));var O;(function(g){g[g.Body=1]="Body",g[g.Initializer=2]="Initializer"})(O||(O={}));var L;(function(g){g[g.ToOriginal=0]="ToOriginal",g[g.ToOutParameter=1]="ToOutParameter"})(L||(L={}));var W;(function(g){g[g.Break=2]="Break",g[g.Continue=4]="Continue",g[g.Return=8]="Return"})(W||(W={}));var N;(function(g){g[g.None=0]="None",g[g.Function=1]="Function",g[g.ArrowFunction=2]="ArrowFunction",g[g.AsyncFunctionBody=4]="AsyncFunctionBody",g[g.NonStaticClassElement=8]="NonStaticClassElement",g[g.CapturesThis=16]="CapturesThis",g[g.ExportedVariableStatement=32]="ExportedVariableStatement",g[g.TopLevel=64]="TopLevel",g[g.Block=128]="Block",g[g.IterationStatement=256]="IterationStatement",g[g.IterationStatementBlock=512]="IterationStatementBlock",g[g.IterationContainer=1024]="IterationContainer",g[g.ForStatement=2048]="ForStatement",g[g.ForInOrForOfStatement=4096]="ForInOrForOfStatement",g[g.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",g[g.StaticInitializer=16384]="StaticInitializer",g[g.AncestorFactsMask=32767]="AncestorFactsMask",g[g.BlockScopeIncludes=0]="BlockScopeIncludes",g[g.BlockScopeExcludes=7104]="BlockScopeExcludes",g[g.SourceFileIncludes=64]="SourceFileIncludes",g[g.SourceFileExcludes=8064]="SourceFileExcludes",g[g.FunctionIncludes=65]="FunctionIncludes",g[g.FunctionExcludes=32670]="FunctionExcludes",g[g.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",g[g.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",g[g.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",g[g.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",g[g.ConstructorIncludes=73]="ConstructorIncludes",g[g.ConstructorExcludes=32662]="ConstructorExcludes",g[g.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",g[g.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",g[g.ForStatementIncludes=3328]="ForStatementIncludes",g[g.ForStatementExcludes=5056]="ForStatementExcludes",g[g.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",g[g.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",g[g.BlockIncludes=128]="BlockIncludes",g[g.BlockExcludes=6976]="BlockExcludes",g[g.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",g[g.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",g[g.StaticInitializerIncludes=16449]="StaticInitializerIncludes",g[g.StaticInitializerExcludes=32670]="StaticInitializerExcludes",g[g.NewTarget=32768]="NewTarget",g[g.CapturedLexicalThis=65536]="CapturedLexicalThis",g[g.SubtreeFactsMask=-32768]="SubtreeFactsMask",g[g.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",g[g.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(N||(N={}));var Q;(function(g){g[g.None=0]="None",g[g.UnpackedSpread=1]="UnpackedSpread",g[g.PackedSpread=2]="PackedSpread"})(Q||(Q={}));function pe(g,S){return{kind:g,expression:S}}function F(g){var S=g.factory,H=g.getEmitHelperFactory,se=g.startLexicalEnvironment,p=g.resumeLexicalEnvironment,C=g.endLexicalEnvironment,G=g.hoistVariableDeclaration,E=g.getCompilerOptions(),ue=g.getEmitResolver(),B=g.onSubstituteNode,re=g.onEmitNode;g.onEmitNode=wo,g.onSubstituteNode=No;var M,x,ie,_e;function Y(Ke){_e=e.append(_e,S.createVariableDeclaration(Ke))}var Z,k;return e.chainBundle(g,I);function I(Ke){if(Ke.isDeclarationFile)return Ke;M=Ke,x=Ke.text;var h=j(Ke);return e.addEmitHelpers(h,g.readEmitHelpers()),M=void 0,x=void 0,_e=void 0,ie=0,h}function ne(Ke,h){var Ee=ie;return ie=(ie&~Ke|h)&32767,Ee}function ee(Ke,h,Ee){ie=(ie&~h|Ee)&-32768|Ke}function A(Ke){return(ie&8192)!==0&&Ke.kind===246&&!Ke.expression}function f(Ke){return Ke.transformFlags&2097152&&(e.isReturnStatement(Ke)||e.isIfStatement(Ke)||e.isWithStatement(Ke)||e.isSwitchStatement(Ke)||e.isCaseBlock(Ke)||e.isCaseClause(Ke)||e.isDefaultClause(Ke)||e.isTryStatement(Ke)||e.isCatchClause(Ke)||e.isLabeledStatement(Ke)||e.isIterationStatement(Ke,!1)||e.isBlock(Ke))}function P(Ke){return(Ke.transformFlags&1024)!==0||Z!==void 0||ie&8192&&f(Ke)||e.isIterationStatement(Ke,!1)&&mr(Ke)||(e.getEmitFlags(Ke)&33554432)!==0}function D(Ke){return P(Ke)?w(Ke,!1):Ke}function l(Ke){return P(Ke)?w(Ke,!0):Ke}function _(Ke){if(P(Ke)){var h=e.getOriginalNode(Ke);if(e.isPropertyDeclaration(h)&&e.hasStaticModifier(h)){var Ee=ne(32670,16449),Re=w(Ke,!1);return ee(Ee,98304,0),Re}return w(Ke,!1)}return Ke}function J(Ke){return Ke.kind===106?pn(!0):D(Ke)}function w(Ke,h){switch(Ke.kind){case 124:return;case 256:return ae(Ke);case 225:return V(Ke);case 163:return ye(Ke);case 255:return Lr(Ke);case 213:return Xe(Ke);case 212:return Cr(Ke);case 253:return sr(Ke);case 79:return m(Ke);case 254:return qi(Ke);case 248:return U(Ke);case 262:return z(Ke);case 234:return ci(Ke,!1);case 245:case 244:return de(Ke);case 249:return X(Ke);case 239:case 240:return Qe(Ke,void 0);case 241:return _r(Ke,void 0);case 242:return Dr(Ke,void 0);case 243:return Me(Ke,void 0);case 237:return be(Ke);case 204:return Oe(Ke);case 291:return Oi(Ke);case 295:return tt(Ke);case 161:return ta(Ke);case 203:return on(Ke);case 207:return qr(Ke);case 208:return zn(Ke);case 211:return or(Ke,h);case 220:return Kr(Ke,h);case 349:return ei(Ke,h);case 14:case 15:case 16:case 17:return Ko(Ke);case 10:return rs(Ke);case 8:return rn(Ke);case 209:return Do(Ke);case 222:return io(Ke);case 223:return Xa(Ke);case 224:return ro(Ke);case 106:return pn(!1);case 108:return ve(Ke);case 230:return Qn(Ke);case 168:return Qr(Ke);case 171:case 172:return Ct(Ke);case 236:return Si(Ke);case 246:return oe(Ke);case 216:return ce(Ke);default:return e.visitEachChild(Ke,D,g)}}function j(Ke){var h=ne(8064,64),Ee=[],Re=[];se();var nr=S.copyPrologue(Ke.statements,Ee,!1,D);return e.addRange(Re,e.visitNodes(Ke.statements,D,e.isStatement,nr)),_e&&Re.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(_e))),S.mergeLexicalEnvironment(Ee,C()),dr(Ee,Ke),ee(h,0,0),S.updateSourceFile(Ke,e.setTextRange(S.createNodeArray(e.concatenate(Ee,Re)),Ke.statements))}function U(Ke){if(Z!==void 0){var h=Z.allowedNonLabeledJumps;Z.allowedNonLabeledJumps|=2;var Ee=e.visitEachChild(Ke,D,g);return Z.allowedNonLabeledJumps=h,Ee}return e.visitEachChild(Ke,D,g)}function z(Ke){var h=ne(7104,0),Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function y(Ke){return e.setOriginalNode(S.createReturnStatement(S.createUniqueName("_this",48)),Ke)}function oe(Ke){return Z?(Z.nonLocalJumps|=8,A(Ke)&&(Ke=y(Ke)),S.createReturnStatement(S.createObjectLiteralExpression([S.createPropertyAssignment(S.createIdentifier("value"),Ke.expression?e.visitNode(Ke.expression,D,e.isExpression):S.createVoidZero())]))):A(Ke)?y(Ke):e.visitEachChild(Ke,D,g)}function ve(Ke){return ie&2&&!(ie&16384)&&(ie|=65536),Z?ie&2?(Z.containsLexicalThis=!0,Ke):Z.thisName||(Z.thisName=S.createUniqueName("this")):Ke}function ce(Ke){return e.visitEachChild(Ke,l,g)}function m(Ke){return Z&&ue.isArgumentsLocalBinding(Ke)?Z.argumentsName||(Z.argumentsName=S.createUniqueName("arguments")):Ke}function de(Ke){if(Z){var h=Ke.kind===245?2:4,Ee=Ke.label&&Z.labels&&Z.labels.get(e.idText(Ke.label))||!Ke.label&&Z.allowedNonLabeledJumps&h;if(!Ee){var Re=void 0,nr=Ke.label;nr?Ke.kind===245?(Re="break-".concat(nr.escapedText),Hi(Z,!0,e.idText(nr),Re)):(Re="continue-".concat(nr.escapedText),Hi(Z,!1,e.idText(nr),Re)):Ke.kind===245?(Z.nonLocalJumps|=2,Re="break"):(Z.nonLocalJumps|=4,Re="continue");var Gr=S.createStringLiteral(Re);if(Z.loopOutParameters.length){for(var _i=Z.loopOutParameters,Ei=void 0,Ki=0;Ki<_i.length;Ki++){var Nt=ua(_i[Ki],1);Ki===0?Ei=Nt:Ei=S.createBinaryExpression(Ei,27,Nt)}Gr=S.createBinaryExpression(Ei,27,Gr)}return S.createReturnStatement(Gr)}}return e.visitEachChild(Ke,D,g)}function ae(Ke){var h=S.createVariableDeclaration(S.getLocalName(Ke,!0),void 0,void 0,le(Ke));e.setOriginalNode(h,Ke);var Ee=[],Re=S.createVariableStatement(void 0,S.createVariableDeclarationList([h]));if(e.setOriginalNode(Re,Ke),e.setTextRange(Re,Ke),e.startOnNewLine(Re),Ee.push(Re),e.hasSyntacticModifier(Ke,1)){var nr=e.hasSyntacticModifier(Ke,512)?S.createExportDefault(S.getLocalName(Ke)):S.createExternalModuleExport(S.getLocalName(Ke));e.setOriginalNode(nr,Re),Ee.push(nr)}var Gr=e.getEmitFlags(Ke);return(Gr&4194304)===0&&(Ee.push(S.createEndOfDeclarationMarker(Ke)),e.setEmitFlags(Re,Gr|4194304)),e.singleOrMany(Ee)}function V(Ke){return le(Ke)}function le(Ke){Ke.name&&xo();var h=e.getClassExtendsHeritageElement(Ke),Ee=S.createFunctionExpression(void 0,void 0,void 0,void 0,h?[S.createParameterDeclaration(void 0,void 0,void 0,S.createUniqueName("_super",48))]:[],void 0,ke(Ke,h));e.setEmitFlags(Ee,e.getEmitFlags(Ke)&65536|524288);var Re=S.createPartiallyEmittedExpression(Ee);e.setTextRangeEnd(Re,Ke.end),e.setEmitFlags(Re,1536);var nr=S.createPartiallyEmittedExpression(Re);e.setTextRangeEnd(nr,e.skipTrivia(x,Ke.pos)),e.setEmitFlags(nr,1536);var Gr=S.createParenthesizedExpression(S.createCallExpression(nr,void 0,h?[e.visitNode(h.expression,D,e.isExpression)]:[]));return e.addSyntheticLeadingComment(Gr,3,"* @class "),Gr}function ke(Ke,h){var Ee=[],Re=S.getInternalName(Ke),nr=e.isIdentifierANonContextualKeyword(Re)?S.getGeneratedNameForNode(Re):Re;se(),Ue(Ee,Ke,h),He(Ee,Ke,nr,h),Er(Ee,Ke);var Gr=e.createTokenRange(e.skipTrivia(x,Ke.members.end),19),_i=S.createPartiallyEmittedExpression(nr);e.setTextRangeEnd(_i,Gr.end),e.setEmitFlags(_i,1536);var Ei=S.createReturnStatement(_i);e.setTextRangePos(Ei,Gr.pos),e.setEmitFlags(Ei,1920),Ee.push(Ei),e.insertStatementsAfterStandardPrologue(Ee,C());var Ki=S.createBlock(e.setTextRange(S.createNodeArray(Ee),Ke.members),!0);return e.setEmitFlags(Ki,1536),Ki}function Ue(Ke,h,Ee){Ee&&Ke.push(e.setTextRange(S.createExpressionStatement(H().createExtendsHelper(S.getInternalName(h))),Ee))}function He(Ke,h,Ee,Re){var nr=Z;Z=void 0;var Gr=ne(32662,73),_i=e.getFirstConstructorWithBody(h),Ei=an(_i,Re!==void 0),Ki=S.createFunctionDeclaration(void 0,void 0,void 0,Ee,void 0,ar(_i,Ei),void 0,me(_i,h,Re,Ei));e.setTextRange(Ki,_i||h),Re&&e.setEmitFlags(Ki,8),Ke.push(Ki),ee(Gr,98304,0),Z=nr}function ar(Ke,h){return e.visitParameterList(Ke&&!h?Ke.parameters:void 0,D,g)||[]}function gr(Ke,h){var Ee=[];p(),S.mergeLexicalEnvironment(Ee,C()),h&&Ee.push(S.createReturnStatement(we()));var Re=S.createNodeArray(Ee);e.setTextRange(Re,Ke.members);var nr=S.createBlock(Re,!0);return e.setTextRange(nr,Ke),e.setEmitFlags(nr,1536),nr}function me(Ke,h,Ee,Re){var nr=!!Ee&&e.skipOuterExpressions(Ee.expression).kind!==104;if(!Ke)return gr(h,nr);var Gr=[],_i=[];p();var Ei=e.takeWhile(Ke.body.statements,e.isPrologueDirective),Ki=Ge(Ke.body.statements,Ei),Nt=Ki.superCall,ca=Ki.superStatementIndex,Fa=ca===-1?Ei.length:ca+1,Ta=Fa;Re||(Ta=S.copyStandardPrologue(Ke.body.statements,Gr,Ta,!1)),Re||(Ta=S.copyCustomPrologue(Ke.body.statements,_i,Ta,D,void 0));var In;if(Re?In=we():Nt&&(In=Rn(Nt)),In&&(ie|=8192),ge(Gr,Ke),Ir(Gr,Ke,Re),e.addRange(_i,e.visitNodes(Ke.body.statements,D,e.isStatement,Ta)),S.mergeLexicalEnvironment(Gr,C()),n(Gr,Ke,!1),nr||In)if(In&&Fa===Ke.body.statements.length&&!(Ke.body.transformFlags&8192)){var so=e.cast(e.cast(In,e.isBinaryExpression).left,e.isCallExpression),as=S.createReturnStatement(In);e.setCommentRange(as,e.getCommentRange(so)),e.setEmitFlags(so,1536),_i.push(as)}else ca<=Ei.length?Tr(_i,Ke,In||he()):(Tr(Gr,Ke,he()),In&&Br(_i,In)),er(Ke.body)||_i.push(S.createReturnStatement(S.createUniqueName("_this",48)));else dr(Gr,Ke);var Ho=S.createBlock(e.setTextRange(S.createNodeArray(qe(qe(qe(qe([],Ei,!0),Gr,!0),ca<=Ei.length?e.emptyArray:e.visitNodes(Ke.body.statements,D,e.isStatement,Ei.length,ca),!0),_i,!0)),Ke.body.statements),!0);return e.setTextRange(Ho,Ke.body),Ho}function Ge(Ke,h){for(var Ee=h.length;Ee<Ke.length;Ee+=1){var Re=e.getSuperCallFromStatement(Ke[Ee]);if(Re)return{superCall:Re,superStatementIndex:Ee}}return{superStatementIndex:-1}}function er(Ke){if(Ke.kind===246)return!0;if(Ke.kind===238){var h=Ke;if(h.elseStatement)return er(h.thenStatement)&&er(h.elseStatement)}else if(Ke.kind===234){var Ee=e.lastOrUndefined(Ke.statements);if(Ee&&er(Ee))return!0}return!1}function he(){return e.setEmitFlags(S.createThis(),4)}function we(){return S.createLogicalOr(S.createLogicalAnd(S.createStrictInequality(S.createUniqueName("_super",48),S.createNull()),S.createFunctionApplyCall(S.createUniqueName("_super",48),he(),S.createIdentifier("arguments"))),he())}function ye(Ke){if(!Ke.dotDotDotToken)return e.isBindingPattern(Ke.name)?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,void 0,S.getGeneratedNameForNode(Ke),void 0,void 0,void 0),Ke),Ke):Ke.initializer?e.setOriginalNode(e.setTextRange(S.createParameterDeclaration(void 0,void 0,void 0,Ke.name,void 0,void 0,void 0),Ke),Ke):Ke}function Se(Ke){return Ke.initializer!==void 0||e.isBindingPattern(Ke.name)}function ge(Ke,h){if(!e.some(h.parameters,Se))return!1;for(var Ee=!1,Re=0,nr=h.parameters;Re<nr.length;Re++){var Gr=nr[Re],_i=Gr.name,Ei=Gr.initializer,Ki=Gr.dotDotDotToken;Ki||(e.isBindingPattern(_i)?Ee=Fe(Ke,Gr,_i,Ei)||Ee:Ei&&(cr(Ke,Gr,_i,Ei),Ee=!0))}return Ee}function Fe(Ke,h,Ee,Re){return Ee.elements.length>0?(e.insertStatementAfterCustomPrologue(Ke,e.setEmitFlags(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(h,D,g,0,S.getGeneratedNameForNode(h)))),1048576)),!0):Re?(e.insertStatementAfterCustomPrologue(Ke,e.setEmitFlags(S.createExpressionStatement(S.createAssignment(S.getGeneratedNameForNode(h),e.visitNode(Re,D,e.isExpression))),1048576)),!0):!1}function cr(Ke,h,Ee,Re){Re=e.visitNode(Re,D,e.isExpression);var nr=S.createIfStatement(S.createTypeCheck(S.cloneNode(Ee),"undefined"),e.setEmitFlags(e.setTextRange(S.createBlock([S.createExpressionStatement(e.setEmitFlags(e.setTextRange(S.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(S.cloneNode(Ee),Ee),Ee.parent),48),e.setEmitFlags(Re,48|e.getEmitFlags(Re)|1536)),h),1536))]),h),1953));e.startOnNewLine(nr),e.setTextRange(nr,h),e.setEmitFlags(nr,1050528),e.insertStatementAfterCustomPrologue(Ke,nr)}function ur(Ke,h){return!!(Ke&&Ke.dotDotDotToken&&!h)}function Ir(Ke,h,Ee){var Re=[],nr=e.lastOrUndefined(h.parameters);if(!ur(nr,Ee))return!1;var Gr=nr.name.kind===79?e.setParent(e.setTextRange(S.cloneNode(nr.name),nr.name),nr.name.parent):S.createTempVariable(void 0);e.setEmitFlags(Gr,48);var _i=nr.name.kind===79?S.cloneNode(nr.name):Gr,Ei=h.parameters.length-1,Ki=S.createLoopVariable();Re.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(Gr,void 0,void 0,S.createArrayLiteralExpression([]))])),nr),1048576));var Nt=S.createForStatement(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(Ki,void 0,void 0,S.createNumericLiteral(Ei))]),nr),e.setTextRange(S.createLessThan(Ki,S.createPropertyAccessExpression(S.createIdentifier("arguments"),"length")),nr),e.setTextRange(S.createPostfixIncrement(Ki),nr),S.createBlock([e.startOnNewLine(e.setTextRange(S.createExpressionStatement(S.createAssignment(S.createElementAccessExpression(_i,Ei===0?Ki:S.createSubtract(Ki,S.createNumericLiteral(Ei))),S.createElementAccessExpression(S.createIdentifier("arguments"),Ki))),nr))]));return e.setEmitFlags(Nt,1048576),e.startOnNewLine(Nt),Re.push(Nt),nr.name.kind!==79&&Re.push(e.setEmitFlags(e.setTextRange(S.createVariableStatement(void 0,S.createVariableDeclarationList(e.flattenDestructuringBinding(nr,D,g,0,_i))),nr),1048576)),e.insertStatementsAfterCustomPrologue(Ke,Re),!0}function dr(Ke,h){return ie&65536&&h.kind!==213?(Tr(Ke,h,S.createThis()),!0):!1}function Br(Ke,h){ds();var Ee=S.createExpressionStatement(S.createBinaryExpression(S.createThis(),63,h));e.insertStatementAfterCustomPrologue(Ke,Ee),e.setCommentRange(Ee,e.getOriginalNode(h).parent)}function Tr(Ke,h,Ee){ds();var Re=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_this",48),void 0,void 0,Ee)]));e.setEmitFlags(Re,1050112),e.setSourceMapRange(Re,h),e.insertStatementAfterCustomPrologue(Ke,Re)}function n(Ke,h,Ee){if(ie&32768){var Re=void 0;switch(h.kind){case 213:return Ke;case 168:case 171:case 172:Re=S.createVoidZero();break;case 170:Re=S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor");break;case 255:case 212:Re=S.createConditionalExpression(S.createLogicalAnd(e.setEmitFlags(S.createThis(),4),S.createBinaryExpression(e.setEmitFlags(S.createThis(),4),102,S.getLocalName(h))),void 0,S.createPropertyAccessExpression(e.setEmitFlags(S.createThis(),4),"constructor"),void 0,S.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(h)}var nr=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(S.createUniqueName("_newTarget",48),void 0,void 0,Re)]));e.setEmitFlags(nr,1050112),Ee&&(Ke=Ke.slice()),e.insertStatementAfterCustomPrologue(Ke,nr)}return Ke}function Er(Ke,h){for(var Ee=0,Re=h.members;Ee<Re.length;Ee++){var nr=Re[Ee];switch(nr.kind){case 233:Ke.push(br(nr));break;case 168:Ke.push(Pr(Ka(h,nr),nr,h));break;case 171:case 172:var Gr=e.getAllAccessorDeclarations(h.members,nr);nr===Gr.firstAccessor&&Ke.push(Ce(Ka(h,nr),Gr,h));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(nr,M&&M.fileName);break}}}function br(Ke){return e.setTextRange(S.createEmptyStatement(),Ke)}function Pr(Ke,h,Ee){var Re=e.getCommentRange(h),nr=e.getSourceMapRange(h),Gr=Jr(h,h,void 0,Ee),_i=e.visitNode(h.name,D,e.isPropertyName),Ei;if(!e.isPrivateIdentifier(_i)&&e.getUseDefineForClassFields(g.getCompilerOptions())){var Ki=e.isComputedPropertyName(_i)?_i.expression:e.isIdentifier(_i)?S.createStringLiteral(e.unescapeLeadingUnderscores(_i.escapedText)):_i;Ei=S.createObjectDefinePropertyCall(Ke,Ki,S.createPropertyDescriptor({value:Gr,enumerable:!1,writable:!0,configurable:!0}))}else{var Nt=e.createMemberAccessForPropertyName(S,Ke,_i,h.name);Ei=S.createAssignment(Nt,Gr)}e.setEmitFlags(Gr,1536),e.setSourceMapRange(Gr,nr);var ca=e.setTextRange(S.createExpressionStatement(Ei),h);return e.setOriginalNode(ca,h),e.setCommentRange(ca,Re),e.setEmitFlags(ca,48),ca}function Ce(Ke,h,Ee){var Re=S.createExpressionStatement(Le(Ke,h,Ee,!1));return e.setEmitFlags(Re,1536),e.setSourceMapRange(Re,e.getSourceMapRange(h.firstAccessor)),Re}function Le(Ke,h,Ee,Re){var nr=h.firstAccessor,Gr=h.getAccessor,_i=h.setAccessor,Ei=e.setParent(e.setTextRange(S.cloneNode(Ke),Ke),Ke.parent);e.setEmitFlags(Ei,1568),e.setSourceMapRange(Ei,nr.name);var Ki=e.visitNode(nr.name,D,e.isPropertyName);if(e.isPrivateIdentifier(Ki))return e.Debug.failBadSyntaxKind(Ki,"Encountered unhandled private identifier while transforming ES2015.");var Nt=e.createExpressionForPropertyName(S,Ki);e.setEmitFlags(Nt,1552),e.setSourceMapRange(Nt,nr.name);var ca=[];if(Gr){var Fa=Jr(Gr,void 0,void 0,Ee);e.setSourceMapRange(Fa,e.getSourceMapRange(Gr)),e.setEmitFlags(Fa,512);var Ta=S.createPropertyAssignment("get",Fa);e.setCommentRange(Ta,e.getCommentRange(Gr)),ca.push(Ta)}if(_i){var In=Jr(_i,void 0,void 0,Ee);e.setSourceMapRange(In,e.getSourceMapRange(_i)),e.setEmitFlags(In,512);var so=S.createPropertyAssignment("set",In);e.setCommentRange(so,e.getCommentRange(_i)),ca.push(so)}ca.push(S.createPropertyAssignment("enumerable",Gr||_i?S.createFalse():S.createTrue()),S.createPropertyAssignment("configurable",S.createTrue()));var as=S.createCallExpression(S.createPropertyAccessExpression(S.createIdentifier("Object"),"defineProperty"),void 0,[Ei,Nt,S.createObjectLiteralExpression(ca,!0)]);return Re&&e.startOnNewLine(as),as}function Xe(Ke){Ke.transformFlags&8192&&!(ie&16384)&&(ie|=65536);var h=Z;Z=void 0;var Ee=ne(15232,66),Re=S.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Ke.parameters,D,g),void 0,Rr(Ke));return e.setTextRange(Re,Ke),e.setOriginalNode(Re,Ke),e.setEmitFlags(Re,8),ee(Ee,0,0),Z=h,Re}function Cr(Ke){var h=e.getEmitFlags(Ke)&262144?ne(32662,69):ne(32670,65),Ee=Z;Z=void 0;var Re=e.visitParameterList(Ke.parameters,D,g),nr=Rr(Ke),Gr=ie&32768?S.getLocalName(Ke):Ke.name;return ee(h,98304,0),Z=Ee,S.updateFunctionExpression(Ke,void 0,Ke.asteriskToken,Gr,void 0,Re,void 0,nr)}function Lr(Ke){var h=Z;Z=void 0;var Ee=ne(32670,65),Re=e.visitParameterList(Ke.parameters,D,g),nr=Rr(Ke),Gr=ie&32768?S.getLocalName(Ke):Ke.name;return ee(Ee,98304,0),Z=h,S.updateFunctionDeclaration(Ke,void 0,e.visitNodes(Ke.modifiers,D,e.isModifier),Ke.asteriskToken,Gr,void 0,Re,void 0,nr)}function Jr(Ke,h,Ee,Re){var nr=Z;Z=void 0;var Gr=Re&&e.isClassLike(Re)&&!e.isStatic(Ke)?ne(32670,73):ne(32670,65),_i=e.visitParameterList(Ke.parameters,D,g),Ei=Rr(Ke);return ie&32768&&!Ee&&(Ke.kind===255||Ke.kind===212)&&(Ee=S.getGeneratedNameForNode(Ke)),ee(Gr,98304,0),Z=nr,e.setOriginalNode(e.setTextRange(S.createFunctionExpression(void 0,Ke.asteriskToken,Ee,void 0,_i,void 0,Ei),h),Ke)}function Rr(Ke){var h=!1,Ee=!1,Re,nr,Gr=[],_i=[],Ei=Ke.body,Ki;if(p(),e.isBlock(Ei)&&(Ki=S.copyStandardPrologue(Ei.statements,Gr,0,!1),Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D,e.isHoistedFunction),Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D,e.isHoistedVariableStatement)),h=ge(_i,Ke)||h,h=Ir(_i,Ke,!1)||h,e.isBlock(Ei))Ki=S.copyCustomPrologue(Ei.statements,_i,Ki,D),Re=Ei.statements,e.addRange(_i,e.visitNodes(Ei.statements,D,e.isStatement,Ki)),!h&&Ei.multiLine&&(h=!0);else{e.Debug.assert(Ke.kind===213),Re=e.moveRangeEnd(Ei,-1);var Nt=Ke.equalsGreaterThanToken;!e.nodeIsSynthesized(Nt)&&!e.nodeIsSynthesized(Ei)&&(e.rangeEndIsOnSameLineAsRangeStart(Nt,Ei,M)?Ee=!0:h=!0);var ca=e.visitNode(Ei,D,e.isExpression),Fa=S.createReturnStatement(ca);e.setTextRange(Fa,Ei),e.moveSyntheticComments(Fa,Ei),e.setEmitFlags(Fa,1440),_i.push(Fa),nr=Ei}if(S.mergeLexicalEnvironment(Gr,C()),n(Gr,Ke,!1),dr(Gr,Ke),e.some(Gr)&&(h=!0),_i.unshift.apply(_i,Gr),e.isBlock(Ei)&&e.arrayIsEqualTo(_i,Ei.statements))return Ei;var Ta=S.createBlock(e.setTextRange(S.createNodeArray(_i),Re),h);return e.setTextRange(Ta,Ke.body),!h&&Ee&&e.setEmitFlags(Ta,1),nr&&e.setTokenSourceMapRange(Ta,19,nr),e.setOriginalNode(Ta,Ke.body),Ta}function ci(Ke,h){if(h)return e.visitEachChild(Ke,D,g);var Ee=ie&256?ne(7104,512):ne(6976,128),Re=e.visitEachChild(Ke,D,g);return ee(Ee,0,0),Re}function be(Ke){return e.visitEachChild(Ke,l,g)}function or(Ke,h){return e.visitEachChild(Ke,h?l:D,g)}function Kr(Ke,h){return e.isDestructuringAssignment(Ke)?e.flattenDestructuringAssignment(Ke,D,g,0,!h):Ke.operatorToken.kind===27?S.updateBinaryExpression(Ke,e.visitNode(Ke.left,l,e.isExpression),Ke.operatorToken,e.visitNode(Ke.right,h?l:D,e.isExpression)):e.visitEachChild(Ke,D,g)}function ei(Ke,h){if(h)return e.visitEachChild(Ke,l,g);for(var Ee,Re=0;Re<Ke.elements.length;Re++){var nr=Ke.elements[Re],Gr=e.visitNode(nr,Re<Ke.elements.length-1?l:D,e.isExpression);(Ee||Gr!==nr)&&(Ee||(Ee=Ke.elements.slice(0,Re)),Ee.push(Gr))}var _i=Ee?e.setTextRange(S.createNodeArray(Ee),Ke.elements):Ke.elements;return S.updateCommaListExpression(Ke,_i)}function li(Ke){return Ke.declarationList.declarations.length===1&&!!Ke.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Ke.declarationList.declarations[0].initializer)&33554432)}function Si(Ke){var h=ne(0,e.hasSyntacticModifier(Ke,1)?32:0),Ee;if(Z&&(Ke.declarationList.flags&3)===0&&!li(Ke)){for(var Re=void 0,nr=0,Gr=Ke.declarationList.declarations;nr<Gr.length;nr++){var _i=Gr[nr];if(Ur(Z,_i),_i.initializer){var Ei=void 0;e.isBindingPattern(_i.name)?Ei=e.flattenDestructuringAssignment(_i,D,g,0):(Ei=S.createBinaryExpression(_i.name,63,e.visitNode(_i.initializer,D,e.isExpression)),e.setTextRange(Ei,_i)),Re=e.append(Re,Ei)}}Re?Ee=e.setTextRange(S.createExpressionStatement(S.inlineExpressions(Re)),Ke):Ee=void 0}else Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function qi(Ke){if(Ke.flags&3||Ke.transformFlags&262144){Ke.flags&3&&xo();var h=e.flatMap(Ke.declarations,Ke.flags&1?aa:sr),Ee=S.createVariableDeclarationList(h);return e.setOriginalNode(Ee,Ke),e.setTextRange(Ee,Ke),e.setCommentRange(Ee,Ke),Ke.transformFlags&262144&&(e.isBindingPattern(Ke.declarations[0].name)||e.isBindingPattern(e.last(Ke.declarations).name))&&e.setSourceMapRange(Ee,ft(h)),Ee}return e.visitEachChild(Ke,D,g)}function ft(Ke){for(var h=-1,Ee=-1,Re=0,nr=Ke;Re<nr.length;Re++){var Gr=nr[Re];h=h===-1?Gr.pos:Gr.pos===-1?h:Math.min(h,Gr.pos),Ee=Math.max(Ee,Gr.end)}return e.createRange(h,Ee)}function bt(Ke){var h=ue.getNodeCheckFlags(Ke),Ee=h&262144,Re=h&524288,nr=(ie&64)!==0||Ee&&Re&&(ie&512)!==0,Gr=!nr&&(ie&4096)===0&&(!ue.isDeclarationWithCollidingName(Ke)||Re&&!Ee&&(ie&6144)===0);return Gr}function aa(Ke){var h=Ke.name;return e.isBindingPattern(h)?sr(Ke):!Ke.initializer&&bt(Ke)?S.updateVariableDeclaration(Ke,Ke.name,void 0,void 0,S.createVoidZero()):e.visitEachChild(Ke,D,g)}function sr(Ke){var h=ne(32,0),Ee;return e.isBindingPattern(Ke.name)?Ee=e.flattenDestructuringBinding(Ke,D,g,0,void 0,(h&32)!==0):Ee=e.visitEachChild(Ke,D,g),ee(h,0,0),Ee}function Ji(Ke){Z.labels.set(e.idText(Ke.label),!0)}function di(Ke){Z.labels.set(e.idText(Ke.label),!1)}function X(Ke){Z&&!Z.labels&&(Z.labels=new e.Map);var h=e.unwrapInnermostStatementOfLabel(Ke,Z&&Ji);return e.isIterationStatement(h,!1)?Ye(h,Ke):S.restoreEnclosingLabel(e.visitNode(h,D,e.isStatement,S.liftToBlock),Ke,Z&&di)}function Ye(Ke,h){switch(Ke.kind){case 239:case 240:return Qe(Ke,h);case 241:return _r(Ke,h);case 242:return Dr(Ke,h);case 243:return Me(Ke,h)}}function Be(Ke,h,Ee,Re,nr){var Gr=ne(Ke,h),_i=si(Ee,Re,Gr,nr);return ee(Gr,0,0),_i}function Qe(Ke,h){return Be(0,1280,Ke,h)}function _r(Ke,h){return Be(5056,3328,Ke,h)}function hr(Ke){return S.updateForStatement(Ke,e.visitNode(Ke.initializer,l,e.isForInitializer),e.visitNode(Ke.condition,D,e.isExpression),e.visitNode(Ke.incrementor,l,e.isExpression),e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock))}function Dr(Ke,h){return Be(3008,5376,Ke,h)}function Me(Ke,h){return Be(3008,5376,Ke,h,E.downlevelIteration?Je:ze)}function v(Ke,h,Ee){var Re=[],nr=Ke.initializer;if(e.isVariableDeclarationList(nr)){Ke.initializer.flags&3&&xo();var Gr=e.firstOrUndefined(nr.declarations);if(Gr&&e.isBindingPattern(Gr.name)){var _i=e.flattenDestructuringBinding(Gr,D,g,0,h),Ei=e.setTextRange(S.createVariableDeclarationList(_i),Ke.initializer);e.setOriginalNode(Ei,Ke.initializer),e.setSourceMapRange(Ei,e.createRange(_i[0].pos,e.last(_i).end)),Re.push(S.createVariableStatement(void 0,Ei))}else Re.push(e.setTextRange(S.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(S.createVariableDeclarationList([S.createVariableDeclaration(Gr?Gr.name:S.createTempVariable(void 0),void 0,void 0,h)]),e.moveRangePos(nr,-1)),nr)),e.moveRangeEnd(nr,-1)))}else{var Ki=S.createAssignment(nr,h);e.isDestructuringAssignment(Ki)?Re.push(S.createExpressionStatement(Kr(Ki,!0))):(e.setTextRangeEnd(Ki,nr.end),Re.push(e.setTextRange(S.createExpressionStatement(e.visitNode(Ki,D,e.isExpression)),e.moveRangeEnd(nr,-1))))}if(Ee)return xe(e.addRange(Re,Ee));var Nt=e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock);return e.isBlock(Nt)?S.updateBlock(Nt,e.setTextRange(S.createNodeArray(e.concatenate(Re,Nt.statements)),Nt.statements)):(Re.push(Nt),xe(Re))}function xe(Ke){return e.setEmitFlags(S.createBlock(S.createNodeArray(Ke),!0),432)}function ze(Ke,h,Ee){var Re=e.visitNode(Ke.expression,D,e.isExpression),nr=S.createLoopVariable(),Gr=e.isIdentifier(Re)?S.getGeneratedNameForNode(Re):S.createTempVariable(void 0);e.setEmitFlags(Re,48|e.getEmitFlags(Re));var _i=e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(nr,void 0,void 0,S.createNumericLiteral(0)),e.moveRangePos(Ke.expression,-1)),e.setTextRange(S.createVariableDeclaration(Gr,void 0,void 0,Re),Ke.expression)]),Ke.expression),2097152),e.setTextRange(S.createLessThan(nr,S.createPropertyAccessExpression(Gr,"length")),Ke.expression),e.setTextRange(S.createPostfixIncrement(nr),Ke.expression),v(Ke,S.createElementAccessExpression(Gr,nr),Ee)),Ke);return e.setEmitFlags(_i,256),e.setTextRange(_i,Ke),S.restoreEnclosingLabel(_i,h,Z&&di)}function Je(Ke,h,Ee,Re){var nr=e.visitNode(Ke.expression,D,e.isExpression),Gr=e.isIdentifier(nr)?S.getGeneratedNameForNode(nr):S.createTempVariable(void 0),_i=e.isIdentifier(nr)?S.getGeneratedNameForNode(Gr):S.createTempVariable(void 0),Ei=S.createUniqueName("e"),Ki=S.getGeneratedNameForNode(Ei),Nt=S.createTempVariable(void 0),ca=e.setTextRange(H().createValuesHelper(nr),Ke.expression),Fa=S.createCallExpression(S.createPropertyAccessExpression(Gr,"next"),void 0,[]);G(Ei),G(Nt);var Ta=Re&1024?S.inlineExpressions([S.createAssignment(Ei,S.createVoidZero()),ca]):ca,In=e.setEmitFlags(e.setTextRange(S.createForStatement(e.setEmitFlags(e.setTextRange(S.createVariableDeclarationList([e.setTextRange(S.createVariableDeclaration(Gr,void 0,void 0,Ta),Ke.expression),S.createVariableDeclaration(_i,void 0,void 0,Fa)]),Ke.expression),2097152),S.createLogicalNot(S.createPropertyAccessExpression(_i,"done")),S.createAssignment(_i,Fa),v(Ke,S.createPropertyAccessExpression(_i,"value"),Ee)),Ke),256);return S.createTryStatement(S.createBlock([S.restoreEnclosingLabel(In,h,Z&&di)]),S.createCatchClause(S.createVariableDeclaration(Ki),e.setEmitFlags(S.createBlock([S.createExpressionStatement(S.createAssignment(Ei,S.createObjectLiteralExpression([S.createPropertyAssignment("error",Ki)])))]),1)),S.createBlock([S.createTryStatement(S.createBlock([e.setEmitFlags(S.createIfStatement(S.createLogicalAnd(S.createLogicalAnd(_i,S.createLogicalNot(S.createPropertyAccessExpression(_i,"done"))),S.createAssignment(Nt,S.createPropertyAccessExpression(Gr,"return"))),S.createExpressionStatement(S.createFunctionCallCall(Nt,Gr,[]))),1)]),void 0,e.setEmitFlags(S.createBlock([e.setEmitFlags(S.createIfStatement(Ei,S.createThrowStatement(S.createPropertyAccessExpression(Ei,"error"))),1)]),1))]))}function Oe(Ke){for(var h=Ke.properties,Ee=-1,Re=!1,nr=0;nr<h.length;nr++){var Gr=h[nr];if(Gr.transformFlags&524288&&ie&4||(Re=e.Debug.checkDefined(Gr.name).kind===161)){Ee=nr;break}}if(Ee<0)return e.visitEachChild(Ke,D,g);var _i=S.createTempVariable(G),Ei=[],Ki=S.createAssignment(_i,e.setEmitFlags(S.createObjectLiteralExpression(e.visitNodes(h,D,e.isObjectLiteralElementLike,0,Ee),Ke.multiLine),Re?65536:0));return Ke.multiLine&&e.startOnNewLine(Ki),Ei.push(Ki),gt(Ei,Ke,_i,Ee),Ei.push(Ke.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(S.cloneNode(_i),_i),_i.parent)):_i),S.inlineExpressions(Ei)}function Fr(Ke){return(ue.getNodeCheckFlags(Ke)&131072)!==0}function Xr(Ke){return e.isForStatement(Ke)&&!!Ke.initializer&&Fr(Ke.initializer)}function Or(Ke){return e.isForStatement(Ke)&&!!Ke.condition&&Fr(Ke.condition)}function We(Ke){return e.isForStatement(Ke)&&!!Ke.incrementor&&Fr(Ke.incrementor)}function mr(Ke){return Nr(Ke)||Xr(Ke)}function Nr(Ke){return(ue.getNodeCheckFlags(Ke)&65536)!==0}function Ur(Ke,h){Ke.hoistedLocalVariables||(Ke.hoistedLocalVariables=[]),Ee(h.name);function Ee(Re){if(Re.kind===79)Ke.hoistedLocalVariables.push(Re);else for(var nr=0,Gr=Re.elements;nr<Gr.length;nr++){var _i=Gr[nr];e.isOmittedExpression(_i)||Ee(_i.name)}}}function si(Ke,h,Ee,Re){if(!mr(Ke)){var nr=void 0;Z&&(nr=Z.allowedNonLabeledJumps,Z.allowedNonLabeledJumps=6);var Gr=Re?Re(Ke,h,void 0,Ee):S.restoreEnclosingLabel(e.isForStatement(Ke)?hr(Ke):e.visitEachChild(Ke,D,g),h,Z&&di);return Z&&(Z.allowedNonLabeledJumps=nr),Gr}var _i=ri(Ke),Ei=[],Ki=Z;Z=_i;var Nt=Xr(Ke)?pa(Ke,_i):void 0,ca=Nr(Ke)?xt(Ke,_i,Ki):void 0;Z=Ki,Nt&&Ei.push(Nt.functionDeclaration),ca&&Ei.push(ca.functionDeclaration),Gi(Ei,_i,Ki),Nt&&Ei.push(St(Nt.functionName,Nt.containsYield));var Fa;if(ca)if(Re)Fa=Re(Ke,h,ca.part,Ee);else{var Ta=mi(Ke,Nt,S.createBlock(ca.part,!0));Fa=S.restoreEnclosingLabel(Ta,h,Z&&di)}else{var In=mi(Ke,Nt,e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock));Fa=S.restoreEnclosingLabel(In,h,Z&&di)}return Ei.push(Fa),Ei}function mi(Ke,h,Ee){switch(Ke.kind){case 241:return Ti(Ke,h,Ee);case 242:return ki(Ke,Ee);case 243:return hi(Ke,Ee);case 239:return Ui(Ke,Ee);case 240:return zi(Ke,Ee);default:return e.Debug.failBadSyntaxKind(Ke,"IterationStatement expected")}}function Ti(Ke,h,Ee){var Re=Ke.condition&&Fr(Ke.condition),nr=Re||Ke.incrementor&&Fr(Ke.incrementor);return S.updateForStatement(Ke,e.visitNode(h?h.part:Ke.initializer,l,e.isForInitializer),e.visitNode(Re?void 0:Ke.condition,D,e.isExpression),e.visitNode(nr?void 0:Ke.incrementor,l,e.isExpression),Ee)}function hi(Ke,h){return S.updateForOfStatement(Ke,void 0,e.visitNode(Ke.initializer,D,e.isForInitializer),e.visitNode(Ke.expression,D,e.isExpression),h)}function ki(Ke,h){return S.updateForInStatement(Ke,e.visitNode(Ke.initializer,D,e.isForInitializer),e.visitNode(Ke.expression,D,e.isExpression),h)}function Ui(Ke,h){return S.updateDoStatement(Ke,h,e.visitNode(Ke.expression,D,e.isExpression))}function zi(Ke,h){return S.updateWhileStatement(Ke,e.visitNode(Ke.expression,D,e.isExpression),h)}function ri(Ke){var h;switch(Ke.kind){case 241:case 242:case 243:var Ee=Ke.initializer;Ee&&Ee.kind===254&&(h=Ee);break}var Re=[],nr=[];if(h&&e.getCombinedNodeFlags(h)&3)for(var Gr=Xr(Ke)||Or(Ke)||We(Ke),_i=0,Ei=h.declarations;_i<Ei.length;_i++){var Ki=Ei[_i];yt(Ke,Ki,Re,nr,Gr)}var Nt={loopParameters:Re,loopOutParameters:nr};return Z&&(Z.argumentsName&&(Nt.argumentsName=Z.argumentsName),Z.thisName&&(Nt.thisName=Z.thisName),Z.hoistedLocalVariables&&(Nt.hoistedLocalVariables=Z.hoistedLocalVariables)),Nt}function Gi(Ke,h,Ee){var Re;if(h.argumentsName&&(Ee?Ee.argumentsName=h.argumentsName:(Re||(Re=[])).push(S.createVariableDeclaration(h.argumentsName,void 0,void 0,S.createIdentifier("arguments")))),h.thisName&&(Ee?Ee.thisName=h.thisName:(Re||(Re=[])).push(S.createVariableDeclaration(h.thisName,void 0,void 0,S.createIdentifier("this")))),h.hoistedLocalVariables)if(Ee)Ee.hoistedLocalVariables=h.hoistedLocalVariables;else{Re||(Re=[]);for(var nr=0,Gr=h.hoistedLocalVariables;nr<Gr.length;nr++){var _i=Gr[nr];Re.push(S.createVariableDeclaration(_i))}}if(h.loopOutParameters.length){Re||(Re=[]);for(var Ei=0,Ki=h.loopOutParameters;Ei<Ki.length;Ei++){var Nt=Ki[Ei];Re.push(S.createVariableDeclaration(Nt.outParamName))}}h.conditionVariable&&(Re||(Re=[]),Re.push(S.createVariableDeclaration(h.conditionVariable,void 0,void 0,S.createFalse()))),Re&&Ke.push(S.createVariableStatement(void 0,S.createVariableDeclarationList(Re)))}function Rt(Ke){return S.createVariableDeclaration(Ke.originalName,void 0,void 0,Ke.outParamName)}function pa(Ke,h){var Ee=S.createUniqueName("_loop_init"),Re=(Ke.initializer.transformFlags&524288)!==0,nr=0;h.containsLexicalThis&&(nr|=8),Re&&ie&4&&(nr|=262144);var Gr=[];Gr.push(S.createVariableStatement(void 0,Ke.initializer)),Vt(h.loopOutParameters,2,1,Gr);var _i=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Ee,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,Re?S.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(S.createBlock(Gr,!0),D,e.isBlock)),nr))]),2097152)),Ei=S.createVariableDeclarationList(e.map(h.loopOutParameters,Rt));return{functionName:Ee,containsYield:Re,functionDeclaration:_i,part:Ei}}function xt(Ke,h,Ee){var Re=S.createUniqueName("_loop");se();var nr=e.visitNode(Ke.statement,D,e.isStatement,S.liftToBlock),Gr=C(),_i=[];(Or(Ke)||We(Ke))&&(h.conditionVariable=S.createUniqueName("inc"),Ke.incrementor?_i.push(S.createIfStatement(h.conditionVariable,S.createExpressionStatement(e.visitNode(Ke.incrementor,D,e.isExpression)),S.createExpressionStatement(S.createAssignment(h.conditionVariable,S.createTrue())))):_i.push(S.createIfStatement(S.createLogicalNot(h.conditionVariable),S.createExpressionStatement(S.createAssignment(h.conditionVariable,S.createTrue())))),Or(Ke)&&_i.push(S.createIfStatement(S.createPrefixUnaryExpression(53,e.visitNode(Ke.condition,D,e.isExpression)),e.visitNode(S.createBreakStatement(),D,e.isStatement)))),e.isBlock(nr)?e.addRange(_i,nr.statements):_i.push(nr),Vt(h.loopOutParameters,1,1,_i),e.insertStatementsAfterStandardPrologue(_i,Gr);var Ei=S.createBlock(_i,!0);e.isBlock(nr)&&e.setOriginalNode(Ei,nr);var Ki=(Ke.statement.transformFlags&524288)!==0,Nt=524288;h.containsLexicalThis&&(Nt|=8),Ki&&(ie&4)!==0&&(Nt|=262144);var ca=S.createVariableStatement(void 0,e.setEmitFlags(S.createVariableDeclarationList([S.createVariableDeclaration(Re,void 0,void 0,e.setEmitFlags(S.createFunctionExpression(void 0,Ki?S.createToken(41):void 0,void 0,void 0,h.loopParameters,void 0,Ei),Nt))]),2097152)),Fa=Ci(Re,h,Ee,Ki);return{functionName:Re,containsYield:Ki,functionDeclaration:ca,part:Fa}}function ua(Ke,h){var Ee=h===0?Ke.outParamName:Ke.originalName,Re=h===0?Ke.originalName:Ke.outParamName;return S.createBinaryExpression(Re,63,Ee)}function Vt(Ke,h,Ee,Re){for(var nr=0,Gr=Ke;nr<Gr.length;nr++){var _i=Gr[nr];_i.flags&h&&Re.push(S.createExpressionStatement(ua(_i,Ee)))}}function St(Ke,h){var Ee=S.createCallExpression(Ke,void 0,[]),Re=h?S.createYieldExpression(S.createToken(41),e.setEmitFlags(Ee,8388608)):Ee;return S.createExpressionStatement(Re)}function Ci(Ke,h,Ee,Re){var nr=[],Gr=!(h.nonLocalJumps&-5)&&!h.labeledNonLocalBreaks&&!h.labeledNonLocalContinues,_i=S.createCallExpression(Ke,void 0,e.map(h.loopParameters,function(Ta){return Ta.name})),Ei=Re?S.createYieldExpression(S.createToken(41),e.setEmitFlags(_i,8388608)):_i;if(Gr)nr.push(S.createExpressionStatement(Ei)),Vt(h.loopOutParameters,1,0,nr);else{var Ki=S.createUniqueName("state"),Nt=S.createVariableStatement(void 0,S.createVariableDeclarationList([S.createVariableDeclaration(Ki,void 0,void 0,Ei)]));if(nr.push(Nt),Vt(h.loopOutParameters,1,0,nr),h.nonLocalJumps&8){var ca=void 0;Ee?(Ee.nonLocalJumps|=8,ca=S.createReturnStatement(Ki)):ca=S.createReturnStatement(S.createPropertyAccessExpression(Ki,"value")),nr.push(S.createIfStatement(S.createTypeCheck(Ki,"object"),ca))}if(h.nonLocalJumps&2&&nr.push(S.createIfStatement(S.createStrictEquality(Ki,S.createStringLiteral("break")),S.createBreakStatement())),h.labeledNonLocalBreaks||h.labeledNonLocalContinues){var Fa=[];Yi(h.labeledNonLocalBreaks,!0,Ki,Ee,Fa),Yi(h.labeledNonLocalContinues,!1,Ki,Ee,Fa),nr.push(S.createSwitchStatement(Ki,S.createCaseBlock(Fa)))}}return nr}function Hi(Ke,h,Ee,Re){h?(Ke.labeledNonLocalBreaks||(Ke.labeledNonLocalBreaks=new e.Map),Ke.labeledNonLocalBreaks.set(Ee,Re)):(Ke.labeledNonLocalContinues||(Ke.labeledNonLocalContinues=new e.Map),Ke.labeledNonLocalContinues.set(Ee,Re))}function Yi(Ke,h,Ee,Re,nr){!Ke||Ke.forEach(function(Gr,_i){var Ei=[];if(!Re||Re.labels&&Re.labels.get(_i)){var Ki=S.createIdentifier(_i);Ei.push(h?S.createBreakStatement(Ki):S.createContinueStatement(Ki))}else Hi(Re,h,_i,Gr),Ei.push(S.createReturnStatement(Ee));nr.push(S.createCaseClause(S.createStringLiteral(Gr),Ei))})}function yt(Ke,h,Ee,Re,nr){var Gr=h.name;if(e.isBindingPattern(Gr))for(var _i=0,Ei=Gr.elements;_i<Ei.length;_i++){var Ki=Ei[_i];e.isOmittedExpression(Ki)||yt(Ke,Ki,Ee,Re,nr)}else{Ee.push(S.createParameterDeclaration(void 0,void 0,void 0,Gr));var Nt=ue.getNodeCheckFlags(h);if(Nt&4194304||nr){var ca=S.createUniqueName("out_"+e.idText(Gr)),Fa=0;Nt&4194304&&(Fa|=1),e.isForStatement(Ke)&&(Ke.initializer&&ue.isBindingCapturedByNode(Ke.initializer,h)&&(Fa|=2),(Ke.condition&&ue.isBindingCapturedByNode(Ke.condition,h)||Ke.incrementor&&ue.isBindingCapturedByNode(Ke.incrementor,h))&&(Fa|=1)),Re.push({flags:Fa,originalName:Gr,outParamName:ca})}}}function gt(Ke,h,Ee,Re){for(var nr=h.properties,Gr=nr.length,_i=Re;_i<Gr;_i++){var Ei=nr[_i];switch(Ei.kind){case 171:case 172:var Ki=e.getAllAccessorDeclarations(h.properties,Ei);Ei===Ki.firstAccessor&&Ke.push(Le(Ee,Ki,h,!!h.multiLine));break;case 168:Ke.push(Pi(Ei,Ee,h,h.multiLine));break;case 294:Ke.push(oa(Ei,Ee,h.multiLine));break;case 295:Ke.push(Bt(Ei,Ee,h.multiLine));break;default:e.Debug.failBadSyntaxKind(h);break}}}function oa(Ke,h,Ee){var Re=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),e.visitNode(Ke.initializer,D,e.isExpression));return e.setTextRange(Re,Ke),Ee&&e.startOnNewLine(Re),Re}function Bt(Ke,h,Ee){var Re=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),S.cloneNode(Ke.name));return e.setTextRange(Re,Ke),Ee&&e.startOnNewLine(Re),Re}function Pi(Ke,h,Ee,Re){var nr=S.createAssignment(e.createMemberAccessForPropertyName(S,h,e.visitNode(Ke.name,D,e.isPropertyName)),Jr(Ke,Ke,void 0,Ee));return e.setTextRange(nr,Ke),Re&&e.startOnNewLine(nr),nr}function Oi(Ke){var h=ne(7104,0),Ee;if(e.Debug.assert(!!Ke.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Ke.variableDeclaration.name)){var Re=S.createTempVariable(void 0),nr=S.createVariableDeclaration(Re);e.setTextRange(nr,Ke.variableDeclaration);var Gr=e.flattenDestructuringBinding(Ke.variableDeclaration,D,g,0,Re),_i=S.createVariableDeclarationList(Gr);e.setTextRange(_i,Ke.variableDeclaration);var Ei=S.createVariableStatement(void 0,_i);Ee=S.updateCatchClause(Ke,nr,wi(Ke.block,Ei))}else Ee=e.visitEachChild(Ke,D,g);return ee(h,0,0),Ee}function wi(Ke,h){var Ee=e.visitNodes(Ke.statements,D,e.isStatement);return S.updateBlock(Ke,qe([h],Ee,!0))}function Qr(Ke){e.Debug.assert(!e.isComputedPropertyName(Ke.name));var h=Jr(Ke,e.moveRangePos(Ke,-1),void 0,void 0);return e.setEmitFlags(h,512|e.getEmitFlags(h)),e.setTextRange(S.createPropertyAssignment(Ke.name,h),Ke)}function Ct(Ke){e.Debug.assert(!e.isComputedPropertyName(Ke.name));var h=Z;Z=void 0;var Ee=ne(32670,65),Re,nr=e.visitParameterList(Ke.parameters,D,g),Gr=Rr(Ke);return Ke.kind===171?Re=S.updateGetAccessorDeclaration(Ke,Ke.decorators,Ke.modifiers,Ke.name,nr,Ke.type,Gr):Re=S.updateSetAccessorDeclaration(Ke,Ke.decorators,Ke.modifiers,Ke.name,nr,Gr),ee(Ee,98304,0),Z=h,Re}function tt(Ke){return e.setTextRange(S.createPropertyAssignment(Ke.name,m(S.cloneNode(Ke.name))),Ke)}function ta(Ke){return e.visitEachChild(Ke,D,g)}function Xa(Ke){return e.visitEachChild(Ke,D,g)}function on(Ke){return e.some(Ke.elements,e.isSpreadElement)?Zn(Ke.elements,!1,!!Ke.multiLine,!!Ke.elements.hasTrailingComma):e.visitEachChild(Ke,D,g)}function qr(Ke){if(e.getEmitFlags(Ke)&33554432)return bn(Ke);var h=e.skipOuterExpressions(Ke.expression);return h.kind===106||e.isSuperProperty(h)||e.some(Ke.arguments,e.isSpreadElement)?Sn(Ke,!0):S.updateCallExpression(Ke,e.visitNode(Ke.expression,J,e.isExpression),void 0,e.visitNodes(Ke.arguments,D,e.isExpression))}function bn(Ke){var h=e.cast(e.cast(e.skipOuterExpressions(Ke.expression),e.isArrowFunction).body,e.isBlock),Ee=function(Os){return e.isVariableStatement(Os)&&!!e.first(Os.declarationList.declarations).initializer},Re=Z;Z=void 0;var nr=e.visitNodes(h.statements,_,e.isStatement);Z=Re;var Gr=e.filter(nr,Ee),_i=e.filter(nr,function(Os){return!Ee(Os)}),Ei=e.cast(e.first(Gr),e.isVariableStatement),Ki=Ei.declarationList.declarations[0],Nt=e.skipOuterExpressions(Ki.initializer),ca=e.tryCast(Nt,e.isAssignmentExpression);!ca&&e.isBinaryExpression(Nt)&&Nt.operatorToken.kind===27&&(ca=e.tryCast(Nt.left,e.isAssignmentExpression));var Fa=e.cast(ca?e.skipOuterExpressions(ca.right):Nt,e.isCallExpression),Ta=e.cast(e.skipOuterExpressions(Fa.expression),e.isFunctionExpression),In=Ta.body.statements,so=0,as=-1,Ho=[];if(ca){var Ds=e.tryCast(In[so],e.isExpressionStatement);Ds&&(Ho.push(Ds),so++),Ho.push(In[so]),so++,Ho.push(S.createExpressionStatement(S.createAssignment(ca.left,e.cast(Ki.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(In,as));)as--;return e.addRange(Ho,In,so,as),as<-1&&e.addRange(Ho,In,as+1),e.addRange(Ho,_i),e.addRange(Ho,Gr,1),S.restoreOuterExpressions(Ke.expression,S.restoreOuterExpressions(Ki.initializer,S.restoreOuterExpressions(ca&&ca.right,S.updateCallExpression(Fa,S.restoreOuterExpressions(Fa.expression,S.updateFunctionExpression(Ta,void 0,void 0,void 0,void 0,Ta.parameters,void 0,S.updateBlock(Ta.body,Ho))),void 0,Fa.arguments))))}function Rn(Ke){return Sn(Ke,!1)}function Sn(Ke,h){if(Ke.transformFlags&16384||Ke.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Ke.expression))){var Ee=S.createCallBinding(Ke.expression,G),Re=Ee.target,nr=Ee.thisArg;Ke.expression.kind===106&&e.setEmitFlags(nr,4);var Gr=void 0;if(Ke.transformFlags&16384?Gr=S.createFunctionApplyCall(e.visitNode(Re,J,e.isExpression),Ke.expression.kind===106?nr:e.visitNode(nr,D,e.isExpression),Zn(Ke.arguments,!0,!1,!1)):Gr=e.setTextRange(S.createFunctionCallCall(e.visitNode(Re,J,e.isExpression),Ke.expression.kind===106?nr:e.visitNode(nr,D,e.isExpression),e.visitNodes(Ke.arguments,D,e.isExpression)),Ke),Ke.expression.kind===106){var _i=S.createLogicalOr(Gr,he());Gr=h?S.createAssignment(S.createUniqueName("_this",48),_i):_i}return e.setOriginalNode(Gr,Ke)}return e.visitEachChild(Ke,D,g)}function zn(Ke){if(e.some(Ke.arguments,e.isSpreadElement)){var h=S.createCallBinding(S.createPropertyAccessExpression(Ke.expression,"bind"),G),Ee=h.target,Re=h.thisArg;return S.createNewExpression(S.createFunctionApplyCall(e.visitNode(Ee,D,e.isExpression),Re,Zn(S.createNodeArray(qe([S.createVoidZero()],Ke.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Ke,D,g)}function Zn(Ke,h,Ee,Re){var nr=Ke.length,Gr=e.flatten(e.spanMap(Ke,ho,function(Ta,In,so,as){return In(Ta,Ee,Re&&as===nr)}));if(Gr.length===1){var _i=Gr[0];if(h&&!E.downlevelIteration||e.isPackedArrayLiteral(_i.expression)||e.isCallToHelper(_i.expression,"___spreadArray"))return _i.expression}for(var Ei=H(),Ki=Gr[0].kind!==0,Nt=Ki?S.createArrayLiteralExpression():Gr[0].expression,ca=Ki?0:1;ca<Gr.length;ca++){var Fa=Gr[ca];Nt=Ei.createSpreadArrayHelper(Nt,Fa.expression,Fa.kind===1&&!h)}return Nt}function ho(Ke){return e.isSpreadElement(Ke)?Vo:go}function Vo(Ke){return e.map(Ke,Cn)}function Cn(Ke){var h=e.visitNode(Ke.expression,D,e.isExpression),Ee=e.isCallToHelper(h,"___read"),Re=Ee||e.isPackedArrayLiteral(h)?2:1;return E.downlevelIteration&&Re===1&&!e.isArrayLiteralExpression(h)&&!Ee&&(h=H().createReadHelper(h,void 0),Re=2),pe(Re,h)}function go(Ke,h,Ee){var Re=S.createArrayLiteralExpression(e.visitNodes(S.createNodeArray(Ke,Ee),D,e.isExpression),h);return pe(0,Re)}function ro(Ke){return e.visitNode(Ke.expression,D,e.isExpression)}function Ko(Ke){return e.setTextRange(S.createStringLiteral(Ke.text),Ke)}function rs(Ke){return Ke.hasExtendedUnicodeEscape?e.setTextRange(S.createStringLiteral(Ke.text),Ke):Ke}function rn(Ke){return Ke.numericLiteralFlags&384?e.setTextRange(S.createNumericLiteral(Ke.text),Ke):Ke}function Do(Ke){return e.processTaggedTemplateExpression(g,Ke,D,M,Y,e.ProcessLevel.All)}function io(Ke){for(var h=S.createStringLiteral(Ke.head.text),Ee=0,Re=Ke.templateSpans;Ee<Re.length;Ee++){var nr=Re[Ee],Gr=[e.visitNode(nr.expression,D,e.isExpression)];nr.literal.text.length>0&&Gr.push(S.createStringLiteral(nr.literal.text)),h=S.createCallExpression(S.createPropertyAccessExpression(h,"concat"),void 0,Gr)}return e.setTextRange(h,Ke)}function pn(Ke){return ie&8&&!Ke?S.createPropertyAccessExpression(S.createUniqueName("_super",48),"prototype"):S.createUniqueName("_super",48)}function Qn(Ke){return Ke.keywordToken===103&&Ke.name.escapedText==="target"?(ie|=32768,S.createUniqueName("_newTarget",48)):Ke}function wo(Ke,h,Ee){if(k&1&&e.isFunctionLike(h)){var Re=ne(32670,e.getEmitFlags(h)&8?81:65);re(Ke,h,Ee),ee(Re,0,0);return}re(Ke,h,Ee)}function xo(){(k&2)===0&&(k|=2,g.enableSubstitution(79))}function ds(){(k&1)===0&&(k|=1,g.enableSubstitution(108),g.enableEmitNotification(170),g.enableEmitNotification(168),g.enableEmitNotification(171),g.enableEmitNotification(172),g.enableEmitNotification(213),g.enableEmitNotification(212),g.enableEmitNotification(255))}function No(Ke,h){return h=B(Ke,h),Ke===1?xr(h):e.isIdentifier(h)?Ts(h):h}function Ts(Ke){if(k&2&&!e.isInternalName(Ke)){var h=e.getParseTreeNode(Ke,e.isIdentifier);if(h&&Ms(h))return e.setTextRange(S.getGeneratedNameForNode(h),Ke)}return Ke}function Ms(Ke){switch(Ke.parent.kind){case 202:case 256:case 259:case 253:return Ke.parent.name===Ke&&ue.isDeclarationWithCollidingName(Ke.parent)}return!1}function xr(Ke){switch(Ke.kind){case 79:return bi(Ke);case 108:return Ht(Ke)}return Ke}function bi(Ke){if(k&2&&!e.isInternalName(Ke)){var h=ue.getReferencedDeclarationWithCollidingName(Ke);if(h&&!(e.isClassLike(h)&&ut(h,Ke)))return e.setTextRange(S.getGeneratedNameForNode(e.getNameOfDeclaration(h)),Ke)}return Ke}function ut(Ke,h){var Ee=e.getParseTreeNode(h);if(!Ee||Ee===Ke||Ee.end<=Ke.pos||Ee.pos>=Ke.end)return!1;for(var Re=e.getEnclosingBlockScopeContainer(Ke);Ee;){if(Ee===Re||Ee===Ke)return!1;if(e.isClassElement(Ee)&&Ee.parent===Ke)return!0;Ee=Ee.parent}return!1}function Ht(Ke){return k&1&&ie&16?e.setTextRange(S.createUniqueName("_this",48),Ke):Ke}function Ka(Ke,h){return e.isStatic(h)?S.getInternalName(Ke):S.createPropertyAccessExpression(S.getInternalName(Ke),"prototype")}function an(Ke,h){if(!Ke||!h||e.some(Ke.parameters))return!1;var Ee=e.firstOrUndefined(Ke.body.statements);if(!Ee||!e.nodeIsSynthesized(Ee)||Ee.kind!==237)return!1;var Re=Ee.expression;if(!e.nodeIsSynthesized(Re)||Re.kind!==207)return!1;var nr=Re.expression;if(!e.nodeIsSynthesized(nr)||nr.kind!==106)return!1;var Gr=e.singleOrUndefined(Re.arguments);if(!Gr||!e.nodeIsSynthesized(Gr)||Gr.kind!==224)return!1;var _i=Gr.expression;return e.isIdentifier(_i)&&_i.escapedText==="arguments"}}e.transformES2015=F})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.getCompilerOptions(),N,Q;(W.jsx===1||W.jsx===3)&&(N=O.onEmitNode,O.onEmitNode=g,O.enableEmitNotification(279),O.enableEmitNotification(280),O.enableEmitNotification(278),Q=[]);var pe=O.onSubstituteNode;return O.onSubstituteNode=S,O.enableSubstitution(205),O.enableSubstitution(294),e.chainBundle(O,F);function F(C){return C}function g(C,G,E){switch(G.kind){case 279:case 280:case 278:var ue=G.tagName;Q[e.getOriginalNodeId(ue)]=!0;break}N(C,G,E)}function S(C,G){return G.id&&Q&&Q[G.id]?pe(C,G):(G=pe(C,G),e.isPropertyAccessExpression(G)?H(G):e.isPropertyAssignment(G)?se(G):G)}function H(C){if(e.isPrivateIdentifier(C.name))return C;var G=p(C.name);return G?e.setTextRange(L.createElementAccessExpression(C.expression,G),C):C}function se(C){var G=e.isIdentifier(C.name)&&p(C.name);return G?L.updatePropertyAssignment(C,G,C.initializer):C}function p(C){var G=C.originalKeywordKind||(e.nodeIsSynthesized(C)?e.stringToToken(e.idText(C)):void 0);if(G!==void 0&&G>=81&&G<=116)return e.setTextRange(L.createStringLiteralFromNode(C),C)}}e.transformES5=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(F){F[F.Nop=0]="Nop",F[F.Statement=1]="Statement",F[F.Assign=2]="Assign",F[F.Break=3]="Break",F[F.BreakWhenTrue=4]="BreakWhenTrue",F[F.BreakWhenFalse=5]="BreakWhenFalse",F[F.Yield=6]="Yield",F[F.YieldStar=7]="YieldStar",F[F.Return=8]="Return",F[F.Throw=9]="Throw",F[F.Endfinally=10]="Endfinally"})(a||(a={}));var O;(function(F){F[F.Open=0]="Open",F[F.Close=1]="Close"})(O||(O={}));var L;(function(F){F[F.Exception=0]="Exception",F[F.With=1]="With",F[F.Switch=2]="Switch",F[F.Loop=3]="Loop",F[F.Labeled=4]="Labeled"})(L||(L={}));var W;(function(F){F[F.Try=0]="Try",F[F.Catch=1]="Catch",F[F.Finally=2]="Finally",F[F.Done=3]="Done"})(W||(W={}));var N;(function(F){F[F.Next=0]="Next",F[F.Throw=1]="Throw",F[F.Return=2]="Return",F[F.Break=3]="Break",F[F.Yield=4]="Yield",F[F.YieldStar=5]="YieldStar",F[F.Catch=6]="Catch",F[F.Endfinally=7]="Endfinally"})(N||(N={}));function Q(F){switch(F){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function pe(F){var g=F.factory,S=F.getEmitHelperFactory,H=F.resumeLexicalEnvironment,se=F.endLexicalEnvironment,p=F.hoistFunctionDeclaration,C=F.hoistVariableDeclaration,G=F.getCompilerOptions(),E=e.getEmitScriptTarget(G),ue=F.getEmitResolver(),B=F.onSubstituteNode;F.onSubstituteNode=Dr;var re,M,x,ie,_e,Y,Z,k,I,ne,ee=1,A,f,P,D,l=0,_=0,J,w,j,U,z,y,oe,ve;return e.chainBundle(F,ce);function ce(xr){if(xr.isDeclarationFile||(xr.transformFlags&2048)===0)return xr;var bi=e.visitEachChild(xr,m,F);return e.addEmitHelpers(bi,F.readEmitHelpers()),bi}function m(xr){var bi=xr.transformFlags;return ie?de(xr):x?ae(xr):e.isFunctionLikeDeclaration(xr)&&xr.asteriskToken?le(xr):bi&2048?e.visitEachChild(xr,m,F):xr}function de(xr){switch(xr.kind){case 239:return Jr(xr);case 240:return ci(xr);case 248:return di(xr);case 249:return Ye(xr);default:return ae(xr)}}function ae(xr){switch(xr.kind){case 255:return ke(xr);case 212:return Ue(xr);case 171:case 172:return He(xr);case 236:return gr(xr);case 241:return or(xr);case 242:return ei(xr);case 245:return ft(xr);case 244:return Si(xr);case 246:return aa(xr);default:return xr.transformFlags&524288?V(xr):xr.transformFlags&2099200?e.visitEachChild(xr,m,F):xr}}function V(xr){switch(xr.kind){case 220:return me(xr);case 349:return we(xr);case 221:return Se(xr);case 223:return ge(xr);case 203:return Fe(xr);case 204:return ur(xr);case 206:return Ir(xr);case 207:return dr(xr);case 208:return Br(xr);default:return e.visitEachChild(xr,m,F)}}function le(xr){switch(xr.kind){case 255:return ke(xr);case 212:return Ue(xr);default:return e.Debug.failBadSyntaxKind(xr)}}function ke(xr){if(xr.asteriskToken)xr=e.setOriginalNode(e.setTextRange(g.createFunctionDeclaration(void 0,xr.modifiers,void 0,xr.name,void 0,e.visitParameterList(xr.parameters,m,F),void 0,ar(xr.body)),xr),xr);else{var bi=x,ut=ie;x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut}if(x){p(xr);return}else return xr}function Ue(xr){if(xr.asteriskToken)xr=e.setOriginalNode(e.setTextRange(g.createFunctionExpression(void 0,void 0,xr.name,void 0,e.visitParameterList(xr.parameters,m,F),void 0,ar(xr.body)),xr),xr);else{var bi=x,ut=ie;x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut}return xr}function He(xr){var bi=x,ut=ie;return x=!1,ie=!1,xr=e.visitEachChild(xr,m,F),x=bi,ie=ut,xr}function ar(xr){var bi=[],ut=x,Ht=ie,Ka=_e,an=Y,Ke=Z,h=k,Ee=I,Re=ne,nr=ee,Gr=A,_i=f,Ei=P,Ki=D;x=!0,ie=!1,_e=void 0,Y=void 0,Z=void 0,k=void 0,I=void 0,ne=void 0,ee=1,A=void 0,f=void 0,P=void 0,D=g.createTempVariable(void 0),H();var Nt=g.copyPrologue(xr.statements,bi,!1,m);Tr(xr.statements,Nt);var ca=zn();return e.insertStatementsAfterStandardPrologue(bi,se()),bi.push(g.createReturnStatement(ca)),x=ut,ie=Ht,_e=Ka,Y=an,Z=Ke,k=h,I=Ee,ne=Re,ee=nr,A=Gr,f=_i,P=Ei,D=Ki,e.setTextRange(g.createBlock(bi,xr.multiLine),xr)}function gr(xr){if(xr.transformFlags&524288){Le(xr.declarationList);return}else{if(e.getEmitFlags(xr)&1048576)return xr;for(var bi=0,ut=xr.declarationList.declarations;bi<ut.length;bi++){var Ht=ut[bi];C(Ht.name)}var Ka=e.getInitializedVariables(xr.declarationList);return Ka.length===0?void 0:e.setSourceMapRange(g.createExpressionStatement(g.inlineExpressions(e.map(Ka,Xe))),xr)}}function me(xr){var bi=e.getExpressionAssociativity(xr);switch(bi){case 0:return er(xr);case 1:return Ge(xr);default:return e.Debug.assertNever(bi)}}function Ge(xr){var bi=xr.left,ut=xr.right;if(_r(ut)){var Ht=void 0;switch(bi.kind){case 205:Ht=g.updatePropertyAccessExpression(bi,xe(e.visitNode(bi.expression,m,e.isLeftHandSideExpression)),bi.name);break;case 206:Ht=g.updateElementAccessExpression(bi,xe(e.visitNode(bi.expression,m,e.isLeftHandSideExpression)),xe(e.visitNode(bi.argumentExpression,m,e.isExpression)));break;default:Ht=e.visitNode(bi,m,e.isExpression);break}var Ka=xr.operatorToken.kind;return e.isCompoundAssignment(Ka)?e.setTextRange(g.createAssignment(Ht,e.setTextRange(g.createBinaryExpression(xe(Ht),e.getNonAssignmentOperatorForCompoundAssignment(Ka),e.visitNode(ut,m,e.isExpression)),xr)),xr):g.updateBinaryExpression(xr,Ht,xr.operatorToken,e.visitNode(ut,m,e.isExpression))}return e.visitEachChild(xr,m,F)}function er(xr){return _r(xr.right)?e.isLogicalOperator(xr.operatorToken.kind)?ye(xr):xr.operatorToken.kind===27?he(xr):g.updateBinaryExpression(xr,xe(e.visitNode(xr.left,m,e.isExpression)),xr.operatorToken,e.visitNode(xr.right,m,e.isExpression)):e.visitEachChild(xr,m,F)}function he(xr){var bi=[];return ut(xr.left),ut(xr.right),g.inlineExpressions(bi);function ut(Ht){e.isBinaryExpression(Ht)&&Ht.operatorToken.kind===27?(ut(Ht.left),ut(Ht.right)):(_r(Ht)&&bi.length>0&&(Sn(1,[g.createExpressionStatement(g.inlineExpressions(bi))]),bi=[]),bi.push(e.visitNode(Ht,m,e.isExpression)))}}function we(xr){for(var bi=[],ut=0,Ht=xr.elements;ut<Ht.length;ut++){var Ka=Ht[ut];e.isBinaryExpression(Ka)&&Ka.operatorToken.kind===27?bi.push(he(Ka)):(_r(Ka)&&bi.length>0&&(Sn(1,[g.createExpressionStatement(g.inlineExpressions(bi))]),bi=[]),bi.push(e.visitNode(Ka,m,e.isExpression)))}return g.inlineExpressions(bi)}function ye(xr){var bi=Je(),ut=ze();return Qr(ut,e.visitNode(xr.left,m,e.isExpression),xr.left),xr.operatorToken.kind===55?ta(bi,ut,xr.left):tt(bi,ut,xr.left),Qr(ut,e.visitNode(xr.right,m,e.isExpression),xr.right),Oe(bi),ut}function Se(xr){if(_r(xr.whenTrue)||_r(xr.whenFalse)){var bi=Je(),ut=Je(),Ht=ze();return ta(bi,e.visitNode(xr.condition,m,e.isExpression),xr.condition),Qr(Ht,e.visitNode(xr.whenTrue,m,e.isExpression),xr.whenTrue),Ct(ut),Oe(bi),Qr(Ht,e.visitNode(xr.whenFalse,m,e.isExpression),xr.whenFalse),Oe(ut),Ht}return e.visitEachChild(xr,m,F)}function ge(xr){var bi=Je(),ut=e.visitNode(xr.expression,m,e.isExpression);if(xr.asteriskToken){var Ht=(e.getEmitFlags(xr.expression)&8388608)===0?e.setTextRange(S().createValuesHelper(ut),xr):ut;Xa(Ht,xr)}else on(ut,xr);return Oe(bi),Pi(xr)}function Fe(xr){return cr(xr.elements,void 0,void 0,xr.multiLine)}function cr(xr,bi,ut,Ht){var Ka=hr(xr),an;if(Ka>0){an=ze();var Ke=e.visitNodes(xr,m,e.isExpression,0,Ka);Qr(an,g.createArrayLiteralExpression(bi?qe([bi],Ke,!0):Ke)),bi=void 0}var h=e.reduceLeft(xr,Ee,[],Ka);return an?g.createArrayConcatCall(an,[g.createArrayLiteralExpression(h,Ht)]):e.setTextRange(g.createArrayLiteralExpression(bi?qe([bi],h,!0):h,Ht),ut);function Ee(Re,nr){if(_r(nr)&&Re.length>0){var Gr=an!==void 0;an||(an=ze()),Qr(an,Gr?g.createArrayConcatCall(an,[g.createArrayLiteralExpression(Re,Ht)]):g.createArrayLiteralExpression(bi?qe([bi],Re,!0):Re,Ht)),bi=void 0,Re=[]}return Re.push(e.visitNode(nr,m,e.isExpression)),Re}}function ur(xr){var bi=xr.properties,ut=xr.multiLine,Ht=hr(bi),Ka=ze();Qr(Ka,g.createObjectLiteralExpression(e.visitNodes(bi,m,e.isObjectLiteralElementLike,0,Ht),ut));var an=e.reduceLeft(bi,Ke,[],Ht);return an.push(ut?e.startOnNewLine(e.setParent(e.setTextRange(g.cloneNode(Ka),Ka),Ka.parent)):Ka),g.inlineExpressions(an);function Ke(h,Ee){_r(Ee)&&h.length>0&&(wi(g.createExpressionStatement(g.inlineExpressions(h))),h=[]);var Re=e.createExpressionForObjectLiteralElementLike(g,xr,Ee,Ka),nr=e.visitNode(Re,m,e.isExpression);return nr&&(ut&&e.startOnNewLine(nr),h.push(nr)),h}}function Ir(xr){return _r(xr.argumentExpression)?g.updateElementAccessExpression(xr,xe(e.visitNode(xr.expression,m,e.isLeftHandSideExpression)),e.visitNode(xr.argumentExpression,m,e.isExpression)):e.visitEachChild(xr,m,F)}function dr(xr){if(!e.isImportCall(xr)&&e.forEach(xr.arguments,_r)){var bi=g.createCallBinding(xr.expression,C,E,!0),ut=bi.target,Ht=bi.thisArg;return e.setOriginalNode(e.setTextRange(g.createFunctionApplyCall(xe(e.visitNode(ut,m,e.isLeftHandSideExpression)),Ht,cr(xr.arguments)),xr),xr)}return e.visitEachChild(xr,m,F)}function Br(xr){if(e.forEach(xr.arguments,_r)){var bi=g.createCallBinding(g.createPropertyAccessExpression(xr.expression,"bind"),C),ut=bi.target,Ht=bi.thisArg;return e.setOriginalNode(e.setTextRange(g.createNewExpression(g.createFunctionApplyCall(xe(e.visitNode(ut,m,e.isExpression)),Ht,cr(xr.arguments,g.createVoidZero())),void 0,[]),xr),xr)}return e.visitEachChild(xr,m,F)}function Tr(xr,bi){bi===void 0&&(bi=0);for(var ut=xr.length,Ht=bi;Ht<ut;Ht++)Er(xr[Ht])}function n(xr){e.isBlock(xr)?Tr(xr.statements):Er(xr)}function Er(xr){var bi=ie;ie||(ie=_r(xr)),br(xr),ie=bi}function br(xr){switch(xr.kind){case 234:return Pr(xr);case 237:return Ce(xr);case 238:return Cr(xr);case 239:return Lr(xr);case 240:return Rr(xr);case 241:return be(xr);case 242:return Kr(xr);case 244:return li(xr);case 245:return qi(xr);case 246:return bt(xr);case 247:return sr(xr);case 248:return Ji(xr);case 249:return X(xr);case 250:return Be(xr);case 251:return Qe(xr);default:return wi(e.visitNode(xr,m,e.isStatement))}}function Pr(xr){_r(xr)?Tr(xr.statements):wi(e.visitNode(xr,m,e.isStatement))}function Ce(xr){wi(e.visitNode(xr,m,e.isStatement))}function Le(xr){for(var bi=0,ut=xr.declarations;bi<ut.length;bi++){var Ht=ut[bi],Ka=g.cloneNode(Ht.name);e.setCommentRange(Ka,Ht.name),C(Ka)}for(var an=e.getInitializedVariables(xr),Ke=an.length,h=0,Ee=[];h<Ke;){for(var Re=h;Re<Ke;Re++){var Ht=an[Re];if(_r(Ht.initializer)&&Ee.length>0)break;Ee.push(Xe(Ht))}Ee.length&&(wi(g.createExpressionStatement(g.inlineExpressions(Ee))),h+=Ee.length,Ee=[])}}function Xe(xr){return e.setSourceMapRange(g.createAssignment(e.setSourceMapRange(g.cloneNode(xr.name),xr.name),e.visitNode(xr.initializer,m,e.isExpression)),xr)}function Cr(xr){if(_r(xr))if(_r(xr.thenStatement)||_r(xr.elseStatement)){var bi=Je(),ut=xr.elseStatement?Je():void 0;ta(xr.elseStatement?ut:bi,e.visitNode(xr.expression,m,e.isExpression),xr.expression),n(xr.thenStatement),xr.elseStatement&&(Ct(bi),Oe(ut),n(xr.elseStatement)),Oe(bi)}else wi(e.visitNode(xr,m,e.isStatement));else wi(e.visitNode(xr,m,e.isStatement))}function Lr(xr){if(_r(xr)){var bi=Je(),ut=Je();ki(bi),Oe(ut),n(xr.statement),Oe(bi),tt(ut,e.visitNode(xr.expression,m,e.isExpression)),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function Jr(xr){return ie?(hi(),xr=e.visitEachChild(xr,m,F),Ui(),xr):e.visitEachChild(xr,m,F)}function Rr(xr){if(_r(xr)){var bi=Je(),ut=ki(bi);Oe(bi),ta(ut,e.visitNode(xr.expression,m,e.isExpression)),n(xr.statement),Ct(bi),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function ci(xr){return ie?(hi(),xr=e.visitEachChild(xr,m,F),Ui(),xr):e.visitEachChild(xr,m,F)}function be(xr){if(_r(xr)){var bi=Je(),ut=Je(),Ht=ki(ut);if(xr.initializer){var Ka=xr.initializer;e.isVariableDeclarationList(Ka)?Le(Ka):wi(e.setTextRange(g.createExpressionStatement(e.visitNode(Ka,m,e.isExpression)),Ka))}Oe(bi),xr.condition&&ta(Ht,e.visitNode(xr.condition,m,e.isExpression)),n(xr.statement),Oe(ut),xr.incrementor&&wi(e.setTextRange(g.createExpressionStatement(e.visitNode(xr.incrementor,m,e.isExpression)),xr.incrementor)),Ct(bi),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function or(xr){ie&&hi();var bi=xr.initializer;if(bi&&e.isVariableDeclarationList(bi)){for(var ut=0,Ht=bi.declarations;ut<Ht.length;ut++){var Ka=Ht[ut];C(Ka.name)}var an=e.getInitializedVariables(bi);xr=g.updateForStatement(xr,an.length>0?g.inlineExpressions(e.map(an,Xe)):void 0,e.visitNode(xr.condition,m,e.isExpression),e.visitNode(xr.incrementor,m,e.isExpression),e.visitIterationBody(xr.statement,m,F))}else xr=e.visitEachChild(xr,m,F);return ie&&Ui(),xr}function Kr(xr){if(_r(xr)){var bi=ze(),ut=ze(),Ht=g.createLoopVariable(),Ka=xr.initializer;C(Ht),Qr(bi,g.createArrayLiteralExpression()),wi(g.createForInStatement(ut,e.visitNode(xr.expression,m,e.isExpression),g.createExpressionStatement(g.createCallExpression(g.createPropertyAccessExpression(bi,"push"),void 0,[ut])))),Qr(Ht,g.createNumericLiteral(0));var an=Je(),Ke=Je(),h=ki(Ke);Oe(an),ta(h,g.createLessThan(Ht,g.createPropertyAccessExpression(bi,"length")));var Ee=void 0;if(e.isVariableDeclarationList(Ka)){for(var Re=0,nr=Ka.declarations;Re<nr.length;Re++){var Gr=nr[Re];C(Gr.name)}Ee=g.cloneNode(Ka.declarations[0].name)}else Ee=e.visitNode(Ka,m,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(Ee));Qr(Ee,g.createElementAccessExpression(bi,Ht)),n(xr.statement),Oe(Ke),wi(g.createExpressionStatement(g.createPostfixIncrement(Ht))),Ct(an),Ui()}else wi(e.visitNode(xr,m,e.isStatement))}function ei(xr){ie&&hi();var bi=xr.initializer;if(e.isVariableDeclarationList(bi)){for(var ut=0,Ht=bi.declarations;ut<Ht.length;ut++){var Ka=Ht[ut];C(Ka.name)}xr=g.updateForInStatement(xr,bi.declarations[0].name,e.visitNode(xr.expression,m,e.isExpression),e.visitNode(xr.statement,m,e.isStatement,g.liftToBlock))}else xr=e.visitEachChild(xr,m,F);return ie&&Ui(),xr}function li(xr){var bi=Yi(xr.label?e.idText(xr.label):void 0);bi>0?Ct(bi,xr):wi(xr)}function Si(xr){if(ie){var bi=Yi(xr.label&&e.idText(xr.label));if(bi>0)return oa(bi,xr)}return e.visitEachChild(xr,m,F)}function qi(xr){var bi=Hi(xr.label?e.idText(xr.label):void 0);bi>0?Ct(bi,xr):wi(xr)}function ft(xr){if(ie){var bi=Hi(xr.label&&e.idText(xr.label));if(bi>0)return oa(bi,xr)}return e.visitEachChild(xr,m,F)}function bt(xr){qr(e.visitNode(xr.expression,m,e.isExpression),xr)}function aa(xr){return Bt(e.visitNode(xr.expression,m,e.isExpression),xr)}function sr(xr){_r(xr)?(mr(xe(e.visitNode(xr.expression,m,e.isExpression))),n(xr.statement),Nr()):wi(e.visitNode(xr,m,e.isStatement))}function Ji(xr){if(_r(xr.caseBlock)){for(var bi=xr.caseBlock,ut=bi.clauses.length,Ht=ri(),Ka=xe(e.visitNode(xr.expression,m,e.isExpression)),an=[],Ke=-1,h=0;h<ut;h++){var Ee=bi.clauses[h];an.push(Je()),Ee.kind===289&&Ke===-1&&(Ke=h)}for(var Re=0,nr=[];Re<ut;){for(var Gr=0,h=Re;h<ut;h++){var Ee=bi.clauses[h];if(Ee.kind===288){if(_r(Ee.expression)&&nr.length>0)break;nr.push(g.createCaseClause(e.visitNode(Ee.expression,m,e.isExpression),[oa(an[h],Ee.expression)]))}else Gr++}nr.length&&(wi(g.createSwitchStatement(Ka,g.createCaseBlock(nr))),Re+=nr.length,nr=[]),Gr>0&&(Re+=Gr,Gr=0)}Ke>=0?Ct(an[Ke]):Ct(Ht);for(var h=0;h<ut;h++)Oe(an[h]),Tr(bi.clauses[h].statements);Gi()}else wi(e.visitNode(xr,m,e.isStatement))}function di(xr){return ie&&zi(),xr=e.visitEachChild(xr,m,F),ie&&Gi(),xr}function X(xr){_r(xr)?(pa(e.idText(xr.label)),n(xr.statement),xt()):wi(e.visitNode(xr,m,e.isStatement))}function Ye(xr){return ie&&Rt(e.idText(xr.label)),xr=e.visitEachChild(xr,m,F),ie&&xt(),xr}function Be(xr){var bi;bn(e.visitNode((bi=xr.expression)!==null&&bi!==void 0?bi:g.createVoidZero(),m,e.isExpression),xr)}function Qe(xr){_r(xr)?(Ur(),n(xr.tryBlock),xr.catchClause&&(si(xr.catchClause.variableDeclaration),n(xr.catchClause.block)),xr.finallyBlock&&(mi(),n(xr.finallyBlock)),Ti()):wi(e.visitEachChild(xr,m,F))}function _r(xr){return!!xr&&(xr.transformFlags&524288)!==0}function hr(xr){for(var bi=xr.length,ut=0;ut<bi;ut++)if(_r(xr[ut]))return ut;return-1}function Dr(xr,bi){return bi=B(xr,bi),xr===1?Me(bi):bi}function Me(xr){return e.isIdentifier(xr)?v(xr):xr}function v(xr){if(!e.isGeneratedIdentifier(xr)&&re&&re.has(e.idText(xr))){var bi=e.getOriginalNode(xr);if(e.isIdentifier(bi)&&bi.parent){var ut=ue.getReferencedValueDeclaration(bi);if(ut){var Ht=M[e.getOriginalNodeId(ut)];if(Ht){var Ka=e.setParent(e.setTextRange(g.cloneNode(Ht),Ht),Ht.parent);return e.setSourceMapRange(Ka,xr),e.setCommentRange(Ka,xr),Ka}}}}return xr}function xe(xr){if(e.isGeneratedIdentifier(xr)||e.getEmitFlags(xr)&4096)return xr;var bi=g.createTempVariable(C);return Qr(bi,xr,xr),bi}function ze(xr){var bi=xr?g.createUniqueName(xr):g.createTempVariable(void 0);return C(bi),bi}function Je(){I||(I=[]);var xr=ee;return ee++,I[xr]=-1,xr}function Oe(xr){e.Debug.assert(I!==void 0,"No labels were defined."),I[xr]=A?A.length:0}function Fr(xr){_e||(_e=[],Z=[],Y=[],k=[]);var bi=Z.length;return Z[bi]=0,Y[bi]=A?A.length:0,_e[bi]=xr,k.push(xr),bi}function Xr(){var xr=Or();if(xr===void 0)return e.Debug.fail("beginBlock was never called.");var bi=Z.length;return Z[bi]=1,Y[bi]=A?A.length:0,_e[bi]=xr,k.pop(),xr}function Or(){return e.lastOrUndefined(k)}function We(){var xr=Or();return xr&&xr.kind}function mr(xr){var bi=Je(),ut=Je();Oe(bi),Fr({kind:1,expression:xr,startLabel:bi,endLabel:ut})}function Nr(){e.Debug.assert(We()===1);var xr=Xr();Oe(xr.endLabel)}function Ur(){var xr=Je(),bi=Je();return Oe(xr),Fr({kind:0,state:0,startLabel:xr,endLabel:bi}),Oi(),bi}function si(xr){e.Debug.assert(We()===0);var bi;if(e.isGeneratedIdentifier(xr.name))bi=xr.name,C(xr.name);else{var ut=e.idText(xr.name);bi=ze(ut),re||(re=new e.Map,M=[],F.enableSubstitution(79)),re.set(ut,!0),M[e.getOriginalNodeId(xr)]=bi}var Ht=Or();e.Debug.assert(Ht.state<1);var Ka=Ht.endLabel;Ct(Ka);var an=Je();Oe(an),Ht.state=1,Ht.catchVariable=bi,Ht.catchLabel=an,Qr(bi,g.createCallExpression(g.createPropertyAccessExpression(D,"sent"),void 0,[])),Oi()}function mi(){e.Debug.assert(We()===0);var xr=Or();e.Debug.assert(xr.state<2);var bi=xr.endLabel;Ct(bi);var ut=Je();Oe(ut),xr.state=2,xr.finallyLabel=ut}function Ti(){e.Debug.assert(We()===0);var xr=Xr(),bi=xr.state;bi<2?Ct(xr.endLabel):Rn(),Oe(xr.endLabel),Oi(),xr.state=3}function hi(){Fr({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ki(xr){var bi=Je();return Fr({kind:3,isScript:!1,breakLabel:bi,continueLabel:xr}),bi}function Ui(){e.Debug.assert(We()===3);var xr=Xr(),bi=xr.breakLabel;xr.isScript||Oe(bi)}function zi(){Fr({kind:2,isScript:!0,breakLabel:-1})}function ri(){var xr=Je();return Fr({kind:2,isScript:!1,breakLabel:xr}),xr}function Gi(){e.Debug.assert(We()===2);var xr=Xr(),bi=xr.breakLabel;xr.isScript||Oe(bi)}function Rt(xr){Fr({kind:4,isScript:!0,labelText:xr,breakLabel:-1})}function pa(xr){var bi=Je();Fr({kind:4,isScript:!1,labelText:xr,breakLabel:bi})}function xt(){e.Debug.assert(We()===4);var xr=Xr();xr.isScript||Oe(xr.breakLabel)}function ua(xr){return xr.kind===2||xr.kind===3}function Vt(xr){return xr.kind===4}function St(xr){return xr.kind===3}function Ci(xr,bi){for(var ut=bi;ut>=0;ut--){var Ht=k[ut];if(Vt(Ht)){if(Ht.labelText===xr)return!0}else break}return!1}function Hi(xr){if(k)if(xr)for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(Vt(ut)&&ut.labelText===xr)return ut.breakLabel;if(ua(ut)&&Ci(xr,bi-1))return ut.breakLabel}else for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(ua(ut))return ut.breakLabel}return 0}function Yi(xr){if(k)if(xr)for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(St(ut)&&Ci(xr,bi-1))return ut.continueLabel}else for(var bi=k.length-1;bi>=0;bi--){var ut=k[bi];if(St(ut))return ut.continueLabel}return 0}function yt(xr){if(xr!==void 0&&xr>0){ne===void 0&&(ne=[]);var bi=g.createNumericLiteral(-1);return ne[xr]===void 0?ne[xr]=[bi]:ne[xr].push(bi),bi}return g.createOmittedExpression()}function gt(xr){var bi=g.createNumericLiteral(xr);return e.addSyntheticTrailingComment(bi,3,Q(xr)),bi}function oa(xr,bi){return e.Debug.assertLessThan(0,xr,"Invalid label"),e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),bi)}function Bt(xr,bi){return e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(2),xr]:[gt(2)])),bi)}function Pi(xr){return e.setTextRange(g.createCallExpression(g.createPropertyAccessExpression(D,"sent"),void 0,[]),xr)}function Oi(){Sn(0)}function wi(xr){xr?Sn(1,[xr]):Oi()}function Qr(xr,bi,ut){Sn(2,[xr,bi],ut)}function Ct(xr,bi){Sn(3,[xr],bi)}function tt(xr,bi,ut){Sn(4,[xr,bi],ut)}function ta(xr,bi,ut){Sn(5,[xr,bi],ut)}function Xa(xr,bi){Sn(7,[xr],bi)}function on(xr,bi){Sn(6,[xr],bi)}function qr(xr,bi){Sn(8,[xr],bi)}function bn(xr,bi){Sn(9,[xr],bi)}function Rn(){Sn(10)}function Sn(xr,bi,ut){A===void 0&&(A=[],f=[],P=[]),I===void 0&&Oe(Je());var Ht=A.length;A[Ht]=xr,f[Ht]=bi,P[Ht]=ut}function zn(){l=0,_=0,J=void 0,w=!1,j=!1,U=void 0,z=void 0,y=void 0,oe=void 0,ve=void 0;var xr=Zn();return S().createGeneratorHelper(e.setEmitFlags(g.createFunctionExpression(void 0,void 0,void 0,void 0,[g.createParameterDeclaration(void 0,void 0,void 0,D)],void 0,g.createBlock(xr,xr.length>0)),524288))}function Zn(){if(A){for(var xr=0;xr<A.length;xr++)rn(xr);Vo(A.length)}else Vo(0);if(U){var bi=g.createPropertyAccessExpression(D,"label"),ut=g.createSwitchStatement(bi,g.createCaseBlock(U));return[e.startOnNewLine(ut)]}return z||[]}function ho(){!z||(go(!w),w=!1,j=!1,_++)}function Vo(xr){Cn(xr)&&(ro(xr),ve=void 0,Qn(void 0,void 0)),z&&U&&go(!1),Ko()}function Cn(xr){if(!j)return!0;if(!I||!ne)return!1;for(var bi=0;bi<I.length;bi++)if(I[bi]===xr&&ne[bi])return!0;return!1}function go(xr){if(U||(U=[]),z){if(ve)for(var bi=ve.length-1;bi>=0;bi--){var ut=ve[bi];z=[g.createWithStatement(ut.expression,g.createBlock(z))]}if(oe){var Ht=oe.startLabel,Ka=oe.catchLabel,an=oe.finallyLabel,Ke=oe.endLabel;z.unshift(g.createExpressionStatement(g.createCallExpression(g.createPropertyAccessExpression(g.createPropertyAccessExpression(D,"trys"),"push"),void 0,[g.createArrayLiteralExpression([yt(Ht),yt(Ka),yt(an),yt(Ke)])]))),oe=void 0}xr&&z.push(g.createExpressionStatement(g.createAssignment(g.createPropertyAccessExpression(D,"label"),g.createNumericLiteral(_+1))))}U.push(g.createCaseClause(g.createNumericLiteral(_),z||[])),z=void 0}function ro(xr){if(!!I)for(var bi=0;bi<I.length;bi++)I[bi]===xr&&(ho(),J===void 0&&(J=[]),J[_]===void 0?J[_]=[bi]:J[_].push(bi))}function Ko(){if(ne!==void 0&&J!==void 0)for(var xr=0;xr<J.length;xr++){var bi=J[xr];if(bi!==void 0)for(var ut=0,Ht=bi;ut<Ht.length;ut++){var Ka=Ht[ut],an=ne[Ka];if(an!==void 0)for(var Ke=0,h=an;Ke<h.length;Ke++){var Ee=h[Ke];Ee.text=String(xr)}}}}function rs(xr){if(_e)for(;l<Z.length&&Y[l]<=xr;l++){var bi=_e[l],ut=Z[l];switch(bi.kind){case 0:ut===0?(y||(y=[]),z||(z=[]),y.push(oe),oe=bi):ut===1&&(oe=y.pop());break;case 1:ut===0?(ve||(ve=[]),ve.push(bi)):ut===1&&ve.pop();break}}}function rn(xr){if(ro(xr),rs(xr),!w){w=!1,j=!1;var bi=A[xr];if(bi!==0){if(bi===10)return Ms();var ut=f[xr];if(bi===1)return Do(ut[0]);var Ht=P[xr];switch(bi){case 2:return io(ut[0],ut[1],Ht);case 3:return wo(ut[0],Ht);case 4:return xo(ut[0],ut[1],Ht);case 5:return ds(ut[0],ut[1],Ht);case 6:return No(ut[0],Ht);case 7:return Ts(ut[0],Ht);case 8:return Qn(ut[0],Ht);case 9:return pn(ut[0],Ht)}}}}function Do(xr){xr&&(z?z.push(xr):z=[xr])}function io(xr,bi,ut){Do(e.setTextRange(g.createExpressionStatement(g.createAssignment(xr,bi)),ut))}function pn(xr,bi){w=!0,j=!0,Do(e.setTextRange(g.createThrowStatement(xr),bi))}function Qn(xr,bi){w=!0,j=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(2),xr]:[gt(2)])),bi),384))}function wo(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),bi),384))}function xo(xr,bi,ut){Do(e.setEmitFlags(g.createIfStatement(bi,e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),ut),384)),1))}function ds(xr,bi,ut){Do(e.setEmitFlags(g.createIfStatement(g.createLogicalNot(bi),e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(3),yt(xr)])),ut),384)),1))}function No(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression(xr?[gt(4),xr]:[gt(4)])),bi),384))}function Ts(xr,bi){w=!0,Do(e.setEmitFlags(e.setTextRange(g.createReturnStatement(g.createArrayLiteralExpression([gt(5),xr])),bi),384))}function Ms(){w=!0,Do(g.createReturnStatement(g.createArrayLiteralExpression([gt(7)])))}}e.transformGenerators=pe})(Pe||(Pe={}));var Pe;(function(e){function a(L){function W(be){switch(be){case e.ModuleKind.AMD:return k;case e.ModuleKind.UMD:return I;default:return Z}}var N=L.factory,Q=L.getEmitHelperFactory,pe=L.startLexicalEnvironment,F=L.endLexicalEnvironment,g=L.hoistVariableDeclaration,S=L.getCompilerOptions(),H=L.getEmitResolver(),se=L.getEmitHost(),p=e.getEmitScriptTarget(S),C=e.getEmitModuleKind(S),G=L.onSubstituteNode,E=L.onEmitNode;L.onSubstituteNode=Ce,L.onEmitNode=Pr,L.enableSubstitution(207),L.enableSubstitution(209),L.enableSubstitution(79),L.enableSubstitution(220),L.enableSubstitution(295),L.enableEmitNotification(303);var ue=[],B=[],re,M,x=[],ie;return e.chainBundle(L,_e);function _e(be){if(be.isDeclarationFile||!(e.isEffectiveExternalModule(be,S)||be.transformFlags&4194304||e.isJsonSourceFile(be)&&e.hasJsonModuleEmitEnabled(S)&&e.outFile(S)))return be;re=be,M=e.collectExternalModuleInfo(L,be,H,S),ue[e.getOriginalNodeId(be)]=M;var or=W(C),Kr=or(be);return re=void 0,M=void 0,ie=!1,Kr}function Y(){return!!(!M.exportEquals&&e.isExternalModule(re))}function Z(be){pe();var or=[],Kr=e.getStrictOptionValue(S,"alwaysStrict")||!S.noImplicitUseStrict&&e.isExternalModule(re),ei=N.copyPrologue(be.statements,or,Kr&&!e.isJsonSourceFile(be),P);if(Y()&&e.append(or,Tr()),e.length(M.exportedNames))for(var li=50,Si=0;Si<M.exportedNames.length;Si+=li)e.append(or,N.createExpressionStatement(e.reduceLeft(M.exportedNames.slice(Si,Si+li),function(ft,bt){return N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e.idText(bt))),ft)},N.createVoidZero())));e.append(or,e.visitNode(M.externalHelpersImportDeclaration,P,e.isStatement)),e.addRange(or,e.visitNodes(be.statements,P,e.isStatement,ei)),f(or,!1),e.insertStatementsAfterStandardPrologue(or,F());var qi=N.updateSourceFile(be,e.setTextRange(N.createNodeArray(or),be.statements));return e.addEmitHelpers(qi,L.readEmitHelpers()),qi}function k(be){var or=N.createIdentifier("define"),Kr=e.tryGetModuleNameFromFile(N,be,se,S),ei=e.isJsonSourceFile(be)&&be,li=ne(be,!0),Si=li.aliasedModuleNames,qi=li.unaliasedModuleNames,ft=li.importAliasNames,bt=N.updateSourceFile(be,e.setTextRange(N.createNodeArray([N.createExpressionStatement(N.createCallExpression(or,void 0,qe(qe([],Kr?[Kr]:[],!0),[N.createArrayLiteralExpression(ei?e.emptyArray:qe(qe([N.createStringLiteral("require"),N.createStringLiteral("exports")],Si,!0),qi,!0)),ei?ei.statements.length?ei.statements[0].expression:N.createObjectLiteralExpression():N.createFunctionExpression(void 0,void 0,void 0,void 0,qe([N.createParameterDeclaration(void 0,void 0,void 0,"require"),N.createParameterDeclaration(void 0,void 0,void 0,"exports")],ft,!0),void 0,A(be))],!1)))]),be.statements));return e.addEmitHelpers(bt,L.readEmitHelpers()),bt}function I(be){var or=ne(be,!1),Kr=or.aliasedModuleNames,ei=or.unaliasedModuleNames,li=or.importAliasNames,Si=e.tryGetModuleNameFromFile(N,be,se,S),qi=N.createFunctionExpression(void 0,void 0,void 0,void 0,[N.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(N.createBlock([N.createIfStatement(N.createLogicalAnd(N.createTypeCheck(N.createIdentifier("module"),"object"),N.createTypeCheck(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),"object")),N.createBlock([N.createVariableStatement(void 0,[N.createVariableDeclaration("v",void 0,void 0,N.createCallExpression(N.createIdentifier("factory"),void 0,[N.createIdentifier("require"),N.createIdentifier("exports")]))]),e.setEmitFlags(N.createIfStatement(N.createStrictInequality(N.createIdentifier("v"),N.createIdentifier("undefined")),N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),N.createIdentifier("v")))),1)]),N.createIfStatement(N.createLogicalAnd(N.createTypeCheck(N.createIdentifier("define"),"function"),N.createPropertyAccessExpression(N.createIdentifier("define"),"amd")),N.createBlock([N.createExpressionStatement(N.createCallExpression(N.createIdentifier("define"),void 0,qe(qe([],Si?[Si]:[],!0),[N.createArrayLiteralExpression(qe(qe([N.createStringLiteral("require"),N.createStringLiteral("exports")],Kr,!0),ei,!0)),N.createIdentifier("factory")],!1)))])))],!0),void 0)),ft=N.updateSourceFile(be,e.setTextRange(N.createNodeArray([N.createExpressionStatement(N.createCallExpression(qi,void 0,[N.createFunctionExpression(void 0,void 0,void 0,void 0,qe([N.createParameterDeclaration(void 0,void 0,void 0,"require"),N.createParameterDeclaration(void 0,void 0,void 0,"exports")],li,!0),void 0,A(be))]))]),be.statements));return e.addEmitHelpers(ft,L.readEmitHelpers()),ft}function ne(be,or){for(var Kr=[],ei=[],li=[],Si=0,qi=be.amdDependencies;Si<qi.length;Si++){var ft=qi[Si];ft.name?(Kr.push(N.createStringLiteral(ft.path)),li.push(N.createParameterDeclaration(void 0,void 0,void 0,ft.name))):ei.push(N.createStringLiteral(ft.path))}for(var bt=0,aa=M.externalImports;bt<aa.length;bt++){var sr=aa[bt],Ji=e.getExternalModuleNameLiteral(N,sr,re,se,H,S),di=e.getLocalNameForExternalImport(N,sr,re);Ji&&(or&&di?(e.setEmitFlags(di,4),Kr.push(Ji),li.push(N.createParameterDeclaration(void 0,void 0,void 0,di))):ei.push(Ji))}return{aliasedModuleNames:Kr,unaliasedModuleNames:ei,importAliasNames:li}}function ee(be){if(!(e.isImportEqualsDeclaration(be)||e.isExportDeclaration(be)||!e.getExternalModuleNameLiteral(N,be,re,se,H,S))){var or=e.getLocalNameForExternalImport(N,be,re),Kr=V(be,or);if(Kr!==or)return N.createExpressionStatement(N.createAssignment(or,Kr))}}function A(be){pe();var or=[],Kr=N.copyPrologue(be.statements,or,!S.noImplicitUseStrict,P);Y()&&e.append(or,Tr()),e.length(M.exportedNames)&&e.append(or,N.createExpressionStatement(e.reduceLeft(M.exportedNames,function(li,Si){return N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.createIdentifier(e.idText(Si))),li)},N.createVoidZero()))),e.append(or,e.visitNode(M.externalHelpersImportDeclaration,P,e.isStatement)),C===e.ModuleKind.AMD&&e.addRange(or,e.mapDefined(M.externalImports,ee)),e.addRange(or,e.visitNodes(be.statements,P,e.isStatement,Kr)),f(or,!0),e.insertStatementsAfterStandardPrologue(or,F());var ei=N.createBlock(or,!0);return ie&&e.addEmitHelper(ei,O),ei}function f(be,or){if(M.exportEquals){var Kr=e.visitNode(M.exportEquals.expression,l);if(Kr)if(or){var ei=N.createReturnStatement(Kr);e.setTextRange(ei,M.exportEquals),e.setEmitFlags(ei,1920),be.push(ei)}else{var ei=N.createExpressionStatement(N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("module"),"exports"),Kr));e.setTextRange(ei,M.exportEquals),e.setEmitFlags(ei,1536),be.push(ei)}}}function P(be){switch(be.kind){case 265:return le(be);case 264:return Ue(be);case 271:return He(be);case 270:return ar(be);case 236:return Ge(be);case 255:return gr(be);case 256:return me(be);case 350:return we(be);case 351:return Se(be);default:return l(be)}}function D(be,or){if(!(be.transformFlags&71307264))return be;switch(be.kind){case 241:return j(be);case 237:return U(be);case 211:return z(be,or);case 348:return y(be,or);case 207:if(e.isImportCall(be)&&re.impliedNodeFormat===void 0)return ve(be);break;case 220:if(e.isDestructuringAssignment(be))return w(be,or);break;case 218:case 219:return oe(be,or)}return e.visitEachChild(be,l,L)}function l(be){return D(be,!1)}function _(be){return D(be,!0)}function J(be){if(e.isObjectLiteralExpression(be))for(var or=0,Kr=be.properties;or<Kr.length;or++){var ei=Kr[or];switch(ei.kind){case 294:if(J(ei.initializer))return!0;break;case 295:if(J(ei.name))return!0;break;case 296:if(J(ei.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(ei,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(be))for(var li=0,Si=be.elements;li<Si.length;li++){var ei=Si[li];if(e.isSpreadElement(ei)){if(J(ei.expression))return!0}else if(J(ei))return!0}else if(e.isIdentifier(be))return e.length(ci(be))>(e.isExportName(be)?1:0);return!1}function w(be,or){return J(be.left)?e.flattenDestructuringAssignment(be,l,L,0,!or,er):e.visitEachChild(be,l,L)}function j(be){return N.updateForStatement(be,e.visitNode(be.initializer,_,e.isForInitializer),e.visitNode(be.condition,l,e.isExpression),e.visitNode(be.incrementor,_,e.isExpression),e.visitIterationBody(be.statement,l,L))}function U(be){return N.updateExpressionStatement(be,e.visitNode(be.expression,_,e.isExpression))}function z(be,or){return N.updateParenthesizedExpression(be,e.visitNode(be.expression,or?_:l,e.isExpression))}function y(be,or){return N.updatePartiallyEmittedExpression(be,e.visitNode(be.expression,or?_:l,e.isExpression))}function oe(be,or){if((be.operator===45||be.operator===46)&&e.isIdentifier(be.operand)&&!e.isGeneratedIdentifier(be.operand)&&!e.isLocalName(be.operand)&&!e.isDeclarationNameOfEnumOrNamespace(be.operand)){var Kr=ci(be.operand);if(Kr){var ei=void 0,li=e.visitNode(be.operand,l,e.isExpression);e.isPrefixUnaryExpression(be)?li=N.updatePrefixUnaryExpression(be,li):(li=N.updatePostfixUnaryExpression(be,li),or||(ei=N.createTempVariable(g),li=N.createAssignment(ei,li),e.setTextRange(li,be)),li=N.createComma(li,N.cloneNode(be.operand)),e.setTextRange(li,be));for(var Si=0,qi=Kr;Si<qi.length;Si++){var ft=qi[Si];x[e.getNodeId(li)]=!0,li=Er(ft,li),e.setTextRange(li,be)}return ei&&(x[e.getNodeId(li)]=!0,li=N.createComma(li,ei),e.setTextRange(li,be)),li}}return e.visitEachChild(be,l,L)}function ve(be){var or=e.getExternalModuleNameLiteral(N,be,re,se,H,S),Kr=e.visitNode(e.firstOrUndefined(be.arguments),l),ei=or&&(!Kr||!e.isStringLiteral(Kr)||Kr.text!==or.text)?or:Kr,li=!!(be.transformFlags&8192);switch(S.module){case e.ModuleKind.AMD:return m(ei,li);case e.ModuleKind.UMD:return ce(ei!=null?ei:N.createVoidZero(),li);case e.ModuleKind.CommonJS:default:return de(ei,li)}}function ce(be,or){if(ie=!0,e.isSimpleCopiableExpression(be)){var Kr=e.isGeneratedIdentifier(be)?be:e.isStringLiteral(be)?N.createStringLiteralFromNode(be):e.setEmitFlags(e.setTextRange(N.cloneNode(be),be),1536);return N.createConditionalExpression(N.createIdentifier("__syncRequire"),void 0,de(be,or),void 0,m(Kr,or))}else{var ei=N.createTempVariable(g);return N.createComma(N.createAssignment(ei,be),N.createConditionalExpression(N.createIdentifier("__syncRequire"),void 0,de(ei,or),void 0,m(ei,or)))}}function m(be,or){var Kr=N.createUniqueName("resolve"),ei=N.createUniqueName("reject"),li=[N.createParameterDeclaration(void 0,void 0,void 0,Kr),N.createParameterDeclaration(void 0,void 0,void 0,ei)],Si=N.createBlock([N.createExpressionStatement(N.createCallExpression(N.createIdentifier("require"),void 0,[N.createArrayLiteralExpression([be||N.createOmittedExpression()]),Kr,ei]))]),qi;p>=2?qi=N.createArrowFunction(void 0,void 0,li,void 0,void 0,Si):(qi=N.createFunctionExpression(void 0,void 0,void 0,void 0,li,void 0,Si),or&&e.setEmitFlags(qi,8));var ft=N.createNewExpression(N.createIdentifier("Promise"),void 0,[qi]);return e.getESModuleInterop(S)?N.createCallExpression(N.createPropertyAccessExpression(ft,N.createIdentifier("then")),void 0,[Q().createImportStarCallbackHelper()]):ft}function de(be,or){var Kr=N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Promise"),"resolve"),void 0,[]),ei=N.createCallExpression(N.createIdentifier("require"),void 0,be?[be]:[]);e.getESModuleInterop(S)&&(ei=Q().createImportStarHelper(ei));var li;return p>=2?li=N.createArrowFunction(void 0,void 0,[],void 0,void 0,ei):(li=N.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,N.createBlock([N.createReturnStatement(ei)])),or&&e.setEmitFlags(li,8)),N.createCallExpression(N.createPropertyAccessExpression(Kr,"then"),void 0,[li])}function ae(be,or){return!e.getESModuleInterop(S)||e.getEmitFlags(be)&67108864?or:e.getExportNeedsImportStarHelper(be)?Q().createImportStarHelper(or):or}function V(be,or){return!e.getESModuleInterop(S)||e.getEmitFlags(be)&67108864?or:e.getImportNeedsImportStarHelper(be)?Q().createImportStarHelper(or):e.getImportNeedsImportDefaultHelper(be)?Q().createImportDefaultHelper(or):or}function le(be){var or,Kr=e.getNamespaceDeclarationNode(be);if(C!==e.ModuleKind.AMD)if(be.importClause){var ei=[];Kr&&!e.isDefaultImport(be)?ei.push(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,V(be,ke(be)))):(ei.push(N.createVariableDeclaration(N.getGeneratedNameForNode(be),void 0,void 0,V(be,ke(be)))),Kr&&e.isDefaultImport(be)&&ei.push(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,N.getGeneratedNameForNode(be)))),or=e.append(or,e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList(ei,p>=2?2:0)),be),be))}else return e.setOriginalNode(e.setTextRange(N.createExpressionStatement(ke(be)),be),be);else Kr&&e.isDefaultImport(be)&&(or=e.append(or,N.createVariableStatement(void 0,N.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(N.createVariableDeclaration(N.cloneNode(Kr.name),void 0,void 0,N.getGeneratedNameForNode(be)),be),be)],p>=2?2:0))));if(ye(be)){var li=e.getOriginalNodeId(be);B[li]=ge(B[li],be)}else or=ge(or,be);return e.singleOrMany(or)}function ke(be){var or=e.getExternalModuleNameLiteral(N,be,re,se,H,S),Kr=[];return or&&Kr.push(or),N.createCallExpression(N.createIdentifier("require"),void 0,Kr)}function Ue(be){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(be),"import= for internal module references should be handled in an earlier transformer.");var or;if(C!==e.ModuleKind.AMD?e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(be.name,ke(be))),be),be)):or=e.append(or,e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(N.cloneNode(be.name),void 0,void 0,ke(be))],p>=2?2:0)),be),be)):e.hasSyntacticModifier(be,1)&&(or=e.append(or,e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.getExportName(be),N.getLocalName(be))),be),be))),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Fe(B[Kr],be)}else or=Fe(or,be);return e.singleOrMany(or)}function He(be){if(!!be.moduleSpecifier){var or=N.getGeneratedNameForNode(be);if(be.exportClause&&e.isNamedExports(be.exportClause)){var Kr=[];C!==e.ModuleKind.AMD&&Kr.push(e.setOriginalNode(e.setTextRange(N.createVariableStatement(void 0,N.createVariableDeclarationList([N.createVariableDeclaration(or,void 0,void 0,ke(be))])),be),be));for(var ei=0,li=be.exportClause.elements;ei<li.length;ei++){var Si=li[ei];if(p===0)Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Q().createCreateBindingHelper(or,N.createStringLiteralFromNode(Si.propertyName||Si.name),Si.propertyName?N.createStringLiteralFromNode(Si.name):void 0)),Si),Si));else{var qi=!!e.getESModuleInterop(S)&&!(e.getEmitFlags(be)&67108864)&&e.idText(Si.propertyName||Si.name)==="default",ft=N.createPropertyAccessExpression(qi?Q().createImportDefaultHelper(or):or,Si.propertyName||Si.name);Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.getExportName(Si),ft,void 0,!0)),Si),Si))}}return e.singleOrMany(Kr)}else if(be.exportClause){var Kr=[];return Kr.push(e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Er(N.cloneNode(be.exportClause.name),ae(be,C!==e.ModuleKind.AMD?ke(be):e.isExportNamespaceAsDefaultDeclaration(be)?or:N.createIdentifier(e.idText(be.exportClause.name))))),be),be)),e.singleOrMany(Kr)}else return e.setOriginalNode(e.setTextRange(N.createExpressionStatement(Q().createExportStarHelper(C!==e.ModuleKind.AMD?ke(be):or)),be),be)}}function ar(be){if(!be.isExportEquals){var or,Kr=be.original;if(Kr&&ye(Kr)){var ei=e.getOriginalNodeId(be);B[ei]=Br(B[ei],N.createIdentifier("default"),e.visitNode(be.expression,l),be,!0)}else or=Br(or,N.createIdentifier("default"),e.visitNode(be.expression,l),be,!0);return e.singleOrMany(or)}}function gr(be){var or;if(e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createFunctionDeclaration(void 0,e.visitNodes(be.modifiers,br,e.isModifier),be.asteriskToken,N.getDeclarationName(be,!0,!0),void 0,e.visitNodes(be.parameters,l),void 0,e.visitEachChild(be.body,l,L)),be),be)):or=e.append(or,e.visitEachChild(be,l,L)),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Ir(B[Kr],be)}else or=Ir(or,be);return e.singleOrMany(or)}function me(be){var or;if(e.hasSyntacticModifier(be,1)?or=e.append(or,e.setOriginalNode(e.setTextRange(N.createClassDeclaration(void 0,e.visitNodes(be.modifiers,br,e.isModifier),N.getDeclarationName(be,!0,!0),void 0,e.visitNodes(be.heritageClauses,l),e.visitNodes(be.members,l)),be),be)):or=e.append(or,e.visitEachChild(be,l,L)),ye(be)){var Kr=e.getOriginalNodeId(be);B[Kr]=Ir(B[Kr],be)}else or=Ir(or,be);return e.singleOrMany(or)}function Ge(be){var or,Kr,ei;if(e.hasSyntacticModifier(be,1)){for(var li=void 0,Si=!1,qi=0,ft=be.declarationList.declarations;qi<ft.length;qi++){var bt=ft[qi];if(e.isIdentifier(bt.name)&&e.isLocalName(bt.name))li||(li=e.visitNodes(be.modifiers,br,e.isModifier)),Kr=e.append(Kr,bt);else if(bt.initializer)if(!e.isBindingPattern(bt.name)&&(e.isArrowFunction(bt.initializer)||e.isFunctionExpression(bt.initializer)||e.isClassExpression(bt.initializer))){var aa=N.createAssignment(e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),bt.name),bt.name),N.createIdentifier(e.getTextOfIdentifierOrLiteral(bt.name))),sr=N.createVariableDeclaration(bt.name,bt.exclamationToken,bt.type,e.visitNode(bt.initializer,l));Kr=e.append(Kr,sr),ei=e.append(ei,aa),Si=!0}else ei=e.append(ei,he(bt))}if(Kr&&(or=e.append(or,N.updateVariableStatement(be,li,N.updateVariableDeclarationList(be.declarationList,Kr)))),ei){var Ji=e.setOriginalNode(e.setTextRange(N.createExpressionStatement(N.inlineExpressions(ei)),be),be);Si&&e.removeAllComments(Ji),or=e.append(or,Ji)}}else or=e.append(or,e.visitEachChild(be,l,L));if(ye(be)){var di=e.getOriginalNodeId(be);B[di]=cr(B[di],be)}else or=cr(or,be);return e.singleOrMany(or)}function er(be,or,Kr){var ei=ci(be);if(ei){for(var li=e.isExportName(be)?or:N.createAssignment(be,or),Si=0,qi=ei;Si<qi.length;Si++){var ft=qi[Si];e.setEmitFlags(li,4),li=Er(ft,li,Kr)}return li}return N.createAssignment(be,or)}function he(be){return e.isBindingPattern(be.name)?e.flattenDestructuringAssignment(e.visitNode(be,l),void 0,L,0,!1,er):N.createAssignment(e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),be.name),be.name),be.initializer?e.visitNode(be.initializer,l):N.createVoidZero())}function we(be){if(ye(be)&&be.original.kind===236){var or=e.getOriginalNodeId(be);B[or]=cr(B[or],be.original)}return be}function ye(be){return(e.getEmitFlags(be)&4194304)!==0}function Se(be){var or=e.getOriginalNodeId(be),Kr=B[or];return Kr?(delete B[or],e.append(Kr,be)):be}function ge(be,or){if(M.exportEquals)return be;var Kr=or.importClause;if(!Kr)return be;Kr.name&&(be=dr(be,Kr));var ei=Kr.namedBindings;if(ei)switch(ei.kind){case 267:be=dr(be,ei);break;case 268:for(var li=0,Si=ei.elements;li<Si.length;li++){var qi=Si[li];be=dr(be,qi,!0)}break}return be}function Fe(be,or){return M.exportEquals?be:dr(be,or)}function cr(be,or){if(M.exportEquals)return be;for(var Kr=0,ei=or.declarationList.declarations;Kr<ei.length;Kr++){var li=ei[Kr];be=ur(be,li)}return be}function ur(be,or){if(M.exportEquals)return be;if(e.isBindingPattern(or.name))for(var Kr=0,ei=or.name.elements;Kr<ei.length;Kr++){var li=ei[Kr];e.isOmittedExpression(li)||(be=ur(be,li))}else e.isGeneratedIdentifier(or.name)||(be=dr(be,or));return be}function Ir(be,or){if(M.exportEquals)return be;if(e.hasSyntacticModifier(or,1)){var Kr=e.hasSyntacticModifier(or,512)?N.createIdentifier("default"):N.getDeclarationName(or);be=Br(be,Kr,N.getLocalName(or),or)}return or.name&&(be=dr(be,or)),be}function dr(be,or,Kr){var ei=N.getDeclarationName(or),li=M.exportSpecifiers.get(e.idText(ei));if(li)for(var Si=0,qi=li;Si<qi.length;Si++){var ft=qi[Si];be=Br(be,ft.name,ei,ft.name,void 0,Kr)}return be}function Br(be,or,Kr,ei,li,Si){return be=e.append(be,n(or,Kr,ei,li,Si)),be}function Tr(){var be;return p===0?be=N.createExpressionStatement(Er(N.createIdentifier("__esModule"),N.createTrue())):be=N.createExpressionStatement(N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"defineProperty"),void 0,[N.createIdentifier("exports"),N.createStringLiteral("__esModule"),N.createObjectLiteralExpression([N.createPropertyAssignment("value",N.createTrue())])])),e.setEmitFlags(be,1048576),be}function n(be,or,Kr,ei,li){var Si=e.setTextRange(N.createExpressionStatement(Er(be,or,void 0,li)),Kr);return e.startOnNewLine(Si),ei||e.setEmitFlags(Si,1536),Si}function Er(be,or,Kr,ei){return e.setTextRange(ei&&p!==0?N.createCallExpression(N.createPropertyAccessExpression(N.createIdentifier("Object"),"defineProperty"),void 0,[N.createIdentifier("exports"),N.createStringLiteralFromNode(be),N.createObjectLiteralExpression([N.createPropertyAssignment("enumerable",N.createTrue()),N.createPropertyAssignment("get",N.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,N.createBlock([N.createReturnStatement(or)])))])]):N.createAssignment(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.cloneNode(be)),or),Kr)}function br(be){switch(be.kind){case 93:case 88:return}return be}function Pr(be,or,Kr){or.kind===303?(re=or,M=ue[e.getOriginalNodeId(re)],E(be,or,Kr),re=void 0,M=void 0):E(be,or,Kr)}function Ce(be,or){return or=G(be,or),or.id&&x[or.id]?or:be===1?Xe(or):e.isShorthandPropertyAssignment(or)?Le(or):or}function Le(be){var or=be.name,Kr=Jr(or);if(Kr!==or){if(be.objectAssignmentInitializer){var ei=N.createAssignment(Kr,be.objectAssignmentInitializer);return e.setTextRange(N.createPropertyAssignment(or,ei),be)}return e.setTextRange(N.createPropertyAssignment(or,Kr),be)}return be}function Xe(be){switch(be.kind){case 79:return Jr(be);case 207:return Cr(be);case 209:return Lr(be);case 220:return Rr(be)}return be}function Cr(be){if(e.isIdentifier(be.expression)){var or=Jr(be.expression);if(x[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(be.expression)&4096))return e.addEmitFlags(N.updateCallExpression(be,or,void 0,be.arguments),536870912)}return be}function Lr(be){if(e.isIdentifier(be.tag)){var or=Jr(be.tag);if(x[e.getNodeId(or)]=!0,!e.isIdentifier(or)&&!(e.getEmitFlags(be.tag)&4096))return e.addEmitFlags(N.updateTaggedTemplateExpression(be,or,void 0,be.template),536870912)}return be}function Jr(be){var or,Kr;if(e.getEmitFlags(be)&4096){var ei=e.getExternalHelpersModuleName(re);return ei?N.createPropertyAccessExpression(ei,be):be}else if(!(e.isGeneratedIdentifier(be)&&!(be.autoGenerateFlags&64))&&!e.isLocalName(be)){var li=H.getReferencedExportContainer(be,e.isExportName(be));if(li&&li.kind===303)return e.setTextRange(N.createPropertyAccessExpression(N.createIdentifier("exports"),N.cloneNode(be)),be);var Si=H.getReferencedImportDeclaration(be);if(Si){if(e.isImportClause(Si))return e.setTextRange(N.createPropertyAccessExpression(N.getGeneratedNameForNode(Si.parent),N.createIdentifier("default")),be);if(e.isImportSpecifier(Si)){var qi=Si.propertyName||Si.name;return e.setTextRange(N.createPropertyAccessExpression(N.getGeneratedNameForNode(((Kr=(or=Si.parent)===null||or===void 0?void 0:or.parent)===null||Kr===void 0?void 0:Kr.parent)||Si),N.cloneNode(qi)),be)}}}return be}function Rr(be){if(e.isAssignmentOperator(be.operatorToken.kind)&&e.isIdentifier(be.left)&&!e.isGeneratedIdentifier(be.left)&&!e.isLocalName(be.left)&&!e.isDeclarationNameOfEnumOrNamespace(be.left)){var or=ci(be.left);if(or){for(var Kr=be,ei=0,li=or;ei<li.length;ei++){var Si=li[ei];x[e.getNodeId(Kr)]=!0,Kr=Er(Si,Kr,be)}return Kr}}return be}function ci(be){if(!e.isGeneratedIdentifier(be)){var or=H.getReferencedImportDeclaration(be)||H.getReferencedValueDeclaration(be);if(or)return M&&M.exportedBindings[e.getOriginalNodeId(or)]}}}e.transformModule=a;var O={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.startLexicalEnvironment,N=O.endLexicalEnvironment,Q=O.hoistVariableDeclaration,pe=O.getCompilerOptions(),F=O.getEmitResolver(),g=O.getEmitHost(),S=O.onSubstituteNode,H=O.onEmitNode;O.onSubstituteNode=ei,O.onEmitNode=Kr,O.enableSubstitution(79),O.enableSubstitution(295),O.enableSubstitution(220),O.enableSubstitution(230),O.enableEmitNotification(303);var se=[],p=[],C=[],G=[],E=[],ue,B,re,M,x,ie,_e;return e.chainBundle(O,Y);function Y(X){if(X.isDeclarationFile||!(e.isEffectiveExternalModule(X,pe)||X.transformFlags&4194304))return X;var Ye=e.getOriginalNodeId(X);ue=X,ie=X,B=se[Ye]=e.collectExternalModuleInfo(O,X,F,pe),re=L.createUniqueName("exports"),C[Ye]=re,M=E[Ye]=L.createUniqueName("context");var Be=Z(B.externalImports),Qe=k(X,Be),_r=L.createFunctionExpression(void 0,void 0,void 0,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,re),L.createParameterDeclaration(void 0,void 0,void 0,M)],void 0,Qe),hr=e.tryGetModuleNameFromFile(L,X,g,pe),Dr=L.createArrayLiteralExpression(e.map(Be,function(v){return v.name})),Me=e.setEmitFlags(L.updateSourceFile(X,e.setTextRange(L.createNodeArray([L.createExpressionStatement(L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("System"),"register"),void 0,hr?[hr,Dr,_r]:[Dr,_r]))]),X.statements)),1024);return e.outFile(pe)||e.moveEmitHelpers(Me,Qe,function(v){return!v.scoped}),_e&&(G[Ye]=_e,_e=void 0),ue=void 0,B=void 0,re=void 0,M=void 0,x=void 0,ie=void 0,Me}function Z(X){for(var Ye=new e.Map,Be=[],Qe=0,_r=X;Qe<_r.length;Qe++){var hr=_r[Qe],Dr=e.getExternalModuleNameLiteral(L,hr,ue,g,F,pe);if(Dr){var Me=Dr.text,v=Ye.get(Me);v!==void 0?Be[v].externalImports.push(hr):(Ye.set(Me,Be.length),Be.push({name:Dr,externalImports:[hr]}))}}return Be}function k(X,Ye){var Be=[];W();var Qe=e.getStrictOptionValue(pe,"alwaysStrict")||!pe.noImplicitUseStrict&&e.isExternalModule(ue),_r=L.copyPrologue(X.statements,Be,Qe,A);Be.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration("__moduleName",void 0,void 0,L.createLogicalAnd(M,L.createPropertyAccessExpression(M,"id")))]))),e.visitNode(B.externalHelpersImportDeclaration,A,e.isStatement);var hr=e.visitNodes(X.statements,A,e.isStatement,_r);e.addRange(Be,x),e.insertStatementsAfterStandardPrologue(Be,N());var Dr=I(Be),Me=X.transformFlags&1048576?L.createModifiersFromModifierFlags(256):void 0,v=L.createObjectLiteralExpression([L.createPropertyAssignment("setters",ee(Dr,Ye)),L.createPropertyAssignment("execute",L.createFunctionExpression(Me,void 0,void 0,void 0,[],void 0,L.createBlock(hr,!0)))],!0);return Be.push(L.createReturnStatement(v)),L.createBlock(Be,!0)}function I(X){if(!!B.hasExportStarsToExportValues){if(!B.exportedNames&&B.exportSpecifiers.size===0){for(var Ye=!1,Be=0,Qe=B.externalImports;Be<Qe.length;Be++){var _r=Qe[Be];if(_r.kind===271&&_r.exportClause){Ye=!0;break}}if(!Ye){var hr=ne(void 0);return X.push(hr),hr.name}}var Dr=[];if(B.exportedNames)for(var Me=0,v=B.exportedNames;Me<v.length;Me++){var xe=v[Me];xe.escapedText!=="default"&&Dr.push(L.createPropertyAssignment(L.createStringLiteralFromNode(xe),L.createTrue()))}var ze=L.createUniqueName("exportedNames");X.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ze,void 0,void 0,L.createObjectLiteralExpression(Dr,!0))])));var Je=ne(ze);return X.push(Je),Je.name}}function ne(X){var Ye=L.createUniqueName("exportStar"),Be=L.createIdentifier("m"),Qe=L.createIdentifier("n"),_r=L.createIdentifier("exports"),hr=L.createStrictInequality(Qe,L.createStringLiteral("default"));return X&&(hr=L.createLogicalAnd(hr,L.createLogicalNot(L.createCallExpression(L.createPropertyAccessExpression(X,"hasOwnProperty"),void 0,[Qe])))),L.createFunctionDeclaration(void 0,void 0,void 0,Ye,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,Be)],void 0,L.createBlock([L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_r,void 0,void 0,L.createObjectLiteralExpression([]))])),L.createForInStatement(L.createVariableDeclarationList([L.createVariableDeclaration(Qe)]),Be,L.createBlock([e.setEmitFlags(L.createIfStatement(hr,L.createExpressionStatement(L.createAssignment(L.createElementAccessExpression(_r,Qe),L.createElementAccessExpression(Be,Qe)))),1)])),L.createExpressionStatement(L.createCallExpression(re,void 0,[_r]))],!0))}function ee(X,Ye){for(var Be=[],Qe=0,_r=Ye;Qe<_r.length;Qe++){for(var hr=_r[Qe],Dr=e.forEach(hr.externalImports,function(mr){return e.getLocalNameForExternalImport(L,mr,ue)}),Me=Dr?L.getGeneratedNameForNode(Dr):L.createUniqueName(""),v=[],xe=0,ze=hr.externalImports;xe<ze.length;xe++){var Je=ze[xe],Oe=e.getLocalNameForExternalImport(L,Je,ue);switch(Je.kind){case 265:if(!Je.importClause)break;case 264:e.Debug.assert(Oe!==void 0),v.push(L.createExpressionStatement(L.createAssignment(Oe,Me)));break;case 271:if(e.Debug.assert(Oe!==void 0),Je.exportClause)if(e.isNamedExports(Je.exportClause)){for(var Fr=[],Xr=0,Or=Je.exportClause.elements;Xr<Or.length;Xr++){var We=Or[Xr];Fr.push(L.createPropertyAssignment(L.createStringLiteral(e.idText(We.name)),L.createElementAccessExpression(Me,L.createStringLiteral(e.idText(We.propertyName||We.name)))))}v.push(L.createExpressionStatement(L.createCallExpression(re,void 0,[L.createObjectLiteralExpression(Fr,!0)])))}else v.push(L.createExpressionStatement(L.createCallExpression(re,void 0,[L.createStringLiteral(e.idText(Je.exportClause.name)),Me])));else v.push(L.createExpressionStatement(L.createCallExpression(X,void 0,[Me])));break}}Be.push(L.createFunctionExpression(void 0,void 0,void 0,void 0,[L.createParameterDeclaration(void 0,void 0,void 0,Me)],void 0,L.createBlock(v,!0)))}return L.createArrayLiteralExpression(Be,!0)}function A(X){switch(X.kind){case 265:return f(X);case 264:return D(X);case 271:return P(X);case 270:return l(X);default:return Ge(X)}}function f(X){var Ye;if(X.importClause&&Q(e.getLocalNameForExternalImport(L,X,ue)),m(X)){var Be=e.getOriginalNodeId(X);p[Be]=ae(p[Be],X)}else Ye=ae(Ye,X);return e.singleOrMany(Ye)}function P(X){e.Debug.assertIsDefined(X)}function D(X){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(X),"import= for internal module references should be handled in an earlier transformer.");var Ye;if(Q(e.getLocalNameForExternalImport(L,X,ue)),m(X)){var Be=e.getOriginalNodeId(X);p[Be]=V(p[Be],X)}else Ye=V(Ye,X);return e.singleOrMany(Ye)}function l(X){if(!X.isExportEquals){var Ye=e.visitNode(X.expression,Ce,e.isExpression),Be=X.original;if(Be&&m(Be)){var Qe=e.getOriginalNodeId(X);p[Qe]=ar(p[Qe],L.createIdentifier("default"),Ye,!0)}else return gr(L.createIdentifier("default"),Ye,!0)}}function _(X){if(e.hasSyntacticModifier(X,1)?x=e.append(x,L.updateFunctionDeclaration(X,X.decorators,e.visitNodes(X.modifiers,or,e.isModifier),X.asteriskToken,L.getDeclarationName(X,!0,!0),void 0,e.visitNodes(X.parameters,Ce,e.isParameterDeclaration),void 0,e.visitNode(X.body,Ce,e.isBlock))):x=e.append(x,e.visitEachChild(X,Ce,O)),m(X)){var Ye=e.getOriginalNodeId(X);p[Ye]=Ue(p[Ye],X)}else x=Ue(x,X)}function J(X){var Ye,Be=L.getLocalName(X);if(Q(Be),Ye=e.append(Ye,e.setTextRange(L.createExpressionStatement(L.createAssignment(Be,e.setTextRange(L.createClassExpression(e.visitNodes(X.decorators,Ce,e.isDecorator),void 0,X.name,void 0,e.visitNodes(X.heritageClauses,Ce,e.isHeritageClause),e.visitNodes(X.members,Ce,e.isClassElement)),X))),X)),m(X)){var Qe=e.getOriginalNodeId(X);p[Qe]=Ue(p[Qe],X)}else Ye=Ue(Ye,X);return e.singleOrMany(Ye)}function w(X){if(!U(X.declarationList))return e.visitNode(X,Ce,e.isStatement);for(var Ye,Be=e.hasSyntacticModifier(X,1),Qe=m(X),_r=0,hr=X.declarationList.declarations;_r<hr.length;_r++){var Dr=hr[_r];Dr.initializer?Ye=e.append(Ye,z(Dr,Be&&!Qe)):j(Dr)}var Me;if(Ye&&(Me=e.append(Me,e.setTextRange(L.createExpressionStatement(L.inlineExpressions(Ye)),X))),Qe){var v=e.getOriginalNodeId(X);p[v]=le(p[v],X,Be)}else Me=le(Me,X,!1);return e.singleOrMany(Me)}function j(X){if(e.isBindingPattern(X.name))for(var Ye=0,Be=X.name.elements;Ye<Be.length;Ye++){var Qe=Be[Ye];e.isOmittedExpression(Qe)||j(Qe)}else Q(L.cloneNode(X.name))}function U(X){return(e.getEmitFlags(X)&2097152)===0&&(ie.kind===303||(e.getOriginalNode(X).flags&3)===0)}function z(X,Ye){var Be=Ye?y:oe;return e.isBindingPattern(X.name)?e.flattenDestructuringAssignment(X,Ce,O,0,!1,Be):X.initializer?Be(X.name,e.visitNode(X.initializer,Ce,e.isExpression)):X.name}function y(X,Ye,Be){return ve(X,Ye,Be,!0)}function oe(X,Ye,Be){return ve(X,Ye,Be,!1)}function ve(X,Ye,Be,Qe){return Q(L.cloneNode(X)),Qe?me(X,Ji(e.setTextRange(L.createAssignment(X,Ye),Be))):Ji(e.setTextRange(L.createAssignment(X,Ye),Be))}function ce(X){if(m(X)&&X.original.kind===236){var Ye=e.getOriginalNodeId(X),Be=e.hasSyntacticModifier(X.original,1);p[Ye]=le(p[Ye],X.original,Be)}return X}function m(X){return(e.getEmitFlags(X)&4194304)!==0}function de(X){var Ye=e.getOriginalNodeId(X),Be=p[Ye];if(Be)return delete p[Ye],e.append(Be,X);var Qe=e.getOriginalNode(X);return e.isModuleOrEnumDeclaration(Qe)?e.append(He(Be,Qe),X):X}function ae(X,Ye){if(B.exportEquals)return X;var Be=Ye.importClause;if(!Be)return X;Be.name&&(X=He(X,Be));var Qe=Be.namedBindings;if(Qe)switch(Qe.kind){case 267:X=He(X,Qe);break;case 268:for(var _r=0,hr=Qe.elements;_r<hr.length;_r++){var Dr=hr[_r];X=He(X,Dr)}break}return X}function V(X,Ye){return B.exportEquals?X:He(X,Ye)}function le(X,Ye,Be){if(B.exportEquals)return X;for(var Qe=0,_r=Ye.declarationList.declarations;Qe<_r.length;Qe++){var hr=_r[Qe];(hr.initializer||Be)&&(X=ke(X,hr,Be))}return X}function ke(X,Ye,Be){if(B.exportEquals)return X;if(e.isBindingPattern(Ye.name))for(var Qe=0,_r=Ye.name.elements;Qe<_r.length;Qe++){var hr=_r[Qe];e.isOmittedExpression(hr)||(X=ke(X,hr,Be))}else if(!e.isGeneratedIdentifier(Ye.name)){var Dr=void 0;Be&&(X=ar(X,Ye.name,L.getLocalName(Ye)),Dr=e.idText(Ye.name)),X=He(X,Ye,Dr)}return X}function Ue(X,Ye){if(B.exportEquals)return X;var Be;if(e.hasSyntacticModifier(Ye,1)){var Qe=e.hasSyntacticModifier(Ye,512)?L.createStringLiteral("default"):Ye.name;X=ar(X,Qe,L.getLocalName(Ye)),Be=e.getTextOfIdentifierOrLiteral(Qe)}return Ye.name&&(X=He(X,Ye,Be)),X}function He(X,Ye,Be){if(B.exportEquals)return X;var Qe=L.getDeclarationName(Ye),_r=B.exportSpecifiers.get(e.idText(Qe));if(_r)for(var hr=0,Dr=_r;hr<Dr.length;hr++){var Me=Dr[hr];Me.name.escapedText!==Be&&(X=ar(X,Me.name,Qe))}return X}function ar(X,Ye,Be,Qe){return X=e.append(X,gr(Ye,Be,Qe)),X}function gr(X,Ye,Be){var Qe=L.createExpressionStatement(me(X,Ye));return e.startOnNewLine(Qe),Be||e.setEmitFlags(Qe,1536),Qe}function me(X,Ye){var Be=e.isIdentifier(X)?L.createStringLiteralFromNode(X):X;return e.setEmitFlags(Ye,e.getEmitFlags(Ye)|1536),e.setCommentRange(L.createCallExpression(re,void 0,[Be,Ye]),Ye)}function Ge(X){switch(X.kind){case 236:return w(X);case 255:return _(X);case 256:return J(X);case 241:return er(X,!0);case 242:return he(X);case 243:return we(X);case 239:return ge(X);case 240:return Fe(X);case 249:return cr(X);case 247:return ur(X);case 248:return Ir(X);case 262:return dr(X);case 288:return Br(X);case 289:return Tr(X);case 251:return n(X);case 291:return Er(X);case 234:return br(X);case 350:return ce(X);case 351:return de(X);default:return Ce(X)}}function er(X,Ye){var Be=ie;return ie=X,X=L.updateForStatement(X,e.visitNode(X.initializer,Ye?Se:Le,e.isForInitializer),e.visitNode(X.condition,Ce,e.isExpression),e.visitNode(X.incrementor,Le,e.isExpression),e.visitIterationBody(X.statement,Ye?Ge:Ce,O)),ie=Be,X}function he(X){var Ye=ie;return ie=X,X=L.updateForInStatement(X,Se(X.initializer),e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O)),ie=Ye,X}function we(X){var Ye=ie;return ie=X,X=L.updateForOfStatement(X,X.awaitModifier,Se(X.initializer),e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O)),ie=Ye,X}function ye(X){return e.isVariableDeclarationList(X)&&U(X)}function Se(X){if(ye(X)){for(var Ye=void 0,Be=0,Qe=X.declarations;Be<Qe.length;Be++){var _r=Qe[Be];Ye=e.append(Ye,z(_r,!1)),_r.initializer||j(_r)}return Ye?L.inlineExpressions(Ye):L.createOmittedExpression()}else return e.visitNode(X,Le,e.isExpression)}function ge(X){return L.updateDoStatement(X,e.visitIterationBody(X.statement,Ge,O),e.visitNode(X.expression,Ce,e.isExpression))}function Fe(X){return L.updateWhileStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitIterationBody(X.statement,Ge,O))}function cr(X){return L.updateLabeledStatement(X,X.label,e.visitNode(X.statement,Ge,e.isStatement,L.liftToBlock))}function ur(X){return L.updateWithStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNode(X.statement,Ge,e.isStatement,L.liftToBlock))}function Ir(X){return L.updateSwitchStatement(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNode(X.caseBlock,Ge,e.isCaseBlock))}function dr(X){var Ye=ie;return ie=X,X=L.updateCaseBlock(X,e.visitNodes(X.clauses,Ge,e.isCaseOrDefaultClause)),ie=Ye,X}function Br(X){return L.updateCaseClause(X,e.visitNode(X.expression,Ce,e.isExpression),e.visitNodes(X.statements,Ge,e.isStatement))}function Tr(X){return e.visitEachChild(X,Ge,O)}function n(X){return e.visitEachChild(X,Ge,O)}function Er(X){var Ye=ie;return ie=X,X=L.updateCatchClause(X,X.variableDeclaration,e.visitNode(X.block,Ge,e.isBlock)),ie=Ye,X}function br(X){var Ye=ie;return ie=X,X=e.visitEachChild(X,Ge,O),ie=Ye,X}function Pr(X,Ye){if(!(X.transformFlags&71307264))return X;switch(X.kind){case 241:return er(X,!1);case 237:return Xe(X);case 211:return Cr(X,Ye);case 348:return Lr(X,Ye);case 220:if(e.isDestructuringAssignment(X))return Rr(X,Ye);break;case 207:if(e.isImportCall(X))return Jr(X);break;case 218:case 219:return be(X,Ye)}return e.visitEachChild(X,Ce,O)}function Ce(X){return Pr(X,!1)}function Le(X){return Pr(X,!0)}function Xe(X){return L.updateExpressionStatement(X,e.visitNode(X.expression,Le,e.isExpression))}function Cr(X,Ye){return L.updateParenthesizedExpression(X,e.visitNode(X.expression,Ye?Le:Ce,e.isExpression))}function Lr(X,Ye){return L.updatePartiallyEmittedExpression(X,e.visitNode(X.expression,Ye?Le:Ce,e.isExpression))}function Jr(X){var Ye=e.getExternalModuleNameLiteral(L,X,ue,g,F,pe),Be=e.visitNode(e.firstOrUndefined(X.arguments),Ce),Qe=Ye&&(!Be||!e.isStringLiteral(Be)||Be.text!==Ye.text)?Ye:Be;return L.createCallExpression(L.createPropertyAccessExpression(M,L.createIdentifier("import")),void 0,Qe?[Qe]:[])}function Rr(X,Ye){return ci(X.left)?e.flattenDestructuringAssignment(X,Ce,O,0,!Ye):e.visitEachChild(X,Ce,O)}function ci(X){if(e.isAssignmentExpression(X,!0))return ci(X.left);if(e.isSpreadElement(X))return ci(X.expression);if(e.isObjectLiteralExpression(X))return e.some(X.properties,ci);if(e.isArrayLiteralExpression(X))return e.some(X.elements,ci);if(e.isShorthandPropertyAssignment(X))return ci(X.name);if(e.isPropertyAssignment(X))return ci(X.initializer);if(e.isIdentifier(X)){var Ye=F.getReferencedExportContainer(X);return Ye!==void 0&&Ye.kind===303}else return!1}function be(X,Ye){if((X.operator===45||X.operator===46)&&e.isIdentifier(X.operand)&&!e.isGeneratedIdentifier(X.operand)&&!e.isLocalName(X.operand)&&!e.isDeclarationNameOfEnumOrNamespace(X.operand)){var Be=sr(X.operand);if(Be){var Qe=void 0,_r=e.visitNode(X.operand,Ce,e.isExpression);e.isPrefixUnaryExpression(X)?_r=L.updatePrefixUnaryExpression(X,_r):(_r=L.updatePostfixUnaryExpression(X,_r),Ye||(Qe=L.createTempVariable(Q),_r=L.createAssignment(Qe,_r),e.setTextRange(_r,X)),_r=L.createComma(_r,L.cloneNode(X.operand)),e.setTextRange(_r,X));for(var hr=0,Dr=Be;hr<Dr.length;hr++){var Me=Dr[hr];_r=me(Me,Ji(_r))}return Qe&&(_r=L.createComma(_r,Qe),e.setTextRange(_r,X)),_r}}return e.visitEachChild(X,Ce,O)}function or(X){switch(X.kind){case 93:case 88:return}return X}function Kr(X,Ye,Be){if(Ye.kind===303){var Qe=e.getOriginalNodeId(Ye);ue=Ye,B=se[Qe],re=C[Qe],_e=G[Qe],M=E[Qe],_e&&delete G[Qe],H(X,Ye,Be),ue=void 0,B=void 0,re=void 0,M=void 0,_e=void 0}else H(X,Ye,Be)}function ei(X,Ye){return Ye=S(X,Ye),di(Ye)?Ye:X===1?qi(Ye):X===4?li(Ye):Ye}function li(X){switch(X.kind){case 295:return Si(X)}return X}function Si(X){var Ye,Be,Qe=X.name;if(!e.isGeneratedIdentifier(Qe)&&!e.isLocalName(Qe)){var _r=F.getReferencedImportDeclaration(Qe);if(_r){if(e.isImportClause(_r))return e.setTextRange(L.createPropertyAssignment(L.cloneNode(Qe),L.createPropertyAccessExpression(L.getGeneratedNameForNode(_r.parent),L.createIdentifier("default"))),X);if(e.isImportSpecifier(_r))return e.setTextRange(L.createPropertyAssignment(L.cloneNode(Qe),L.createPropertyAccessExpression(L.getGeneratedNameForNode(((Be=(Ye=_r.parent)===null||Ye===void 0?void 0:Ye.parent)===null||Be===void 0?void 0:Be.parent)||_r),L.cloneNode(_r.propertyName||_r.name))),X)}}return X}function qi(X){switch(X.kind){case 79:return ft(X);case 220:return bt(X);case 230:return aa(X)}return X}function ft(X){var Ye,Be;if(e.getEmitFlags(X)&4096){var Qe=e.getExternalHelpersModuleName(ue);return Qe?L.createPropertyAccessExpression(Qe,X):X}if(!e.isGeneratedIdentifier(X)&&!e.isLocalName(X)){var _r=F.getReferencedImportDeclaration(X);if(_r){if(e.isImportClause(_r))return e.setTextRange(L.createPropertyAccessExpression(L.getGeneratedNameForNode(_r.parent),L.createIdentifier("default")),X);if(e.isImportSpecifier(_r))return e.setTextRange(L.createPropertyAccessExpression(L.getGeneratedNameForNode(((Be=(Ye=_r.parent)===null||Ye===void 0?void 0:Ye.parent)===null||Be===void 0?void 0:Be.parent)||_r),L.cloneNode(_r.propertyName||_r.name)),X)}}return X}function bt(X){if(e.isAssignmentOperator(X.operatorToken.kind)&&e.isIdentifier(X.left)&&!e.isGeneratedIdentifier(X.left)&&!e.isLocalName(X.left)&&!e.isDeclarationNameOfEnumOrNamespace(X.left)){var Ye=sr(X.left);if(Ye){for(var Be=X,Qe=0,_r=Ye;Qe<_r.length;Qe++){var hr=_r[Qe];Be=me(hr,Ji(Be))}return Be}}return X}function aa(X){return e.isImportMeta(X)?L.createPropertyAccessExpression(M,L.createIdentifier("meta")):X}function sr(X){var Ye;if(!e.isGeneratedIdentifier(X)){var Be=F.getReferencedImportDeclaration(X)||F.getReferencedValueDeclaration(X);if(Be){var Qe=F.getReferencedExportContainer(X,!1);Qe&&Qe.kind===303&&(Ye=e.append(Ye,L.getDeclarationName(Be))),Ye=e.addRange(Ye,B&&B.exportedBindings[e.getOriginalNodeId(Be)])}}return Ye}function Ji(X){return _e===void 0&&(_e=[]),_e[e.getNodeId(X)]=!0,X}function di(X){return _e&&X.id&&_e[X.id]}}e.transformSystemModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.factory,W=O.getEmitHelperFactory,N=O.getEmitHost(),Q=O.getEmitResolver(),pe=O.getCompilerOptions(),F=e.getEmitScriptTarget(pe),g=O.onEmitNode,S=O.onSubstituteNode;O.onEmitNode=ie,O.onSubstituteNode=_e,O.enableEmitNotification(303),O.enableSubstitution(79);var H,se,p;return e.chainBundle(O,C);function C(Z){if(Z.isDeclarationFile)return Z;if(e.isExternalModule(Z)||pe.isolatedModules){se=Z,p=void 0;var k=G(Z);return se=void 0,p&&(k=L.updateSourceFile(k,e.setTextRange(L.createNodeArray(e.insertStatementsAfterCustomPrologue(k.statements.slice(),p)),k.statements))),!e.isExternalModule(Z)||e.some(k.statements,e.isExternalModuleIndicator)?k:L.updateSourceFile(k,e.setTextRange(L.createNodeArray(qe(qe([],k.statements,!0),[e.createEmptyExports(L)],!1)),k.statements))}return Z}function G(Z){var k=e.createExternalHelpersImportDeclarationIfNeeded(L,W(),Z,pe);if(k){var I=[],ne=L.copyPrologue(Z.statements,I);return e.append(I,k),e.addRange(I,e.visitNodes(Z.statements,E,e.isStatement,ne)),L.updateSourceFile(Z,e.setTextRange(L.createNodeArray(I),Z.statements))}else return e.visitEachChild(Z,E,O)}function E(Z){switch(Z.kind){case 264:return e.getEmitScriptTarget(pe)>=e.ModuleKind.ES2020?B(Z):void 0;case 270:return M(Z);case 271:var k=Z;return x(k)}return Z}function ue(Z){var k=e.getExternalModuleNameLiteral(L,Z,e.Debug.checkDefined(se),N,Q,pe),I=[];if(k&&I.push(k),!p){var ne=L.createUniqueName("_createRequire",48),ee=L.createImportDeclaration(void 0,void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,L.createIdentifier("createRequire"),ne)])),L.createStringLiteral("module")),A=L.createUniqueName("__require",48),f=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(A,void 0,void 0,L.createCallExpression(L.cloneNode(ne),void 0,[L.createPropertyAccessExpression(L.createMetaProperty(100,L.createIdentifier("meta")),L.createIdentifier("url"))]))],F>=2?2:0));p=[ee,f]}var P=p[1].declarationList.declarations[0].name;return e.Debug.assertNode(P,e.isIdentifier),L.createCallExpression(L.cloneNode(P),void 0,I)}function B(Z){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Z),"import= for internal module references should be handled in an earlier transformer.");var k;return k=e.append(k,e.setOriginalNode(e.setTextRange(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.cloneNode(Z.name),void 0,void 0,ue(Z))],F>=2?2:0)),Z),Z)),k=re(k,Z),e.singleOrMany(k)}function re(Z,k){return e.hasSyntacticModifier(k,1)&&(Z=e.append(Z,L.createExportDeclaration(void 0,void 0,k.isTypeOnly,L.createNamedExports([L.createExportSpecifier(!1,void 0,e.idText(k.name))])))),Z}function M(Z){return Z.isExportEquals?void 0:Z}function x(Z){if(pe.module!==void 0&&pe.module>e.ModuleKind.ES2015||!Z.exportClause||!e.isNamespaceExport(Z.exportClause)||!Z.moduleSpecifier)return Z;var k=Z.exportClause.name,I=L.getGeneratedNameForNode(k),ne=L.createImportDeclaration(void 0,void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(I)),Z.moduleSpecifier,Z.assertClause);e.setOriginalNode(ne,Z.exportClause);var ee=e.isExportNamespaceAsDefaultDeclaration(Z)?L.createExportDefault(I):L.createExportDeclaration(void 0,void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,I,k)]));return e.setOriginalNode(ee,Z),[ne,ee]}function ie(Z,k,I){e.isSourceFile(k)?((e.isExternalModule(k)||pe.isolatedModules)&&pe.importHelpers&&(H=new e.Map),g(Z,k,I),H=void 0):g(Z,k,I)}function _e(Z,k){return k=S(Z,k),H&&e.isIdentifier(k)&&e.getEmitFlags(k)&4096?Y(k):k}function Y(Z){var k=e.idText(Z),I=H.get(k);return I||H.set(k,I=L.createUniqueName(k,48)),I}}e.transformECMAScriptModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(O){var L=O.onSubstituteNode,W=O.onEmitNode,N=e.transformECMAScriptModule(O),Q=O.onSubstituteNode,pe=O.onEmitNode;O.onSubstituteNode=L,O.onEmitNode=W;var F=e.transformModule(O),g=O.onSubstituteNode,S=O.onEmitNode;O.onSubstituteNode=se,O.onEmitNode=p,O.enableSubstitution(303),O.enableEmitNotification(303);var H;return E;function se(B,re){return e.isSourceFile(re)?(H=re,L(B,re)):H?H.impliedNodeFormat===e.ModuleKind.ESNext?Q(B,re):g(B,re):L(B,re)}function p(B,re,M){return e.isSourceFile(re)&&(H=re),H?H.impliedNodeFormat===e.ModuleKind.ESNext?pe(B,re,M):S(B,re,M):W(B,re,M)}function C(B){return B.impliedNodeFormat===e.ModuleKind.ESNext?N:F}function G(B){if(B.isDeclarationFile)return B;H=B;var re=C(B)(B);return H=void 0,e.Debug.assert(e.isSourceFile(re)),re}function E(B){return B.kind===303?G(B):ue(B)}function ue(B){return O.factory.createBundle(e.map(B.sourceFiles,G),B.prepends)}}e.transformNodeModule=a})(Pe||(Pe={}));var Pe;(function(e){function a(W){return e.isVariableDeclaration(W)||e.isPropertyDeclaration(W)||e.isPropertySignature(W)||e.isBindingElement(W)||e.isSetAccessor(W)||e.isGetAccessor(W)||e.isConstructSignatureDeclaration(W)||e.isCallSignatureDeclaration(W)||e.isMethodDeclaration(W)||e.isMethodSignature(W)||e.isFunctionDeclaration(W)||e.isParameter(W)||e.isTypeParameterDeclaration(W)||e.isExpressionWithTypeArguments(W)||e.isImportEqualsDeclaration(W)||e.isTypeAliasDeclaration(W)||e.isConstructorDeclaration(W)||e.isIndexSignatureDeclaration(W)||e.isPropertyAccessExpression(W)||e.isJSDocTypeAlias(W)}e.canProduceDiagnostics=a;function O(W){if(e.isSetAccessor(W)||e.isGetAccessor(W))return N;return e.isMethodSignature(W)||e.isMethodDeclaration(W)?pe:L(W);function N(g){var S=Q(g);return S!==void 0?{diagnosticMessage:S,errorNode:W,typeName:W.name}:void 0}function Q(g){return e.isStatic(W)?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function pe(g){var S=F(g);return S!==void 0?{diagnosticMessage:S,errorNode:W,typeName:W.name}:void 0}function F(g){return e.isStatic(W)?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256?g.errorModuleName?g.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:g.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=O;function L(W){if(e.isVariableDeclaration(W)||e.isPropertyDeclaration(W)||e.isPropertySignature(W)||e.isPropertyAccessExpression(W)||e.isBindingElement(W)||e.isConstructorDeclaration(W))return Q;return e.isSetAccessor(W)||e.isGetAccessor(W)?pe:e.isConstructSignatureDeclaration(W)||e.isCallSignatureDeclaration(W)||e.isMethodDeclaration(W)||e.isMethodSignature(W)||e.isFunctionDeclaration(W)||e.isIndexSignatureDeclaration(W)?F:e.isParameter(W)?e.isParameterPropertyDeclaration(W,W.parent)&&e.hasSyntacticModifier(W.parent,8)?Q:g:e.isTypeParameterDeclaration(W)?H:e.isExpressionWithTypeArguments(W)?se:e.isImportEqualsDeclaration(W)?p:e.isTypeAliasDeclaration(W)||e.isJSDocTypeAlias(W)?C:e.Debug.assertNever(W,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[W.kind]));function N(G){if(W.kind===253||W.kind===202)return G.errorModuleName?G.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(W.kind===166||W.kind===205||W.kind===165||W.kind===163&&e.hasSyntacticModifier(W.parent,8))return e.isStatic(W)?G.errorModuleName?G.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:W.parent.kind===256||W.kind===163?G.errorModuleName?G.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:G.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function Q(G){var E=N(G);return E!==void 0?{diagnosticMessage:E,errorNode:W,typeName:W.name}:void 0}function pe(G){var E;return W.kind===172?e.isStatic(W)?E=G.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=G.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(W)?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:W.name,typeName:W.name}}function F(G){var E;switch(W.kind){case 174:E=G.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:E=G.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:E=G.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:case 167:e.isStatic(W)?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:W.parent.kind===256?E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=G.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 255:E=G.errorModuleName?G.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+W.kind)}return{diagnosticMessage:E,errorNode:W.name||W}}function g(G){var E=S(G);return E!==void 0?{diagnosticMessage:E,errorNode:W,typeName:W.name}:void 0}function S(G){switch(W.parent.kind){case 170:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return G.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:return G.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:return G.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:case 167:return e.isStatic(W.parent)?G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:W.parent.parent.kind===256?G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:G.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 255:case 178:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return G.errorModuleName?G.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[W.parent.kind]))}}function H(){var G;switch(W.parent.kind){case 256:G=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:G=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:G=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:G=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:G=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:e.isStatic(W.parent)?G=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:W.parent.parent.kind===256?G=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:G=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:G=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:G=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+W.parent.kind)}return{diagnosticMessage:G,errorNode:W,typeName:W.name}}function se(){var G;return e.isClassDeclaration(W.parent.parent)?G=e.isHeritageClause(W.parent)&&W.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:W.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:G=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:G,errorNode:W,typeName:e.getNameOfDeclaration(W.parent.parent)}}function p(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:W,typeName:W.name}}function C(G){return{diagnosticMessage:G.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(W)?e.Debug.checkDefined(W.typeExpression):W.type,typeName:e.isJSDocTypeAlias(W)?e.getNameOfDeclaration(W):W.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=L})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G){var E=p.getCompilerOptions(),ue=e.transformNodes(C,p,e.factory,E,G?[G]:e.filter(p.getSourceFiles(),e.isSourceFileNotJson),[N],!1);return ue.diagnostics}e.getDeclarationDiagnostics=a;function O(p,C){var G=C.text.substring(p.pos,p.end);return e.stringContains(G,"@internal")}function L(p,C){var G=e.getParseTreeNode(p);if(G&&G.kind===163){var E=G.parent.parameters.indexOf(G),ue=E>0?G.parent.parameters[E-1]:void 0,B=C.text,re=ue?e.concatenate(e.getTrailingCommentRanges(B,e.skipTrivia(B,ue.end+1,!1,!0)),e.getLeadingCommentRanges(B,p.pos)):e.getTrailingCommentRanges(B,e.skipTrivia(B,p.pos,!1,!0));return re&&re.length&&O(e.last(re),C)}var M=G&&e.getLeadingCommentRangesOfNode(G,C);return!!e.forEach(M,function(x){return O(x,C)})}e.isInternalDeclaration=L;var W=531469;function N(p){var C=function(){return e.Debug.fail("Diagnostic emitted without context")},G=C,E=!0,ue=!1,B=!1,re=!1,M=!1,x,ie,_e,Y,Z,k,I=p.factory,ne=p.getEmitHost(),ee={trackSymbol:ce,reportInaccessibleThisError:le,reportInaccessibleUniqueSymbolError:ae,reportCyclicStructureError:V,reportPrivateInBaseOfClassExpression:m,reportLikelyUnsafeImportRequiredError:ke,reportTruncationError:Ue,moduleResolverHost:ne,trackReferencedAmbientModule:y,trackExternalModuleSymbolOfImportTypeNode:ve,reportNonlocalAugmentation:He,reportNonSerializableProperty:ar},A,f,P,D,l,_,J=p.getEmitResolver(),w=p.getCompilerOptions(),j=w.noResolve,U=w.stripInternal;return me;function z(sr){if(!!sr){ie=ie||new e.Set;for(var Ji=0,di=sr;Ji<di.length;Ji++){var X=di[Ji];ie.add(X)}}}function y(sr,Ji){var di=J.getTypeReferenceDirectivesForSymbol(Ji,67108863);if(e.length(di))return z(di);var X=e.getSourceFileOfNode(sr);D.set(e.getOriginalNodeId(X),X)}function oe(sr){if(sr.accessibility===0){if(sr&&sr.aliasesToMakeVisible)if(!_e)_e=sr.aliasesToMakeVisible;else for(var Ji=0,di=sr.aliasesToMakeVisible;Ji<di.length;Ji++){var X=di[Ji];e.pushIfUnique(_e,X)}}else{var Ye=G(sr);if(Ye)return Ye.typeName?p.addDiagnostic(e.createDiagnosticForNode(sr.errorNode||Ye.errorNode,Ye.diagnosticMessage,e.getTextOfNode(Ye.typeName),sr.errorSymbolName,sr.errorModuleName)):p.addDiagnostic(e.createDiagnosticForNode(sr.errorNode||Ye.errorNode,Ye.diagnosticMessage,sr.errorSymbolName,sr.errorModuleName)),!0}return!1}function ve(sr){ue||(k||(k=[])).push(sr)}function ce(sr,Ji,di){if(sr.flags&262144)return!1;var X=oe(J.isSymbolAccessible(sr,Ji,di,!0));return z(J.getTypeReferenceDirectivesForSymbol(sr,di)),X}function m(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,sr))}function de(){return A?e.declarationNameToString(A):f&&e.getNameOfDeclaration(f)?e.declarationNameToString(e.getNameOfDeclaration(f)):f&&e.isExportAssignment(f)?f.isExportEquals?"export=":"default":"(Missing)"}function ae(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,de(),"unique symbol"))}function V(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,de()))}function le(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,de(),"this"))}function ke(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,de(),sr))}function Ue(){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function He(sr,Ji,di){var X,Ye=(X=Ji.declarations)===null||X===void 0?void 0:X.find(function(Dr){return e.getSourceFileOfNode(Dr)===sr}),Be=e.filter(di.declarations,function(Dr){return e.getSourceFileOfNode(Dr)!==sr});if(Be)for(var Qe=0,_r=Be;Qe<_r.length;Qe++){var hr=_r[Qe];p.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(hr,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(Ye,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function ar(sr){(A||f)&&p.addDiagnostic(e.createDiagnosticForNode(A||f,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,sr))}function gr(sr,Ji){var di=G;G=function(Ye){return Ye.errorNode&&e.canProduceDiagnostics(Ye.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(Ye.errorNode)(Ye):{diagnosticMessage:Ye.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ye.errorNode||sr}};var X=J.getDeclarationStatementsForSourceFile(sr,W,ee,Ji);return G=di,X}function me(sr){if(sr.kind===303&&sr.isDeclarationFile)return sr;if(sr.kind===304){ue=!0,D=new e.Map,l=new e.Map;var Ji=!1,di=I.createBundle(e.map(sr.sourceFiles,function(Oe){if(!Oe.isDeclarationFile){if(Ji=Ji||Oe.hasNoDefaultLib,P=Oe,x=Oe,_e=void 0,Z=!1,Y=new e.Map,G=C,re=!1,M=!1,Ge(Oe,D),er(Oe,l),e.isExternalOrCommonJsModule(Oe)||e.isJsonSourceFile(Oe)){B=!1,E=!1;var Fr=e.isSourceFileJS(Oe)?I.createNodeArray(gr(Oe,!0)):e.visitNodes(Oe.statements,Lr),Xr=I.updateSourceFile(Oe,[I.createModuleDeclaration([],[I.createModifier(135)],I.createStringLiteral(e.getResolvedExternalModuleName(p.getEmitHost(),Oe)),I.createModuleBlock(e.setTextRange(I.createNodeArray(Le(Fr)),Oe.statements)))],!0,[],[],!1,[]);return Xr}E=!0;var Or=e.isSourceFileJS(Oe)?I.createNodeArray(gr(Oe)):e.visitNodes(Oe.statements,Lr);return I.updateSourceFile(Oe,Le(Or),!0,[],[],!1,[])}}),e.mapDefined(sr.prepends,function(Oe){if(Oe.kind===306){var Fr=e.createUnparsedSourceFile(Oe,"dts",U);return Ji=Ji||!!Fr.hasNoDefaultLib,Ge(Fr,D),z(Fr.typeReferenceDirectives),er(Fr,l),Fr}return Oe}));di.syntheticFileReferences=[],di.syntheticTypeReferences=xe(),di.syntheticLibReferences=v(),di.hasNoDefaultLib=Ji;var X=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(sr,ne,!0).declarationFilePath)),Ye=Je(di.syntheticFileReferences,X);return D.forEach(Ye),di}E=!0,re=!1,M=!1,x=sr,P=sr,G=C,ue=!1,B=!1,Z=!1,_e=void 0,Y=new e.Map,ie=void 0,D=Ge(P,new e.Map),l=er(P,new e.Map);var Be=[],Qe=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(sr,ne,!0).declarationFilePath)),_r=Je(Be,Qe),hr;if(e.isSourceFileJS(P))hr=I.createNodeArray(gr(sr)),D.forEach(_r),_=e.filter(hr,e.isAnyImportSyntax);else{var Dr=e.visitNodes(sr.statements,Lr);hr=e.setTextRange(I.createNodeArray(Le(Dr)),sr.statements),D.forEach(_r),_=e.filter(hr,e.isAnyImportSyntax),e.isExternalModule(sr)&&(!B||re&&!M)&&(hr=e.setTextRange(I.createNodeArray(qe(qe([],hr,!0),[e.createEmptyExports(I)],!1)),hr))}var Me=I.updateSourceFile(sr,hr,!0,Be,xe(),sr.hasNoDefaultLib,v());return Me.exportedModulesFromDeclarationEmit=k,Me;function v(){return e.map(e.arrayFrom(l.keys()),function(Oe){return{fileName:Oe,pos:-1,end:-1}})}function xe(){return ie?e.mapDefined(e.arrayFrom(ie.keys()),ze):[]}function ze(Oe){if(_)for(var Fr=0,Xr=_;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(e.isImportEqualsDeclaration(Or)&&e.isExternalModuleReference(Or.moduleReference)){var We=Or.moduleReference.expression;if(e.isStringLiteralLike(We)&&We.text===Oe)return}else if(e.isImportDeclaration(Or)&&e.isStringLiteral(Or.moduleSpecifier)&&Or.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1}}function Je(Oe,Fr){return function(Xr){var Or;if(Xr.isDeclarationFile)Or=Xr.fileName;else{if(ue&&e.contains(sr.sourceFiles,Xr))return;var We=e.getOutputPathsFor(Xr,ne,!0);Or=We.declarationFilePath||We.jsFilePath||Xr.fileName}if(Or){var mr=e.moduleSpecifiers.getModuleSpecifier(w,P,e.toPath(Fr,ne.getCurrentDirectory(),ne.getCanonicalFileName),e.toPath(Or,ne.getCurrentDirectory(),ne.getCanonicalFileName),ne);if(!e.pathIsRelative(mr)){z([mr]);return}var Nr=e.getRelativePathToDirectoryOrUrl(Fr,Or,ne.getCurrentDirectory(),ne.getCanonicalFileName,!1);if(e.startsWith(Nr,"./")&&e.hasExtension(Nr)&&(Nr=Nr.substring(2)),e.startsWith(Nr,"node_modules/")||e.pathContainsNodeModules(Nr))return;Oe.push({pos:-1,end:-1,fileName:Nr})}}}}function Ge(sr,Ji){return j||!e.isUnparsedSource(sr)&&e.isSourceFileJS(sr)||e.forEach(sr.referencedFiles,function(di){var X=ne.getSourceFileFromReference(sr,di);X&&Ji.set(e.getOriginalNodeId(X),X)}),Ji}function er(sr,Ji){return e.forEach(sr.libReferenceDirectives,function(di){var X=ne.getLibFileFromReference(di);X&&Ji.set(e.toFileNameLowerCase(di.fileName),!0)}),Ji}function he(sr){if(sr.kind===79)return sr;return sr.kind===201?I.updateArrayBindingPattern(sr,e.visitNodes(sr.elements,Ji)):I.updateObjectBindingPattern(sr,e.visitNodes(sr.elements,Ji));function Ji(di){return di.kind===226?di:I.updateBindingElement(di,di.dotDotDotToken,di.propertyName,he(di.name),ye(di)?di.initializer:void 0)}}function we(sr,Ji,di){var X;Z||(X=G,G=e.createGetSymbolAccessibilityDiagnosticForNode(sr));var Ye=I.updateParameterDeclaration(sr,void 0,pe(sr,Ji),sr.dotDotDotToken,he(sr.name),J.isOptionalParameter(sr)?sr.questionToken||I.createToken(57):void 0,ge(sr,di||sr.type,!0),Se(sr));return Z||(G=X),Ye}function ye(sr){return S(sr)&&J.isLiteralConstDeclaration(e.getParseTreeNode(sr))}function Se(sr){if(ye(sr))return J.createLiteralConstValue(e.getParseTreeNode(sr),ee)}function ge(sr,Ji,di){if(!di&&e.hasEffectiveModifier(sr,8)||ye(sr))return;var X=sr.kind===163&&(J.isRequiredInitializedParameter(sr)||J.isOptionalUninitializedParameterProperty(sr));if(Ji&&!X)return e.visitNode(Ji,Xe);if(!e.getParseTreeNode(sr))return Ji?e.visitNode(Ji,Xe):I.createKeywordTypeNode(130);if(sr.kind===172)return I.createKeywordTypeNode(130);A=sr.name;var Ye;if(Z||(Ye=G,G=e.createGetSymbolAccessibilityDiagnosticForNode(sr)),sr.kind===253||sr.kind===202)return Be(J.createTypeOfDeclaration(sr,x,W,ee));if(sr.kind===163||sr.kind===166||sr.kind===165)return sr.initializer?Be(J.createTypeOfDeclaration(sr,x,W,ee,X)||J.createTypeOfExpression(sr.initializer,x,W,ee)):Be(J.createTypeOfDeclaration(sr,x,W,ee,X));return Be(J.createReturnTypeOfSignatureDeclaration(sr,x,W,ee));function Be(Qe){return A=void 0,Z||(G=Ye),Qe||I.createKeywordTypeNode(130)}}function Fe(sr){switch(sr=e.getParseTreeNode(sr),sr.kind){case 255:case 260:case 257:case 256:case 258:case 259:return!J.isDeclarationVisible(sr);case 253:return!ur(sr);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function cr(sr){var Ji;if(sr.body)return!0;var di=(Ji=sr.symbol.declarations)===null||Ji===void 0?void 0:Ji.filter(function(X){return e.isFunctionDeclaration(X)&&!X.body});return!di||di.indexOf(sr)===di.length-1}function ur(sr){return e.isOmittedExpression(sr)?!1:e.isBindingPattern(sr.name)?e.some(sr.name.elements,ur):J.isDeclarationVisible(sr)}function Ir(sr,Ji,di){if(!e.hasEffectiveModifier(sr,8)){var X=e.map(Ji,function(Ye){return we(Ye,di)});if(!!X)return I.createNodeArray(X,Ji.hasTrailingComma)}}function dr(sr,Ji){var di;if(!Ji){var X=e.getThisParameter(sr);X&&(di=[we(X)])}if(e.isSetAccessorDeclaration(sr)){var Ye=void 0;if(!Ji){var Be=e.getSetAccessorValueParameter(sr);if(Be){var Qe=bt(sr,J.getAllAccessorDeclarations(sr));Ye=we(Be,void 0,Qe)}}Ye||(Ye=I.createParameterDeclaration(void 0,void 0,void 0,"value")),di=e.append(di,Ye)}return I.createNodeArray(di||e.emptyArray)}function Br(sr,Ji){return e.hasEffectiveModifier(sr,8)?void 0:e.visitNodes(Ji,Xe)}function Tr(sr){return e.isSourceFile(sr)||e.isTypeAliasDeclaration(sr)||e.isModuleDeclaration(sr)||e.isClassDeclaration(sr)||e.isInterfaceDeclaration(sr)||e.isFunctionLike(sr)||e.isIndexSignatureDeclaration(sr)||e.isMappedTypeNode(sr)}function n(sr,Ji){var di=J.isEntityNameVisible(sr,Ji);oe(di),z(J.getTypeReferenceDirectivesForEntityName(sr))}function Er(sr,Ji){return e.hasJSDocNodes(sr)&&e.hasJSDocNodes(Ji)&&(sr.jsDoc=Ji.jsDoc),e.setCommentRange(sr,e.getCommentRange(Ji))}function br(sr,Ji){if(!!Ji){if(B=B||sr.kind!==260&&sr.kind!==199,e.isStringLiteralLike(Ji))if(ue){var di=e.getExternalModuleNameFromDeclaration(p.getEmitHost(),J,sr);if(di)return I.createStringLiteral(di)}else{var X=J.getSymbolOfExternalModuleSpecifier(Ji);X&&(k||(k=[])).push(X)}return Ji}}function Pr(sr){if(!!J.isDeclarationVisible(sr))if(sr.moduleReference.kind===276){var Ji=e.getExternalModuleImportEqualsDeclarationExpression(sr);return I.updateImportEqualsDeclaration(sr,void 0,sr.modifiers,sr.isTypeOnly,sr.name,I.updateExternalModuleReference(sr.moduleReference,br(sr,Ji)))}else{var di=G;return G=e.createGetSymbolAccessibilityDiagnosticForNode(sr),n(sr.moduleReference,x),G=di,sr}}function Ce(sr){if(!sr.importClause)return I.updateImportDeclaration(sr,void 0,sr.modifiers,sr.importClause,br(sr,sr.moduleSpecifier),void 0);var Ji=sr.importClause&&sr.importClause.name&&J.isDeclarationVisible(sr.importClause)?sr.importClause.name:void 0;if(!sr.importClause.namedBindings)return Ji&&I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,void 0),br(sr,sr.moduleSpecifier),void 0);if(sr.importClause.namedBindings.kind===267){var di=J.isDeclarationVisible(sr.importClause.namedBindings)?sr.importClause.namedBindings:void 0;return Ji||di?I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,di),br(sr,sr.moduleSpecifier),void 0):void 0}var X=e.mapDefined(sr.importClause.namedBindings.elements,function(Ye){return J.isDeclarationVisible(Ye)?Ye:void 0});if(X&&X.length||Ji)return I.updateImportDeclaration(sr,void 0,sr.modifiers,I.updateImportClause(sr.importClause,sr.importClause.isTypeOnly,Ji,X&&X.length?I.updateNamedImports(sr.importClause.namedBindings,X):void 0),br(sr,sr.moduleSpecifier),void 0);if(J.isImportRequiredByAugmentation(sr))return I.updateImportDeclaration(sr,void 0,sr.modifiers,void 0,br(sr,sr.moduleSpecifier),void 0)}function Le(sr){for(;e.length(_e);){var Ji=_e.shift();if(!e.isLateVisibilityPaintedStatement(Ji))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[Ji.kind]:Ji.kind));var di=E;E=Ji.parent&&e.isSourceFile(Ji.parent)&&!(e.isExternalModule(Ji.parent)&&ue);var X=Rr(Ji);E=di,Y.set(e.getOriginalNodeId(Ji),X)}return e.visitNodes(sr,Ye);function Ye(Be){if(e.isLateVisibilityPaintedStatement(Be)){var Qe=e.getOriginalNodeId(Be);if(Y.has(Qe)){var _r=Y.get(Qe);return Y.delete(Qe),_r&&((e.isArray(_r)?e.some(_r,e.needsScopeMarker):e.needsScopeMarker(_r))&&(re=!0),e.isSourceFile(Be.parent)&&(e.isArray(_r)?e.some(_r,e.isExternalModuleIndicator):e.isExternalModuleIndicator(_r))&&(B=!0)),_r}}return Be}}function Xe(sr){if(ei(sr)||e.isDeclaration(sr)&&(Fe(sr)||e.hasDynamicName(sr)&&!J.isLateBound(e.getParseTreeNode(sr)))||e.isFunctionLike(sr)&&J.isImplementationOfOverload(sr)||e.isSemicolonClassElement(sr))return;var Ji;Tr(sr)&&(Ji=x,x=sr);var di=G,X=e.canProduceDiagnostics(sr),Ye=Z,Be=(sr.kind===181||sr.kind===194)&&sr.parent.kind!==258;if((e.isMethodDeclaration(sr)||e.isMethodSignature(sr))&&e.hasEffectiveModifier(sr,8))return sr.symbol&&sr.symbol.declarations&&sr.symbol.declarations[0]!==sr?void 0:Oe(I.createPropertyDeclaration(void 0,qi(sr),sr.name,void 0,void 0,void 0));if(X&&!Z&&(G=e.createGetSymbolAccessibilityDiagnosticForNode(sr)),e.isTypeQueryNode(sr)&&n(sr.exprName,x),Be&&(Z=!0),se(sr))switch(sr.kind){case 227:{(e.isEntityName(sr.expression)||e.isEntityNameExpression(sr.expression))&&n(sr.expression,x);var Qe=e.visitEachChild(sr,Xe,p);return Oe(I.updateExpressionWithTypeArguments(Qe,Qe.expression,Qe.typeArguments))}case 177:{n(sr.typeName,x);var Qe=e.visitEachChild(sr,Xe,p);return Oe(I.updateTypeReferenceNode(Qe,Qe.typeName,Qe.typeArguments))}case 174:return Oe(I.updateConstructSignature(sr,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 170:{var _r=I.createConstructorDeclaration(void 0,qi(sr),Ir(sr,sr.parameters,0),void 0);return Oe(_r)}case 168:{if(e.isPrivateIdentifier(sr.name))return Oe(void 0);var hr=I.createMethodDeclaration(void 0,qi(sr),void 0,sr.name,sr.questionToken,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type),void 0);return Oe(hr)}case 171:{if(e.isPrivateIdentifier(sr.name))return Oe(void 0);var Dr=bt(sr,J.getAllAccessorDeclarations(sr));return Oe(I.updateGetAccessorDeclaration(sr,void 0,qi(sr),sr.name,dr(sr,e.hasEffectiveModifier(sr,8)),ge(sr,Dr),void 0))}case 172:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updateSetAccessorDeclaration(sr,void 0,qi(sr),sr.name,dr(sr,e.hasEffectiveModifier(sr,8)),void 0));case 166:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updatePropertyDeclaration(sr,void 0,qi(sr),sr.name,sr.questionToken,ge(sr,sr.type),Se(sr)));case 165:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updatePropertySignature(sr,qi(sr),sr.name,sr.questionToken,ge(sr,sr.type)));case 167:return e.isPrivateIdentifier(sr.name)?Oe(void 0):Oe(I.updateMethodSignature(sr,qi(sr),sr.name,sr.questionToken,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 173:return Oe(I.updateCallSignature(sr,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type)));case 175:return Oe(I.updateIndexSignature(sr,void 0,qi(sr),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)||I.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(sr.name)?be(sr.name):(Be=!0,Z=!0,Oe(I.updateVariableDeclaration(sr,sr.name,void 0,ge(sr,sr.type),Se(sr))));case 162:return Cr(sr)&&(sr.default||sr.constraint)?Oe(I.updateTypeParameterDeclaration(sr,sr.name,void 0,void 0)):Oe(e.visitEachChild(sr,Xe,p));case 188:{var Me=e.visitNode(sr.checkType,Xe),v=e.visitNode(sr.extendsType,Xe),xe=x;x=sr.trueType;var ze=e.visitNode(sr.trueType,Xe);x=xe;var Je=e.visitNode(sr.falseType,Xe);return Oe(I.updateConditionalTypeNode(sr,Me,v,ze,Je))}case 178:return Oe(I.updateFunctionTypeNode(sr,e.visitNodes(sr.typeParameters,Xe),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)));case 179:return Oe(I.updateConstructorTypeNode(sr,qi(sr),e.visitNodes(sr.typeParameters,Xe),Ir(sr,sr.parameters),e.visitNode(sr.type,Xe)));case 199:return e.isLiteralImportTypeNode(sr)?Oe(I.updateImportTypeNode(sr,I.updateLiteralTypeNode(sr.argument,br(sr,sr.argument.literal)),sr.qualifier,e.visitNodes(sr.typeArguments,Xe,e.isTypeNode),sr.isTypeOf)):Oe(sr);default:e.Debug.assertNever(sr,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[sr.kind]))}return e.isTupleTypeNode(sr)&&e.getLineAndCharacterOfPosition(P,sr.pos).line===e.getLineAndCharacterOfPosition(P,sr.end).line&&e.setEmitFlags(sr,1),Oe(e.visitEachChild(sr,Xe,p));function Oe(Fr){return Fr&&X&&e.hasDynamicName(sr)&&Kr(sr),Tr(sr)&&(x=Ji),X&&!Z&&(G=di),Be&&(Z=Ye),Fr===sr?Fr:Fr&&e.setOriginalNode(Er(Fr,sr),sr)}}function Cr(sr){return sr.parent.kind===168&&e.hasEffectiveModifier(sr.parent,8)}function Lr(sr){if(!!H(sr)&&!ei(sr)){switch(sr.kind){case 271:return e.isSourceFile(sr.parent)&&(B=!0),M=!0,I.updateExportDeclaration(sr,void 0,sr.modifiers,sr.isTypeOnly,sr.exportClause,br(sr,sr.moduleSpecifier),void 0);case 270:{if(e.isSourceFile(sr.parent)&&(B=!0),M=!0,sr.expression.kind===79)return sr;var Ji=I.createUniqueName("_default",16);G=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:sr}},f=sr;var di=I.createVariableDeclaration(Ji,void 0,J.createTypeOfExpression(sr.expression,sr,W,ee),void 0);f=void 0;var X=I.createVariableStatement(E?[I.createModifier(135)]:[],I.createVariableDeclarationList([di],2));return[X,I.updateExportAssignment(sr,sr.decorators,sr.modifiers,Ji)]}}var Ye=Rr(sr);return Y.set(e.getOriginalNodeId(sr),Ye),sr}}function Jr(sr){if(e.isImportEqualsDeclaration(sr)||e.hasEffectiveModifier(sr,512)||!e.canHaveModifiers(sr))return sr;var Ji=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(sr)&27646);return I.updateModifiers(sr,Ji)}function Rr(sr){if(ei(sr))return;switch(sr.kind){case 264:return Pr(sr);case 265:return Ce(sr)}if(e.isDeclaration(sr)&&Fe(sr)||e.isFunctionLike(sr)&&J.isImplementationOfOverload(sr))return;var Ji;Tr(sr)&&(Ji=x,x=sr);var di=e.canProduceDiagnostics(sr),X=G;di&&(G=e.createGetSymbolAccessibilityDiagnosticForNode(sr));var Ye=E;switch(sr.kind){case 258:return St(I.updateTypeAliasDeclaration(sr,void 0,qi(sr),sr.name,e.visitNodes(sr.typeParameters,Xe,e.isTypeParameterDeclaration),e.visitNode(sr.type,Xe,e.isTypeNode)));case 257:return St(I.updateInterfaceDeclaration(sr,void 0,qi(sr),sr.name,Br(sr,sr.typeParameters),aa(sr.heritageClauses),e.visitNodes(sr.members,Xe)));case 255:{var Be=St(I.updateFunctionDeclaration(sr,void 0,qi(sr),void 0,sr.name,Br(sr,sr.typeParameters),Ir(sr,sr.parameters),ge(sr,sr.type),void 0));if(Be&&J.isExpandoFunctionDeclaration(sr)&&cr(sr)){var Qe=J.getPropertiesOfContainerFunction(sr),_r=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,Be.name||I.createIdentifier("_default"),I.createModuleBlock([]),16);e.setParent(_r,x),_r.locals=e.createSymbolTable(Qe),_r.symbol=Qe[0].parent;var hr=[],Dr=e.mapDefined(Qe,function(Ci){if(!(!Ci.valueDeclaration||!e.isPropertyAccessExpression(Ci.valueDeclaration))){G=e.createGetSymbolAccessibilityDiagnosticForNode(Ci.valueDeclaration);var Hi=J.createTypeOfDeclaration(Ci.valueDeclaration,_r,W,ee);G=X;var Yi=e.unescapeLeadingUnderscores(Ci.escapedName),yt=e.isStringANonContextualKeyword(Yi),gt=yt?I.getGeneratedNameForNode(Ci.valueDeclaration):I.createIdentifier(Yi);yt&&hr.push([gt,Yi]);var oa=I.createVariableDeclaration(gt,void 0,Hi,void 0);return I.createVariableStatement(yt?void 0:[I.createToken(93)],I.createVariableDeclarationList([oa]))}});hr.length?Dr.push(I.createExportDeclaration(void 0,void 0,!1,I.createNamedExports(e.map(hr,function(Ci){var Hi=Ci[0],Yi=Ci[1];return I.createExportSpecifier(!1,Hi,Yi)})))):Dr=e.mapDefined(Dr,function(Ci){return I.updateModifiers(Ci,0)});var Me=I.createModuleDeclaration(void 0,qi(sr),sr.name,I.createModuleBlock(Dr),16);if(!e.hasEffectiveModifier(Be,512))return[Be,Me];var v=I.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(Be)&-514|2),xe=I.updateFunctionDeclaration(Be,void 0,v,void 0,Be.name,Be.typeParameters,Be.parameters,Be.type,void 0),ze=I.updateModuleDeclaration(Me,void 0,v,Me.name,Me.body),Je=I.createExportAssignment(void 0,void 0,!1,Me.name);return e.isSourceFile(sr.parent)&&(B=!0),M=!0,[xe,ze,Je]}else return Be}case 260:{E=!1;var Oe=sr.body;if(Oe&&Oe.kind===261){var Fr=re,Xr=M;M=!1,re=!1;var Or=e.visitNodes(Oe.statements,Lr),We=Le(Or);sr.flags&8388608&&(re=!1),!e.isGlobalScopeAugmentation(sr)&&!Si(We)&&!M&&(re?We=I.createNodeArray(qe(qe([],We,!0),[e.createEmptyExports(I)],!1)):We=e.visitNodes(We,Jr));var mr=I.updateModuleBlock(Oe,We);E=Ye,re=Fr,M=Xr;var Nr=qi(sr);return St(I.updateModuleDeclaration(sr,void 0,Nr,e.isExternalModuleAugmentation(sr)?br(sr,sr.name):sr.name,mr))}else{E=Ye;var Nr=qi(sr);E=!1,e.visitNode(Oe,Lr);var Ur=e.getOriginalNodeId(Oe),mr=Y.get(Ur);return Y.delete(Ur),St(I.updateModuleDeclaration(sr,void 0,Nr,sr.name,mr))}}case 256:{A=sr.name,f=sr;var v=I.createNodeArray(qi(sr)),si=Br(sr,sr.typeParameters),mi=e.getFirstConstructorWithBody(sr),Ti=void 0;if(mi){var hi=G;Ti=e.compact(e.flatMap(mi.parameters,function(Hi){if(!e.hasSyntacticModifier(Hi,16476)||ei(Hi))return;if(G=e.createGetSymbolAccessibilityDiagnosticForNode(Hi),Hi.name.kind===79)return Er(I.createPropertyDeclaration(void 0,qi(Hi),Hi.name,Hi.questionToken,ge(Hi,Hi.type),Se(Hi)),Hi);return Yi(Hi.name);function Yi(yt){for(var gt,oa=0,Bt=yt.elements;oa<Bt.length;oa++){var Pi=Bt[oa];e.isOmittedExpression(Pi)||(e.isBindingPattern(Pi.name)&&(gt=e.concatenate(gt,Yi(Pi.name))),gt=gt||[],gt.push(I.createPropertyDeclaration(void 0,qi(Hi),Pi.name,void 0,ge(Pi,void 0),void 0)))}return gt}})),G=hi}var ki=e.some(sr.members,function(Hi){return!!Hi.name&&e.isPrivateIdentifier(Hi.name)}),Ui=ki?[I.createPropertyDeclaration(void 0,void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,zi=e.concatenate(e.concatenate(Ui,Ti),e.visitNodes(sr.members,Xe)),ri=I.createNodeArray(zi),Gi=e.getEffectiveBaseTypeNode(sr);if(Gi&&!e.isEntityNameExpression(Gi.expression)&&Gi.expression.kind!==104){var Rt=sr.name?e.unescapeLeadingUnderscores(sr.name.escapedText):"default",pa=I.createUniqueName("".concat(Rt,"_base"),16);G=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Gi,typeName:sr.name}};var xt=I.createVariableDeclaration(pa,void 0,J.createTypeOfExpression(Gi.expression,sr,W,ee),void 0),ua=I.createVariableStatement(E?[I.createModifier(135)]:[],I.createVariableDeclarationList([xt],2)),Vt=I.createNodeArray(e.map(sr.heritageClauses,function(Hi){if(Hi.token===94){var Yi=G;G=e.createGetSymbolAccessibilityDiagnosticForNode(Hi.types[0]);var yt=I.updateHeritageClause(Hi,e.map(Hi.types,function(gt){return I.updateExpressionWithTypeArguments(gt,pa,e.visitNodes(gt.typeArguments,Xe))}));return G=Yi,yt}return I.updateHeritageClause(Hi,e.visitNodes(I.createNodeArray(e.filter(Hi.types,function(gt){return e.isEntityNameExpression(gt.expression)||gt.expression.kind===104})),Xe))}));return[ua,St(I.updateClassDeclaration(sr,void 0,v,sr.name,si,Vt,ri))]}else{var Vt=aa(sr.heritageClauses);return St(I.updateClassDeclaration(sr,void 0,v,sr.name,si,Vt,ri))}}case 236:return St(ci(sr));case 259:return St(I.updateEnumDeclaration(sr,void 0,I.createNodeArray(qi(sr)),sr.name,I.createNodeArray(e.mapDefined(sr.members,function(Ci){if(!ei(Ci)){var Hi=J.getConstantValue(Ci);return Er(I.updateEnumMember(Ci,Ci.name,Hi!==void 0?typeof Hi=="string"?I.createStringLiteral(Hi):I.createNumericLiteral(Hi):void 0),Ci)}}))))}return e.Debug.assertNever(sr,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[sr.kind]));function St(Ci){return Tr(sr)&&(x=Ji),di&&(G=X),sr.kind===260&&(E=Ye),Ci===sr?Ci:(f=void 0,A=void 0,Ci&&e.setOriginalNode(Er(Ci,sr),sr))}}function ci(sr){if(!!e.forEach(sr.declarationList.declarations,ur)){var Ji=e.visitNodes(sr.declarationList.declarations,Xe);if(!!e.length(Ji))return I.updateVariableStatement(sr,I.createNodeArray(qi(sr)),I.updateVariableDeclarationList(sr.declarationList,Ji))}}function be(sr){return e.flatten(e.mapDefined(sr.elements,function(Ji){return or(Ji)}))}function or(sr){if(sr.kind!==226&&sr.name)return ur(sr)?e.isBindingPattern(sr.name)?be(sr.name):I.createVariableDeclaration(sr.name,void 0,ge(sr,void 0),void 0):void 0}function Kr(sr){var Ji;Z||(Ji=G,G=e.createGetSymbolAccessibilityDiagnosticForNodeName(sr)),A=sr.name,e.Debug.assert(J.isLateBound(e.getParseTreeNode(sr)));var di=sr,X=di.name.expression;n(X,x),Z||(G=Ji),A=void 0}function ei(sr){return!!U&&!!sr&&L(sr,P)}function li(sr){return e.isExportAssignment(sr)||e.isExportDeclaration(sr)}function Si(sr){return e.some(sr,li)}function qi(sr){var Ji=e.getEffectiveModifierFlags(sr),di=ft(sr);return Ji===di?sr.modifiers:I.createModifiersFromModifierFlags(di)}function ft(sr){var Ji=11003,di=E&&!Q(sr)?2:0,X=sr.parent.kind===303;return(!X||ue&&X&&e.isExternalModule(sr.parent))&&(Ji^=2,di=0),F(sr,Ji,di)}function bt(sr,Ji){var di=g(sr);return!di&&sr!==Ji.firstAccessor&&(di=g(Ji.firstAccessor),G=e.createGetSymbolAccessibilityDiagnosticForNode(Ji.firstAccessor)),!di&&Ji.secondAccessor&&sr!==Ji.secondAccessor&&(di=g(Ji.secondAccessor),G=e.createGetSymbolAccessibilityDiagnosticForNode(Ji.secondAccessor)),di}function aa(sr){return I.createNodeArray(e.filter(e.map(sr,function(Ji){return I.updateHeritageClause(Ji,e.visitNodes(I.createNodeArray(e.filter(Ji.types,function(di){return e.isEntityNameExpression(di.expression)||Ji.token===94&&di.expression.kind===104})),Xe))}),function(Ji){return Ji.types&&!!Ji.types.length}))}}e.transformDeclarations=N;function Q(p){return p.kind===257}function pe(p,C,G){return e.factory.createModifiersFromModifierFlags(F(p,C,G))}function F(p,C,G){C===void 0&&(C=27643),G===void 0&&(G=0);var E=e.getEffectiveModifierFlags(p)&C|G;return E&512&&!(E&1)&&(E^=1),E&512&&E&2&&(E^=2),E}function g(p){if(p)return p.kind===171?p.type:p.parameters.length>0?p.parameters[0].type:void 0}function S(p){switch(p.kind){case 166:case 165:return!e.hasEffectiveModifier(p,8);case 163:case 253:return!0}return!1}function H(p){switch(p.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}function se(p){switch(p.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}})(Pe||(Pe={}));var Pe;(function(e){function a(C){switch(C){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var O;(function(C){C[C.Uninitialized=0]="Uninitialized",C[C.Initialized=1]="Initialized",C[C.Completed=2]="Completed",C[C.Disposed=3]="Disposed"})(O||(O={}));var L;(function(C){C[C.Substitution=1]="Substitution",C[C.EmitNotifications=2]="EmitNotifications"})(L||(L={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function W(C,G,E){return{scriptTransformers:N(C,G,E),declarationTransformers:Q(G)}}e.getTransformers=W;function N(C,G,E){if(E)return e.emptyArray;var ue=e.getEmitScriptTarget(C),B=e.getEmitModuleKind(C),re=[];return e.addRange(re,G&&e.map(G.before,g)),re.push(e.transformTypeScript),re.push(e.transformClassFields),e.getJSXTransformEnabled(C)&&re.push(e.transformJsx),ue<99&&re.push(e.transformESNext),ue<8&&re.push(e.transformES2021),ue<7&&re.push(e.transformES2020),ue<6&&re.push(e.transformES2019),ue<5&&re.push(e.transformES2018),ue<4&&re.push(e.transformES2017),ue<3&&re.push(e.transformES2016),ue<2&&(re.push(e.transformES2015),re.push(e.transformGenerators)),re.push(a(B)),ue<1&&re.push(e.transformES5),e.addRange(re,G&&e.map(G.after,g)),re}function Q(C){var G=[];return G.push(e.transformDeclarations),e.addRange(G,C&&e.map(C.afterDeclarations,S)),G}function pe(C){return function(G){return e.isBundle(G)?C.transformBundle(G):C.transformSourceFile(G)}}function F(C,G){return function(E){var ue=C(E);return typeof ue=="function"?G(E,ue):pe(ue)}}function g(C){return F(C,e.chainBundle)}function S(C){return F(C,function(G,E){return E})}function H(C,G){return G}e.noEmitSubstitution=H;function se(C,G,E){E(C,G)}e.noEmitNotification=se;function p(C,G,E,ue,B,re,M){for(var x=new Array(353),ie,_e,Y,Z=0,k=[],I=[],ne=[],ee=[],A=0,f=!1,P=[],D=0,l,_,J=H,w=se,j=0,U=[],z={factory:E,getCompilerOptions:function(){return ue},getEmitResolver:function(){return C},getEmitHost:function(){return G},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(z)}),startLexicalEnvironment:we,suspendLexicalEnvironment:ye,resumeLexicalEnvironment:Se,endLexicalEnvironment:ge,setLexicalEnvironmentFlags:Fe,getLexicalEnvironmentFlags:cr,hoistVariableDeclaration:Ge,hoistFunctionDeclaration:er,addInitializationStatement:he,startBlockScope:ur,endBlockScope:Ir,addBlockScopedVariable:dr,requestEmitHelper:Br,readEmitHelpers:Tr,enableSubstitution:ke,enableEmitNotification:ar,isSubstitutionEnabled:Ue,isEmitNotificationEnabled:gr,get onSubstituteNode(){return J},set onSubstituteNode(Er){e.Debug.assert(j<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Er!==void 0,"Value must not be 'undefined'"),J=Er},get onEmitNode(){return w},set onEmitNode(Er){e.Debug.assert(j<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Er!==void 0,"Value must not be 'undefined'"),w=Er},addDiagnostic:function(Er){U.push(Er)}},y=0,oe=B;y<oe.length;y++){var ve=oe[y];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(ve)))}e.performance.mark("beforeTransform");var ce=re.map(function(Er){return Er(z)}),m=function(Er){for(var br=0,Pr=ce;br<Pr.length;br++){var Ce=Pr[br];Er=Ce(Er)}return Er};j=1;for(var de=[],ae=0,V=B;ae<V.length;ae++){var ve=V[ae];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",ve.kind===303?{path:ve.path}:{kind:ve.kind,pos:ve.pos,end:ve.end}),de.push((M?m:le)(ve)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return j=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:de,substituteNode:He,emitNodeWithNotification:me,isEmitNotificationEnabled:gr,dispose:n,diagnostics:U};function le(Er){return Er&&(!e.isSourceFile(Er)||!Er.isDeclarationFile)?m(Er):Er}function ke(Er){e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),x[Er]|=1}function Ue(Er){return(x[Er.kind]&1)!==0&&(e.getEmitFlags(Er)&4)===0}function He(Er,br){return e.Debug.assert(j<3,"Cannot substitute a node after the result is disposed."),br&&Ue(br)&&J(Er,br)||br}function ar(Er){e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),x[Er]|=2}function gr(Er){return(x[Er.kind]&2)!==0||(e.getEmitFlags(Er)&2)!==0}function me(Er,br,Pr){e.Debug.assert(j<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),br&&(gr(br)?w(Er,br,Pr):Pr(Er,br))}function Ge(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed.");var br=e.setEmitFlags(E.createVariableDeclaration(Er),64);ie?ie.push(br):ie=[br],Z&1&&(Z|=2)}function er(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Er,1048576),_e?_e.push(Er):_e=[Er]}function he(Er){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Er,1048576),Y?Y.push(Er):Y=[Er]}function we(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),k[A]=ie,I[A]=_e,ne[A]=Y,ee[A]=Z,A++,ie=void 0,_e=void 0,Y=void 0,Z=0}function ye(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0}function Se(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1}function ge(){e.Debug.assert(j>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(j<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended.");var Er;if(ie||_e||Y){if(_e&&(Er=qe([],_e,!0)),ie){var br=E.createVariableStatement(void 0,E.createVariableDeclarationList(ie));e.setEmitFlags(br,1048576),Er?Er.push(br):Er=[br]}Y&&(Er?Er=qe(qe([],Er,!0),Y,!0):Er=qe([],Y,!0))}return A--,ie=k[A],_e=I[A],Y=ne[A],Z=ee[A],A===0&&(k=[],I=[],ne=[],ee=[]),Er}function Fe(Er,br){Z=br?Z|Er:Z&~Er}function cr(){return Z}function ur(){e.Debug.assert(j>0,"Cannot start a block scope during initialization."),e.Debug.assert(j<2,"Cannot start a block scope after transformation has completed."),P[D]=l,D++,l=void 0}function Ir(){e.Debug.assert(j>0,"Cannot end a block scope during initialization."),e.Debug.assert(j<2,"Cannot end a block scope after transformation has completed.");var Er=e.some(l)?[E.createVariableStatement(void 0,E.createVariableDeclarationList(l.map(function(br){return E.createVariableDeclaration(br)}),1))]:void 0;return D--,l=P[D],D===0&&(P=[]),Er}function dr(Er){e.Debug.assert(D>0,"Cannot add a block scoped variable outside of an iteration body."),(l||(l=[])).push(Er)}function Br(Er){if(e.Debug.assert(j>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Er.scoped,"Cannot request a scoped emit helper."),Er.dependencies)for(var br=0,Pr=Er.dependencies;br<Pr.length;br++){var Ce=Pr[br];Br(Ce)}_=e.append(_,Er)}function Tr(){e.Debug.assert(j>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(j<2,"Cannot modify the transformation context after transformation has completed.");var Er=_;return _=void 0,Er}function n(){if(j<3){for(var Er=0,br=B;Er<br.length;Er++){var Pr=br[Er];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Pr)))}ie=void 0,k=void 0,_e=void 0,I=void 0,J=void 0,w=void 0,_=void 0,j=3}}}e.transformNodes=p,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:H,onEmitNode:se,addDiagnostic:e.noop}})(Pe||(Pe={}));var Pe;(function(e){var a=I();function O(f){return e.fileExtensionIs(f,".tsbuildinfo")}e.isBuildInfoFile=O;function L(f,P,D,l,_,J){l===void 0&&(l=!1);var w=e.isArray(D)?D:e.getSourceFilesToEmit(f,D,l),j=f.getCompilerOptions();if(e.outFile(j)){var U=f.getPrependNodes();if(w.length||U.length){var z=e.factory.createBundle(w,U),y=P(Q(z,f,l),z);if(y)return y}}else{if(!_)for(var oe=0,ve=w;oe<ve.length;oe++){var ce=ve[oe],y=P(Q(ce,f,l),ce);if(y)return y}if(J){var m=W(j);if(m)return P({buildInfoPath:m},void 0)}}}e.forEachEmittedFile=L;function W(f){var P=f.configFilePath;if(!!e.isIncrementalCompilation(f)){if(f.tsBuildInfoFile)return f.tsBuildInfoFile;var D=e.outFile(f),l;if(D)l=e.removeFileExtension(D);else{if(!P)return;var _=e.removeFileExtension(P);l=f.outDir?f.rootDir?e.resolvePath(f.outDir,e.getRelativePathFromDirectory(f.rootDir,_,!0)):e.combinePaths(f.outDir,e.getBaseFileName(_)):_}return l+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=W;function N(f,P){var D=e.outFile(f),l=f.emitDeclarationOnly?void 0:D,_=l&&pe(l,f),J=P||e.getEmitDeclarations(f)?e.removeFileExtension(D)+".d.ts":void 0,w=J&&e.getAreDeclarationMapsEnabled(f)?J+".map":void 0,j=W(f);return{jsFilePath:l,sourceMapFilePath:_,declarationFilePath:J,declarationMapPath:w,buildInfoPath:j}}e.getOutputPathsForBundle=N;function Q(f,P,D){var l=P.getCompilerOptions();if(f.kind===304)return N(l,D);var _=e.getOwnEmitOutputFilePath(f.fileName,P,F(f.fileName,l)),J=e.isJsonSourceFile(f),w=J&&e.comparePaths(f.fileName,_,P.getCurrentDirectory(),!P.useCaseSensitiveFileNames())===0,j=l.emitDeclarationOnly||w?void 0:_,U=!j||e.isJsonSourceFile(f)?void 0:pe(j,l),z=D||e.getEmitDeclarations(l)&&!J?e.getDeclarationEmitOutputFilePath(f.fileName,P):void 0,y=z&&e.getAreDeclarationMapsEnabled(l)?z+".map":void 0;return{jsFilePath:j,sourceMapFilePath:U,declarationFilePath:z,declarationMapPath:y,buildInfoPath:void 0}}e.getOutputPathsFor=Q;function pe(f,P){return P.sourceMap&&!P.inlineSourceMap?f+".map":void 0}function F(f,P){return e.fileExtensionIs(f,".json")?".json":P.jsx===1&&e.fileExtensionIsOneOf(f,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(f,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(f,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=F;function g(f,P,D,l,_){return l?e.resolvePath(l,e.getRelativePathFromDirectory(_?_():E(P,D),f,D)):f}function S(f,P,D,l){return e.changeExtension(g(f,P,D,P.options.declarationDir||P.options.outDir,l),e.getDeclarationEmitExtensionForPath(f))}e.getOutputDeclarationFileName=S;function H(f,P,D,l){if(!P.options.emitDeclarationOnly){var _=e.fileExtensionIs(f,".json"),J=e.changeExtension(g(f,P,D,P.options.outDir,l),F(f,P.options));return!_||e.comparePaths(f,J,e.Debug.checkDefined(P.options.configFilePath),D)!==0?J:void 0}}function se(){var f;return{addOutput:P,getOutputs:D};function P(l){l&&(f||(f=[])).push(l)}function D(){return f||e.emptyArray}}function p(f,P){var D=N(f.options,!1),l=D.jsFilePath,_=D.sourceMapFilePath,J=D.declarationFilePath,w=D.declarationMapPath,j=D.buildInfoPath;P(l),P(_),P(J),P(w),P(j)}function C(f,P,D,l,_){if(!e.fileExtensionIs(P,".d.ts")){var J=H(P,f,D,_);if(l(J),!e.fileExtensionIs(P,".json")&&(J&&f.options.sourceMap&&l("".concat(J,".map")),e.getEmitDeclarations(f.options))){var w=S(P,f,D,_);l(w),f.options.declarationMap&&l("".concat(w,".map"))}}}function G(f,P,D,l,_){var J;return f.rootDir?(J=e.getNormalizedAbsolutePath(f.rootDir,D),_==null||_(f.rootDir)):f.composite&&f.configFilePath?(J=e.getDirectoryPath(e.normalizeSlashes(f.configFilePath)),_==null||_(J)):J=e.computeCommonSourceDirectoryOfFilenames(P(),D,l),J&&J[J.length-1]!==e.directorySeparator&&(J+=e.directorySeparator),J}e.getCommonSourceDirectory=G;function E(f,P){var D=f.options,l=f.fileNames;return G(D,function(){return e.filter(l,function(_){return!(D.noEmitForJsFiles&&e.fileExtensionIsOneOf(_,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(_,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(D.configFilePath))),e.createGetCanonicalFileName(!P))}e.getCommonSourceDirectoryOfConfig=E;function ue(f,P){var D=se(),l=D.addOutput,_=D.getOutputs;if(e.outFile(f.options))p(f,l);else{for(var J=e.memoize(function(){return E(f,P)}),w=0,j=f.fileNames;w<j.length;w++){var U=j[w];C(f,U,P,l,J)}l(W(f.options))}return _()}e.getAllProjectOutputs=ue;function B(f,P,D){P=e.normalizePath(P),e.Debug.assert(e.contains(f.fileNames,P),"Expected fileName to be present in command line");var l=se(),_=l.addOutput,J=l.getOutputs;return e.outFile(f.options)?p(f,_):C(f,P,D,_),J()}e.getOutputFileNames=B;function re(f,P){if(e.outFile(f.options)){var D=N(f.options,!1).jsFilePath;return e.Debug.checkDefined(D,"project ".concat(f.options.configFilePath," expected to have at least one output"))}for(var l=e.memoize(function(){return E(f,P)}),_=0,J=f.fileNames;_<J.length;_++){var w=J[_];if(!e.fileExtensionIs(w,".d.ts")){var D=H(w,f,P,l);if(D)return D;if(!e.fileExtensionIs(w,".json")&&e.getEmitDeclarations(f.options))return S(w,f,P,l)}}var j=W(f.options);return j||e.Debug.fail("project ".concat(f.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=re;function M(f,P,D,l,_,J,w){var j=l.scriptTransformers,U=l.declarationTransformers,z=P.getCompilerOptions(),y=z.sourceMap||z.inlineSourceMap||e.getAreDeclarationMapsEnabled(z)?[]:void 0,oe=z.listEmittedFiles?[]:void 0,ve=e.createDiagnosticCollection(),ce=e.getNewLineCharacter(z,function(){return P.getNewLine()}),m=e.createTextWriter(ce),de=e.performance.createTimer("printTime","beforePrint","afterPrint"),ae=de.enter,V=de.exit,le,ke=!1,Ue;return ae(),L(P,He,e.getSourceFilesToEmit(P,D,w),w,J,!D),V(),{emitSkipped:ke,diagnostics:ve.getDiagnostics(),emittedFiles:oe,sourceMaps:y,exportedModulesFromDeclarationEmit:Ue};function He(ge,Fe){var cr=ge.jsFilePath,ur=ge.sourceMapFilePath,Ir=ge.declarationFilePath,dr=ge.declarationMapPath,Br=ge.buildInfoPath,Tr;Br&&Fe&&e.isBundle(Fe)&&(Tr=e.getDirectoryPath(e.getNormalizedAbsolutePath(Br,P.getCurrentDirectory())),le={commonSourceDirectory:n(P.getCommonSourceDirectory()),sourceFiles:Fe.sourceFiles.map(function(Er){return n(e.getNormalizedAbsolutePath(Er.fileName,P.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:cr}),gr(Fe,cr,ur,n),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:Ir}),me(Fe,Ir,dr,n),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:Br}),ar(le,Br),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!ke&&oe&&(_||(cr&&oe.push(cr),ur&&oe.push(ur),Br&&oe.push(Br)),Ir&&oe.push(Ir),dr&&oe.push(dr));function n(Er){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Tr,Er,P.getCanonicalFileName))}}function ar(ge,Fe){if(!(!Fe||D||ke)){var cr=P.getProgramBuildInfo();if(P.isEmitBlocked(Fe)){ke=!0;return}var ur=e.version;e.writeFile(P,ve,Fe,x({bundle:ge,program:cr,version:ur}),!1)}}function gr(ge,Fe,cr,ur){if(!(!ge||_||!Fe)){if(Fe&&P.isEmitBlocked(Fe)||z.noEmit){ke=!0;return}var Ir=e.transformNodes(f,P,e.factory,z,[ge],j,!1),dr={removeComments:z.removeComments,newLine:z.newLine,noEmitHelpers:z.noEmitHelpers,module:z.module,target:z.target,sourceMap:z.sourceMap,inlineSourceMap:z.inlineSourceMap,inlineSources:z.inlineSources,extendedDiagnostics:z.extendedDiagnostics,writeBundleFileInfo:!!le,relativeToBuildInfo:ur},Br=k(dr,{hasGlobalName:f.hasGlobalName,onEmitNode:Ir.emitNodeWithNotification,isEmitNotificationEnabled:Ir.isEmitNotificationEnabled,substituteNode:Ir.substituteNode});e.Debug.assert(Ir.transformed.length===1,"Should only see one output from the transform"),er(Fe,cr,Ir.transformed[0],Br,z),Ir.dispose(),le&&(le.js=Br.bundleFileInfo)}}function me(ge,Fe,cr,ur){if(!!ge){if(!Fe){(_||z.emitDeclarationOnly)&&(ke=!0);return}var Ir=e.isSourceFile(ge)?[ge]:ge.sourceFiles,dr=w?Ir:e.filter(Ir,e.isSourceFileNotJson),Br=e.outFile(z)?[e.factory.createBundle(dr,e.isSourceFile(ge)?void 0:ge.prepends)]:dr;_&&!e.getEmitDeclarations(z)&&dr.forEach(Ge);var Tr=e.transformNodes(f,P,e.factory,z,Br,U,!1);if(e.length(Tr.diagnostics))for(var n=0,Er=Tr.diagnostics;n<Er.length;n++){var br=Er[n];ve.add(br)}var Pr={removeComments:z.removeComments,newLine:z.newLine,noEmitHelpers:!0,module:z.module,target:z.target,sourceMap:z.sourceMap,inlineSourceMap:z.inlineSourceMap,extendedDiagnostics:z.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!le,recordInternalSection:!!le,relativeToBuildInfo:ur},Ce=k(Pr,{hasGlobalName:f.hasGlobalName,onEmitNode:Tr.emitNodeWithNotification,isEmitNotificationEnabled:Tr.isEmitNotificationEnabled,substituteNode:Tr.substituteNode}),Le=!!Tr.diagnostics&&!!Tr.diagnostics.length||!!P.isEmitBlocked(Fe)||!!z.noEmit;if(ke=ke||Le,(!Le||w)&&(e.Debug.assert(Tr.transformed.length===1,"Should only see one output from the decl transform"),er(Fe,cr,Tr.transformed[0],Ce,{sourceMap:!w&&z.declarationMap,sourceRoot:z.sourceRoot,mapRoot:z.mapRoot,extendedDiagnostics:z.extendedDiagnostics}),w&&Tr.transformed[0].kind===303)){var Xe=Tr.transformed[0];Ue=Xe.exportedModulesFromDeclarationEmit}Tr.dispose(),le&&(le.dts=Ce.bundleFileInfo)}}function Ge(ge){if(e.isExportAssignment(ge)){ge.expression.kind===79&&f.collectLinkedAliases(ge.expression,!0);return}else if(e.isExportSpecifier(ge)){f.collectLinkedAliases(ge.propertyName||ge.name,!0);return}e.forEachChild(ge,Ge)}function er(ge,Fe,cr,ur,Ir){var dr=cr.kind===304?cr:void 0,Br=cr.kind===303?cr:void 0,Tr=dr?dr.sourceFiles:[Br],n;if(he(Ir,cr)&&(n=e.createSourceMapGenerator(P,e.getBaseFileName(e.normalizeSlashes(ge)),we(Ir),ye(Ir,ge,Br),Ir)),dr?ur.writeBundle(dr,m,n):ur.writeFile(Br,m,n),n){y&&y.push({inputSourceFileNames:n.getSources(),sourceMap:n.toJSON()});var Er=Se(Ir,n,ge,Fe,Br);if(Er&&(m.isAtStartOfLine()||m.rawWrite(ce),m.writeComment("//# ".concat("sourceMappingURL","=").concat(Er))),Fe){var br=n.toString();e.writeFile(P,ve,Fe,br,!1,Tr)}}else m.writeLine();e.writeFile(P,ve,ge,m.getText(),!!z.emitBOM,Tr),m.clear()}function he(ge,Fe){return(ge.sourceMap||ge.inlineSourceMap)&&(Fe.kind!==303||!e.fileExtensionIs(Fe.fileName,".json"))}function we(ge){var Fe=e.normalizeSlashes(ge.sourceRoot||"");return Fe&&e.ensureTrailingDirectorySeparator(Fe)}function ye(ge,Fe,cr){if(ge.sourceRoot)return P.getCommonSourceDirectory();if(ge.mapRoot){var ur=e.normalizeSlashes(ge.mapRoot);return cr&&(ur=e.getDirectoryPath(e.getSourceFilePathInNewDir(cr.fileName,P,ur))),e.getRootLength(ur)===0&&(ur=e.combinePaths(P.getCommonSourceDirectory(),ur)),ur}return e.getDirectoryPath(e.normalizePath(Fe))}function Se(ge,Fe,cr,ur,Ir){if(ge.inlineSourceMap){var dr=Fe.toString(),Br=e.base64encode(e.sys,dr);return"data:application/json;base64,".concat(Br)}var Tr=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(ur)));if(ge.mapRoot){var n=e.normalizeSlashes(ge.mapRoot);return Ir&&(n=e.getDirectoryPath(e.getSourceFilePathInNewDir(Ir.fileName,P,n))),e.getRootLength(n)===0?(n=e.combinePaths(P.getCommonSourceDirectory(),n),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(cr)),e.combinePaths(n,Tr),P.getCurrentDirectory(),P.getCanonicalFileName,!0))):encodeURI(e.combinePaths(n,Tr))}return encodeURI(Tr)}}e.emitFiles=M;function x(f){return JSON.stringify(f)}e.getBuildInfoText=x;function ie(f){return JSON.parse(f)}e.getBuildInfo=ie,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(f){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function _e(f,P,D){var l,_=e.Debug.checkDefined(f.js),J=((l=_.sources)===null||l===void 0?void 0:l.prologues)&&e.arrayToMap(_.sources.prologues,function(w){return w.file});return f.sourceFiles.map(function(w,j){var U,z,y=J==null?void 0:J.get(j),oe=y==null?void 0:y.directives.map(function(m){var de=e.setTextRange(e.factory.createStringLiteral(m.expression.text),m.expression),ae=e.setTextRange(e.factory.createExpressionStatement(de),m);return e.setParent(de,ae),ae}),ve=e.factory.createToken(1),ce=e.factory.createSourceFile(oe!=null?oe:[],ve,0);return ce.fileName=e.getRelativePathFromDirectory(D.getCurrentDirectory(),e.getNormalizedAbsolutePath(w,P),!D.useCaseSensitiveFileNames()),ce.text=(U=y==null?void 0:y.text)!==null&&U!==void 0?U:"",e.setTextRangePosWidth(ce,0,(z=y==null?void 0:y.text.length)!==null&&z!==void 0?z:0),e.setEachParent(ce.statements,ce),e.setTextRangePosWidth(ve,ce.end,0),e.setParent(ve,ce),ce})}function Y(f,P,D,l){var _=N(f.options,!1),J=_.buildInfoPath,w=_.jsFilePath,j=_.sourceMapFilePath,U=_.declarationFilePath,z=_.declarationMapPath,y=P.readFile(e.Debug.checkDefined(J));if(!y)return J;var oe=P.readFile(e.Debug.checkDefined(w));if(!oe)return w;var ve=j&&P.readFile(j);if(j&&!ve||f.options.inlineSourceMap)return j||"inline sourcemap decoding";var ce=U&&P.readFile(U);if(U&&!ce)return U;var m=z&&P.readFile(z);if(z&&!m||f.options.inlineSourceMap)return z||"inline sourcemap decoding";var de=ie(y);if(!de.bundle||!de.bundle.js||ce&&!de.bundle.dts)return J;var ae=e.getDirectoryPath(e.getNormalizedAbsolutePath(J,P.getCurrentDirectory())),V=e.createInputFiles(oe,ce,j,ve,z,m,w,U,J,de,!0),le=[],ke=e.createPrependNodes(f.projectReferences,D,function(ar){return P.readFile(ar)}),Ue=_e(de.bundle,ae,P),He={getPrependNodes:e.memoize(function(){return qe(qe([],ke,!0),[V],!1)}),getCanonicalFileName:P.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(de.bundle.commonSourceDirectory,ae)},getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return P.getCurrentDirectory()},getNewLine:function(){return P.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Ue},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(ar,gr,me){switch(ar){case w:if(oe===gr)return;break;case j:if(ve===gr)return;break;case J:var Ge=ie(gr);Ge.program=de.program;var er=de.bundle,he=er.js,we=er.dts,ye=er.sourceFiles;Ge.bundle.js.sources=he.sources,we&&(Ge.bundle.dts.sources=we.sources),Ge.bundle.sourceFiles=ye,le.push({name:ar,text:x(Ge),writeByteOrderMark:me});return;case U:if(ce===gr)return;break;case z:if(m===gr)return;break;default:e.Debug.fail("Unexpected path: ".concat(ar))}le.push({name:ar,text:gr,writeByteOrderMark:me})},isEmitBlocked:e.returnFalse,readFile:function(ar){return P.readFile(ar)},fileExists:function(ar){return P.fileExists(ar)},useCaseSensitiveFileNames:function(){return P.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return M(e.notImplementedResolver,He,void 0,e.getTransformers(f.options,l)),le}e.emitUsingBuildInfo=Y;var Z;(function(f){f[f.Notification=0]="Notification",f[f.Substitution=1]="Substitution",f[f.Comments=2]="Comments",f[f.SourceMaps=3]="SourceMaps",f[f.Emit=4]="Emit"})(Z||(Z={}));function k(f,P){f===void 0&&(f={}),P===void 0&&(P={});var D=P.hasGlobalName,l=P.onEmitNode,_=l===void 0?e.noEmitNotification:l,J=P.isEmitNotificationEnabled,w=P.substituteNode,j=w===void 0?e.noEmitSubstitution:w,U=P.onBeforeEmitNode,z=P.onAfterEmitNode,y=P.onBeforeEmitNodeArray,oe=P.onAfterEmitNodeArray,ve=P.onBeforeEmitToken,ce=P.onAfterEmitToken,m=!!f.extendedDiagnostics,de=e.getNewLineCharacter(f),ae=e.getEmitModuleKind(f),V=new e.Map,le,ke,Ue,He,ar,gr,me,Ge,er=f.preserveSourceNewlines,he,we,ye,Se=jf,ge,Fe=f.writeBundleFileInfo?{sections:[]}:void 0,cr=Fe?e.Debug.checkDefined(f.relativeToBuildInfo):void 0,ur=f.recordInternalSection,Ir=0,dr="text",Br=!0,Tr,n,Er=-1,br,Pr=-1,Ce=-1,Le=-1,Xe=-1,Cr,Lr,Jr=!1,Rr=!!f.removeComments,ci,be,or=e.performance.createTimerIf(m,"commentTime","beforeComment","afterComment"),Kr=or.enter,ei=or.exit,li=e.factory.parenthesizer,Si=zr();return Fr(),{printNode:qi,printList:ft,printFile:aa,printBundle:bt,writeNode:Ji,writeList:di,writeFile:Me,writeBundle:hr,bundleFileInfo:Fe};function qi(b,rr,ai){switch(b){case 0:e.Debug.assert(e.isSourceFile(rr),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(rr),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(rr),"Expected an Expression node.");break}switch(rr.kind){case 303:return aa(rr);case 304:return bt(rr);case 305:return sr(rr)}return Ji(b,rr,ai,v()),xe()}function ft(b,rr,ai){return di(b,rr,ai,v()),xe()}function bt(b){return hr(b,v(),void 0),xe()}function aa(b){return Me(b,v(),void 0),xe()}function sr(b){return Dr(b,v()),xe()}function Ji(b,rr,ai,Wi){var At=we;Oe(Wi,void 0),ze(b,rr,ai),Fr(),we=At}function di(b,rr,ai,Wi){var At=we;Oe(Wi,void 0),ai&&Je(ai),Ro(void 0,rr,b),Fr(),we=At}function X(){return we.getTextPosWithWriteLine?we.getTextPosWithWriteLine():we.getTextPos()}function Ye(b,rr,ai){var Wi=e.lastOrUndefined(Fe.sections);Wi&&Wi.kind===ai?Wi.end=rr:Fe.sections.push({pos:b,end:rr,kind:ai})}function Be(b){if(ur&&Fe&&le&&(e.isDeclaration(b)||e.isVariableStatement(b))&&e.isInternalDeclaration(b,le)&&dr!=="internal"){var rr=dr;return _r(we.getTextPos()),Ir=X(),dr="internal",rr}}function Qe(b){b&&(_r(we.getTextPos()),Ir=X(),dr=b)}function _r(b){return Ir<b?(Ye(Ir,b,dr),!0):!1}function hr(b,rr,ai){var Wi;ge=!1;var At=we;Oe(rr,ai),Mf(b),B_(b),ua(b),Wl(b);for(var ra=0,La=b.prepends;ra<La.length;ra++){var fn=La[ra];ko();var Bo=we.getTextPos(),Yo=Fe&&Fe.sections;if(Yo&&(Fe.sections=[]),ze(4,fn,void 0),Fe){var jo=Fe.sections;Fe.sections=Yo,fn.oldFileOfCurrentEmit?(Wi=Fe.sections).push.apply(Wi,jo):(jo.forEach(function(Au){return e.Debug.assert(e.isBundleFileTextLike(Au))}),Fe.sections.push({pos:Bo,end:we.getTextPos(),kind:"prepend",data:cr(fn.fileName),texts:jo}))}}Ir=X();for(var cc=0,qs=b.sourceFiles;cc<qs.length;cc++){var uc=qs[cc];ze(0,uc,uc)}if(Fe&&b.sourceFiles.length){var hu=we.getTextPos();if(_r(hu)){var $l=kd(b);$l&&(Fe.sources||(Fe.sources={}),Fe.sources.prologues=$l);var Qs=xt(b);Qs&&(Fe.sources||(Fe.sources={}),Fe.sources.helpers=Qs)}}Fr(),we=At}function Dr(b,rr){var ai=we;Oe(rr,void 0),ze(4,b,void 0),Fr(),we=ai}function Me(b,rr,ai){ge=!0;var Wi=we;Oe(rr,ai),Mf(b),B_(b),ze(0,b,b),Fr(),we=Wi}function v(){return ye||(ye=e.createTextWriter(de))}function xe(){var b=ye.getText();return ye.clear(),b}function ze(b,rr,ai){ai&&Je(ai),mi(b,rr,void 0)}function Je(b){le=b,Cr=void 0,Lr=void 0,b&&vf(b)}function Oe(b,rr){b&&f.omitTrailingSemicolon&&(b=e.getTrailingSemicolonDeferringWriter(b)),we=b,Tr=rr,Br=!we||!Tr}function Fr(){ke=[],Ue=[],He=new e.Set,ar=[],gr=0,me=[],le=void 0,Cr=void 0,Lr=void 0,Oe(void 0,void 0)}function Xr(){return Cr||(Cr=e.getLineStarts(le))}function Or(b,rr){if(b!==void 0){var ai=Be(b);mi(4,b,rr),Qe(ai)}}function We(b){b!==void 0&&mi(2,b,void 0)}function mr(b,rr){b!==void 0&&mi(1,b,rr)}function Nr(b){mi(e.isStringLiteral(b)?6:4,b)}function Ur(b){er&&e.getEmitFlags(b)&134217728&&(er=!1)}function si(b){er=b}function mi(b,rr,ai){be=ai;var Wi=ki(0,b,rr);Wi(b,rr),be=void 0}function Ti(b){return!Rr&&!e.isSourceFile(b)}function hi(b){return!Br&&!e.isSourceFile(b)&&!e.isInJsonFile(b)&&!e.isUnparsedSource(b)&&!e.isUnparsedPrepend(b)}function ki(b,rr,ai){switch(b){case 0:if(_!==e.noEmitNotification&&(!J||J(ai)))return zi;case 1:if(j!==e.noEmitSubstitution&&(ci=j(rr,ai)||ai)!==ai)return be&&(ci=be(ci)),pa;case 2:if(Ti(ai))return _s;case 3:if(hi(ai))return V_;case 4:return ri;default:return e.Debug.assertNever(b)}}function Ui(b,rr,ai){return ki(b+1,rr,ai)}function zi(b,rr){var ai=Ui(0,b,rr);_(b,rr,ai)}function ri(b,rr){if(U==null||U(rr),er){var ai=er;Ur(rr),Gi(b,rr),si(ai)}else Gi(b,rr);z==null||z(rr),be=void 0}function Gi(b,rr,ai){if(ai===void 0&&(ai=!0),ai){var Wi=e.getSnippetElement(rr);if(Wi)return oa(b,rr,Wi)}if(b===0)return Zp(e.cast(rr,e.isSourceFile));if(b===2)return Oi(e.cast(rr,e.isIdentifier));if(b===6)return Ci(e.cast(rr,e.isStringLiteral),!0);if(b===3)return Rt(e.cast(rr,e.isTypeParameterDeclaration));if(b===5)return e.Debug.assertNode(rr,e.isEmptyStatement),ns(!0);if(b===4){switch(rr.kind){case 15:case 16:case 17:return Ci(rr,!1);case 79:return Oi(rr);case 80:return wi(rr);case 160:return Qr(rr);case 161:return tt(rr);case 162:return ta(rr);case 163:return Xa(rr);case 164:return on(rr);case 165:return qr(rr);case 166:return bn(rr);case 167:return Rn(rr);case 168:return Sn(rr);case 169:return zn(rr);case 170:return Zn(rr);case 171:case 172:return ho(rr);case 173:return Vo(rr);case 174:return Cn(rr);case 175:return go(rr);case 176:return rs(rr);case 177:return rn(rr);case 178:return Do(rr);case 179:return xo(rr);case 180:return ds(rr);case 181:return No(rr);case 182:return Ts(rr);case 183:return xr(rr);case 184:return ut(rr);case 186:return Ht(rr);case 187:return Ka(rr);case 188:return an(rr);case 189:return Ke(rr);case 190:return h(rr);case 227:return Zt(rr);case 191:return Ee();case 192:return Re(rr);case 193:return nr(rr);case 194:return Gr(rr);case 195:return _i(rr);case 196:return bi(rr);case 197:return Ei(rr);case 198:return ro(rr);case 199:return Ki(rr);case 200:return Nt(rr);case 201:return ca(rr);case 202:return Fa(rr);case 232:return jr(rr);case 233:return Ko();case 234:return is(rr);case 236:return nc(rr);case 235:return ns(!1);case 237:return Xs(rr);case 238:return rc(rr);case 239:return Bc(rr);case 240:return Qu(rr);case 241:return uo(rr);case 242:return Xc(rr);case 243:return Ru(rr);case 244:return Yu(rr);case 245:return lu(rr);case 246:return fi(rr);case 247:return Ni(rr);case 248:return rt(rr);case 249:return Tt(rr);case 250:return Dt(rr);case 251:return jt(rr);case 252:return na(rr);case 253:return Za(rr);case 254:return ya(rr);case 255:return ha(rr);case 256:return Sr(rr);case 257:return nt(rr);case 258:return _a(rr);case 259:return Na(rr);case 260:return wn(rr);case 261:return no(rr);case 262:return Go(rr);case 263:return fu(rr);case 264:return vo(rr);case 265:return to(rr);case 266:return Jo(rr);case 267:return Xo(rr);case 273:return lp(rr);case 268:return Wr(rr);case 269:return Ws(rr);case 270:return nu(rr);case 271:return Tu(rr);case 272:return bo(rr);case 274:return w_(rr);case 292:return oc(rr);case 293:return Qc(rr);case 275:return;case 276:return hl(rr);case 11:return Vs(rr);case 279:case 282:return Yc(rr);case 280:case 283:return Zu(rr);case 284:return Da(rr);case 285:return Ma(rr);case 286:return Ju(rr);case 287:return Xp(rr);case 288:return el(rr);case 289:return Of(rr);case 290:return t_(rr);case 291:return Nc(rr);case 294:return F_(rr);case 295:return Ff(rr);case 296:return M_(rr);case 297:return _p(rr);case 298:return Yi(rr);case 305:case 299:return Hi(rr);case 300:case 301:return yt(rr);case 302:return gt(rr);case 303:return Zp(rr);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return Dl(rr);case 308:return gp(rr);case 310:return Kt("*");case 311:return Kt("?");case 312:return pn(rr);case 313:return Qn(rr);case 314:return wo(rr);case 315:return io(rr);case 185:case 316:return Ms(rr);case 317:return;case 318:return Qp(rr);case 320:return L_(rr);case 321:return rl(rr);case 325:case 330:case 335:return mp(rr);case 326:case 327:return Yp(rr);case 328:case 329:return;case 331:case 332:case 333:case 334:return;case 336:return Cd(rr);case 338:case 345:return ju(rr);case 337:case 339:case 340:case 341:return pp(rr);case 342:return $p(rr);case 343:return a_(rr);case 344:return dp(rr);case 347:case 351:case 350:return}if(e.isExpression(rr)&&(b=1,j!==e.noEmitSubstitution)){var At=j(b,rr)||rr;At!==rr&&(rr=At,be&&(rr=be(rr)))}}if(b===1)switch(rr.kind){case 8:case 9:return St(rr);case 10:case 13:case 14:return Ci(rr,!1);case 79:return Oi(rr);case 80:return wi(rr);case 203:return Ta(rr);case 204:return In(rr);case 205:return so(rr);case 206:return Ho(rr);case 207:return Ds(rr);case 208:return Os(rr);case 209:return mc(rr);case 210:return Hs(rr);case 211:return Mi(rr);case 212:return $t(rr);case 213:return ga(rr);case 214:return yn(rr);case 215:return An(rr);case 216:return Pa(rr);case 217:return Mn(rr);case 218:return ao(rr);case 219:return De(rr);case 220:return Si(rr);case 221:return xi(rr);case 222:return et(rr);case 223:return je(rr);case 224:return ti(rr);case 225:return mt(rr);case 226:return;case 228:return ln(rr);case 229:return Ba(rr);case 230:return Oo(rr);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return xu(rr);case 278:return tf(rr);case 281:return If(rr);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return o_(rr);case 349:return R_(rr);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(rr.kind))return bp(rr,mn);if(e.isTokenKind(rr.kind))return bp(rr,Kt);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(rr.kind),"."))}function Rt(b){Or(b.name),Ut(),mn("in"),Ut(),Or(b.constraint)}function pa(b,rr){var ai=Ui(1,b,rr);e.Debug.assertIsDefined(ci),rr=ci,ci=void 0,ai(b,rr)}function xt(b){var rr;if(!(ae===e.ModuleKind.None||f.noEmitHelpers)){for(var ai=new e.Map,Wi=0,At=b.sourceFiles;Wi<At.length;Wi++){var ra=At[Wi],La=e.getExternalHelpersModuleName(ra)!==void 0,fn=Vt(ra);if(!!fn)for(var Bo=0,Yo=fn;Bo<Yo.length;Bo++){var jo=Yo[Bo];!jo.scoped&&!La&&!ai.get(jo.name)&&(ai.set(jo.name,!0),(rr||(rr=[])).push(jo.name))}}return rr}}function ua(b){var rr=!1,ai=b.kind===304?b:void 0;if(!(ai&&ae===e.ModuleKind.None)){for(var Wi=ai?ai.prepends.length:0,At=ai?ai.sourceFiles.length+Wi:1,ra=0;ra<At;ra++){var La=ai?ra<Wi?ai.prepends[ra]:ai.sourceFiles[ra-Wi]:b,fn=e.isSourceFile(La)?La:e.isUnparsedSource(La)?void 0:le,Bo=f.noEmitHelpers||!!fn&&e.hasRecordedExternalHelpers(fn),Yo=(e.isSourceFile(La)||e.isUnparsedSource(La))&&!ge,jo=e.isUnparsedSource(La)?La.helpers:Vt(La);if(jo)for(var cc=0,qs=jo;cc<qs.length;cc++){var uc=qs[cc];if(uc.scoped){if(ai)continue}else{if(Bo)continue;if(Yo){if(V.get(uc.name))continue;V.set(uc.name,!0)}}var hu=X();typeof uc.text=="string"?J_(uc.text):J_(uc.text(ss)),Fe&&Fe.sections.push({pos:hu,end:we.getTextPos(),kind:"emitHelpers",data:uc.name}),rr=!0}}return rr}}function Vt(b){var rr=e.getEmitHelpers(b);return rr&&e.stableSort(rr,e.compareEmitHelpers)}function St(b){Ci(b,!1)}function Ci(b,rr){var ai=Wn(b,f.neverAsciiEscape,rr);(f.sourceMap||f.inlineSourceMap)&&(b.kind===10||e.isTemplateLiteralKind(b.kind))?gu(ai):Jf(ai)}function Hi(b){for(var rr=0,ai=b.texts;rr<ai.length;rr++){var Wi=ai[rr];ko(),Or(Wi)}}function Yi(b){we.rawWrite(b.parent.text.substring(b.pos,b.end))}function yt(b){var rr=X();Yi(b),Fe&&Ye(rr,we.getTextPos(),b.kind===300?"text":"internal")}function gt(b){var rr=X();if(Yi(b),Fe){var ai=e.clone(b.section);ai.pos=rr,ai.end=we.getTextPos(),Fe.sections.push(ai)}}function oa(b,rr,ai){switch(ai.kind){case 1:Bt(b,rr,ai);break;case 0:Pi(b,rr,ai);break}}function Bt(b,rr,ai){cf("${".concat(ai.order,":")),Gi(b,rr,!1),cf("}")}function Pi(b,rr,ai){e.Debug.assert(rr.kind===235,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(rr.kind),".")),e.Debug.assert(b!==5,"A tab stop cannot be attached to an embedded statement."),cf("$".concat(ai.order))}function Oi(b){var rr=b.symbol?sf:Se;rr(Kl(b,!1),b.symbol),Ro(b,b.typeArguments,53776)}function wi(b){var rr=b.symbol?sf:Se;rr(Kl(b,!1),b.symbol)}function Qr(b){Ct(b.left),Kt("."),Or(b.right)}function Ct(b){b.kind===79?mr(b):Or(b)}function tt(b){Kt("["),mr(b.expression,li.parenthesizeExpressionOfComputedPropertyName),Kt("]")}function ta(b){Or(b.name),b.constraint&&(Ut(),mn("extends"),Ut(),Or(b.constraint)),b.default&&(Ut(),Sl("="),Ut(),Or(b.default))}function Xa(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.dotDotDotToken),hp(b.name,Ps),Or(b.questionToken),b.parent&&b.parent.kind===315&&!b.name?Or(b.type):Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.questionToken?b.questionToken.end:b.name?b.name.end:b.modifiers?b.modifiers.end:b.decorators?b.decorators.end:b.pos,b,li.parenthesizeExpressionForDisallowedComma)}function on(b){Kt("@"),mr(b.expression,li.parenthesizeLeftSideOfAccess)}function qr(b){Tc(b,b.decorators),ic(b,b.modifiers),hp(b.name,Dp),Or(b.questionToken),Jc(b.type),ts()}function bn(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.name),Or(b.questionToken),Or(b.exclamationToken),Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.questionToken?b.questionToken.end:b.name.end,b),ts()}function Rn(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),Or(b.name),Or(b.questionToken),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function Sn(b){Tc(b,b.decorators),ic(b,b.modifiers),Or(b.asteriskToken),Or(b.name),Or(b.questionToken),Eo(b,Hn)}function zn(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("static"),Kn(b.body)}function Zn(b){ic(b,b.modifiers),mn("constructor"),Eo(b,Hn)}function ho(b){Tc(b,b.decorators),ic(b,b.modifiers),mn(b.kind===171?"get":"set"),Ut(),Or(b.name),Eo(b,Hn)}function Vo(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function Cn(b){It(b),Tc(b,b.decorators),ic(b,b.modifiers),mn("new"),Ut(),du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type),ts(),Rs(b)}function go(b){Tc(b,b.decorators),ic(b,b.modifiers),Qo(b,b.parameters),Jc(b.type),ts()}function ro(b){Or(b.type),Or(b.literal)}function Ko(){ts()}function rs(b){b.assertsModifier&&(Or(b.assertsModifier),Ut()),Or(b.parameterName),b.type&&(Ut(),mn("is"),Ut(),Or(b.type))}function rn(b){Or(b.typeName),pu(b,b.typeArguments)}function Do(b){It(b),du(b,b.typeParameters),il(b,b.parameters),Ut(),Kt("=>"),Ut(),Or(b.type),Rs(b)}function io(b){mn("function"),bl(b,b.parameters),Kt(":"),Or(b.type)}function pn(b){Kt("?"),Or(b.type)}function Qn(b){Kt("!"),Or(b.type)}function wo(b){Or(b.type),Kt("=")}function xo(b){It(b),ic(b,b.modifiers),mn("new"),Ut(),du(b,b.typeParameters),bl(b,b.parameters),Ut(),Kt("=>"),Ut(),Or(b.type),Rs(b)}function ds(b){mn("typeof"),Ut(),Or(b.exprName)}function No(b){Kt("{");var rr=e.getEmitFlags(b)&1?768:32897;Ro(b,b.members,rr|524288),Kt("}")}function Ts(b){Or(b.elementType,li.parenthesizeElementTypeOfArrayType),Kt("["),Kt("]")}function Ms(b){Kt("..."),Or(b.type)}function xr(b){qa(22,b.pos,Kt,b);var rr=e.getEmitFlags(b)&1?528:657;Ro(b,b.elements,rr|524288),qa(23,b.elements.end,Kt,b)}function bi(b){Or(b.dotDotDotToken),Or(b.name),Or(b.questionToken),qa(58,b.name.end,Kt,b),Ut(),Or(b.type)}function ut(b){Or(b.type,li.parenthesizeElementTypeOfArrayType),Kt("?")}function Ht(b){Ro(b,b.types,516,li.parenthesizeMemberOfElementType)}function Ka(b){Ro(b,b.types,520,li.parenthesizeMemberOfElementType)}function an(b){Or(b.checkType,li.parenthesizeMemberOfConditionalType),Ut(),mn("extends"),Ut(),Or(b.extendsType,li.parenthesizeMemberOfConditionalType),Ut(),Kt("?"),Ut(),Or(b.trueType),Ut(),Kt(":"),Ut(),Or(b.falseType)}function Ke(b){mn("infer"),Ut(),Or(b.typeParameter)}function h(b){Kt("("),Or(b.type),Kt(")")}function Ee(){mn("this")}function Re(b){ql(b.operator,mn),Ut(),Or(b.type,li.parenthesizeMemberOfElementType)}function nr(b){Or(b.objectType,li.parenthesizeMemberOfElementType),Kt("["),Or(b.indexType),Kt("]")}function Gr(b){var rr=e.getEmitFlags(b);Kt("{"),rr&1?Ut():(ko(),xc()),b.readonlyToken&&(Or(b.readonlyToken),b.readonlyToken.kind!==144&&mn("readonly"),Ut()),Kt("["),mi(3,b.typeParameter),b.nameType&&(Ut(),mn("as"),Ut(),Or(b.nameType)),Kt("]"),b.questionToken&&(Or(b.questionToken),b.questionToken.kind!==57&&Kt("?")),Kt(":"),Ut(),Or(b.type),ts(),rr&1?Ut():(ko(),ou()),Kt("}")}function _i(b){mr(b.literal)}function Ei(b){Or(b.head),Ro(b,b.templateSpans,262144)}function Ki(b){b.isTypeOf&&(mn("typeof"),Ut()),mn("import"),Kt("("),Or(b.argument),Kt(")"),b.qualifier&&(Kt("."),Or(b.qualifier)),pu(b,b.typeArguments)}function Nt(b){Kt("{"),Ro(b,b.elements,525136),Kt("}")}function ca(b){Kt("["),Ro(b,b.elements,524880),Kt("]")}function Fa(b){Or(b.dotDotDotToken),b.propertyName&&(Or(b.propertyName),Kt(":"),Ut()),Or(b.name),Lf(b.initializer,b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function Ta(b){var rr=b.elements,ai=b.multiLine?65536:0;jc(b,rr,8914|ai,li.parenthesizeExpressionForDisallowedComma)}function In(b){e.forEach(b.properties,Tp);var rr=e.getEmitFlags(b)&65536;rr&&xc();var ai=b.multiLine?65536:0,Wi=le.languageVersion>=1&&!e.isJsonSourceFile(le)?64:0;Ro(b,b.properties,526226|Wi|ai),rr&&ou()}function so(b){mr(b.expression,li.parenthesizeLeftSideOfAccess);var rr=b.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),b.expression.end,b.name.pos),ai=Ns(b,b.expression,rr),Wi=Ns(b,rr,b.name);su(ai,!1);var At=rr.kind!==28&&as(b.expression)&&!we.hasTrailingComment()&&!we.hasTrailingWhitespace();At&&Kt("."),b.questionDotToken?Or(rr):qa(rr.kind,b.expression.end,Kt,b),su(Wi,!1),Or(b.name),lf(ai,Wi)}function as(b){if(b=e.skipPartiallyEmittedExpressions(b),e.isNumericLiteral(b)){var rr=Wn(b,!0,!1);return!b.numericLiteralFlags&&!e.stringContains(rr,e.tokenToString(24))}else if(e.isAccessExpression(b)){var ai=e.getConstantValue(b);return typeof ai=="number"&&isFinite(ai)&&Math.floor(ai)===ai}}function Ho(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),Or(b.questionDotToken),qa(22,b.expression.end,Kt,b),mr(b.argumentExpression),qa(23,b.argumentExpression.end,Kt,b)}function Ds(b){var rr=e.getEmitFlags(b)&536870912;rr&&(Kt("("),gu("0"),Kt(","),Ut()),mr(b.expression,li.parenthesizeLeftSideOfAccess),rr&&Kt(")"),Or(b.questionDotToken),pu(b,b.typeArguments),jc(b,b.arguments,2576,li.parenthesizeExpressionForDisallowedComma)}function Os(b){qa(103,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeExpressionOfNew),pu(b,b.typeArguments),jc(b,b.arguments,18960,li.parenthesizeExpressionForDisallowedComma)}function mc(b){var rr=e.getEmitFlags(b)&536870912;rr&&(Kt("("),gu("0"),Kt(","),Ut()),mr(b.tag,li.parenthesizeLeftSideOfAccess),rr&&Kt(")"),pu(b,b.typeArguments),Ut(),mr(b.template)}function Hs(b){Kt("<"),Or(b.type),Kt(">"),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Mi(b){var rr=qa(20,b.pos,Kt,b),ai=Uf(b.expression,b);mr(b.expression,void 0),Sp(b.expression,b),lf(ai),qa(21,b.expression?b.expression.end:rr,Kt,b)}function $t(b){mu(b.name),Ja(b)}function ga(b){Tc(b,b.decorators),ic(b,b.modifiers),Eo(b,xn)}function xn(b){du(b,b.typeParameters),il(b,b.parameters),Jc(b.type),Ut(),Or(b.equalsGreaterThanToken)}function yn(b){qa(89,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function An(b){qa(112,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Pa(b){qa(114,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function Mn(b){qa(132,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeOperandOfPrefixUnary)}function ao(b){ql(b.operator,Sl),co(b)&&Ut(),mr(b.operand,li.parenthesizeOperandOfPrefixUnary)}function co(b){var rr=b.operand;return rr.kind===218&&(b.operator===39&&(rr.operator===39||rr.operator===45)||b.operator===40&&(rr.operator===40||rr.operator===46))}function De(b){mr(b.operand,li.parenthesizeOperandOfPostfixUnary),ql(b.operator,Sl)}function zr(){return e.createBinaryExpressionTrampoline(b,rr,ai,Wi,At,void 0);function b(La,fn){if(fn){fn.stackIndex++,fn.preserveSourceNewlinesStack[fn.stackIndex]=er,fn.containerPosStack[fn.stackIndex]=Ce,fn.containerEndStack[fn.stackIndex]=Le,fn.declarationListContainerEndStack[fn.stackIndex]=Xe;var Bo=fn.shouldEmitCommentsStack[fn.stackIndex]=Ti(La),Yo=fn.shouldEmitSourceMapsStack[fn.stackIndex]=hi(La);U==null||U(La),Bo&&xl(La),Yo&&yu(La),Ur(La)}else fn={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return fn}function rr(La,fn,Bo){return ra(La,Bo,"left")}function ai(La,fn,Bo){var Yo=La.kind!==27,jo=Ns(Bo,Bo.left,La),cc=Ns(Bo,La,Bo.right);su(jo,Yo),nl(La.pos),bp(La,La.kind===101?mn:Sl),ht(La.end,!0),su(cc,!0)}function Wi(La,fn,Bo){return ra(La,Bo,"right")}function At(La,fn){var Bo=Ns(La,La.left,La.operatorToken),Yo=Ns(La,La.operatorToken,La.right);if(lf(Bo,Yo),fn.stackIndex>0){var jo=fn.preserveSourceNewlinesStack[fn.stackIndex],cc=fn.containerPosStack[fn.stackIndex],qs=fn.containerEndStack[fn.stackIndex],uc=fn.declarationListContainerEndStack[fn.stackIndex],hu=fn.shouldEmitCommentsStack[fn.stackIndex],$l=fn.shouldEmitSourceMapsStack[fn.stackIndex];si(jo),$l&&d_(La),hu&&gf(La,cc,qs,uc),z==null||z(La),fn.stackIndex--}}function ra(La,fn,Bo){var Yo=Bo==="left"?li.getParenthesizeLeftSideOfBinaryForOperator(fn.operatorToken.kind):li.getParenthesizeRightSideOfBinaryForOperator(fn.operatorToken.kind),jo=ki(0,1,La);if(jo===pa&&(e.Debug.assertIsDefined(ci),La=Yo(e.cast(ci,e.isExpression)),jo=Ui(1,1,La),ci=void 0),(jo===_s||jo===V_||jo===ri)&&e.isBinaryExpression(La))return La;be=Yo,jo(1,La)}}function xi(b){var rr=Ns(b,b.condition,b.questionToken),ai=Ns(b,b.questionToken,b.whenTrue),Wi=Ns(b,b.whenTrue,b.colonToken),At=Ns(b,b.colonToken,b.whenFalse);mr(b.condition,li.parenthesizeConditionOfConditionalExpression),su(rr,!0),Or(b.questionToken),su(ai,!0),mr(b.whenTrue,li.parenthesizeBranchOfConditionalExpression),lf(rr,ai),su(Wi,!0),Or(b.colonToken),su(At,!0),mr(b.whenFalse,li.parenthesizeBranchOfConditionalExpression),lf(Wi,At)}function et(b){Or(b.head),Ro(b,b.templateSpans,262144)}function je(b){qa(125,b.pos,mn,b),Or(b.asteriskToken),Rf(b.expression&&au(b.expression),Vr)}function ti(b){qa(25,b.pos,Kt,b),mr(b.expression,li.parenthesizeExpressionForDisallowedComma)}function mt(b){mu(b.name),Di(b)}function Zt(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),pu(b,b.typeArguments)}function ln(b){mr(b.expression,void 0),b.type&&(Ut(),mn("as"),Ut(),Or(b.type))}function Ba(b){mr(b.expression,li.parenthesizeLeftSideOfAccess),Sl("!")}function Oo(b){uf(b.keywordToken,b.pos,Kt),Kt("."),Or(b.name)}function jr(b){mr(b.expression),Or(b.literal)}function is(b){hc(b,!b.multiLine&&al(b))}function hc(b,rr){qa(18,b.pos,Kt,b);var ai=rr||e.getEmitFlags(b)&1?768:129;Ro(b,b.statements,ai),qa(19,b.statements.end,Kt,b,!!(ai&1))}function nc(b){ic(b,b.modifiers),Or(b.declarationList),ts()}function ns(b){b?Kt(";"):ts()}function Xs(b){mr(b.expression,li.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(le)||e.nodeIsSynthesized(b.expression))&&ts()}function rc(b){var rr=qa(99,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.thenStatement),b.elseStatement&&(Fs(b,b.thenStatement,b.elseStatement),qa(91,b.thenStatement.end,mn,b),b.elseStatement.kind===238?(Ut(),Or(b.elseStatement)):Cu(b,b.elseStatement))}function uu(b,rr){var ai=qa(115,rr,mn,b);Ut(),qa(20,ai,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b)}function Bc(b){qa(90,b.pos,mn,b),Cu(b,b.statement),e.isBlock(b.statement)&&!er?Ut():Fs(b,b.statement,b.expression),uu(b,b.statement.end),ts()}function Qu(b){uu(b,b.pos),Cu(b,b.statement)}function uo(b){var rr=qa(97,b.pos,mn,b);Ut();var ai=qa(20,rr,Kt,b);Dc(b.initializer),ai=qa(26,b.initializer?b.initializer.end:ai,Kt,b),Rf(b.condition),ai=qa(26,b.condition?b.condition.end:ai,Kt,b),Rf(b.incrementor),qa(21,b.incrementor?b.incrementor.end:ai,Kt,b),Cu(b,b.statement)}function Xc(b){var rr=qa(97,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),Dc(b.initializer),Ut(),qa(101,b.initializer.end,mn,b),Ut(),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function Ru(b){var rr=qa(97,b.pos,mn,b);Ut(),c_(b.awaitModifier),qa(20,rr,Kt,b),Dc(b.initializer),Ut(),qa(159,b.initializer.end,mn,b),Ut(),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function Dc(b){b!==void 0&&(b.kind===254?Or(b):mr(b))}function Yu(b){qa(86,b.pos,mn,b),s_(b.label),ts()}function lu(b){qa(81,b.pos,mn,b),s_(b.label),ts()}function qa(b,rr,ai,Wi,At){var ra=e.getParseTreeNode(Wi),La=ra&&ra.kind===Wi.kind,fn=rr;if(La&&le&&(rr=e.skipTrivia(le.text,rr)),La&&Wi.pos!==fn){var Bo=At&&le&&!e.positionsAreOnSameLine(fn,rr,le);Bo&&xc(),nl(fn),Bo&&ou()}if(rr=ql(b,ai,rr),La&&Wi.end!==rr){var Yo=Wi.kind===287;ht(rr,!Yo,Yo)}return rr}function Bu(b){return b.kind===2||!!b.hasTrailingNewLine}function $u(b){return le?e.some(e.getLeadingCommentRanges(le.text,b.pos),Bu)||e.some(e.getSyntheticLeadingComments(b),Bu)?!0:e.isPartiallyEmittedExpression(b)?b.pos!==b.expression.pos&&e.some(e.getTrailingCommentRanges(le.text,b.expression.pos),Bu)?!0:$u(b.expression):!1:!1}function au(b){if(!Rr&&e.isPartiallyEmittedExpression(b)&&$u(b)){var rr=e.getParseTreeNode(b);if(rr&&e.isParenthesizedExpression(rr)){var ai=e.factory.createParenthesizedExpression(b.expression);return e.setOriginalNode(ai,b),e.setTextRange(ai,rr),ai}return e.factory.createParenthesizedExpression(b)}return b}function Vr(b){return au(li.parenthesizeExpressionForDisallowedComma(b))}function fi(b){qa(105,b.pos,mn,b),Rf(b.expression&&au(b.expression),au),ts()}function Ni(b){var rr=qa(116,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Cu(b,b.statement)}function rt(b){var rr=qa(107,b.pos,mn,b);Ut(),qa(20,rr,Kt,b),mr(b.expression),qa(21,b.expression.end,Kt,b),Ut(),Or(b.caseBlock)}function Tt(b){Or(b.label),qa(58,b.label.end,Kt,b),Ut(),Or(b.statement)}function Dt(b){qa(109,b.pos,mn,b),Rf(au(b.expression),au),ts()}function jt(b){qa(111,b.pos,mn,b),Ut(),Or(b.tryBlock),b.catchClause&&(Fs(b,b.tryBlock,b.catchClause),Or(b.catchClause)),b.finallyBlock&&(Fs(b,b.catchClause||b.tryBlock,b.finallyBlock),qa(96,(b.catchClause||b.tryBlock).end,mn,b),Ut(),Or(b.finallyBlock))}function na(b){uf(87,b.pos,mn),ts()}function Za(b){Or(b.name),Or(b.exclamationToken),Jc(b.type),Lf(b.initializer,b.type?b.type.end:b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function ya(b){mn(e.isLet(b)?"let":e.isVarConst(b)?"const":"var"),Ut(),Ro(b,b.declarations,528)}function ha(b){Ja(b)}function Ja(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("function"),Or(b.asteriskToken),Ut(),We(b.name),Eo(b,Hn)}function Eo(b,rr){var ai=b.body;if(ai)if(e.isBlock(ai)){var Wi=e.getEmitFlags(b)&65536;Wi&&xc(),It(b),e.forEach(b.parameters,xs),xs(b.body),rr(b),Kn(ai),Rs(b),Wi&&ou()}else rr(b),Ut(),mr(ai,li.parenthesizeConciseBodyOfArrowFunction);else rr(b),ts()}function Hn(b){du(b,b.typeParameters),bl(b,b.parameters),Jc(b.type)}function lo(b){if(e.getEmitFlags(b)&1)return!0;if(b.multiLine||!e.nodeIsSynthesized(b)&&!e.rangeIsOnSingleLine(b,le)||ff(b,b.statements,2)||Vl(b,b.statements,2))return!1;for(var rr,ai=0,Wi=b.statements;ai<Wi.length;ai++){var At=Wi[ai];if(_f(rr,At,2)>0)return!1;rr=At}return!0}function Kn(b){U==null||U(b),Ut(),Kt("{"),xc();var rr=lo(b)?Te:vr;Zc?Zc(b,b.statements,rr):rr(b),ou(),uf(19,b.statements.end,Kt,b),z==null||z(b)}function Te(b){vr(b,!0)}function vr(b,rr){var ai=af(b.statements),Wi=we.getTextPos();ua(b),ai===0&&Wi===we.getTextPos()&&rr?(ou(),Ro(b,b.statements,768),xc()):Ro(b,b.statements,1,void 0,ai)}function Sr(b){Di(b)}function Di(b){e.forEach(b.members,Tp),Tc(b,b.decorators),ic(b,b.modifiers),mn("class"),b.name&&(Ut(),We(b.name));var rr=e.getEmitFlags(b)&65536;rr&&xc(),du(b,b.typeParameters),Ro(b,b.heritageClauses,0),Ut(),Kt("{"),Ro(b,b.members,129),Kt("}"),rr&&ou()}function nt(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("interface"),Ut(),Or(b.name),du(b,b.typeParameters),Ro(b,b.heritageClauses,512),Ut(),Kt("{"),Ro(b,b.members,129),Kt("}")}function _a(b){Tc(b,b.decorators),ic(b,b.modifiers),mn("type"),Ut(),Or(b.name),du(b,b.typeParameters),Ut(),Kt("="),Ut(),Or(b.type),ts()}function Na(b){ic(b,b.modifiers),mn("enum"),Ut(),Or(b.name),Ut(),Kt("{"),Ro(b,b.members,145),Kt("}")}function wn(b){ic(b,b.modifiers),~b.flags&1024&&(mn(b.flags&16?"namespace":"module"),Ut()),Or(b.name);var rr=b.body;if(!rr)return ts();for(;rr&&e.isModuleDeclaration(rr);)Kt("."),Or(rr.name),rr=rr.body;Ut(),Or(rr)}function no(b){It(b),e.forEach(b.statements,xs),hc(b,al(b)),Rs(b)}function Go(b){qa(18,b.pos,Kt,b),Ro(b,b.clauses,129),qa(19,b.clauses.end,Kt,b,!0)}function vo(b){ic(b,b.modifiers),qa(100,b.modifiers?b.modifiers.end:b.pos,mn,b),Ut(),b.isTypeOnly&&(qa(151,b.pos,mn,b),Ut()),Or(b.name),Ut(),qa(63,b.name.end,Kt,b),Ut(),Vn(b.moduleReference),ts()}function Vn(b){b.kind===79?mr(b):Or(b)}function to(b){ic(b,b.modifiers),qa(100,b.modifiers?b.modifiers.end:b.pos,mn,b),Ut(),b.importClause&&(Or(b.importClause),Ut(),qa(155,b.importClause.end,mn,b),Ut()),mr(b.moduleSpecifier),b.assertClause&&s_(b.assertClause),ts()}function Jo(b){b.isTypeOnly&&(qa(151,b.pos,mn,b),Ut()),Or(b.name),b.name&&b.namedBindings&&(qa(27,b.name.end,Kt,b),Ut()),Or(b.namedBindings)}function Xo(b){var rr=qa(41,b.pos,Kt,b);Ut(),qa(127,rr,mn,b),Ut(),Or(b.name)}function Wr(b){i_(b)}function Ws(b){Ls(b)}function nu(b){var rr=qa(93,b.pos,mn,b);Ut(),b.isExportEquals?qa(63,rr,Sl,b):qa(88,rr,mn,b),Ut(),mr(b.expression,b.isExportEquals?li.getParenthesizeRightSideOfBinaryForOperator(63):li.parenthesizeExpressionOfExportDefault),ts()}function Tu(b){var rr=qa(93,b.pos,mn,b);if(Ut(),b.isTypeOnly&&(rr=qa(151,rr,mn,b),Ut()),b.exportClause?Or(b.exportClause):rr=qa(41,rr,Kt,b),b.moduleSpecifier){Ut();var ai=b.exportClause?b.exportClause.end:rr;qa(155,ai,mn,b),Ut(),mr(b.moduleSpecifier)}b.assertClause&&s_(b.assertClause),ts()}function oc(b){qa(129,b.pos,mn,b),Ut();var rr=b.elements;Ro(b,rr,526226)}function Qc(b){Or(b.name),Kt(":"),Ut();var rr=b.value;if((e.getEmitFlags(rr)&512)===0){var ai=e.getCommentRange(rr);ht(ai.pos)}Or(rr)}function fu(b){var rr=qa(93,b.pos,mn,b);Ut(),rr=qa(127,rr,mn,b),Ut(),rr=qa(142,rr,mn,b),Ut(),Or(b.name),ts()}function lp(b){var rr=qa(41,b.pos,Kt,b);Ut(),qa(127,rr,mn,b),Ut(),Or(b.name)}function bo(b){i_(b)}function w_(b){Ls(b)}function i_(b){Kt("{"),Ro(b,b.elements,525136),Kt("}")}function Ls(b){b.isTypeOnly&&(mn("type"),Ut()),b.propertyName&&(Or(b.propertyName),Ut(),qa(127,b.propertyName.end,mn,b),Ut()),Or(b.name)}function hl(b){mn("require"),Kt("("),mr(b.expression),Kt(")")}function xu(b){Or(b.openingElement),Ro(b,b.children,262144),Or(b.closingElement)}function tf(b){Kt("<"),os(b.tagName),pu(b,b.typeArguments),Ut(),Or(b.attributes),Kt("/>")}function If(b){Or(b.openingFragment),Ro(b,b.children,262144),Or(b.closingFragment)}function Yc(b){if(Kt("<"),e.isJsxOpeningElement(b)){var rr=Uf(b.tagName,b);os(b.tagName),pu(b,b.typeArguments),b.attributes.properties&&b.attributes.properties.length>0&&Ut(),Or(b.attributes),Sp(b.attributes,b),lf(rr)}Kt(">")}function Vs(b){we.writeLiteral(b.text)}function Zu(b){Kt("</"),e.isJsxClosingElement(b)&&os(b.tagName),Kt(">")}function Ma(b){Ro(b,b.properties,262656)}function Da(b){Or(b.name),nf("=",Kt,b.initializer,Nr)}function Ju(b){Kt("{..."),mr(b.expression),Kt("}")}function Pc(b){var rr=!1;return e.forEachTrailingCommentRange((le==null?void 0:le.text)||"",b+1,function(){return rr=!0}),rr}function fp(b){var rr=!1;return e.forEachLeadingCommentRange((le==null?void 0:le.text)||"",b+1,function(){return rr=!0}),rr}function wf(b){return Pc(b)||fp(b)}function Xp(b){var rr;if(b.expression||!Rr&&!e.nodeIsSynthesized(b)&&wf(b.pos)){var ai=le&&!e.nodeIsSynthesized(b)&&e.getLineAndCharacterOfPosition(le,b.pos).line!==e.getLineAndCharacterOfPosition(le,b.end).line;ai&&we.increaseIndent();var Wi=qa(18,b.pos,Kt,b);Or(b.dotDotDotToken),mr(b.expression),qa(19,((rr=b.expression)===null||rr===void 0?void 0:rr.end)||Wi,Kt,b),ai&&we.decreaseIndent()}}function os(b){b.kind===79?mr(b):Or(b)}function el(b){qa(82,b.pos,mn,b),Ut(),mr(b.expression,li.parenthesizeExpressionForDisallowedComma),O_(b,b.statements,b.expression.end)}function Of(b){var rr=qa(88,b.pos,mn,b);O_(b,b.statements,rr)}function O_(b,rr,ai){var Wi=rr.length===1&&(e.nodeIsSynthesized(b)||e.nodeIsSynthesized(rr[0])||e.rangeStartPositionsAreOnSameLine(b,rr[0],le)),At=163969;Wi?(uf(58,ai,Kt,b),Ut(),At&=-130):qa(58,ai,Kt,b),Ro(b,rr,At)}function t_(b){Ut(),ql(b.token,mn),Ut(),Ro(b,b.types,528)}function Nc(b){var rr=qa(83,b.pos,mn,b);Ut(),b.variableDeclaration&&(qa(20,rr,Kt,b),Or(b.variableDeclaration),qa(21,b.variableDeclaration.end,Kt,b),Ut()),Or(b.block)}function F_(b){Or(b.name),Kt(":"),Ut();var rr=b.initializer;if((e.getEmitFlags(rr)&512)===0){var ai=e.getCommentRange(rr);ht(ai.pos)}mr(rr,li.parenthesizeExpressionForDisallowedComma)}function Ff(b){Or(b.name),b.objectAssignmentInitializer&&(Ut(),Kt("="),Ut(),mr(b.objectAssignmentInitializer,li.parenthesizeExpressionForDisallowedComma))}function M_(b){b.expression&&(qa(25,b.pos,Kt,b),mr(b.expression,li.parenthesizeExpressionForDisallowedComma))}function _p(b){Or(b.name),Lf(b.initializer,b.name.end,b,li.parenthesizeExpressionForDisallowedComma)}function Qp(b){if(Se("/**"),b.comment){var rr=e.getTextOfJSDocComment(b.comment);if(rr)for(var ai=rr.split(/\r\n?|\n/g),Wi=0,At=ai;Wi<At.length;Wi++){var ra=At[Wi];ko(),Ut(),Kt("*"),Ut(),Se(ra)}}b.tags&&(b.tags.length===1&&b.tags[0].kind===341&&!b.comment?(Ut(),Or(b.tags[0])):Ro(b,b.tags,33)),Ut(),Se("*/")}function pp(b){_u(b.tagName),Dl(b.typeExpression),Eu(b.comment)}function dp(b){_u(b.tagName),Or(b.name),Eu(b.comment)}function gp(b){Ut(),Kt("{"),Or(b.name),Kt("}")}function Yp(b){_u(b.tagName),Ut(),Kt("{"),Or(b.class),Kt("}"),Eu(b.comment)}function $p(b){_u(b.tagName),Dl(b.constraint),Ut(),Ro(b,b.typeParameters,528),Eu(b.comment)}function a_(b){_u(b.tagName),b.typeExpression&&(b.typeExpression.kind===307?Dl(b.typeExpression):(Ut(),Kt("{"),Se("Object"),b.typeExpression.isArrayType&&(Kt("["),Kt("]")),Kt("}"))),b.fullName&&(Ut(),Or(b.fullName)),Eu(b.comment),b.typeExpression&&b.typeExpression.kind===320&&L_(b.typeExpression)}function Cd(b){_u(b.tagName),b.name&&(Ut(),Or(b.name)),Eu(b.comment),rl(b.typeExpression)}function mp(b){_u(b.tagName),Eu(b.comment)}function L_(b){Ro(b,e.factory.createNodeArray(b.jsDocPropertyTags),33)}function rl(b){b.typeParameters&&Ro(b,e.factory.createNodeArray(b.typeParameters),33),b.parameters&&Ro(b,e.factory.createNodeArray(b.parameters),33),b.type&&(ko(),Ut(),Kt("*"),Ut(),Or(b.type))}function ju(b){_u(b.tagName),Dl(b.typeExpression),Ut(),b.isBracketed&&Kt("["),Or(b.name),b.isBracketed&&Kt("]"),Eu(b.comment)}function _u(b){Kt("@"),Or(b)}function Eu(b){var rr=e.getTextOfJSDocComment(b);rr&&(Ut(),Se(rr))}function Dl(b){b&&(Ut(),Kt("{"),Or(b.type),Kt("}"))}function Zp(b){ko();var rr=b.statements;if(Zc){var ai=rr.length===0||!e.isPrologueDirective(rr[0])||e.nodeIsSynthesized(rr[0]);if(ai){Zc(b,rr,vp);return}}vp(b)}function Wl(b){n_(!!b.hasNoDefaultLib,b.syntheticFileReferences||[],b.syntheticTypeReferences||[],b.syntheticLibReferences||[]);for(var rr=0,ai=b.prepends;rr<ai.length;rr++){var Wi=ai[rr];if(e.isUnparsedSource(Wi)&&Wi.syntheticReferences)for(var At=0,ra=Wi.syntheticReferences;At<ra.length;At++){var La=ra[At];Or(La),ko()}}}function ed(b){b.isDeclarationFile&&n_(b.hasNoDefaultLib,b.referencedFiles,b.typeReferenceDirectives,b.libReferenceDirectives)}function n_(b,rr,ai,Wi){if(b){var At=we.getTextPos();tl('/// <reference no-default-lib="true"/>'),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"no-default-lib"}),ko()}if(le&&le.moduleName&&(tl('/// <amd-module name="'.concat(le.moduleName,'" />')),ko()),le&&le.amdDependencies)for(var ra=0,La=le.amdDependencies;ra<La.length;ra++){var fn=La[ra];fn.name?tl('/// <amd-dependency name="'.concat(fn.name,'" path="').concat(fn.path,'" />')):tl('/// <amd-dependency path="'.concat(fn.path,'" />')),ko()}for(var Bo=0,Yo=rr;Bo<Yo.length;Bo++){var jo=Yo[Bo],At=we.getTextPos();tl('/// <reference path="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"reference",data:jo.fileName}),ko()}for(var cc=0,qs=ai;cc<qs.length;cc++){var jo=qs[cc],At=we.getTextPos();tl('/// <reference types="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"type",data:jo.fileName}),ko()}for(var uc=0,hu=Wi;uc<hu.length;uc++){var jo=hu[uc],At=we.getTextPos();tl('/// <reference lib="'.concat(jo.fileName,'" />')),Fe&&Fe.sections.push({pos:At,end:we.getTextPos(),kind:"lib",data:jo.fileName}),ko()}}function vp(b){var rr=b.statements;It(b),e.forEach(b.statements,xs),ua(b);var ai=e.findIndex(rr,function(Wi){return!e.isPrologueDirective(Wi)});ed(b),Ro(b,rr,1,void 0,ai===-1?rr.length:ai),Rs(b)}function o_(b){var rr=e.getEmitFlags(b);!(rr&512)&&b.pos!==b.expression.pos&&ht(b.expression.pos),mr(b.expression),!(rr&1024)&&b.end!==b.expression.end&&nl(b.expression.end)}function R_(b){jc(b,b.elements,528,void 0)}function af(b,rr,ai,Wi){for(var At=!!rr,ra=0;ra<b.length;ra++){var La=b[ra];if(e.isPrologueDirective(La)){var fn=ai?!ai.has(La.expression.text):!0;if(fn){At&&(At=!1,Je(rr)),ko();var Bo=we.getTextPos();Or(La),Wi&&Fe&&Fe.sections.push({pos:Bo,end:we.getTextPos(),kind:"prologue",data:La.expression.text}),ai&&ai.add(La.expression.text)}}else return ra}return b.length}function yp(b,rr){for(var ai=0,Wi=b;ai<Wi.length;ai++){var At=Wi[ai];if(!rr.has(At.data)){ko();var ra=we.getTextPos();Or(At),Fe&&Fe.sections.push({pos:ra,end:we.getTextPos(),kind:"prologue",data:At.data}),rr&&rr.add(At.data)}}}function B_(b){if(e.isSourceFile(b))af(b.statements,b);else{for(var rr=new e.Set,ai=0,Wi=b.prepends;ai<Wi.length;ai++){var At=Wi[ai];yp(At.prologues,rr)}for(var ra=0,La=b.sourceFiles;ra<La.length;ra++){var fn=La[ra];af(fn.statements,fn,rr,!0)}Je(void 0)}}function kd(b){for(var rr=new e.Set,ai,Wi=0;Wi<b.sourceFiles.length;Wi++){for(var At=b.sourceFiles[Wi],ra=void 0,La=0,fn=0,Bo=At.statements;fn<Bo.length;fn++){var Yo=Bo[fn];if(!e.isPrologueDirective(Yo))break;rr.has(Yo.expression.text)||(rr.add(Yo.expression.text),(ra||(ra=[])).push({pos:Yo.pos,end:Yo.end,expression:{pos:Yo.expression.pos,end:Yo.expression.end,text:Yo.expression.text}}),La=La<Yo.end?Yo.end:La)}ra&&(ai||(ai=[])).push({file:Wi,text:At.text.substring(0,La),directives:ra})}return ai}function Mf(b){if(e.isSourceFile(b)||e.isUnparsedSource(b)){var rr=e.getShebang(b.text);if(rr)return tl(rr),ko(),!0}else{for(var ai=0,Wi=b.prepends;ai<Wi.length;ai++){var At=Wi[ai];if(e.Debug.assertNode(At,e.isUnparsedSource),Mf(At))return!0}for(var ra=0,La=b.sourceFiles;ra<La.length;ra++){var fn=La[ra];if(Mf(fn))return!0}}}function hp(b,rr){if(!!b){var ai=Se;Se=rr,Or(b),Se=ai}}function ic(b,rr){rr&&rr.length&&(Ro(b,rr,262656),Ut())}function Jc(b){b&&(Kt(":"),Ut(),Or(b))}function Lf(b,rr,ai,Wi){b&&(Ut(),qa(63,rr,Sl,ai),Ut(),mr(b,Wi))}function nf(b,rr,ai,Wi){ai&&(rr(b),Wi(ai))}function s_(b){b&&(Ut(),Or(b))}function Rf(b,rr){b&&(Ut(),mr(b,rr))}function c_(b){b&&(Or(b),Ut())}function Cu(b,rr){e.isBlock(rr)||e.getEmitFlags(b)&1?(Ut(),Or(rr)):(ko(),xc(),e.isEmptyStatement(rr)?mi(5,rr):Or(rr),ou())}function Tc(b,rr){Ro(b,rr,2146305)}function pu(b,rr){Ro(b,rr,53776,li.parenthesizeMemberOfElementType)}function du(b,rr){if(e.isFunctionLike(b)&&b.typeArguments)return pu(b,b.typeArguments);Ro(b,rr,53776)}function bl(b,rr){Ro(b,rr,2576)}function of(b,rr){var ai=e.singleOrUndefined(rr);return ai&&ai.pos===b.pos&&e.isArrowFunction(b)&&!b.type&&!e.some(b.decorators)&&!e.some(b.modifiers)&&!e.some(b.typeParameters)&&!e.some(ai.decorators)&&!e.some(ai.modifiers)&&!ai.dotDotDotToken&&!ai.questionToken&&!ai.type&&!ai.initializer&&e.isIdentifier(ai.name)}function il(b,rr){of(b,rr)?Ro(b,rr,528):bl(b,rr)}function Qo(b,rr){Ro(b,rr,8848)}function zo(b){switch(b&60){case 0:break;case 16:Kt(",");break;case 4:Ut(),Kt("|");break;case 32:Ut(),Kt("*"),Ut();break;case 8:Ut(),Kt("&");break}}function Ro(b,rr,ai,Wi,At,ra){Bf(Or,b,rr,ai,Wi,At,ra)}function jc(b,rr,ai,Wi,At,ra){Bf(mr,b,rr,ai,Wi,At,ra)}function Bf(b,rr,ai,Wi,At,ra,La){ra===void 0&&(ra=0),La===void 0&&(La=ai?ai.length-ra:0);var fn=ai===void 0;if(!(fn&&Wi&16384)){var Bo=ai===void 0||ra>=ai.length||La===0;if(Bo&&Wi&32768){y&&y(ai),oe&&oe(ai);return}if(Wi&15360&&(Kt(ne(Wi)),Bo&&ai&&ht(ai.pos,!0)),y&&y(ai),Bo)Wi&1&&!(er&&(!rr||e.rangeIsOnSingleLine(rr,le)))?ko():Wi&256&&!(Wi&524288)&&Ut();else{e.Debug.type(ai);var Yo=(Wi&262144)===0,jo=Yo,cc=ff(rr,ai,Wi);cc?(ko(cc),jo=!1):Wi&256&&Ut(),Wi&128&&xc();for(var qs=void 0,uc=void 0,hu=!1,$l=0;$l<La;$l++){var Qs=ai[ra+$l];if(Wi&32)ko(),zo(Wi);else if(qs){Wi&60&&qs.end!==(rr?rr.end:-1)&&nl(qs.end),zo(Wi),Qe(uc);var Au=_f(qs,Qs,Wi);Au>0?((Wi&131)===0&&(xc(),hu=!0),ko(Au),jo=!1):qs&&Wi&512&&Ut()}if(uc=Be(Qs),jo){var Id=e.getCommentRange(Qs);ht(Id.pos)}else jo=Yo;he=Qs.pos,b.length===1?b(Qs):b(Qs,At),hu&&(ou(),hu=!1),qs=Qs}var K_=qs?e.getEmitFlags(qs):0,Ec=Rr||!!(K_&1024),Zl=(ai==null?void 0:ai.hasTrailingComma)&&Wi&64&&Wi&16;Zl&&(qs&&!Ec?qa(27,qs.end,Kt,qs):Kt(",")),qs&&(rr?rr.end:-1)!==qs.end&&Wi&60&&!Ec&&nl(Zl&&(ai==null?void 0:ai.end)?ai.end:qs.end),Wi&128&&ou(),Qe(uc);var Ie=Vl(rr,ai,Wi);Ie?ko(Ie):Wi&2097408&&Ut()}oe&&oe(ai),Wi&15360&&(Bo&&ai&&nl(ai.end),Kt(ee(Wi)))}}function gu(b){we.writeLiteral(b)}function Jf(b){we.writeStringLiteral(b)}function jf(b){we.write(b)}function sf(b,rr){we.writeSymbol(b,rr)}function Kt(b){we.writePunctuation(b)}function ts(){we.writeTrailingSemicolon(";")}function mn(b){we.writeKeyword(b)}function Sl(b){we.writeOperator(b)}function Ps(b){we.writeParameter(b)}function tl(b){we.writeComment(b)}function Ut(){we.writeSpace(" ")}function Dp(b){we.writeProperty(b)}function cf(b){we.nonEscapingWrite?we.nonEscapingWrite(b):we.write(b)}function ko(b){b===void 0&&(b=1);for(var rr=0;rr<b;rr++)we.writeLine(rr>0)}function xc(){we.increaseIndent()}function ou(){we.decreaseIndent()}function uf(b,rr,ai,Wi){return Br?ql(b,ai,rr):ku(Wi,b,ai,rr,ql)}function bp(b,rr){ve&&ve(b),rr(e.tokenToString(b.kind)),ce&&ce(b)}function ql(b,rr,ai){var Wi=e.tokenToString(b);return rr(Wi),ai<0?ai:ai+Wi.length}function Fs(b,rr,ai){if(e.getEmitFlags(b)&1)Ut();else if(er){var Wi=Ns(b,rr,ai);Wi?ko(Wi):Ut()}else ko()}function J_(b){for(var rr=b.split(/\r\n?|\n/g),ai=e.guessIndentation(rr),Wi=0,At=rr;Wi<At.length;Wi++){var ra=At[Wi],La=ai?ra.slice(ai):ra;La.length&&(ko(),Se(La))}}function su(b,rr){b?(xc(),ko(b)):rr&&Ut()}function lf(b,rr){b&&ou(),rr&&ou()}function ff(b,rr,ai){if(ai&2||er){if(ai&65536)return 1;var Wi=rr[0];if(Wi===void 0)return!b||e.rangeIsOnSingleLine(b,le)?0:1;if(Wi.pos===he||Wi.kind===11)return 0;if(b&&!e.positionIsSynthesized(b.pos)&&!e.nodeIsSynthesized(Wi)&&(!Wi.parent||e.getOriginalNode(Wi.parent)===e.getOriginalNode(b)))return er?j_(function(At){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(Wi.pos,b.pos,le,At)}):e.rangeStartPositionsAreOnSameLine(b,Wi,le)?0:1;if(Tl(Wi,ai))return 1}return ai&1?1:0}function _f(b,rr,ai){if(ai&2||er){if(b===void 0||rr===void 0||rr.kind===11)return 0;if(!e.nodeIsSynthesized(b)&&!e.nodeIsSynthesized(rr))return er&&mf(b,rr)?j_(function(Wi){return e.getLinesBetweenRangeEndAndRangeStart(b,rr,le,Wi)}):!er&&kp(b,rr)?e.rangeEndIsOnSameLineAsRangeStart(b,rr,le)?0:1:ai&65536?1:0;if(Tl(b,ai)||Tl(rr,ai))return 1}else if(e.getStartsOnNewLine(rr))return 1;return ai&1?1:0}function Vl(b,rr,ai){if(ai&2||er){if(ai&65536)return 1;var Wi=e.lastOrUndefined(rr);if(Wi===void 0)return!b||e.rangeIsOnSingleLine(b,le)?0:1;if(b&&!e.positionIsSynthesized(b.pos)&&!e.nodeIsSynthesized(Wi)&&(!Wi.parent||Wi.parent===b)){if(er){var At=e.isNodeArray(rr)&&!e.positionIsSynthesized(rr.end)?rr.end:Wi.end;return j_(function(ra){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(At,b.end,le,ra)})}return e.rangeEndPositionsAreOnSameLine(b,Wi,le)?0:1}if(Tl(Wi,ai))return 1}return ai&1&&!(ai&131072)?1:0}function j_(b){e.Debug.assert(!!er);var rr=b(!0);return rr===0?b(!1):rr}function Uf(b,rr){var ai=er&&ff(rr,[b],0);return ai&&su(ai,!1),!!ai}function Sp(b,rr){var ai=er&&Vl(rr,[b],0);ai&&ko(ai)}function Tl(b,rr){if(e.nodeIsSynthesized(b)){var ai=e.getStartsOnNewLine(b);return ai===void 0?(rr&65536)!==0:ai}return(rr&65536)!==0}function Ns(b,rr,ai){return e.getEmitFlags(b)&131072?0:(b=U_(b),rr=U_(rr),ai=U_(ai),e.getStartsOnNewLine(ai)?1:!e.nodeIsSynthesized(b)&&!e.nodeIsSynthesized(rr)&&!e.nodeIsSynthesized(ai)?er?j_(function(Wi){return e.getLinesBetweenRangeEndAndRangeStart(rr,ai,le,Wi)}):e.rangeEndIsOnSameLineAsRangeStart(rr,ai,le)?0:1:0)}function al(b){return b.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(b,b,le)}function U_(b){for(;b.kind===211&&e.nodeIsSynthesized(b);)b=b.expression;return b}function Kl(b,rr){return e.isGeneratedIdentifier(b)?zf(b):(e.isIdentifier(b)||e.isPrivateIdentifier(b))&&(e.nodeIsSynthesized(b)||!b.parent||!le||b.parent&&le&&e.getSourceFileOfNode(b)!==e.getOriginalNode(le))?e.idText(b):b.kind===10&&b.textSourceNode?Kl(b.textSourceNode,rr):e.isLiteralExpression(b)&&(e.nodeIsSynthesized(b)||!b.parent)?b.text:e.getSourceTextOfNodeFromSourceFile(le,b,rr)}function Wn(b,rr,ai){if(b.kind===10&&b.textSourceNode){var Wi=b.textSourceNode;if(e.isIdentifier(Wi)||e.isNumericLiteral(Wi)){var At=e.isNumericLiteral(Wi)?Wi.text:Kl(Wi);return ai?'"'.concat(e.escapeJsxAttributeString(At),'"'):rr||e.getEmitFlags(b)&16777216?'"'.concat(e.escapeString(At),'"'):'"'.concat(e.escapeNonAsciiString(At),'"')}else return Wn(Wi,rr,ai)}var ra=(rr?1:0)|(ai?2:0)|(f.terminateUnterminatedLiterals?4:0)|(f.target&&f.target===99?8:0);return e.getLiteralText(b,le,ra)}function It(b){b&&e.getEmitFlags(b)&524288||(ar.push(gr),gr=0,me.push(Ge))}function Rs(b){b&&e.getEmitFlags(b)&524288||(gr=ar.pop(),Ge=me.pop())}function u_(b){(!Ge||Ge===e.lastOrUndefined(me))&&(Ge=new e.Set),Ge.add(b)}function xs(b){if(!!b)switch(b.kind){case 234:e.forEach(b.statements,xs);break;case 249:case 247:case 239:case 240:xs(b.statement);break;case 238:xs(b.thenStatement),xs(b.elseStatement);break;case 241:case 243:case 242:xs(b.initializer),xs(b.statement);break;case 248:xs(b.caseBlock);break;case 262:e.forEach(b.clauses,xs);break;case 288:case 289:e.forEach(b.statements,xs);break;case 251:xs(b.tryBlock),xs(b.catchClause),xs(b.finallyBlock);break;case 291:xs(b.variableDeclaration),xs(b.block);break;case 236:xs(b.declarationList);break;case 254:e.forEach(b.declarations,xs);break;case 253:case 163:case 202:case 256:mu(b.name);break;case 255:mu(b.name),e.getEmitFlags(b)&524288&&(e.forEach(b.parameters,xs),xs(b.body));break;case 200:case 201:e.forEach(b.elements,xs);break;case 265:xs(b.importClause);break;case 266:mu(b.name),xs(b.namedBindings);break;case 267:mu(b.name);break;case 273:mu(b.name);break;case 268:e.forEach(b.elements,xs);break;case 269:mu(b.propertyName||b.name);break}}function Tp(b){if(!!b)switch(b.kind){case 294:case 295:case 166:case 168:case 171:case 172:mu(b.name);break}}function mu(b){b&&(e.isGeneratedIdentifier(b)?zf(b):e.isBindingPattern(b)&&xs(b))}function zf(b){if((b.autoGenerateFlags&7)===4)return Uu(Ic(b),b.autoGenerateFlags);var rr=b.autoGenerateId;return Ue[rr]||(Ue[rr]=l_(b))}function Uu(b,rr){var ai=e.getNodeId(b);return ke[ai]||(ke[ai]=xp(b,rr))}function $c(b){return Wf(b)&&!He.has(b)&&!(Ge&&Ge.has(b))}function Wf(b){return le?e.isFileLevelUniqueName(le,b,D):!0}function Gl(b,rr){for(var ai=rr;e.isNodeDescendantOf(ai,rr);ai=ai.nextContainer)if(ai.locals){var Wi=ai.locals.get(e.escapeLeadingUnderscores(b));if(Wi&&Wi.flags&3257279)return!1}return!0}function bs(b,rr){if(b&&!(gr&b)){var ai=b===268435456?"_i":"_n";if($c(ai))return gr|=b,rr&&u_(ai),ai}for(;;){var Wi=gr&268435455;if(gr++,Wi!==8&&Wi!==13){var ai=Wi<26?"_"+String.fromCharCode(97+Wi):"_"+(Wi-26);if($c(ai))return rr&&u_(ai),ai}}}function zu(b,rr,ai,Wi){if(rr===void 0&&(rr=$c),ai&&rr(b))return Wi?u_(b):He.add(b),b;b.charCodeAt(b.length-1)!==95&&(b+="_");for(var At=1;;){var ra=b+At;if(rr(ra))return Wi?u_(ra):He.add(ra),ra;At++}}function ss(b){return zu(b,Wf,!0)}function Uc(b){var rr=Kl(b.name);return Gl(rr,b)?rr:zu(rr)}function Ad(b){var rr=e.getExternalModuleName(b),ai=e.isStringLiteral(rr)?e.makeIdentifierFromModuleName(rr.text):"module";return zu(ai)}function vu(){return zu("default")}function pf(){return zu("class")}function df(b){return e.isIdentifier(b.name)?Uu(b.name):bs(0)}function xp(b,rr){switch(b.kind){case 79:return zu(Kl(b),$c,!!(rr&16),!!(rr&8));case 260:case 259:return Uc(b);case 265:case 271:return Ad(b);case 255:case 256:case 270:return vu();case 225:return pf();case 168:case 171:case 172:return df(b);case 161:return bs(0,!0);default:return bs(0)}}function l_(b){switch(b.autoGenerateFlags&7){case 1:return bs(0,!!(b.autoGenerateFlags&8));case 2:return bs(268435456,!!(b.autoGenerateFlags&8));case 3:return zu(e.idText(b),b.autoGenerateFlags&32?Wf:$c,!!(b.autoGenerateFlags&16),!!(b.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function Ic(b){for(var rr=b.autoGenerateId,ai=b,Wi=ai.original;Wi&&(ai=Wi,!(e.isIdentifier(ai)&&!!(ai.autoGenerateFlags&4)&&ai.autoGenerateId!==rr));)Wi=ai.original;return ai}function _s(b,rr){var ai=Ui(2,b,rr),Wi=Ce,At=Le,ra=Xe;xl(rr),ai(b,rr),gf(rr,Wi,At,ra)}function xl(b){var rr=e.getEmitFlags(b),ai=e.getCommentRange(b);Hl(b,rr,ai.pos,ai.end),rr&2048&&(Rr=!0)}function gf(b,rr,ai,Wi){var At=e.getEmitFlags(b),ra=e.getCommentRange(b);At&2048&&(Rr=!1),Xl(b,At,ra.pos,ra.end,rr,ai,Wi)}function Hl(b,rr,ai,Wi){Kr(),Jr=!1;var At=ai<0||(rr&512)!==0||b.kind===11,ra=Wi<0||(rr&1024)!==0||b.kind===11;(ai>0||Wi>0)&&ai!==Wi&&(At||Ql(ai,b.kind!==347),(!At||ai>=0&&(rr&512)!==0)&&(Ce=ai),(!ra||Wi>=0&&(rr&1024)!==0)&&(Le=Wi,b.kind===254&&(Xe=Wi))),e.forEach(e.getSyntheticLeadingComments(b),Ep),ei()}function Xl(b,rr,ai,Wi,At,ra,La){Kr();var fn=Wi<0||(rr&1024)!==0||b.kind===11;e.forEach(e.getSyntheticTrailingComments(b),z_),(ai>0||Wi>0)&&ai!==Wi&&(Ce=At,Le=ra,Xe=La,!fn&&b.kind!==347&&Ga(Wi)),ei()}function Ep(b){(b.hasLeadingNewline||b.kind===2)&&we.writeLine(),El(b),b.hasTrailingNewLine||b.kind===2?we.writeLine():we.writeSpace(" ")}function z_(b){we.isAtStartOfLine()||we.writeSpace(" "),El(b),b.hasTrailingNewLine&&we.writeLine()}function El(b){var rr=Cp(b),ai=b.kind===3?e.computeLineStarts(rr):void 0;e.writeCommentRange(rr,ai,we,0,rr.length,de)}function Cp(b){return b.kind===3?"/*".concat(b.text,"*/"):"//".concat(b.text)}function Zc(b,rr,ai){Kr();var Wi=rr.pos,At=rr.end,ra=e.getEmitFlags(b),La=Wi<0||(ra&512)!==0,fn=Rr||At<0||(ra&1024)!==0;La||Al(rr),ei(),ra&2048&&!Rr?(Rr=!0,ai(b),Rr=!1):ai(b),Kr(),fn||(Ql(rr.end,!0),Jr&&!we.isAtStartOfLine()&&we.writeLine()),ei()}function kp(b,rr){return b=e.getOriginalNode(b),b.parent&&b.parent===e.getOriginalNode(rr).parent}function mf(b,rr){if(rr.pos<b.end)return!1;b=e.getOriginalNode(b),rr=e.getOriginalNode(rr);var ai=b.parent;if(!ai||ai!==rr.parent)return!1;var Wi=e.getContainingNodeArray(b),At=Wi==null?void 0:Wi.indexOf(b);return At!==void 0&&At>-1&&Wi.indexOf(rr)===At+1}function Ql(b,rr){Jr=!1,rr?b===0&&(le==null?void 0:le.isDeclarationFile)?ol(b,qf):ol(b,W_):b===0&&ol(b,f_)}function f_(b,rr,ai,Wi,At){p_(b,rr)&&W_(b,rr,ai,Wi,At)}function qf(b,rr,ai,Wi,At){p_(b,rr)||W_(b,rr,ai,Wi,At)}function Cl(b,rr){return f.onlyPrintJsDocStyle?e.isJSDocLikeText(b,rr)||e.isPinnedComment(b,rr):!0}function W_(b,rr,ai,Wi,At){!Cl(le.text,b)||(Jr||(e.emitNewLineBeforeLeadingCommentOfPosition(Xr(),we,At,b),Jr=!0),sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi?we.writeLine():ai===3&&we.writeSpace(" "))}function nl(b){Rr||b===-1||Ql(b,!0)}function Ga(b){q_(b,kl)}function kl(b,rr,ai,Wi){!Cl(le.text,b)||(we.isAtStartOfLine()||we.writeSpace(" "),sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi&&we.writeLine())}function ht(b,rr,ai){Rr||(Kr(),q_(b,rr?kl:ai?__:Yl),ei())}function __(b,rr,ai){sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),ai===2&&we.writeLine()}function Yl(b,rr,ai,Wi){sc(b),e.writeCommentRange(le.text,Xr(),we,b,rr,de),sc(rr),Wi?we.writeLine():we.writeSpace(" ")}function ol(b,rr){le&&(Ce===-1||b!==Ce)&&(rd(b)?Pd(rr):e.forEachLeadingCommentRange(le.text,b,rr,b))}function q_(b,rr){le&&(Le===-1||b!==Le&&b!==Xe)&&e.forEachTrailingCommentRange(le.text,b,rr)}function rd(b){return Lr!==void 0&&e.last(Lr).nodePos===b}function Pd(b){var rr=e.last(Lr).detachedCommentEndPos;Lr.length-1?Lr.pop():Lr=void 0,e.forEachLeadingCommentRange(le.text,rr,b,rr)}function Al(b){var rr=e.emitDetachedComments(le.text,Xr(),we,id,b,de,Rr);rr&&(Lr?Lr.push(rr):Lr=[rr])}function id(b,rr,ai,Wi,At,ra){!Cl(le.text,Wi)||(sc(Wi),e.writeCommentRange(b,rr,ai,Wi,At,ra),sc(At))}function p_(b,rr){return e.isRecognizedTripleSlashComment(le.text,b,rr)}function Nd(b){return b.parsedSourceMap===void 0&&b.sourceMapText!==void 0&&(b.parsedSourceMap=e.tryParseRawSourceMap(b.sourceMapText)||!1),b.parsedSourceMap||void 0}function V_(b,rr){var ai=Ui(3,b,rr);yu(rr),ai(b,rr),d_(rr)}function yu(b){var rr=e.getEmitFlags(b),ai=e.getSourceMapRange(b);if(e.isUnparsedNode(b)){e.Debug.assertIsDefined(b.parent,"UnparsedNodes must have parent pointers");var Wi=Nd(b.parent);Wi&&Tr&&Tr.appendSourceMap(we.getLine(),we.getColumn(),Wi,b.parent.sourceMapPath,b.parent.getLineAndCharacterOfPosition(b.pos),b.parent.getLineAndCharacterOfPosition(b.end))}else{var At=ai.source||n;b.kind!==347&&(rr&16)===0&&ai.pos>=0&&Vf(ai.source||n,sl(At,ai.pos)),rr&64&&(Br=!0)}}function d_(b){var rr=e.getEmitFlags(b),ai=e.getSourceMapRange(b);e.isUnparsedNode(b)||(rr&64&&(Br=!1),b.kind!==347&&(rr&32)===0&&ai.end>=0&&Vf(ai.source||n,ai.end))}function sl(b,rr){return b.skipTrivia?b.skipTrivia(rr):e.skipTrivia(b.text,rr)}function sc(b){if(!(Br||e.positionIsSynthesized(b)||eu(n))){var rr=e.getLineAndCharacterOfPosition(n,b),ai=rr.line,Wi=rr.character;Tr.addMapping(we.getLine(),we.getColumn(),Er,ai,Wi,void 0)}}function Vf(b,rr){if(b!==n){var ai=n,Wi=Er;vf(b),sc(rr),td(ai,Wi)}else sc(rr)}function ku(b,rr,ai,Wi,At){if(Br||b&&e.isInJsonFile(b))return At(rr,ai,Wi);var ra=b&&b.emitNode,La=ra&&ra.flags||0,fn=ra&&ra.tokenSourceMapRanges&&ra.tokenSourceMapRanges[rr],Bo=fn&&fn.source||n;return Wi=sl(Bo,fn?fn.pos:Wi),(La&128)===0&&Wi>=0&&Vf(Bo,Wi),Wi=At(rr,ai,Wi),fn&&(Wi=fn.end),(La&256)===0&&Wi>=0&&Vf(Bo,Wi),Wi}function vf(b){if(!Br){if(n=b,b===br){Er=Pr;return}eu(b)||(Er=Tr.addSource(b.fileName),f.inlineSources&&Tr.setSourceContent(Er,b.text),br=b,Pr=Er)}}function td(b,rr){n=b,Er=rr}function eu(b){return e.fileExtensionIs(b.fileName,".json")}}e.createPrinter=k;function I(){var f=[];return f[1024]=["{","}"],f[2048]=["(",")"],f[4096]=["<",">"],f[8192]=["[","]"],f}function ne(f){return a[f&15360][0]}function ee(f){return a[f&15360][1]}var A;(function(f){f[f.Auto=0]="Auto",f[f.CountMask=268435455]="CountMask",f[f._i=268435456]="_i"})(A||(A={}))})(Pe||(Pe={}));var Pe;(function(e){function a(E,ue,B){if(!E.getDirectories||!E.readDirectory)return;var re=new e.Map,M=e.createGetCanonicalFileName(B);return{useCaseSensitiveFileNames:B,fileExists:f,readFile:function(y,oe){return E.readFile(y,oe)},directoryExists:E.directoryExists&&P,getDirectories:l,readDirectory:_,createDirectory:E.createDirectory&&D,writeFile:E.writeFile&&A,addOrDeleteFileOrDirectory:w,addOrDeleteFile:j,clearCache:z,realpath:E.realpath&&J};function x(y){return e.toPath(y,ue,M)}function ie(y){return re.get(e.ensureTrailingDirectorySeparator(y))}function _e(y){return ie(e.getDirectoryPath(y))}function Y(y){return e.getBaseFileName(e.normalizePath(y))}function Z(y,oe){var ve;if(!E.realpath||e.ensureTrailingDirectorySeparator(x(E.realpath(y)))===oe){var ce={files:e.map(E.readDirectory(y,void 0,void 0,["*.*"]),Y)||[],directories:E.getDirectories(y)||[]};return re.set(e.ensureTrailingDirectorySeparator(oe),ce),ce}if(!((ve=E.directoryExists)===null||ve===void 0)&&ve.call(E,y))return re.set(oe,!1),!1}function k(y,oe){oe=e.ensureTrailingDirectorySeparator(oe);var ve=ie(oe);if(ve)return ve;try{return Z(y,oe)}catch{e.Debug.assert(!re.has(e.ensureTrailingDirectorySeparator(oe)));return}}function I(y,oe){return M(y)===M(oe)}function ne(y,oe){return e.some(y,function(ve){return I(ve,oe)})}function ee(y,oe,ve){if(ne(y,oe)){if(!ve)return e.filterMutate(y,function(ce){return!I(ce,oe)})}else if(ve)return y.push(oe)}function A(y,oe,ve){var ce=x(y),m=_e(ce);return m&&U(m,Y(y),!0),E.writeFile(y,oe,ve)}function f(y){var oe=x(y),ve=_e(oe);return ve&&ne(ve.files,Y(y))||E.fileExists(y)}function P(y){var oe=x(y);return re.has(e.ensureTrailingDirectorySeparator(oe))||E.directoryExists(y)}function D(y){var oe=x(y),ve=_e(oe),ce=Y(y);ve&&ee(ve.directories,ce,!0),E.createDirectory(y)}function l(y){var oe=x(y),ve=k(y,oe);return ve?ve.directories.slice():E.getDirectories(y)}function _(y,oe,ve,ce,m){var de=x(y),ae=k(y,de),V;if(ae!==void 0)return e.matchFiles(y,oe,ve,ce,B,ue,m,le,J);return E.readDirectory(y,oe,ve,ce,m);function le(Ue){var He=x(Ue);if(He===de)return ae||ke(Ue,He);var ar=k(Ue,He);return ar!==void 0?ar||ke(Ue,He):e.emptyFileSystemEntries}function ke(Ue,He){if(V&&He===de)return V;var ar={files:e.map(E.readDirectory(Ue,void 0,void 0,["*.*"]),Y)||e.emptyArray,directories:E.getDirectories(Ue)||e.emptyArray};return He===de&&(V=ar),ar}}function J(y){return E.realpath?E.realpath(y):y}function w(y,oe){var ve=ie(oe);if(ve!==void 0){z();return}var ce=_e(oe);if(!!ce){if(!E.directoryExists){z();return}var m=Y(y),de={fileExists:E.fileExists(oe),directoryExists:E.directoryExists(oe)};return de.directoryExists||ne(ce.directories,m)?z():U(ce,m,de.fileExists),de}}function j(y,oe,ve){if(ve!==e.FileWatcherEventKind.Changed){var ce=_e(oe);ce&&U(ce,Y(y),ve===e.FileWatcherEventKind.Created)}}function U(y,oe,ve){ee(y.files,oe,ve)}function z(){re.clear()}}e.createCachedDirectoryStructureHost=a;var O;(function(E){E[E.None=0]="None",E[E.Partial=1]="Partial",E[E.Full=2]="Full"})(O=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function L(E,ue,B,re,M){var x,ie=e.arrayToMap(((x=ue==null?void 0:ue.configFile)===null||x===void 0?void 0:x.extendedSourceFiles)||e.emptyArray,M);B.forEach(function(_e,Y){ie.has(Y)||(_e.projects.delete(E),_e.close())}),ie.forEach(function(_e,Y){var Z=B.get(Y);Z?Z.projects.add(E):B.set(Y,{projects:new e.Set([E]),watcher:re(_e,Y),close:function(){var k=B.get(Y);!k||k.projects.size!==0||(k.watcher.close(),B.delete(Y))}})})}e.updateSharedExtendedConfigFileWatcher=L;function W(E,ue){ue.forEach(function(B){B.projects.delete(E)&&B.close()})}e.clearSharedExtendedConfigFileWatcher=W;function N(E,ue,B){!E.delete(ue)||E.forEach(function(re,M){var x,ie=re.extendedResult;!((x=ie.extendedSourceFiles)===null||x===void 0)&&x.some(function(_e){return B(_e)===ue})&&N(E,M,B)})}e.cleanExtendedConfigCache=N;function Q(E,ue,B){var re=new e.Map(E);e.mutateMap(ue,re,{createNewValue:B,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=Q;function pe(E,ue,B){var re=E.getMissingFilePaths(),M=e.arrayToMap(re,e.identity,e.returnTrue);e.mutateMap(ue,M,{createNewValue:B,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=pe;function F(E,ue,B){e.mutateMap(E,ue,{createNewValue:re,onDeleteValue:G,onExistingValue:M});function re(x,ie){return{watcher:B(x,ie),flags:ie}}function M(x,ie,_e){x.flags!==ie&&(x.watcher.close(),E.set(_e,re(_e,ie)))}}e.updateWatchingWildcardDirectories=F;function g(E){var ue=E.watchedDirPath,B=E.fileOrDirectory,re=E.fileOrDirectoryPath,M=E.configFileName,x=E.options,ie=E.program,_e=E.extraFileExtensions,Y=E.currentDirectory,Z=E.useCaseSensitiveFileNames,k=E.writeLog,I=E.toPath,ne=e.removeIgnoredPath(re);if(!ne)return k("Project: ".concat(M," Detected ignored path: ").concat(B)),!0;if(re=ne,re===ue)return!1;if(e.hasExtension(re)&&!e.isSupportedSourceFileName(B,x,_e))return k("Project: ".concat(M," Detected file add/remove of non supported extension: ").concat(B)),!0;if(e.isExcludedFile(B,x.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(M),Y),Z,Y))return k("Project: ".concat(M," Detected excluded file: ").concat(B)),!0;if(!ie||e.outFile(x)||x.outDir)return!1;if(e.fileExtensionIs(re,".d.ts")){if(x.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(re,e.supportedJSExtensionsFlat))return!1;var ee=e.removeFileExtension(re),A=e.isArray(ie)?void 0:S(ie)?ie.getProgramOrUndefined():ie,f=!A&&!e.isArray(ie)?ie:void 0;if(P(ee+".ts")||P(ee+".tsx"))return k("Project: ".concat(M," Detected output file: ").concat(B)),!0;return!1;function P(D){return A?!!A.getSourceFileByPath(D):f?f.getState().fileInfos.has(D):!!e.find(ie,function(l){return I(l)===D})}}e.isIgnoredFileFromWildCardWatching=g;function S(E){return!!E.getState}function H(E,ue){return E?E.isEmittedFile(ue):!1}e.isEmittedFileOfProgram=H;var se;(function(E){E[E.None=0]="None",E[E.TriggerOnly=1]="TriggerOnly",E[E.Verbose=2]="Verbose"})(se=e.WatchLogLevel||(e.WatchLogLevel={}));function p(E,ue,B,re){e.setSysLog(ue===se.Verbose?B:e.noop);var M={watchFile:function(f,P,D,l){return E.watchFile(f,P,D,l)},watchDirectory:function(f,P,D,l){return E.watchDirectory(f,P,(D&1)!==0,l)}},x=ue!==se.None?{watchFile:ee("watchFile"),watchDirectory:ee("watchDirectory")}:void 0,ie=ue===se.Verbose?{watchFile:I,watchDirectory:ne}:x||M,_e=ue===se.Verbose?k:e.returnNoopFileWatcher;return{watchFile:Y("watchFile"),watchDirectory:Y("watchDirectory")};function Y(f){return function(P,D,l,_,J,w){var j;return e.matchesExclude(P,f==="watchFile"?_==null?void 0:_.excludeFiles:_==null?void 0:_.excludeDirectories,Z(),((j=E.getCurrentDirectory)===null||j===void 0?void 0:j.call(E))||"")?_e(P,l,_,J,w):ie[f].call(void 0,P,D,l,_,J,w)}}function Z(){return typeof E.useCaseSensitiveFileNames=="boolean"?E.useCaseSensitiveFileNames:E.useCaseSensitiveFileNames()}function k(f,P,D,l,_){return B("ExcludeWatcher:: Added:: ".concat(A(f,P,D,l,_,re))),{close:function(){return B("ExcludeWatcher:: Close:: ".concat(A(f,P,D,l,_,re)))}}}function I(f,P,D,l,_,J){B("FileWatcher:: Added:: ".concat(A(f,D,l,_,J,re)));var w=x.watchFile(f,P,D,l,_,J);return{close:function(){B("FileWatcher:: Close:: ".concat(A(f,D,l,_,J,re))),w.close()}}}function ne(f,P,D,l,_,J){var w="DirectoryWatcher:: Added:: ".concat(A(f,D,l,_,J,re));B(w);var j=e.timestamp(),U=x.watchDirectory(f,P,D,l,_,J),z=e.timestamp()-j;return B("Elapsed:: ".concat(z,"ms ").concat(w)),{close:function(){var y="DirectoryWatcher:: Close:: ".concat(A(f,D,l,_,J,re));B(y);var oe=e.timestamp();U.close();var ve=e.timestamp()-oe;B("Elapsed:: ".concat(ve,"ms ").concat(y))}}}function ee(f){return function(P,D,l,_,J,w){return M[f].call(void 0,P,function(){for(var j=[],U=0;U<arguments.length;U++)j[U]=arguments[U];var z="".concat(f==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(j[0]," ").concat(j[1]!==void 0?j[1]:"",":: ").concat(A(P,l,_,J,w,re));B(z);var y=e.timestamp();D.call.apply(D,qe([void 0],j,!1));var oe=e.timestamp()-y;B("Elapsed:: ".concat(oe,"ms ").concat(z))},l,_,J,w)}}function A(f,P,D,l,_,J){return"WatchInfo: ".concat(f," ").concat(P," ").concat(JSON.stringify(D)," ").concat(J?J(l,_):_===void 0?l:"".concat(l," ").concat(_))}}e.getWatchFactory=p;function C(E){var ue=E==null?void 0:E.fallbackPolling;return{watchFile:ue!==void 0?ue:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=C;function G(E){E.watcher.close()}e.closeFileWatcherOf=G})(Pe||(Pe={}));var Pe;(function(e){function a(ae,V,le){return le===void 0&&(le="tsconfig.json"),e.forEachAncestorDirectory(ae,function(ke){var Ue=e.combinePaths(ke,le);return V(Ue)?Ue:void 0})}e.findConfigFile=a;function O(ae,V){var le=e.getDirectoryPath(V),ke=e.isRootedDiskPath(ae)?ae:e.combinePaths(le,ae);return e.normalizePath(ke)}e.resolveTripleslashReference=O;function L(ae,V,le){var ke,Ue=e.forEach(ae,function(He){var ar=e.getNormalizedPathComponents(He,V);if(ar.pop(),!ke){ke=ar;return}for(var gr=Math.min(ke.length,ar.length),me=0;me<gr;me++)if(le(ke[me])!==le(ar[me])){if(me===0)return!0;ke.length=me;break}ar.length<ke.length&&(ke.length=ar.length)});return Ue?"":ke?e.getPathFromPathComponents(ke):V}e.computeCommonSourceDirectoryOfFilenames=L;function W(ae,V){return N(ae,V)}e.createCompilerHost=W;function N(ae,V,le){le===void 0&&(le=e.sys);var ke=new e.Map,Ue=e.createGetCanonicalFileName(le.useCaseSensitiveFileNames),He=e.maybeBind(le,le.createHash)||e.generateDjb2Hash;function ar(ge,Fe,cr){var ur;try{e.performance.mark("beforeIORead"),ur=Se.readFile(ge),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Ir){cr&&cr(Ir.message),ur=""}return ur!==void 0?e.createSourceFile(ge,ur,Fe,V):void 0}function gr(ge){return ke.has(ge)?!0:(Se.directoryExists||le.directoryExists)(ge)?(ke.set(ge,!0),!0):!1}function me(ge,Fe,cr,ur){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(ge,Fe,cr,function(Ir,dr,Br){return er(Ir,dr,Br)},function(Ir){return(Se.createDirectory||le.createDirectory)(Ir)},function(Ir){return gr(Ir)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Ir){ur&&ur(Ir.message)}}var Ge;function er(ge,Fe,cr){if(!e.isWatchSet(ae)||!le.getModifiedTime){le.writeFile(ge,Fe,cr);return}Ge||(Ge=new e.Map);var ur=He(Fe),Ir=le.getModifiedTime(ge);if(Ir){var dr=Ge.get(ge);if(dr&&dr.byteOrderMark===cr&&dr.hash===ur&&dr.mtime.getTime()===Ir.getTime())return}le.writeFile(ge,Fe,cr);var Br=le.getModifiedTime(ge)||e.missingFileModifiedTime;Ge.set(ge,{hash:ur,byteOrderMark:cr,mtime:Br})}function he(){return e.getDirectoryPath(e.normalizePath(le.getExecutingFilePath()))}var we=e.getNewLineCharacter(ae,function(){return le.newLine}),ye=le.realpath&&function(ge){return le.realpath(ge)},Se={getSourceFile:ar,getDefaultLibLocation:he,getDefaultLibFileName:function(ge){return e.combinePaths(he(),e.getDefaultLibFileName(ge))},writeFile:me,getCurrentDirectory:e.memoize(function(){return le.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return le.useCaseSensitiveFileNames},getCanonicalFileName:Ue,getNewLine:function(){return we},fileExists:function(ge){return le.fileExists(ge)},readFile:function(ge){return le.readFile(ge)},trace:function(ge){return le.write(ge+we)},directoryExists:function(ge){return le.directoryExists(ge)},getEnvironmentVariable:function(ge){return le.getEnvironmentVariable?le.getEnvironmentVariable(ge):""},getDirectories:function(ge){return le.getDirectories(ge)},realpath:ye,readDirectory:function(ge,Fe,cr,ur,Ir){return le.readDirectory(ge,Fe,cr,ur,Ir)},createDirectory:function(ge){return le.createDirectory(ge)},createHash:e.maybeBind(le,le.createHash)};return Se}e.createCompilerHostWorker=N;function Q(ae,V,le){var ke=ae.readFile,Ue=ae.fileExists,He=ae.directoryExists,ar=ae.createDirectory,gr=ae.writeFile,me=new e.Map,Ge=new e.Map,er=new e.Map,he=new e.Map,we=function(ge){var Fe=V(ge),cr=me.get(Fe);return cr!==void 0?cr!==!1?cr:void 0:ye(Fe,ge)},ye=function(ge,Fe){var cr=ke.call(ae,Fe);return me.set(ge,cr!==void 0?cr:!1),cr};ae.readFile=function(ge){var Fe=V(ge),cr=me.get(Fe);return cr!==void 0?cr!==!1?cr:void 0:!e.fileExtensionIs(ge,".json")&&!e.isBuildInfoFile(ge)?ke.call(ae,ge):ye(Fe,ge)};var Se=le?function(ge,Fe,cr,ur){var Ir=V(ge),dr=he.get(Ir);if(dr)return dr;var Br=le(ge,Fe,cr,ur);return Br&&(e.isDeclarationFileName(ge)||e.fileExtensionIs(ge,".json"))&&he.set(Ir,Br),Br}:void 0;return ae.fileExists=function(ge){var Fe=V(ge),cr=Ge.get(Fe);if(cr!==void 0)return cr;var ur=Ue.call(ae,ge);return Ge.set(Fe,!!ur),ur},gr&&(ae.writeFile=function(ge,Fe,cr,ur,Ir){var dr=V(ge);Ge.delete(dr);var Br=me.get(dr);if(Br!==void 0&&Br!==Fe)me.delete(dr),he.delete(dr);else if(Se){var Tr=he.get(dr);Tr&&Tr.text!==Fe&&he.delete(dr)}gr.call(ae,ge,Fe,cr,ur,Ir)}),He&&ar&&(ae.directoryExists=function(ge){var Fe=V(ge),cr=er.get(Fe);if(cr!==void 0)return cr;var ur=He.call(ae,ge);return er.set(Fe,!!ur),ur},ae.createDirectory=function(ge){var Fe=V(ge);er.delete(Fe),ar.call(ae,ge)}),{originalReadFile:ke,originalFileExists:Ue,originalDirectoryExists:He,originalCreateDirectory:ar,originalWriteFile:gr,getSourceFileWithCache:Se,readFileWithCache:we}}e.changeCompilerHostLikeToUseCache=Q;function pe(ae,V,le){var ke;return ke=e.addRange(ke,ae.getConfigFileParsingDiagnostics()),ke=e.addRange(ke,ae.getOptionsDiagnostics(le)),ke=e.addRange(ke,ae.getSyntacticDiagnostics(V,le)),ke=e.addRange(ke,ae.getGlobalDiagnostics(le)),ke=e.addRange(ke,ae.getSemanticDiagnostics(V,le)),e.getEmitDeclarations(ae.getCompilerOptions())&&(ke=e.addRange(ke,ae.getDeclarationDiagnostics(V,le))),e.sortAndDeduplicateDiagnostics(ke||e.emptyArray)}e.getPreEmitDiagnostics=pe;function F(ae,V){for(var le="",ke=0,Ue=ae;ke<Ue.length;ke++){var He=Ue[ke];le+=g(He,V)}return le}e.formatDiagnostics=F;function g(ae,V){var le="".concat(e.diagnosticCategoryName(ae)," TS").concat(ae.code,": ").concat(ie(ae.messageText,V.getNewLine())).concat(V.getNewLine());if(ae.file){var ke=e.getLineAndCharacterOfPosition(ae.file,ae.start),Ue=ke.line,He=ke.character,ar=ae.file.fileName,gr=e.convertToRelativePath(ar,V.getCurrentDirectory(),function(me){return V.getCanonicalFileName(me)});return"".concat(gr,"(").concat(Ue+1,",").concat(He+1,"): ")+le}return le}e.formatDiagnostic=g;var S;(function(ae){ae.Grey="\x1B[90m",ae.Red="\x1B[91m",ae.Yellow="\x1B[93m",ae.Blue="\x1B[94m",ae.Cyan="\x1B[96m"})(S=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var H="\x1B[7m",se=" ",p="\x1B[0m",C="...",G=" ",E=" ";function ue(ae){switch(ae){case e.DiagnosticCategory.Error:return S.Red;case e.DiagnosticCategory.Warning:return S.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return S.Blue}}function B(ae,V){return V+ae+p}e.formatColorAndReset=B;function re(ae,V,le,ke,Ue,He){var ar=e.getLineAndCharacterOfPosition(ae,V),gr=ar.line,me=ar.character,Ge=e.getLineAndCharacterOfPosition(ae,V+le),er=Ge.line,he=Ge.character,we=e.getLineAndCharacterOfPosition(ae,ae.text.length).line,ye=er-gr>=4,Se=(er+1+"").length;ye&&(Se=Math.max(C.length,Se));for(var ge="",Fe=gr;Fe<=er;Fe++){ge+=He.getNewLine(),ye&&gr+1<Fe&&Fe<er-1&&(ge+=ke+B(e.padLeft(C,Se),H)+se+He.getNewLine(),Fe=er-1);var cr=e.getPositionOfLineAndCharacter(ae,Fe,0),ur=Fe<we?e.getPositionOfLineAndCharacter(ae,Fe+1,0):ae.text.length,Ir=ae.text.slice(cr,ur);if(Ir=e.trimStringEnd(Ir),Ir=Ir.replace(/\t/g," "),ge+=ke+B(e.padLeft(Fe+1+"",Se),H)+se,ge+=Ir+He.getNewLine(),ge+=ke+B(e.padLeft("",Se),H)+se,ge+=Ue,Fe===gr){var dr=Fe===er?he:void 0;ge+=Ir.slice(0,me).replace(/\S/g," "),ge+=Ir.slice(me,dr).replace(/./g,"~")}else Fe===er?ge+=Ir.slice(0,he).replace(/./g,"~"):ge+=Ir.replace(/./g,"~");ge+=p}return ge}function M(ae,V,le,ke){ke===void 0&&(ke=B);var Ue=e.getLineAndCharacterOfPosition(ae,V),He=Ue.line,ar=Ue.character,gr=le?e.convertToRelativePath(ae.fileName,le.getCurrentDirectory(),function(Ge){return le.getCanonicalFileName(Ge)}):ae.fileName,me="";return me+=ke(gr,S.Cyan),me+=":",me+=ke("".concat(He+1),S.Yellow),me+=":",me+=ke("".concat(ar+1),S.Yellow),me}e.formatLocation=M;function x(ae,V){for(var le="",ke=0,Ue=ae;ke<Ue.length;ke++){var He=Ue[ke];if(He.file){var ar=He.file,gr=He.start;le+=M(ar,gr,V),le+=" - "}if(le+=B(e.diagnosticCategoryName(He),ue(He.category)),le+=B(" TS".concat(He.code,": "),S.Grey),le+=ie(He.messageText,V.getNewLine()),He.file&&(le+=V.getNewLine(),le+=re(He.file,He.start,He.length,"",ue(He.category),V)),He.relatedInformation){le+=V.getNewLine();for(var me=0,Ge=He.relatedInformation;me<Ge.length;me++){var er=Ge[me],ar=er.file,gr=er.start,he=er.length,we=er.messageText;ar&&(le+=V.getNewLine(),le+=G+M(ar,gr,V),le+=re(ar,gr,he,E,S.Cyan,V)),le+=V.getNewLine(),le+=E+ie(we,V.getNewLine())}}le+=V.getNewLine()}return le}e.formatDiagnosticsWithColorAndContext=x;function ie(ae,V,le){if(le===void 0&&(le=0),e.isString(ae))return ae;if(ae===void 0)return"";var ke="";if(le){ke+=V;for(var Ue=0;Ue<le;Ue++)ke+=" "}if(ke+=ae.messageText,le++,ae.next)for(var He=0,ar=ae.next;He<ar.length;He++){var gr=ar[He];ke+=ie(gr,V,le)}return ke}e.flattenDiagnosticMessageText=ie;function _e(ae,V,le,ke){if(ae.length===0)return[];for(var Ue=[],He=new e.Map,ar=0,gr=ae;ar<gr.length;ar++){var me=gr[ar],Ge=void 0;He.has(me)?Ge=He.get(me):He.set(me,Ge=ke(me,V,le)),Ue.push(Ge)}return Ue}e.loadWithLocalCache=_e;function Y(ae,V){if(ae.impliedNodeFormat!==void 0)return Z(ae,de(ae,V))}e.getModeForResolutionAtIndex=Y;function Z(ae,V){var le;if(ae.impliedNodeFormat!==void 0){if(ae.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(V.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var ke=(le=e.walkUpParenthesizedExpressions(V.parent))===null||le===void 0?void 0:le.parent;return ke&&e.isImportEqualsDeclaration(ke)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=Z;function k(ae,V,le,ke,Ue){if(ae.length===0)return[];for(var He=[],ar=new e.Map,gr=0,me=0,Ge=ae;me<Ge.length;me++){var er=Ge[me],he=void 0,we=Y(V,gr);gr++;var ye=we!==void 0?"".concat(we,"|").concat(er):er;ar.has(ye)?he=ar.get(ye):ar.set(ye,he=Ue(er,we,le,ke)),He.push(he)}return He}e.loadWithModeAwareCache=k;function I(ae,V){return ne(void 0,ae,function(le,ke){return le&&V(le,ke)})}e.forEachResolvedProjectReference=I;function ne(ae,V,le,ke){var Ue;return He(ae,V,void 0);function He(ar,gr,me){if(ke){var Ge=ke(ar,me);if(Ge)return Ge}return e.forEach(gr,function(er,he){if(!(er&&(Ue==null?void 0:Ue.has(er.sourceFile.path)))){var we=le(er,me,he);return we||!er?we:((Ue||(Ue=new e.Set)).add(er.sourceFile.path),He(er.commandLine.projectReferences,er.references,er))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function ee(ae){switch(ae==null?void 0:ae.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=ee;function A(ae){return ae.pos!==void 0}e.isReferenceFileLocation=A;function f(ae,V){var le,ke,Ue,He,ar,gr,me,Ge=e.Debug.checkDefined(ae(V.file)),er=V.kind,he=V.index,we,ye,Se;switch(er){case e.FileIncludeKind.Import:var ge=de(Ge,he);if(Se=(ar=(He=Ge.resolvedModules)===null||He===void 0?void 0:He.get(ge.text,Y(Ge,he)))===null||ar===void 0?void 0:ar.packageId,ge.pos===-1)return{file:Ge,packageId:Se,text:ge.text};we=e.skipTrivia(Ge.text,ge.pos),ye=ge.end;break;case e.FileIncludeKind.ReferenceFile:le=Ge.referencedFiles[he],we=le.pos,ye=le.end;break;case e.FileIncludeKind.TypeReferenceDirective:ke=Ge.typeReferenceDirectives[he],we=ke.pos,ye=ke.end,Se=(me=(gr=Ge.resolvedTypeReferenceDirectiveNames)===null||gr===void 0?void 0:gr.get(e.toFileNameLowerCase(Ge.typeReferenceDirectives[he].fileName),Ge.impliedNodeFormat))===null||me===void 0?void 0:me.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Ue=Ge.libReferenceDirectives[he],we=Ue.pos,ye=Ue.end;break;default:return e.Debug.assertNever(er)}return{file:Ge,pos:we,end:ye,packageId:Se}}e.getReferencedFileLocation=f;function P(ae,V,le,ke,Ue,He,ar,gr,me){if(!ae||(ar==null?void 0:ar())||!e.arrayIsEqualTo(ae.getRootFileNames(),V))return!1;var Ge;if(!e.arrayIsEqualTo(ae.getProjectReferences(),me,ye)||ae.getSourceFiles().some(he)||ae.getMissingFilePaths().some(Ue))return!1;var er=ae.getCompilerOptions();if(!e.compareDataObjects(er,le))return!1;if(er.configFile&&le.configFile)return er.configFile.text===le.configFile.text;return!0;function he(ge){return!we(ge)||He(ge.path)}function we(ge){return ge.version===ke(ge.resolvedPath,ge.fileName)}function ye(ge,Fe,cr){return e.projectReferenceIsEqualTo(ge,Fe)&&Se(ae.getResolvedProjectReferences()[cr],ge)}function Se(ge,Fe){if(ge){if(e.contains(Ge,ge))return!0;var cr=ve(Fe),ur=gr(cr);return!ur||ge.commandLine.options.configFile!==ur.options.configFile||!e.arrayIsEqualTo(ge.commandLine.fileNames,ur.fileNames)?!1:((Ge||(Ge=[])).push(ge),!e.forEach(ge.references,function(dr,Br){return!Se(dr,ge.commandLine.projectReferences[Br])}))}var Ir=ve(Fe);return!gr(Ir)}}e.isProgramUptoDate=P;function D(ae){return ae.options.configFile?qe(qe([],ae.options.configFile.parseDiagnostics,!0),ae.errors,!0):ae.errors}e.getConfigFileParsingDiagnostics=D;function l(ae,V,le,ke){switch(e.getEmitModuleResolutionKind(ke)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(ae,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(ae,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(ae,[".d.ts",".ts",".tsx",".js",".jsx"])?Ue():void 0;default:return}function Ue(){var He=e.getPackageScopeForPath(ae,V,le,ke);return(He==null?void 0:He.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}e.getImpliedNodeFormatForFile=l,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code]);function _(ae,V){return ae?e.optionsHaveChanges(ae.getCompilerOptions(),V,e.sourceFileAffectingCompilerOptions):!1}function J(ae,V,le,ke,Ue){return{rootNames:ae,options:V,host:le,oldProgram:ke,configFileParsingDiagnostics:Ue}}function w(ae,V,le,ke,Ue){var He,ar,gr,me,Ge=e.isArray(ae)?J(ae,V,le,ke,Ue):ae,er=Ge.rootNames,he=Ge.options,we=Ge.configFileParsingDiagnostics,ye=Ge.projectReferences,Se=Ge.oldProgram,ge,Fe,cr,ur,Ir,dr,Br,Tr,n=new e.Map,Er=e.createMultiMap(),br={},Pr={},Ce=new e.Map,Le,Xe=typeof he.maxNodeModuleJsDepth=="number"?he.maxNodeModuleJsDepth:0,Cr=0,Lr=new e.Map,Jr=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:he.configFilePath,rootDir:he.rootDir},!0),e.performance.mark("beforeProgram");var Rr=Ge.host||W(he),ci=y(Rr),be=he.noLib,or=e.memoize(function(){return Rr.getDefaultLibFileName(he)}),Kr=Rr.getDefaultLibLocation?Rr.getDefaultLibLocation():e.getDirectoryPath(or()),ei=e.createDiagnosticCollection(),li=Rr.getCurrentDirectory(),Si=e.getSupportedExtensions(he),qi=e.getSupportedExtensionsWithJsonIfResolveJsonModule(he,Si),ft=new e.Map,bt,aa,sr,Ji,di=Rr.hasInvalidatedResolution||e.returnFalse;if(Rr.resolveModuleNames)Ji=function(Vr,fi,Ni,rt,Tt){return Rr.resolveModuleNames(e.Debug.checkEachDefined(Vr),Ni,rt,Tt,he,fi).map(function(Dt){if(!Dt||Dt.extension!==void 0)return Dt;var jt=e.clone(Dt);return jt.extension=e.extensionFromPath(Dt.resolvedFileName),jt})},aa=(He=Rr.getModuleResolutionCache)===null||He===void 0?void 0:He.call(Rr);else{aa=e.createModuleResolutionCache(li,ti,he);var X=function(Vr,fi,Ni,rt){return e.resolveModuleName(Vr,Ni,he,Rr,aa,rt,fi).resolvedModule};Ji=function(Vr,fi,Ni,rt,Tt){return k(e.Debug.checkEachDefined(Vr),fi,Ni,Tt,X)}}var Ye;if(Rr.resolveTypeReferenceDirectives)Ye=function(Vr,fi,Ni){return Rr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Vr),fi,Ni,he)};else{sr=e.createTypeReferenceDirectiveResolutionCache(li,ti,void 0,aa==null?void 0:aa.getPackageJsonInfoCache());var Be=function(Vr,fi,Ni){return e.resolveTypeReferenceDirective(Vr,fi,he,Rr,Ni,sr).resolvedTypeReferenceDirective};Ye=function(Vr,fi,Ni){return _e(e.Debug.checkEachDefined(Vr),fi,Ni,Be)}}var Qe=new e.Map,_r=new e.Map,hr=e.createMultiMap(),Dr=!1,Me=new e.Map,v,xe=Rr.useCaseSensitiveFileNames()?new e.Map:void 0,ze,Je,Oe,Fr,Xr=!!(!((ar=Rr.useSourceOfProjectReferenceRedirect)===null||ar===void 0)&&ar.call(Rr))&&!he.disableSourceOfProjectReferenceRedirect,Or=j({compilerHost:Rr,getSymlinkCache:au,useSourceOfProjectReferenceRedirect:Xr,toPath:Bt,getResolvedProjectReferences:Xa,getSourceOfProjectReferenceRedirect:Pa,forEachResolvedProjectReference:An}),We=Or.onProgramCreateComplete,mr=Or.fileExists,Nr=Or.directoryExists,Ur=Rr.readFile.bind(Rr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Se});var si=_(Se,he);e.tracing===null||e.tracing===void 0||e.tracing.pop();var mi;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),mi=Ct(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),mi!==2){ge=[],Fe=[],ye&&(ze||(ze=ye.map(ln)),er.length&&(ze==null||ze.forEach(function(Vr,fi){if(!!Vr){var Ni=e.outFile(Vr.commandLine.options);if(Xr){if(Ni||e.getEmitModuleKind(Vr.commandLine.options)===e.ModuleKind.None)for(var rt=0,Tt=Vr.commandLine.fileNames;rt<Tt.length;rt++){var Dt=Tt[rt];as(Dt,{kind:e.FileIncludeKind.SourceFromProjectReference,index:fi})}}else if(Ni)as(e.changeExtension(Ni,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:fi});else if(e.getEmitModuleKind(Vr.commandLine.options)===e.ModuleKind.None)for(var jt=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Vr.commandLine,!Rr.useCaseSensitiveFileNames())}),na=0,Za=Vr.commandLine.fileNames;na<Za.length;na++){var Dt=Za[na];!e.fileExtensionIs(Dt,".d.ts")&&!e.fileExtensionIs(Dt,".json")&&as(e.getOutputDeclarationFileName(Dt,Vr.commandLine,!Rr.useCaseSensitiveFileNames(),jt),{kind:e.FileIncludeKind.OutputFromProjectReference,index:fi})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:er.length}),e.forEach(er,function(Vr,fi){return _i(Vr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:fi})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var Ti=er.length?e.getAutomaticTypeDirectiveNames(he,Rr):e.emptyArray;if(Ti.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:Ti.length});for(var hi=he.configFilePath?e.getDirectoryPath(he.configFilePath):Rr.getCurrentDirectory(),ki=e.combinePaths(hi,e.inferredTypesContainingFile),Ui=Ci(Ti,ki),zi=0;zi<Ti.length;zi++)zr(Ti[zi],Ui[zi],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Ti[zi],packageId:(gr=Ui[zi])===null||gr===void 0?void 0:gr.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(er.length&&!be){var ri=or();!he.lib&&ri?_i(ri,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(he.lib,function(Vr,fi){_i(et(Vr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:fi})})}v=e.arrayFrom(e.mapDefinedIterator(Me.entries(),function(Vr){var fi=Vr[0],Ni=Vr[1];return Ni===void 0?fi:void 0})),cr=e.stableSort(ge,yt).concat(Fe),ge=void 0,Fe=void 0}if(e.Debug.assert(!!v),Se&&Rr.onReleaseOldSourceFile){for(var Gi=Se.getSourceFiles(),Rt=0,pa=Gi;Rt<pa.length;Rt++){var xt=pa[Rt],ua=ro(xt.resolvedPath);(si||!ua||xt.resolvedPath===xt.path&&ua.resolvedPath!==xt.path)&&Rr.onReleaseOldSourceFile(xt,Se.getCompilerOptions(),!!ro(xt.path))}Rr.getParsedCommandLine||Se.forEachResolvedProjectReference(function(Vr){ao(Vr.sourceFile.path)||Rr.onReleaseOldSourceFile(Vr.sourceFile,Se.getCompilerOptions(),!1)})}Se&&Rr.onReleaseParsedCommandLine&&ne(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Vr,fi,Ni){var rt=(fi==null?void 0:fi.commandLine.projectReferences[Ni])||Se.getProjectReferences()[Ni],Tt=ve(rt);Je!=null&&Je.has(Bt(Tt))||Rr.onReleaseParsedCommandLine(Tt,Vr,Se.getCompilerOptions())}),sr=void 0,Se=void 0;var Vt={getRootFileNames:function(){return er},getSourceFile:go,getSourceFileByPath:ro,getSourceFiles:function(){return cr},getMissingFilePaths:function(){return v},getModuleResolutionCache:function(){return aa},getFilesByNameMap:function(){return Me},getCompilerOptions:function(){return he},getSyntacticDiagnostics:rs,getOptionsDiagnostics:Ee,getGlobalDiagnostics:nr,getSemanticDiagnostics:rn,getCachedSemanticDiagnostics:Do,getSuggestionDiagnostics:bi,getDeclarationDiagnostics:Qn,getBindAndCheckDiagnostics:io,getProgramDiagnostics:pn,getTypeChecker:Zn,getClassifiableNames:Oi,getDiagnosticsProducingTypeChecker:Sn,getCommonSourceDirectory:Pi,emit:ho,getCurrentDirectory:function(){return li},getNodeCount:function(){return Sn().getNodeCount()},getIdentifierCount:function(){return Sn().getIdentifierCount()},getSymbolCount:function(){return Sn().getSymbolCount()},getTypeCount:function(){return Sn().getTypeCount()},getInstantiationCount:function(){return Sn().getInstantiationCount()},getRelationCacheSizes:function(){return Sn().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return Le},getResolvedTypeReferenceDirectives:function(){return Ce},isSourceFileFromExternalLibrary:bn,isSourceFileDefaultLibrary:Rn,dropDiagnosticsProducingTypeChecker:zn,getSourceFileFromReference:Ta,getLibFileFromReference:Fa,sourceFileToPackageName:_r,redirectTargetsMap:hr,usesUriStyleNodeCoreModules:Dr,isEmittedFile:Bu,getConfigFileParsingDiagnostics:Gr,getResolvedModuleWithFailedLookupLocationsFromCache:oa,getProjectReferences:on,getResolvedProjectReferences:Xa,getProjectReferenceRedirect:$t,getResolvedProjectReferenceToRedirect:yn,getResolvedProjectReferenceByPath:ao,forEachResolvedProjectReference:An,isSourceOfProjectReferenceRedirect:Mn,emitBuildInfo:ta,fileExists:mr,readFile:Ur,directoryExists:Nr,getSymlinkCache:au,realpath:(me=Rr.realpath)===null||me===void 0?void 0:me.bind(Rr),useCaseSensitiveFileNames:function(){return Rr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return Er},structureIsReused:mi};return We(),Le==null||Le.forEach(function(Vr){switch(Vr.kind){case 1:return ei.add(Oo(Vr.file&&ro(Vr.file),Vr.fileProcessingReason,Vr.diagnostic,Vr.args||e.emptyArray));case 0:var fi=f(ro,Vr.reason),Ni=fi.file,rt=fi.pos,Tt=fi.end;return ei.add(e.createFileDiagnostic.apply(void 0,qe([Ni,e.Debug.checkDefined(rt),e.Debug.checkDefined(Tt)-rt,Vr.diagnostic],Vr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Vr)}}),Ba(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Vt;function St(Vr,fi,Ni){if(!Vr.length)return e.emptyArray;var rt=e.getNormalizedAbsolutePath(fi.originalFileName,li),Tt=Hi(fi);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:rt}),e.performance.mark("beforeResolveModule");var Dt=Ji(Vr,fi,rt,Ni,Tt);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Dt}function Ci(Vr,fi){if(!Vr.length)return[];var Ni=e.isString(fi)?fi:e.getNormalizedAbsolutePath(fi.originalFileName,li),rt=e.isString(fi)?void 0:Hi(fi);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Ni}),e.performance.mark("beforeResolveTypeReference");var Tt=Ye(Vr,Ni,rt);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Tt}function Hi(Vr){var fi=yn(Vr.originalFileName);if(fi||!e.fileExtensionIsOneOf(Vr.originalFileName,[".d.ts",".d.cts",".d.mts"]))return fi;var Ni=Yi(Vr.path);if(Ni)return Ni;if(!(!Rr.realpath||!he.preserveSymlinks||!e.stringContains(Vr.originalFileName,e.nodeModulesPathPart))){var rt=Bt(Rr.realpath(Vr.originalFileName));return rt===Vr.path?void 0:Yi(rt)}}function Yi(Vr){var fi=Pa(Vr);if(e.isString(fi))return yn(fi);if(!!fi)return An(function(Ni){var rt=e.outFile(Ni.commandLine.options);if(!!rt)return Bt(rt)===Vr?Ni:void 0})}function yt(Vr,fi){return e.compareValues(gt(Vr),gt(fi))}function gt(Vr){if(e.containsPath(Kr,Vr.fileName,!1)){var fi=e.getBaseFileName(Vr.fileName);if(fi==="lib.d.ts"||fi==="lib.es6.d.ts")return 0;var Ni=e.removeSuffix(e.removePrefix(fi,"lib."),".d.ts"),rt=e.libs.indexOf(Ni);if(rt!==-1)return rt+1}return e.libs.length+2}function oa(Vr,fi,Ni){return aa&&e.resolveModuleNameFromCache(Vr,fi,aa,Ni)}function Bt(Vr){return e.toPath(Vr,li,ti)}function Pi(){if(Ir===void 0){var Vr=e.filter(cr,function(fi){return e.sourceFileMayBeEmitted(fi,Vt)});Ir=e.getCommonSourceDirectory(he,function(){return e.mapDefined(Vr,function(fi){return fi.isDeclarationFile?void 0:fi.fileName})},li,ti,function(fi){return Zt(Vr,fi)})}return Ir}function Oi(){var Vr;if(!Tr){Zn(),Tr=new e.Set;for(var fi=0,Ni=cr;fi<Ni.length;fi++){var rt=Ni[fi];(Vr=rt.classifiableNames)===null||Vr===void 0||Vr.forEach(function(Tt){return Tr.add(Tt)})}}return Tr}function wi(Vr,fi){if(mi===0&&!fi.ambientModuleNames.length)return St(Vr,fi,void 0);var Ni=Se&&Se.getSourceFile(fi.fileName);if(Ni!==fi&&fi.resolvedModules){for(var rt=[],Tt=0,Dt=0,jt=Vr;Dt<jt.length;Dt++){var na=jt[Dt],Za=fi.resolvedModules.get(na,Y(fi,Tt));Tt++,rt.push(Za)}return rt}for(var ya,ha,Ja,Eo={},Tt=0;Tt<Vr.length;Tt++){var na=Vr[Tt];if(fi===Ni&&!di(Ni.path)){var Hn=e.getResolvedModule(Ni,na,Y(Ni,Tt));if(Hn){e.isTraceEnabled(he,Rr)&&e.trace(Rr,Hn.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,na,e.getNormalizedAbsolutePath(fi.originalFileName,li),Hn.resolvedFileName,Hn.packageId&&e.packageIdToString(Hn.packageId)),(ha||(ha=new Array(Vr.length)))[Tt]=Hn,(Ja||(Ja=[])).push(na);continue}}var lo=!1;e.contains(fi.ambientModuleNames,na)?(lo=!0,e.isTraceEnabled(he,Rr)&&e.trace(Rr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,na,e.getNormalizedAbsolutePath(fi.originalFileName,li))):lo=vr(na,Tt),lo?(ha||(ha=new Array(Vr.length)))[Tt]=Eo:(ya||(ya=[])).push(na)}var Kn=ya&&ya.length?St(ya,fi,Ja):e.emptyArray;if(!ha)return e.Debug.assert(Kn.length===Vr.length),Kn;for(var Te=0,Tt=0;Tt<ha.length;Tt++)ha[Tt]?ha[Tt]===Eo&&(ha[Tt]=void 0):(ha[Tt]=Kn[Te],Te++);return e.Debug.assert(Te===Kn.length),ha;function vr(Sr,Di){if(Di>=e.length(Ni==null?void 0:Ni.imports)+e.length(Ni==null?void 0:Ni.moduleAugmentations))return!1;var nt=e.getResolvedModule(Ni,Sr,Ni&&Y(Ni,Di)),_a=nt&&Se.getSourceFile(nt.resolvedFileName);if(nt&&_a)return!1;var Na=n.get(Sr);return Na?(e.isTraceEnabled(he,Rr)&&e.trace(Rr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Sr,Na),!0):!1}}function Qr(){return!ne(Se.getProjectReferences(),Se.getResolvedProjectReferences(),function(Vr,fi,Ni){var rt=(fi?fi.commandLine.projectReferences:ye)[Ni],Tt=ln(rt);return Vr?!Tt||Tt.sourceFile!==Vr.sourceFile||!e.arrayIsEqualTo(Vr.commandLine.fileNames,Tt.commandLine.fileNames):Tt!==void 0},function(Vr,fi){var Ni=fi?ao(fi.sourceFile.path).commandLine.projectReferences:ye;return!e.arrayIsEqualTo(Vr,Ni,e.projectReferenceIsEqualTo)})}function Ct(){var Vr;if(!Se)return 0;var fi=Se.getCompilerOptions();if(e.changesAffectModuleResolution(fi,he))return 0;var Ni=Se.getRootFileNames();if(!e.arrayIsEqualTo(Ni,er)||!Qr())return 0;ye&&(ze=ye.map(ln));var rt=[],Tt=[];if(mi=2,Se.getMissingFilePaths().some(function(oc){return Rr.fileExists(oc)}))return 0;var Dt=Se.getSourceFiles(),jt;(function(oc){oc[oc.Exists=0]="Exists",oc[oc.Modified=1]="Modified"})(jt||(jt={}));for(var na=new e.Map,Za=0,ya=Dt;Za<ya.length;Za++){var ha=ya[Za],Ja=Rr.getSourceFileByPath?Rr.getSourceFileByPath(ha.fileName,ha.resolvedPath,e.getEmitScriptTarget(he),void 0,si):Rr.getSourceFile(ha.fileName,e.getEmitScriptTarget(he),void 0,si);if(!Ja)return 0;e.Debug.assert(!Ja.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var Eo=void 0;if(ha.redirectInfo){if(Ja!==ha.redirectInfo.unredirected)return 0;Eo=!1,Ja=ha}else if(Se.redirectTargetsMap.has(ha.path)){if(Ja!==ha)return 0;Eo=!1}else Eo=Ja!==ha;Ja.path=ha.path,Ja.originalFileName=ha.originalFileName,Ja.resolvedPath=ha.resolvedPath,Ja.fileName=ha.fileName,Ja.impliedNodeFormat=ha.impliedNodeFormat;var Hn=Se.sourceFileToPackageName.get(ha.path);if(Hn!==void 0){var lo=na.get(Hn),Kn=Eo?1:0;if(lo!==void 0&&Kn===1||lo===1)return 0;na.set(Hn,Kn)}Eo?(e.arrayIsEqualTo(ha.libReferenceDirectives,Ja.libReferenceDirectives,Ei)||(mi=1),ha.hasNoDefaultLib!==Ja.hasNoDefaultLib&&(mi=1),e.arrayIsEqualTo(ha.referencedFiles,Ja.referencedFiles,Ei)||(mi=1),ca(Ja),e.arrayIsEqualTo(ha.imports,Ja.imports,Ki)||(mi=1),e.arrayIsEqualTo(ha.moduleAugmentations,Ja.moduleAugmentations,Ki)||(mi=1),(ha.flags&3145728)!==(Ja.flags&3145728)&&(mi=1),e.arrayIsEqualTo(ha.typeReferenceDirectives,Ja.typeReferenceDirectives,Ei)||(mi=1),Tt.push({oldFile:ha,newFile:Ja})):di(ha.path)&&(mi=1,Tt.push({oldFile:ha,newFile:Ja})),rt.push(Ja)}if(mi!==2)return mi;for(var Te=Tt.map(function(oc){return oc.oldFile}),vr=0,Sr=Dt;vr<Sr.length;vr++){var Di=Sr[vr];if(!e.contains(Te,Di))for(var nt=0,_a=Di.ambientModuleNames;nt<_a.length;nt++){var Na=_a[nt];n.set(Na,Di.fileName)}}for(var wn=0,no=Tt;wn<no.length;wn++){var Go=no[wn],ha=Go.oldFile,Ja=Go.newFile,vo=m(Ja),Vn=wi(vo,Ja),to=e.hasChangesInResolutions(vo,Vn,ha.resolvedModules,ha,e.moduleResolutionIsEqualTo);to?(mi=1,Ja.resolvedModules=e.zipToModeAwareCache(Ja,vo,Vn)):Ja.resolvedModules=ha.resolvedModules;var Jo=e.map(Ja.typeReferenceDirectives,function(fu){return e.toFileNameLowerCase(fu.fileName)}),Xo=Ci(Jo,Ja),Wr=e.hasChangesInResolutions(Jo,Xo,ha.resolvedTypeReferenceDirectiveNames,ha,e.typeDirectiveIsEqualTo);Wr?(mi=1,Ja.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(Ja,Jo,Xo)):Ja.resolvedTypeReferenceDirectiveNames=ha.resolvedTypeReferenceDirectiveNames}if(mi!==2)return mi;if(e.changesAffectingProgramStructure(fi,he)||((Vr=Rr.hasChangedAutomaticTypeDirectiveNames)===null||Vr===void 0?void 0:Vr.call(Rr)))return 1;v=Se.getMissingFilePaths(),e.Debug.assert(rt.length===Se.getSourceFiles().length);for(var Ws=0,nu=rt;Ws<nu.length;Ws++){var Ja=nu[Ws];Me.set(Ja.path,Ja)}var Tu=Se.getFilesByNameMap();return Tu.forEach(function(oc,Qc){if(!oc){Me.set(Qc,oc);return}if(oc.path===Qc){Se.isSourceFileFromExternalLibrary(oc)&&Jr.set(oc.path,!0);return}Me.set(Qc,Me.get(oc.path))}),cr=rt,Er=Se.getFileIncludeReasons(),Le=Se.getFileProcessingDiagnostics(),Ce=Se.getResolvedTypeReferenceDirectives(),_r=Se.sourceFileToPackageName,hr=Se.redirectTargetsMap,Dr=Se.usesUriStyleNodeCoreModules,2}function tt(Vr){return{getPrependNodes:qr,getCanonicalFileName:ti,getCommonSourceDirectory:Vt.getCommonSourceDirectory,getCompilerOptions:Vt.getCompilerOptions,getCurrentDirectory:function(){return li},getNewLine:function(){return Rr.getNewLine()},getSourceFile:Vt.getSourceFile,getSourceFileByPath:Vt.getSourceFileByPath,getSourceFiles:Vt.getSourceFiles,getLibFileFromReference:Vt.getLibFileFromReference,isSourceFileFromExternalLibrary:bn,getResolvedProjectReferenceToRedirect:yn,getProjectReferenceRedirect:$t,isSourceOfProjectReferenceRedirect:Mn,getSymlinkCache:au,writeFile:Vr||function(fi,Ni,rt,Tt,Dt){return Rr.writeFile(fi,Ni,rt,Tt,Dt)},isEmitBlocked:Vo,readFile:function(fi){return Rr.readFile(fi)},fileExists:function(fi){var Ni=Bt(fi);return ro(Ni)?!0:e.contains(v,Ni)?!1:Rr.fileExists(fi)},useCaseSensitiveFileNames:function(){return Rr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Vt.getProgramBuildInfo&&Vt.getProgramBuildInfo()},getSourceFileFromReference:function(fi,Ni){return Vt.getSourceFileFromReference(fi,Ni)},redirectTargetsMap:hr,getFileIncludeReasons:Vt.getFileIncludeReasons}}function ta(Vr){e.Debug.assert(!e.outFile(he)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var fi=e.emitFiles(e.notImplementedResolver,tt(Vr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),fi}function Xa(){return ze}function on(){return ye}function qr(){return oe(ye,function(Vr,fi){var Ni;return(Ni=ze[fi])===null||Ni===void 0?void 0:Ni.commandLine},function(Vr){var fi=Bt(Vr),Ni=ro(fi);return Ni?Ni.text:Me.has(fi)?void 0:Rr.readFile(fi)})}function bn(Vr){return!!Jr.get(Vr.path)}function Rn(Vr){if(Vr.hasNoDefaultLib)return!0;if(!he.noLib)return!1;var fi=Rr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return he.lib?e.some(he.lib,function(Ni){return fi(Vr.fileName,et(Ni))}):fi(Vr.fileName,or())}function Sn(){return dr||(dr=e.createTypeChecker(Vt,!0))}function zn(){dr=void 0}function Zn(){return Br||(Br=e.createTypeChecker(Vt,!1))}function ho(Vr,fi,Ni,rt,Tt,Dt){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Vr==null?void 0:Vr.path},!0);var jt=xo(function(){return Cn(Vt,Vr,fi,Ni,rt,Tt,Dt)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),jt}function Vo(Vr){return ft.has(Bt(Vr))}function Cn(Vr,fi,Ni,rt,Tt,Dt,jt){if(!jt){var na=U(Vr,fi,Ni,rt);if(na)return na}var Za=Sn().getEmitResolver(e.outFile(he)?void 0:fi,rt);e.performance.mark("beforeEmit");var ya=e.emitFiles(Za,tt(Ni),fi,e.getTransformers(he,Dt,Tt),Tt,!1,jt);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),ya}function go(Vr){return ro(Bt(Vr))}function ro(Vr){return Me.get(Vr)||void 0}function Ko(Vr,fi,Ni){return Vr?fi(Vr,Ni):e.sortAndDeduplicateDiagnostics(e.flatMap(Vt.getSourceFiles(),function(rt){return Ni&&Ni.throwIfCancellationRequested(),fi(rt,Ni)}))}function rs(Vr,fi){return Ko(Vr,wo,fi)}function rn(Vr,fi){return Ko(Vr,ds,fi)}function Do(Vr){var fi;return Vr?(fi=br.perFile)===null||fi===void 0?void 0:fi.get(Vr.path):br.allDiagnostics}function io(Vr,fi){return No(Vr,fi)}function pn(Vr){var fi;if(e.skipTypeChecking(Vr,he,Vt))return e.emptyArray;var Ni=ei.getDiagnostics(Vr.fileName);return!((fi=Vr.commentDirectives)===null||fi===void 0)&&fi.length?xr(Vr,Vr.commentDirectives,Ni).diagnostics:Ni}function Qn(Vr,fi){var Ni=Vt.getCompilerOptions();return!Vr||e.outFile(Ni)?Ka(Vr,fi):Ko(Vr,h,fi)}function wo(Vr){return e.isSourceFileJS(Vr)?(Vr.additionalSyntacticDiagnostics||(Vr.additionalSyntacticDiagnostics=Ht(Vr)),e.concatenate(Vr.additionalSyntacticDiagnostics,Vr.parseDiagnostics)):Vr.parseDiagnostics}function xo(Vr){try{return Vr()}catch(fi){throw fi instanceof e.OperationCanceledException&&(Br=void 0,dr=void 0),fi}}function ds(Vr,fi){return e.concatenate(z(No(Vr,fi),he),pn(Vr))}function No(Vr,fi){return Ke(Vr,fi,br,Ts)}function Ts(Vr,fi){return xo(function(){if(e.skipTypeChecking(Vr,he,Vt))return e.emptyArray;var Ni=Sn();e.Debug.assert(!!Vr.bindDiagnostics);var rt=Vr.scriptKind===1||Vr.scriptKind===2,Tt=rt&&e.isCheckJsEnabledForFile(Vr,he),Dt=e.isPlainJsFile(Vr,he.checkJs),jt=!!Vr.checkJsDirective&&Vr.checkJsDirective.enabled===!1,na=!jt&&(Vr.scriptKind===3||Vr.scriptKind===4||Vr.scriptKind===5||Dt||Tt||Vr.scriptKind===7),Za=na?Vr.bindDiagnostics:e.emptyArray,ya=na?Ni.getDiagnostics(Vr,fi):e.emptyArray;return Dt&&(Za=e.filter(Za,function(ha){return e.plainJSErrors.has(ha.code)}),ya=e.filter(ya,function(ha){return e.plainJSErrors.has(ha.code)})),Ms(Vr,na&&!Dt,Za,ya,Tt?Vr.jsDocDiagnostics:void 0)})}function Ms(Vr,fi){for(var Ni,rt=[],Tt=2;Tt<arguments.length;Tt++)rt[Tt-2]=arguments[Tt];var Dt=e.flatten(rt);if(!fi||!(!((Ni=Vr.commentDirectives)===null||Ni===void 0)&&Ni.length))return Dt;for(var jt=xr(Vr,Vr.commentDirectives,Dt),na=jt.diagnostics,Za=jt.directives,ya=0,ha=Za.getUnusedExpectations();ya<ha.length;ya++){var Ja=ha[ya];na.push(e.createDiagnosticForRange(Vr,Ja.range,e.Diagnostics.Unused_ts_expect_error_directive))}return na}function xr(Vr,fi,Ni){var rt=e.createCommentDirectivesMap(Vr,fi),Tt=Ni.filter(function(Dt){return ut(Dt,rt)===-1});return{diagnostics:Tt,directives:rt}}function bi(Vr,fi){return xo(function(){return Sn().getSuggestionDiagnostics(Vr,fi)})}function ut(Vr,fi){var Ni=Vr.file,rt=Vr.start;if(!Ni)return-1;for(var Tt=e.getLineStarts(Ni),Dt=e.computeLineAndCharacterOfPosition(Tt,rt).line-1;Dt>=0;){if(fi.markUsed(Dt))return Dt;var jt=Ni.text.slice(Tt[Dt],Tt[Dt+1]).trim();if(jt!==""&&!/^(\s*)\/\/(.*)$/.test(jt))return-1;Dt--}return-1}function Ht(Vr){return xo(function(){var fi=[];return Ni(Vr,Vr),e.forEachChildRecursively(Vr,Ni,rt),fi;function Ni(na,Za){switch(Za.kind){case 163:case 166:case 168:if(Za.questionToken===na)return fi.push(jt(na,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(Za.type===na)return fi.push(jt(na,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(na.kind){case 266:if(na.isTypeOnly)return fi.push(jt(Za,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(na.isTypeOnly)return fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return fi.push(jt(na,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(na.isExportEquals)return fi.push(jt(na,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:var ya=na;if(ya.token===117)return fi.push(jt(na,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var ha=e.tokenToString(118);return e.Debug.assertIsDefined(ha),fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ha)),"skip";case 260:var Ja=na.flags&16?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(Ja),fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Ja)),"skip";case 258:return fi.push(jt(na,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var Eo=e.Debug.checkDefined(e.tokenToString(92));return fi.push(jt(na,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Eo)),"skip";case 229:return fi.push(jt(na,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return fi.push(jt(na.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function rt(na,Za){switch(Za.decorators===na&&!he.experimentalDecorators&&fi.push(jt(Za,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),Za.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(na===Za.typeParameters)return fi.push(Dt(na,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(na===Za.modifiers)return Tt(Za.modifiers,Za.kind===236),"skip";break;case 166:if(na===Za.modifiers){for(var ya=0,ha=na;ya<ha.length;ya++){var Ja=ha[ya];Ja.kind!==124&&fi.push(jt(Ja,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Ja.kind)))}return"skip"}break;case 163:if(na===Za.modifiers)return fi.push(Dt(na,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(na===Za.typeArguments)return fi.push(Dt(na,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Tt(na,Za){for(var ya=0,ha=na;ya<ha.length;ya++){var Ja=ha[ya];switch(Ja.kind){case 85:if(Za)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:fi.push(jt(Ja,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Ja.kind)));break;case 124:case 93:case 88:}}}function Dt(na,Za,ya,ha,Ja){var Eo=na.pos;return e.createFileDiagnostic(Vr,Eo,na.end-Eo,Za,ya,ha,Ja)}function jt(na,Za,ya,ha,Ja){return e.createDiagnosticForNodeInSourceFile(Vr,na,Za,ya,ha,Ja)}})}function Ka(Vr,fi){return Ke(Vr,fi,Pr,an)}function an(Vr,fi){return xo(function(){var Ni=Sn().getEmitResolver(Vr,fi);return e.getDeclarationDiagnostics(tt(e.noop),Ni,Vr)||e.emptyArray})}function Ke(Vr,fi,Ni,rt){var Tt,Dt=Vr?(Tt=Ni.perFile)===null||Tt===void 0?void 0:Tt.get(Vr.path):Ni.allDiagnostics;if(Dt)return Dt;var jt=rt(Vr,fi);return Vr?(Ni.perFile||(Ni.perFile=new e.Map)).set(Vr.path,jt):Ni.allDiagnostics=jt,jt}function h(Vr,fi){return Vr.isDeclarationFile?[]:Ka(Vr,fi)}function Ee(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ei.getGlobalDiagnostics(),Re()))}function Re(){if(!he.configFile)return e.emptyArray;var Vr=ei.getDiagnostics(he.configFile.fileName);return An(function(fi){Vr=e.concatenate(Vr,ei.getDiagnostics(fi.sourceFile.fileName))}),Vr}function nr(){return er.length?e.sortAndDeduplicateDiagnostics(Sn().getGlobalDiagnostics().slice()):e.emptyArray}function Gr(){return we||e.emptyArray}function _i(Vr,fi,Ni,rt){so(e.normalizePath(Vr),fi,Ni,void 0,rt)}function Ei(Vr,fi){return Vr.fileName===fi.fileName}function Ki(Vr,fi){return Vr.kind===79?fi.kind===79&&Vr.escapedText===fi.escapedText:fi.kind===10&&Vr.text===fi.text}function Nt(Vr,fi){var Ni=e.factory.createStringLiteral(Vr),rt=e.factory.createImportDeclaration(void 0,void 0,void 0,Ni,void 0);return e.addEmitFlags(rt,67108864),e.setParent(Ni,rt),e.setParent(rt,fi),Ni.flags&=-9,rt.flags&=-9,Ni}function ca(Vr){if(Vr.imports)return;var fi=e.isSourceFileJS(Vr),Ni=e.isExternalModule(Vr),rt,Tt,Dt;if((he.isolatedModules||Ni)&&!Vr.isDeclarationFile){he.importHelpers&&(rt=[Nt(e.externalHelpersModuleNameText,Vr)]);var jt=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(he,Vr),he);jt&&(rt||(rt=[])).push(Nt(jt,Vr))}for(var na=0,Za=Vr.statements;na<Za.length;na++){var ya=Za[na];ha(ya,!1)}(Vr.flags&1048576||fi)&&Ja(Vr),Vr.imports=rt||e.emptyArray,Vr.moduleAugmentations=Tt||e.emptyArray,Vr.ambientModuleNames=Dt||e.emptyArray;return;function ha(Hn,lo){if(e.isAnyImportOrReExport(Hn)){var Kn=e.getExternalModuleName(Hn);Kn&&e.isStringLiteral(Kn)&&Kn.text&&(!lo||!e.isExternalModuleNameRelative(Kn.text))&&(e.setParentRecursive(Hn,!1),rt=e.append(rt,Kn),!Dr&&Cr===0&&!Vr.isDeclarationFile&&(Dr=e.startsWith(Kn.text,"node:")))}else if(e.isModuleDeclaration(Hn)&&e.isAmbientModule(Hn)&&(lo||e.hasSyntacticModifier(Hn,2)||Vr.isDeclarationFile)){Hn.name.parent=Hn;var Te=e.getTextOfIdentifierOrLiteral(Hn.name);if(Ni||lo&&!e.isExternalModuleNameRelative(Te))(Tt||(Tt=[])).push(Hn.name);else if(!lo){Vr.isDeclarationFile&&(Dt||(Dt=[])).push(Te);var vr=Hn.body;if(vr)for(var Sr=0,Di=vr.statements;Sr<Di.length;Sr++){var nt=Di[Sr];ha(nt,!0)}}}}function Ja(Hn){for(var lo=/import|require/g;lo.exec(Hn.text)!==null;){var Kn=Eo(Hn,lo.lastIndex);fi&&e.isRequireCall(Kn,!0)||e.isImportCall(Kn)&&Kn.arguments.length>=1&&e.isStringLiteralLike(Kn.arguments[0])?(e.setParentRecursive(Kn,!1),rt=e.append(rt,Kn.arguments[0])):e.isLiteralImportTypeNode(Kn)&&(e.setParentRecursive(Kn,!1),rt=e.append(rt,Kn.argument.literal))}}function Eo(Hn,lo){for(var Kn=Hn,Te=function(Sr){if(Sr.pos<=lo&&(lo<Sr.end||lo===Sr.end&&Sr.kind===1))return Sr};;){var vr=fi&&e.hasJSDocNodes(Kn)&&e.forEach(Kn.jsDoc,Te)||e.forEachChild(Kn,Te);if(!vr)return Kn;Kn=vr}}}function Fa(Vr){var fi=e.toFileNameLowerCase(Vr.fileName),Ni=e.libMap.get(fi);if(Ni)return go(et(Ni))}function Ta(Vr,fi){return In(O(fi.fileName,Vr.fileName),go)}function In(Vr,fi,Ni,rt){if(e.hasExtension(Vr)){var Tt=Rr.getCanonicalFileName(Vr);if(!he.allowNonTsExtensions&&!e.forEach(e.flatten(qi),function(ya){return e.fileExtensionIs(Tt,ya)})){Ni&&(e.hasJSFileExtension(Tt)?Ni(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Vr):Ni(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Vr,"'"+e.flatten(Si).join("', '")+"'"));return}var Dt=fi(Vr);if(Ni)if(Dt)ee(rt)&&Tt===Rr.getCanonicalFileName(ro(rt.file).fileName)&&Ni(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var jt=$t(Vr);jt?Ni(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,jt,Vr):Ni(e.Diagnostics.File_0_not_found,Vr)}return Dt}else{var na=he.allowNonTsExtensions&&fi(Vr);if(na)return na;if(Ni&&he.allowNonTsExtensions){Ni(e.Diagnostics.File_0_not_found,Vr);return}var Za=e.forEach(Si[0],function(ya){return fi(Vr+ya)});return Ni&&!Za&&Ni(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Vr,"'"+e.flatten(Si).join("', '")+"'"),Za}}function so(Vr,fi,Ni,rt,Tt){In(Vr,function(Dt){return Os(Dt,fi,Ni,Tt,rt)},function(Dt){for(var jt=[],na=1;na<arguments.length;na++)jt[na-1]=arguments[na];return jr(void 0,Tt,Dt,jt)},Tt)}function as(Vr,fi){return so(Vr,!1,!1,void 0,fi)}function Ho(Vr,fi,Ni){var rt=!ee(Ni)&&e.some(Er.get(fi.path),ee);rt?jr(fi,Ni,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[fi.fileName,Vr]):jr(fi,Ni,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Vr,fi.fileName])}function Ds(Vr,fi,Ni,rt,Tt,Dt){var jt=Object.create(Vr);return jt.fileName=Ni,jt.path=rt,jt.resolvedPath=Tt,jt.originalFileName=Dt,jt.redirectInfo={redirectTarget:Vr,unredirected:fi},Jr.set(rt,Cr>0),Object.defineProperties(jt,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(na){this.redirectInfo.redirectTarget.id=na}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(na){this.redirectInfo.redirectTarget.symbol=na}}}),jt}function Os(Vr,fi,Ni,rt,Tt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Vr,isDefaultLib:fi||void 0,fileIncludeKind:e.FileIncludeKind[rt.kind]});var Dt=mc(Vr,fi,Ni,rt,Tt);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Dt}function mc(Vr,fi,Ni,rt,Tt){var Dt=Bt(Vr);if(Xr){var jt=Pa(Dt);if(!jt&&Rr.realpath&&he.preserveSymlinks&&e.isDeclarationFileName(Vr)&&e.stringContains(Vr,e.nodeModulesPathPart)){var na=Bt(Rr.realpath(Vr));na!==Dt&&(jt=Pa(na))}if(jt){var Za=e.isString(jt)?Os(jt,fi,Ni,rt,Tt):void 0;return Za&&Mi(Za,Dt,void 0),Za}}var ya=Vr;if(Me.has(Dt)){var ha=Me.get(Dt);if(Hs(ha||void 0,rt),ha&&he.forceConsistentCasingInFileNames){var Ja=ha.fileName,Eo=Bt(Ja)!==Bt(Vr);Eo&&(Vr=$t(Vr)||Vr);var Hn=e.getNormalizedAbsolutePathWithoutRoot(Ja,li),lo=e.getNormalizedAbsolutePathWithoutRoot(Vr,li);Hn!==lo&&Ho(Vr,ha,rt)}return ha&&Jr.get(ha.path)&&Cr===0?(Jr.set(ha.path,!1),he.noResolve||(co(ha,fi),De(ha)),he.noLib||je(ha),Lr.set(ha.path,!1),mt(ha)):ha&&Lr.get(ha.path)&&Cr<Xe&&(Lr.set(ha.path,!1),mt(ha)),ha||void 0}var Kn;if(ee(rt)&&!Xr){var Te=ga(Vr);if(Te){if(e.outFile(Te.commandLine.options))return;var vr=xn(Te,Vr);Vr=vr,Kn=Bt(vr)}}var Sr=Rr.getSourceFile(Vr,e.getEmitScriptTarget(he),function(no){return jr(void 0,rt,e.Diagnostics.Cannot_read_file_0_Colon_1,[Vr,no])},si);if(Tt){var Di=e.packageIdToString(Tt),nt=Qe.get(Di);if(nt){var _a=Ds(nt,Sr,Vr,Dt,Bt(Vr),ya);return hr.add(nt.path,Vr),Mi(_a,Dt,Kn),Hs(_a,rt),_r.set(Dt,e.packageIdToPackageName(Tt)),Fe.push(_a),_a}else Sr&&(Qe.set(Di,Sr),_r.set(Dt,e.packageIdToPackageName(Tt)))}if(Mi(Sr,Dt,Kn),Sr){if(Jr.set(Dt,Cr>0),Sr.fileName=Vr,Sr.path=Dt,Sr.resolvedPath=Bt(Vr),Sr.originalFileName=ya,Sr.impliedNodeFormat=l(Sr.resolvedPath,aa==null?void 0:aa.getPackageJsonInfoCache(),Rr,he),Hs(Sr,rt),Rr.useCaseSensitiveFileNames()){var Na=e.toFileNameLowerCase(Dt),wn=xe.get(Na);wn?Ho(Vr,wn,rt):xe.set(Na,Sr)}be=be||Sr.hasNoDefaultLib&&!Ni,he.noResolve||(co(Sr,fi),De(Sr)),he.noLib||je(Sr),mt(Sr),fi?ge.push(Sr):Fe.push(Sr)}return Sr}function Hs(Vr,fi){Vr&&Er.add(Vr.path,fi)}function Mi(Vr,fi,Ni){Ni?(Me.set(Ni,Vr),Me.set(fi,Vr||!1)):Me.set(fi,Vr)}function $t(Vr){var fi=ga(Vr);return fi&&xn(fi,Vr)}function ga(Vr){if(!(!ze||!ze.length||e.fileExtensionIs(Vr,".d.ts")||e.fileExtensionIs(Vr,".json")))return yn(Vr)}function xn(Vr,fi){var Ni=e.outFile(Vr.commandLine.options);return Ni?e.changeExtension(Ni,".d.ts"):e.getOutputDeclarationFileName(fi,Vr.commandLine,!Rr.useCaseSensitiveFileNames())}function yn(Vr){Oe===void 0&&(Oe=new e.Map,An(function(Ni){Bt(he.configFilePath)!==Ni.sourceFile.path&&Ni.commandLine.fileNames.forEach(function(rt){return Oe.set(Bt(rt),Ni.sourceFile.path)})}));var fi=Oe.get(Bt(Vr));return fi&&ao(fi)}function An(Vr){return e.forEachResolvedProjectReference(ze,Vr)}function Pa(Vr){if(!!e.isDeclarationFileName(Vr))return Fr===void 0&&(Fr=new e.Map,An(function(fi){var Ni=e.outFile(fi.commandLine.options);if(Ni){var rt=e.changeExtension(Ni,".d.ts");Fr.set(Bt(rt),!0)}else{var Tt=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(fi.commandLine,!Rr.useCaseSensitiveFileNames())});e.forEach(fi.commandLine.fileNames,function(Dt){if(!e.fileExtensionIs(Dt,".d.ts")&&!e.fileExtensionIs(Dt,".json")){var jt=e.getOutputDeclarationFileName(Dt,fi.commandLine,!Rr.useCaseSensitiveFileNames(),Tt);Fr.set(Bt(jt),Dt)}})}})),Fr.get(Vr)}function Mn(Vr){return Xr&&!!yn(Vr)}function ao(Vr){if(!!Je)return Je.get(Vr)||void 0}function co(Vr,fi){e.forEach(Vr.referencedFiles,function(Ni,rt){so(O(Ni.fileName,Vr.fileName),fi,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Vr.path,index:rt})})}function De(Vr){var fi=e.map(Vr.typeReferenceDirectives,function(na){return e.toFileNameLowerCase(na.fileName)});if(!!fi)for(var Ni=Ci(fi,Vr),rt=0;rt<fi.length;rt++){var Tt=Vr.typeReferenceDirectives[rt],Dt=Ni[rt],jt=e.toFileNameLowerCase(Tt.fileName);e.setResolvedTypeReferenceDirective(Vr,jt,Dt),zr(jt,Dt,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Vr.path,index:rt})}}function zr(Vr,fi,Ni){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Vr,hasResolved:!!wi,refKind:Ni.kind,refPath:ee(Ni)?Ni.file:void 0}),xi(Vr,fi,Ni),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function xi(Vr,fi,Ni){var rt=Ce.get(Vr);if(!(rt&&rt.primary)){var Tt=!0;if(fi){if(fi.isExternalLibraryImport&&Cr++,fi.primary)so(fi.resolvedFileName,!1,!1,fi.packageId,Ni);else if(rt){if(fi.resolvedFileName!==rt.resolvedFileName){var Dt=Rr.readFile(fi.resolvedFileName),jt=go(rt.resolvedFileName);Dt!==jt.text&&jr(jt,Ni,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Vr,fi.resolvedFileName,rt.resolvedFileName])}Tt=!1}else so(fi.resolvedFileName,!1,!1,fi.packageId,Ni);fi.isExternalLibraryImport&&Cr--}else jr(void 0,Ni,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Vr]);Tt&&Ce.set(Vr,fi)}}function et(Vr){for(var fi=Vr.split("."),Ni=fi[1],rt=2;fi[rt]&&fi[rt]!=="d";)Ni+=(rt===2?"/":"-")+fi[rt],rt++;var Tt=e.combinePaths(li,"__lib_node_modules_lookup_".concat(Vr,"__.ts")),Dt=e.resolveModuleName("@typescript/lib-"+Ni,Tt,{moduleResolution:e.ModuleResolutionKind.NodeJs},Rr,aa);return Dt!=null&&Dt.resolvedModule?Dt.resolvedModule.resolvedFileName:e.combinePaths(Kr,Vr)}function je(Vr){e.forEach(Vr.libReferenceDirectives,function(fi,Ni){var rt=e.toFileNameLowerCase(fi.fileName),Tt=e.libMap.get(rt);if(Tt)_i(et(Tt),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Vr.path,index:Ni});else{var Dt=e.removeSuffix(e.removePrefix(rt,"lib."),".d.ts"),jt=e.getSpellingSuggestion(Dt,e.libs,e.identity),na=jt?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(Le||(Le=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Vr.path,index:Ni},diagnostic:na,args:[rt,jt]})}})}function ti(Vr){return Rr.getCanonicalFileName(Vr)}function mt(Vr){var fi;if(ca(Vr),Vr.imports.length||Vr.moduleAugmentations.length){var Ni=m(Vr),rt=wi(Ni,Vr);e.Debug.assert(rt.length===Ni.length);for(var Tt=(Xr?(fi=Hi(Vr))===null||fi===void 0?void 0:fi.commandLine.options:void 0)||he,Dt=0;Dt<Ni.length;Dt++){var jt=rt[Dt];if(e.setResolvedModule(Vr,Ni[Dt],jt,Y(Vr,Dt)),!!jt){var na=jt.isExternalLibraryImport,Za=!e.resolutionExtensionIsTSOrJson(jt.extension),ya=na&&Za,ha=jt.resolvedFileName;na&&Cr++;var Ja=ya&&Cr>Xe,Eo=ha&&!ce(Tt,jt)&&!Tt.noResolve&&Dt<Vr.imports.length&&!Ja&&!(Za&&!e.getAllowJSCompilerOption(Tt))&&(e.isInJSFile(Vr.imports[Dt])||!(Vr.imports[Dt].flags&4194304));Ja?Lr.set(Vr.path,!0):Eo&&Os(ha,!1,!1,{kind:e.FileIncludeKind.Import,file:Vr.path,index:Dt},jt.packageId),na&&Cr--}}}else Vr.resolvedModules=void 0}function Zt(Vr,fi){for(var Ni=!0,rt=Rr.getCanonicalFileName(e.getNormalizedAbsolutePath(fi,li)),Tt=0,Dt=Vr;Tt<Dt.length;Tt++){var jt=Dt[Tt];if(!jt.isDeclarationFile){var na=Rr.getCanonicalFileName(e.getNormalizedAbsolutePath(jt.fileName,li));na.indexOf(rt)!==0&&(is(jt,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[jt.fileName,fi]),Ni=!1)}}return Ni}function ln(Vr){Je||(Je=new e.Map);var fi=ve(Vr),Ni=Bt(fi),rt=Je.get(Ni);if(rt!==void 0)return rt||void 0;var Tt,Dt;if(Rr.getParsedCommandLine){if(Tt=Rr.getParsedCommandLine(fi),!Tt){Mi(void 0,Ni,void 0),Je.set(Ni,!1);return}Dt=e.Debug.checkDefined(Tt.options.configFile),e.Debug.assert(!Dt.path||Dt.path===Ni),Mi(Dt,Ni,void 0)}else{var jt=e.getNormalizedAbsolutePath(e.getDirectoryPath(fi),Rr.getCurrentDirectory());if(Dt=Rr.getSourceFile(fi,100),Mi(Dt,Ni,void 0),Dt===void 0){Je.set(Ni,!1);return}Tt=e.parseJsonSourceFileConfigFileContent(Dt,ci,jt,void 0,fi)}Dt.fileName=fi,Dt.path=Ni,Dt.resolvedPath=Ni,Dt.originalFileName=fi;var na={commandLine:Tt,sourceFile:Dt};return Je.set(Ni,na),Tt.projectReferences&&(na.references=Tt.projectReferences.map(ln)),na}function Ba(){var Vr=e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders");Vr||(e.getEmitModuleKind(he)===e.ModuleKind.Node12?Xc("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(he)===e.ModuleKind.NodeNext?Xc("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(he)===e.ModuleResolutionKind.Node12?Xc("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(he)===e.ModuleResolutionKind.NodeNext&&Xc("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),he.strictPropertyInitialization&&!e.getStrictOptionValue(he,"strictNullChecks")&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),he.exactOptionalPropertyTypes&&!e.getStrictOptionValue(he,"strictNullChecks")&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),he.isolatedModules&&(he.out&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),he.outFile&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),he.inlineSourceMap&&(he.sourceMap&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),he.mapRoot&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),he.composite&&(he.declaration===!1&&uo(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),he.incremental===!1&&uo(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var fi=e.outFile(he);if(he.tsBuildInfoFile?e.isIncrementalCompilation(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):he.incremental&&!fi&&!he.configFilePath&&ei.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),nc(),he.composite)for(var Ni=new e.Set(er.map(Bt)),rt=0,Tt=cr;rt<Tt.length;rt++){var Dt=Tt[rt];e.sourceFileMayBeEmitted(Dt,Vt)&&!Ni.has(Dt.path)&&is(Dt,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Dt.fileName,he.configFilePath||""])}if(he.paths){for(var jt in he.paths)if(!!e.hasProperty(he.paths,jt))if(e.hasZeroOrOneAsteriskCharacter(jt)||Xs(!0,jt,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,jt),e.isArray(he.paths[jt])){var na=he.paths[jt].length;na===0&&Xs(!1,jt,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,jt);for(var Za=0;Za<na;Za++){var ya=he.paths[jt][Za],ha=typeof ya;ha==="string"?(e.hasZeroOrOneAsteriskCharacter(ya)||ns(jt,Za,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ya,jt),!he.baseUrl&&!e.pathIsRelative(ya)&&!e.pathIsAbsolute(ya)&&ns(jt,Za,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):ns(jt,Za,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ya,jt,ha)}}else Xs(!1,jt,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,jt)}!he.sourceMap&&!he.inlineSourceMap&&(he.inlineSources&&uo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),he.sourceRoot&&uo(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),he.out&&he.outFile&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),he.mapRoot&&!(he.sourceMap||he.declarationMap)&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),he.declarationDir&&(e.getEmitDeclarations(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),fi&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",he.out?"out":"outFile")),he.declarationMap&&!e.getEmitDeclarations(he)&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),he.lib&&he.noLib&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),he.noImplicitUseStrict&&e.getStrictOptionValue(he,"alwaysStrict")&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Ja=e.getEmitScriptTarget(he),Eo=e.find(cr,function(Di){return e.isExternalModule(Di)&&!Di.isDeclarationFile});if(he.isolatedModules){he.module===e.ModuleKind.None&&Ja<2&&uo(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),he.preserveConstEnums===!1&&uo(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var Hn=e.find(cr,function(Di){return!e.isExternalModule(Di)&&!e.isSourceFileJS(Di)&&!Di.isDeclarationFile&&Di.scriptKind!==6});if(Hn){var lo=e.getErrorSpanForNode(Hn,Hn);ei.add(e.createFileDiagnostic(Hn,lo.start,lo.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(Hn.fileName)))}}else if(Eo&&Ja<2&&he.module===e.ModuleKind.None){var lo=e.getErrorSpanForNode(Eo,Eo.externalModuleIndicator);ei.add(e.createFileDiagnostic(Eo,lo.start,lo.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(fi&&!he.emitDeclarationOnly){if(he.module&&!(he.module===e.ModuleKind.AMD||he.module===e.ModuleKind.System))uo(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,he.out?"out":"outFile","module");else if(he.module===void 0&&Eo){var lo=e.getErrorSpanForNode(Eo,Eo.externalModuleIndicator);ei.add(e.createFileDiagnostic(Eo,lo.start,lo.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,he.out?"out":"outFile"))}}if(he.resolveJsonModule&&(e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(he)!==e.ModuleResolutionKind.NodeNext?uo(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(he)||uo(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),he.outDir||he.rootDir||he.sourceRoot||he.mapRoot){var Kn=Pi();he.outDir&&Kn===""&&cr.some(function(Di){return e.getRootLength(Di.fileName)>1})&&uo(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(he.useDefineForClassFields&&Ja===0&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),he.checkJs&&!e.getAllowJSCompilerOption(he)&&ei.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),he.emitDeclarationOnly&&(e.getEmitDeclarations(he)||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),he.noEmit&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),he.emitDecoratorMetadata&&!he.experimentalDecorators&&uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),he.jsxFactory?(he.reactNamespace&&uo(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+he.jsx)),e.parseIsolatedEntityName(he.jsxFactory,Ja)||Xc("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,he.jsxFactory)):he.reactNamespace&&!e.isIdentifierText(he.reactNamespace,Ja)&&Xc("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,he.reactNamespace),he.jsxFragmentFactory&&(he.jsxFactory||uo(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+he.jsx)),e.parseIsolatedEntityName(he.jsxFragmentFactory,Ja)||Xc("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,he.jsxFragmentFactory)),he.reactNamespace&&(he.jsx===4||he.jsx===5)&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+he.jsx)),he.jsxImportSource&&he.jsx===2&&uo(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+he.jsx)),he.preserveValueImports&&e.getEmitModuleKind(he)<e.ModuleKind.ES2015&&Xc("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!he.noEmit&&!he.suppressOutputPathCheck){var Te=tt(),vr=new e.Set;e.forEachEmittedFile(Te,function(Di){he.emitDeclarationOnly||Sr(Di.jsFilePath,vr),Sr(Di.declarationFilePath,vr)})}function Sr(Di,nt){if(Di){var _a=Bt(Di);if(Me.has(_a)){var Na=void 0;he.configFilePath||(Na=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Na=e.chainDiagnosticMessages(Na,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Di),qa(Di,e.createCompilerDiagnosticFromMessageChain(Na))}var wn=Rr.useCaseSensitiveFileNames()?_a:e.toFileNameLowerCase(_a);nt.has(wn)?qa(Di,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Di)):nt.add(wn)}}}function Oo(Vr,fi,Ni,rt){var Tt,Dt,jt,na=ee(fi)?fi:void 0;Vr&&((Tt=Er.get(Vr.path))===null||Tt===void 0||Tt.forEach(Eo)),fi&&Eo(fi),na&&(Dt==null?void 0:Dt.length)===1&&(Dt=void 0);var Za=na&&f(ro,na),ya=Dt&&e.chainDiagnosticMessages(Dt,e.Diagnostics.The_file_is_in_the_program_because_Colon),ha=Vr&&e.explainIfFileIsRedirect(Vr),Ja=e.chainDiagnosticMessages.apply(void 0,qe([ha?ya?qe([ya],ha,!0):ha:ya,Ni],rt||e.emptyArray,!1));return Za&&A(Za)?e.createFileDiagnosticFromMessageChain(Za.file,Za.pos,Za.end-Za.pos,Ja,jt):e.createCompilerDiagnosticFromMessageChain(Ja,jt);function Eo(Hn){(Dt||(Dt=[])).push(e.fileIncludeReasonToDiagnostics(Vt,Hn)),!na&&ee(Hn)?na=Hn:na!==Hn&&(jt=e.append(jt,hc(Hn))),Hn===fi&&(fi=void 0)}}function jr(Vr,fi,Ni,rt){(Le||(Le=[])).push({kind:1,file:Vr&&Vr.path,fileProcessingReason:fi,diagnostic:Ni,args:rt})}function is(Vr,fi,Ni){ei.add(Oo(Vr,void 0,fi,Ni))}function hc(Vr){if(ee(Vr)){var fi=f(ro,Vr),Ni;switch(Vr.kind){case e.FileIncludeKind.Import:Ni=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Ni=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Ni=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Ni=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Vr)}return A(fi)?e.createFileDiagnostic(fi.file,fi.pos,fi.end-fi.pos,Ni):void 0}if(!!he.configFile){var rt,Tt;switch(Vr.kind){case e.FileIncludeKind.RootFile:if(!he.configFile.configFileSpecs)return;var Dt=e.getNormalizedAbsolutePath(er[Vr.index],li),jt=e.getMatchedFileSpec(Vt,Dt);if(jt){rt=e.getTsConfigPropArrayElementValue(he.configFile,"files",jt),Tt=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var na=e.getMatchedIncludeSpec(Vt,Dt);if(!na)return;rt=e.getTsConfigPropArrayElementValue(he.configFile,"include",na),Tt=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Za=e.Debug.checkDefined(ze==null?void 0:ze[Vr.index]),ya=ne(ye,ze,function(lo,Kn,Te){return lo===Za?{sourceFile:(Kn==null?void 0:Kn.sourceFile)||he.configFile,index:Te}:void 0});if(!ya)return;var ha=ya.sourceFile,Ja=ya.index,Eo=e.firstDefined(e.getTsConfigPropArray(ha,"references"),function(lo){return e.isArrayLiteralExpression(lo.initializer)?lo.initializer:void 0});return Eo&&Eo.elements.length>Ja?e.createDiagnosticForNodeInSourceFile(ha,Eo.elements[Ja],Vr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!he.types)return;rt=Qu("types",Vr.typeReference),Tt=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Vr.index!==void 0){rt=Qu("lib",he.lib[Vr.index]),Tt=e.Diagnostics.File_is_library_specified_here;break}var Hn=e.forEachEntry(e.targetOptionDeclaration.type,function(lo,Kn){return lo===e.getEmitScriptTarget(he)?Kn:void 0});rt=Hn?Bc("target",Hn):void 0,Tt=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Vr)}return rt&&e.createDiagnosticForNodeInSourceFile(he.configFile,rt,Tt)}}function nc(){var Vr=he.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(he);ne(ye,ze,function(fi,Ni,rt){var Tt=(Ni?Ni.commandLine.projectReferences:ye)[rt],Dt=Ni&&Ni.sourceFile;if(!fi){Ru(Dt,rt,e.Diagnostics.File_0_not_found,Tt.path);return}var jt=fi.commandLine.options;if(!jt.composite||jt.noEmit){var na=Ni?Ni.commandLine.fileNames:er;na.length&&(jt.composite||Ru(Dt,rt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,Tt.path),jt.noEmit&&Ru(Dt,rt,e.Diagnostics.Referenced_project_0_may_not_disable_emit,Tt.path))}if(Tt.prepend){var Za=e.outFile(jt);Za?Rr.fileExists(Za)||Ru(Dt,rt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Za,Tt.path):Ru(Dt,rt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Tt.path)}!Ni&&Vr&&Vr===e.getTsBuildInfoEmitOutputFilePath(jt)&&(Ru(Dt,rt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Vr,Tt.path),ft.set(Bt(Vr),!0))})}function ns(Vr,fi,Ni,rt,Tt,Dt){for(var jt=!0,na=uu(),Za=0,ya=na;Za<ya.length;Za++){var ha=ya[Za];if(e.isObjectLiteralExpression(ha.initializer))for(var Ja=0,Eo=e.getPropertyAssignment(ha.initializer,Vr);Ja<Eo.length;Ja++){var Hn=Eo[Ja],lo=Hn.initializer;e.isArrayLiteralExpression(lo)&&lo.elements.length>fi&&(ei.add(e.createDiagnosticForNodeInSourceFile(he.configFile,lo.elements[fi],Ni,rt,Tt,Dt)),jt=!1)}}jt&&ei.add(e.createCompilerDiagnostic(Ni,rt,Tt,Dt))}function Xs(Vr,fi,Ni,rt){for(var Tt=!0,Dt=uu(),jt=0,na=Dt;jt<na.length;jt++){var Za=na[jt];e.isObjectLiteralExpression(Za.initializer)&&lu(Za.initializer,Vr,fi,void 0,Ni,rt)&&(Tt=!1)}Tt&&ei.add(e.createCompilerDiagnostic(Ni,rt))}function rc(Vr){var fi=Yu();return fi&&e.getPropertyAssignment(fi,Vr)}function uu(){return rc("paths")||e.emptyArray}function Bc(Vr,fi){var Ni=rc(Vr);return Ni&&e.firstDefined(Ni,function(rt){return e.isStringLiteral(rt.initializer)&&rt.initializer.text===fi?rt.initializer:void 0})}function Qu(Vr,fi){var Ni=Yu();return Ni&&e.getPropertyArrayElementValue(Ni,Vr,fi)}function uo(Vr,fi,Ni,rt){Dc(!0,fi,Ni,Vr,fi,Ni,rt)}function Xc(Vr,fi,Ni,rt){Dc(!1,Vr,void 0,fi,Ni,rt)}function Ru(Vr,fi,Ni,rt,Tt){var Dt=e.firstDefined(e.getTsConfigPropArray(Vr||he.configFile,"references"),function(jt){return e.isArrayLiteralExpression(jt.initializer)?jt.initializer:void 0});Dt&&Dt.elements.length>fi?ei.add(e.createDiagnosticForNodeInSourceFile(Vr||he.configFile,Dt.elements[fi],Ni,rt,Tt)):ei.add(e.createCompilerDiagnostic(Ni,rt,Tt))}function Dc(Vr,fi,Ni,rt,Tt,Dt,jt){var na=Yu(),Za=!na||!lu(na,Vr,fi,Ni,rt,Tt,Dt,jt);Za&&ei.add(e.createCompilerDiagnostic(rt,Tt,Dt,jt))}function Yu(){if(bt===void 0){bt=!1;var Vr=e.getTsConfigObjectLiteralExpression(he.configFile);if(Vr)for(var fi=0,Ni=e.getPropertyAssignment(Vr,"compilerOptions");fi<Ni.length;fi++){var rt=Ni[fi];if(e.isObjectLiteralExpression(rt.initializer)){bt=rt.initializer;break}}}return bt||void 0}function lu(Vr,fi,Ni,rt,Tt,Dt,jt,na){for(var Za=e.getPropertyAssignment(Vr,Ni,rt),ya=0,ha=Za;ya<ha.length;ya++){var Ja=ha[ya];ei.add(e.createDiagnosticForNodeInSourceFile(he.configFile,fi?Ja.name:Ja.initializer,Tt,Dt,jt,na))}return!!Za.length}function qa(Vr,fi){ft.set(Bt(Vr),!0),ei.add(fi)}function Bu(Vr){if(he.noEmit)return!1;var fi=Bt(Vr);if(ro(fi))return!1;var Ni=e.outFile(he);if(Ni)return $u(fi,Ni)||$u(fi,e.removeFileExtension(Ni)+".d.ts");if(he.declarationDir&&e.containsPath(he.declarationDir,fi,li,!Rr.useCaseSensitiveFileNames()))return!0;if(he.outDir)return e.containsPath(he.outDir,fi,li,!Rr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(fi,e.supportedJSExtensionsFlat)||e.fileExtensionIs(fi,".d.ts")){var rt=e.removeFileExtension(fi);return!!ro(rt+".ts")||!!ro(rt+".tsx")}return!1}function $u(Vr,fi){return e.comparePaths(Vr,fi,li,!Rr.useCaseSensitiveFileNames())===0}function au(){return Rr.getSymlinkCache?Rr.getSymlinkCache():(ur||(ur=e.createSymlinkCache(li,ti)),cr&&Ce&&!ur.hasProcessedResolutions()&&ur.setSymlinksFromResolutions(cr,Ce),ur)}}e.createProgram=w;function j(ae){var V,le=ae.compilerHost.fileExists,ke=ae.compilerHost.directoryExists,Ue=ae.compilerHost.getDirectories,He=ae.compilerHost.realpath;if(!ae.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:me};ae.compilerHost.fileExists=me;var ar;return ke&&(ar=ae.compilerHost.directoryExists=function(ye){return ke.call(ae.compilerHost,ye)?(he(ye),!0):ae.getResolvedProjectReferences()?(V||(V=new e.Set,ae.forEachResolvedProjectReference(function(Se){var ge=e.outFile(Se.commandLine.options);if(ge)V.add(e.getDirectoryPath(ae.toPath(ge)));else{var Fe=Se.commandLine.options.declarationDir||Se.commandLine.options.outDir;Fe&&V.add(ae.toPath(Fe))}})),we(ye,!1)):!1}),Ue&&(ae.compilerHost.getDirectories=function(ye){return!ae.getResolvedProjectReferences()||ke&&ke.call(ae.compilerHost,ye)?Ue.call(ae.compilerHost,ye):[]}),He&&(ae.compilerHost.realpath=function(ye){var Se;return((Se=ae.getSymlinkCache().getSymlinkedFiles())===null||Se===void 0?void 0:Se.get(ae.toPath(ye)))||He.call(ae.compilerHost,ye)}),{onProgramCreateComplete:gr,fileExists:me,directoryExists:ar};function gr(){ae.compilerHost.fileExists=le,ae.compilerHost.directoryExists=ke,ae.compilerHost.getDirectories=Ue}function me(ye){return le.call(ae.compilerHost,ye)?!0:!ae.getResolvedProjectReferences()||!e.isDeclarationFileName(ye)?!1:we(ye,!0)}function Ge(ye){var Se=ae.getSourceOfProjectReferenceRedirect(ae.toPath(ye));return Se!==void 0?e.isString(Se)?le.call(ae.compilerHost,Se):!0:void 0}function er(ye){var Se=ae.toPath(ye),ge="".concat(Se).concat(e.directorySeparator);return e.forEachKey(V,function(Fe){return Se===Fe||e.startsWith(Fe,ge)||e.startsWith(Se,"".concat(Fe,"/"))})}function he(ye){var Se;if(!(!ae.getResolvedProjectReferences()||e.containsIgnoredPath(ye))&&!(!He||!e.stringContains(ye,e.nodeModulesPathPart))){var ge=ae.getSymlinkCache(),Fe=e.ensureTrailingDirectorySeparator(ae.toPath(ye));if(!(!((Se=ge.getSymlinkedDirectories())===null||Se===void 0)&&Se.has(Fe))){var cr=e.normalizePath(He.call(ae.compilerHost,ye)),ur;if(cr===ye||(ur=e.ensureTrailingDirectorySeparator(ae.toPath(cr)))===Fe){ge.setSymlinkedDirectory(Fe,!1);return}ge.setSymlinkedDirectory(ye,{real:e.ensureTrailingDirectorySeparator(cr),realPath:ur})}}}function we(ye,Se){var ge,Fe=Se?function(Br){return Ge(Br)}:function(Br){return er(Br)},cr=Fe(ye);if(cr!==void 0)return cr;var ur=ae.getSymlinkCache(),Ir=ur.getSymlinkedDirectories();if(!Ir)return!1;var dr=ae.toPath(ye);return e.stringContains(dr,e.nodeModulesPathPart)?Se&&((ge=ur.getSymlinkedFiles())===null||ge===void 0?void 0:ge.has(dr))?!0:e.firstDefinedIterator(Ir.entries(),function(Br){var Tr=Br[0],n=Br[1];if(!(!n||!e.startsWith(dr,Tr))){var Er=Fe(dr.replace(Tr,n.realPath));if(Se&&Er){var br=e.getNormalizedAbsolutePath(ye,ae.compilerHost.getCurrentDirectory());ur.setSymlinkedFile(dr,"".concat(n.real).concat(br.replace(new RegExp(Tr,"i"),"")))}return Er}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function U(ae,V,le,ke){var Ue=ae.getCompilerOptions();if(Ue.noEmit)return ae.getSemanticDiagnostics(V,ke),V||e.outFile(Ue)?e.emitSkippedWithNoDiagnostics:ae.emitBuildInfo(le,ke);if(!!Ue.noEmitOnError){var He=qe(qe(qe(qe([],ae.getOptionsDiagnostics(ke),!0),ae.getSyntacticDiagnostics(V,ke),!0),ae.getGlobalDiagnostics(ke),!0),ae.getSemanticDiagnostics(V,ke),!0);if(He.length===0&&e.getEmitDeclarations(ae.getCompilerOptions())&&(He=ae.getDeclarationDiagnostics(void 0,ke)),!!He.length){var ar;if(!V&&!e.outFile(Ue)){var gr=ae.emitBuildInfo(le,ke);gr.diagnostics&&(He=qe(qe([],He,!0),gr.diagnostics,!0)),ar=gr.emittedFiles}return{diagnostics:He,sourceMaps:void 0,emittedFiles:ar,emitSkipped:!0}}}}e.handleNoEmitOptions=U;function z(ae,V){return e.filter(ae,function(le){return!le.skippedOn||!V[le.skippedOn]})}e.filterSemanticDiagnostics=z;function y(ae,V){return V===void 0&&(V=ae),{fileExists:function(le){return V.fileExists(le)},readDirectory:function(le,ke,Ue,He,ar){return e.Debug.assertIsDefined(V.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),V.readDirectory(le,ke,Ue,He,ar)},readFile:function(le){return V.readFile(le)},useCaseSensitiveFileNames:ae.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return ae.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:ae.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:ae.trace?function(le){return ae.trace(le)}:void 0}}e.parseConfigHostFromCompilerHostLike=y;function oe(ae,V,le){if(!ae)return e.emptyArray;for(var ke,Ue=0;Ue<ae.length;Ue++){var He=ae[Ue],ar=V(He,Ue);if(He.prepend&&ar&&ar.options){var gr=e.outFile(ar.options);if(!gr)continue;var me=e.getOutputPathsForBundle(ar.options,!0),Ge=me.jsFilePath,er=me.sourceMapFilePath,he=me.declarationFilePath,we=me.declarationMapPath,ye=me.buildInfoPath,Se=e.createInputFiles(le,Ge,er,he,we,ye);(ke||(ke=[])).push(Se)}}return ke||e.emptyArray}e.createPrependNodes=oe;function ve(ae,V){var le=V||ae;return e.resolveConfigFileProjectName(le.path)}e.resolveProjectReferencePath=ve;function ce(ae,V){var le=V.extension;switch(le){case".ts":case".d.ts":return;case".tsx":return ke();case".jsx":return ke()||Ue();case".js":return Ue();case".json":return He()}function ke(){return ae.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Ue(){return e.getAllowJSCompilerOption(ae)||!e.getStrictOptionValue(ae,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function He(){return ae.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=ce;function m(ae){for(var V=ae.imports,le=ae.moduleAugmentations,ke=V.map(function(gr){return gr.text}),Ue=0,He=le;Ue<He.length;Ue++){var ar=He[Ue];ar.kind===10&&ke.push(ar.text)}return ke}function de(ae,V){var le=ae.imports,ke=ae.moduleAugmentations;if(V<le.length)return le[V];for(var Ue=le.length,He=0,ar=ke;He<ar.length;He++){var gr=ar[He];if(gr.kind===10){if(V===Ue)return gr;Ue++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=de})(Pe||(Pe={}));var Pe;(function(e){function a(L,W,N,Q,pe,F){var g=[],S=L.emit(W,C,Q,N,pe,F),H=S.emitSkipped,se=S.diagnostics,p=S.exportedModulesFromDeclarationEmit;return{outputFiles:g,emitSkipped:H,diagnostics:se,exportedModulesFromDeclarationEmit:p};function C(G,E,ue){g.push({name:G,writeByteOrderMark:ue,text:E})}}e.getFileEmitOutput=a;var O;(function(L){var W=0;function N(){function f(P,D,l){var _=0,J={id:W++,version:function(){return _},clone:function(){return f(new e.Map(P),new e.Map(D),l&&new e.Set(l))},forEach:function(w){return P.forEach(w)},getKeys:function(w){return D.get(w)},getValues:function(w){return P.get(w)},hasKey:function(w){return P.has(w)},keys:function(){return P.keys()},deletedKeys:function(){return l},deleteKey:function(w){(l||(l=new e.Set)).add(w);var j=P.get(w);return j?(j.forEach(function(U){return pe(D,U,w)}),P.delete(w),_++,!0):!1},set:function(w,j){var U=!!(l!=null&&l.delete(w)),z=P.get(w);return P.set(w,j),z==null||z.forEach(function(y){j.has(y)||(U=!0,pe(D,y,w))}),j.forEach(function(y){z!=null&&z.has(y)||(U=!0,Q(D,y,w))}),U&&_++,J}};return J}return f(new e.Map,new e.Map,void 0)}L.createManyToManyPathMap=N;function Q(f,P,D){var l=f.get(P);l||(l=new e.Set,f.set(P,l)),l.add(D)}function pe(f,P,D,l){l===void 0&&(l=!0);var _=f.get(P);return _!=null&&_.delete(D)?(l&&!_.size&&f.delete(P),!0):!1}function F(f){return e.mapDefined(f.declarations,function(P){var D;return(D=e.getSourceFileOfNode(P))===null||D===void 0?void 0:D.resolvedPath})}function g(f,P){var D=f.getSymbolAtLocation(P);return D&&F(D)}function S(f,P,D,l){return e.toPath(f.getProjectReferenceRedirect(P)||P,D,l)}function H(f,P,D){var l;if(P.imports&&P.imports.length>0)for(var _=f.getTypeChecker(),J=0,w=P.imports;J<w.length;J++){var j=w[J],U=g(_,j);U==null||U.forEach(ar)}var z=e.getDirectoryPath(P.resolvedPath);if(P.referencedFiles&&P.referencedFiles.length>0)for(var y=0,oe=P.referencedFiles;y<oe.length;y++){var ve=oe[y],ce=S(f,ve.fileName,z,D);ar(ce)}if(P.resolvedTypeReferenceDirectiveNames&&P.resolvedTypeReferenceDirectiveNames.forEach(function(gr){if(!!gr){var me=gr.resolvedFileName,Ge=S(f,me,z,D);ar(Ge)}}),P.moduleAugmentations.length)for(var _=f.getTypeChecker(),m=0,de=P.moduleAugmentations;m<de.length;m++){var ae=de[m];if(!!e.isStringLiteral(ae)){var V=_.getSymbolAtLocation(ae);!V||He(V)}}for(var le=0,ke=f.getTypeChecker().getAmbientModules();le<ke.length;le++){var Ue=ke[le];Ue.declarations&&Ue.declarations.length>1&&He(Ue)}return l;function He(gr){if(!!gr.declarations)for(var me=0,Ge=gr.declarations;me<Ge.length;me++){var er=Ge[me],he=e.getSourceFileOfNode(er);he&&he!==P&&ar(he.resolvedPath)}}function ar(gr){(l||(l=new e.Set)).add(gr)}}function se(f,P){return P&&!P.referencedMap==!f}L.canReuseOldState=se;function p(f,P,D,l){var _=new e.Map,J=f.getCompilerOptions().module!==e.ModuleKind.None?N():void 0,w=J?N():void 0,j=new e.Set,U=se(J,D);f.getTypeChecker();for(var z=0,y=f.getSourceFiles();z<y.length;z++){var oe=y[z],ve=e.Debug.checkDefined(oe.version,"Program intended to be used with Builder should have source files with versions set"),ce=U?D.fileInfos.get(oe.resolvedPath):void 0;if(J){var m=H(f,oe,P);if(m&&J.set(oe.resolvedPath,m),U){var de=D.exportedModulesMap.getValues(oe.resolvedPath);de&&w.set(oe.resolvedPath,de)}}_.set(oe.resolvedPath,{version:ve,signature:ce&&ce.signature,affectsGlobalScope:I(oe)||void 0,impliedFormat:oe.impliedNodeFormat})}return{fileInfos:_,referencedMap:J,exportedModulesMap:w,hasCalledUpdateShapeSignature:j,useFileVersionAsSignature:!l&&!U}}L.create=p;function C(f){f.allFilesExcludingDefaultLibraryFile=void 0,f.allFileNames=void 0}L.releaseCache=C;function G(f){var P,D;return{fileInfos:new e.Map(f.fileInfos),referencedMap:(P=f.referencedMap)===null||P===void 0?void 0:P.clone(),exportedModulesMap:(D=f.exportedModulesMap)===null||D===void 0?void 0:D.clone(),hasCalledUpdateShapeSignature:new e.Set(f.hasCalledUpdateShapeSignature),useFileVersionAsSignature:f.useFileVersionAsSignature}}L.clone=G;function E(f,P,D,l,_,J,w){var j=J||new e.Map,U=P.getSourceFileByPath(D);if(!U)return e.emptyArray;if(!re(f,P,U,j,l,_,w))return[U];var z=(f.referencedMap?A:ee)(f,P,U,j,l,_,w);return J||ue(f,j),z}L.getFilesAffectedBy=E;function ue(f,P){P.forEach(function(D,l){return B(f,D,l)})}L.updateSignaturesFromCache=ue;function B(f,P,D){f.fileInfos.get(D).signature=P,f.hasCalledUpdateShapeSignature.add(D)}L.updateSignatureOfFile=B;function re(f,P,D,l,_,J,w,j){if(j===void 0&&(j=f.useFileVersionAsSignature),e.Debug.assert(!!D),e.Debug.assert(!w||!!f.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),f.hasCalledUpdateShapeSignature.has(D.resolvedPath)||l.has(D.resolvedPath))return!1;var U=f.fileInfos.get(D.resolvedPath);if(!U)return e.Debug.fail();var z=U.signature,y;if(!D.isDeclarationFile&&!j){var oe=a(P,D,!0,_,void 0,!0),ve=e.firstOrUndefined(oe.outputFiles);ve&&(e.Debug.assert(e.fileExtensionIsOneOf(ve.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",function(){return"Found: ".concat(e.getAnyExtensionFromPath(ve.name)," for ").concat(ve.name,":: All output files: ").concat(JSON.stringify(oe.outputFiles.map(function(m){return m.name})))}),y=(J||e.generateDjb2Hash)(ve.text),w&&y!==z&&M(D,oe.exportedModulesFromDeclarationEmit,w))}if(y===void 0&&(y=D.version,w&&y!==z)){var ce=f.referencedMap?f.referencedMap.getValues(D.resolvedPath):void 0;ce?w.set(D.resolvedPath,ce):w.deleteKey(D.resolvedPath)}return l.set(D.resolvedPath,y),y!==z}L.updateShapeSignature=re;function M(f,P,D){if(!P){D.deleteKey(f.resolvedPath);return}var l;P.forEach(function(J){return _(F(J))}),l?D.set(f.resolvedPath,l):D.deleteKey(f.resolvedPath);function _(J){J!=null&&J.length&&(l||(l=new e.Set),J.forEach(function(w){return l.add(w)}))}}function x(f,P){var D;if(P){e.Debug.assert(!!f.exportedModulesMap);var l=P.id,_=P.version();if(f.previousCache){if(f.previousCache.id===l&&f.previousCache.version===_)return;f.previousCache.id=l,f.previousCache.version=_}else f.previousCache={id:l,version:_};(D=P.deletedKeys())===null||D===void 0||D.forEach(function(J){return f.exportedModulesMap.deleteKey(J)}),P.forEach(function(J,w){return f.exportedModulesMap.set(w,J)})}}L.updateExportedFilesMapFromCache=x;function ie(f,P,D){var l=P.getCompilerOptions();if(e.outFile(l)||!f.referencedMap||I(D))return _e(f,P);for(var _=new e.Set,J=[D.resolvedPath];J.length;){var w=J.pop();if(!_.has(w)){_.add(w);var j=f.referencedMap.getValues(w);if(j)for(var U=j.keys(),z=U.next();!z.done;z=U.next())J.push(z.value)}}return e.arrayFrom(e.mapDefinedIterator(_.keys(),function(y){var oe,ve;return(ve=(oe=P.getSourceFileByPath(y))===null||oe===void 0?void 0:oe.fileName)!==null&&ve!==void 0?ve:y}))}L.getAllDependencies=ie;function _e(f,P){if(!f.allFileNames){var D=P.getSourceFiles();f.allFileNames=D===e.emptyArray?e.emptyArray:D.map(function(l){return l.fileName})}return f.allFileNames}function Y(f,P){var D=f.referencedMap.getKeys(P);return D?e.arrayFrom(D.keys()):[]}L.getReferencedByPaths=Y;function Z(f){for(var P=0,D=f.statements;P<D.length;P++){var l=D[P];if(!e.isModuleWithStringLiteralName(l))return!1}return!0}function k(f){return e.some(f.moduleAugmentations,function(P){return e.isGlobalScopeAugmentation(P.parent)})}function I(f){return k(f)||!e.isExternalOrCommonJsModule(f)&&!e.isJsonSourceFile(f)&&!Z(f)}function ne(f,P,D){if(f.allFilesExcludingDefaultLibraryFile)return f.allFilesExcludingDefaultLibraryFile;var l;D&&j(D);for(var _=0,J=P.getSourceFiles();_<J.length;_++){var w=J[_];w!==D&&j(w)}return f.allFilesExcludingDefaultLibraryFile=l||e.emptyArray,f.allFilesExcludingDefaultLibraryFile;function j(U){P.isSourceFileDefaultLibrary(U)||(l||(l=[])).push(U)}}L.getAllFilesExcludingDefaultLibraryFile=ne;function ee(f,P,D){var l=P.getCompilerOptions();return l&&e.outFile(l)?[D]:ne(f,P,D)}function A(f,P,D,l,_,J,w){if(I(D))return ne(f,P,D);var j=P.getCompilerOptions();if(j&&(j.isolatedModules||e.outFile(j)))return[D];var U=new e.Map;U.set(D.resolvedPath,D);for(var z=Y(f,D.resolvedPath);z.length>0;){var y=z.pop();if(!U.has(y)){var oe=P.getSourceFileByPath(y);U.set(y,oe),oe&&re(f,P,oe,l,_,J,w)&&z.push.apply(z,Y(f,oe.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(U.values(),function(ve){return ve}))}})(O=e.BuilderState||(e.BuilderState={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(_){_[_.DtsOnly=0]="DtsOnly",_[_.Full=1]="Full"})(a=e.BuilderFileEmit||(e.BuilderFileEmit={}));function O(_,J){return _===J||_!==void 0&&J!==void 0&&_.size===J.size&&!e.forEachKey(_,function(w){return!J.has(w)})}function L(_,J,w,j){var U=e.BuilderState.create(_,J,w,j);U.program=_;var z=_.getCompilerOptions();U.compilerOptions=z,e.outFile(z)||(U.semanticDiagnosticsPerFile=new e.Map),U.changedFilesSet=new e.Set;var y=e.BuilderState.canReuseOldState(U.referencedMap,w),oe=y?w.compilerOptions:void 0,ve=y&&w.semanticDiagnosticsPerFile&&!!U.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(z,oe);if(y){if(!w.currentChangedFilePath){var ce=w.currentAffectedFilesSignatures;e.Debug.assert(!w.affectedFiles&&(!ce||!ce.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var m=w.changedFilesSet;ve&&e.Debug.assert(!m||!e.forEachKey(m,function(ke){return w.semanticDiagnosticsPerFile.has(ke)}),"Semantic diagnostics shouldnt be available for changed files"),m==null||m.forEach(function(ke){return U.changedFilesSet.add(ke)}),!e.outFile(z)&&w.affectedFilesPendingEmit&&(U.affectedFilesPendingEmit=w.affectedFilesPendingEmit.slice(),U.affectedFilesPendingEmitKind=w.affectedFilesPendingEmitKind&&new e.Map(w.affectedFilesPendingEmitKind),U.affectedFilesPendingEmitIndex=w.affectedFilesPendingEmitIndex,U.seenAffectedFiles=new e.Set)}var de=U.referencedMap,ae=y?w.referencedMap:void 0,V=ve&&!z.skipLibCheck==!oe.skipLibCheck,le=V&&!z.skipDefaultLibCheck==!oe.skipDefaultLibCheck;return U.fileInfos.forEach(function(ke,Ue){var He,ar;if(!y||!(He=w.fileInfos.get(Ue))||He.version!==ke.version||!O(ar=de&&de.getValues(Ue),ae&&ae.getValues(Ue))||ar&&e.forEachKey(ar,function(Ge){return!U.fileInfos.has(Ge)&&w.fileInfos.has(Ge)}))U.changedFilesSet.add(Ue);else if(ve){var gr=_.getSourceFileByPath(Ue);if(gr.isDeclarationFile&&!V||gr.hasNoDefaultLib&&!le)return;var me=w.semanticDiagnosticsPerFile.get(Ue);me&&(U.semanticDiagnosticsPerFile.set(Ue,w.hasReusableDiagnostic?W(me,_,J):me),U.semanticDiagnosticsFromOldState||(U.semanticDiagnosticsFromOldState=new e.Set),U.semanticDiagnosticsFromOldState.add(Ue))}}),y&&e.forEachEntry(w.fileInfos,function(ke,Ue){return ke.affectsGlobalScope&&!U.fileInfos.has(Ue)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(U,_,void 0).forEach(function(ke){return U.changedFilesSet.add(ke.resolvedPath)}):oe&&!e.outFile(z)&&e.compilerOptionsAffectEmit(z,oe)&&(_.getSourceFiles().forEach(function(ke){return f(U,ke.resolvedPath,1)}),e.Debug.assert(!U.seenAffectedFiles||!U.seenAffectedFiles.size),U.seenAffectedFiles=U.seenAffectedFiles||new e.Set),y&&e.forEachEntry(w.fileInfos,function(ke,Ue){U.fileInfos.has(Ue)&&U.fileInfos.get(Ue).impliedFormat!==ke.impliedFormat&&U.changedFilesSet.add(Ue)}),U.buildInfoEmitPending=!!U.changedFilesSet.size,U}function W(_,J,w){if(!_.length)return e.emptyArray;var j=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(J.getCompilerOptions()),J.getCurrentDirectory()));return _.map(function(z){var y=N(z,J,U);y.reportsUnnecessary=z.reportsUnnecessary,y.reportsDeprecated=z.reportDeprecated,y.source=z.source,y.skippedOn=z.skippedOn;var oe=z.relatedInformation;return y.relatedInformation=oe?oe.length?oe.map(function(ve){return N(ve,J,U)}):[]:void 0,y});function U(z){return e.toPath(z,j,w)}}function N(_,J,w){var j=_.file;return Ve(Ve({},_),{file:j?J.getSourceFileByPath(w(j)):void 0})}function Q(_){e.BuilderState.releaseCache(_),_.program=void 0}function pe(_){var J,w=e.BuilderState.clone(_);return w.semanticDiagnosticsPerFile=_.semanticDiagnosticsPerFile&&new e.Map(_.semanticDiagnosticsPerFile),w.changedFilesSet=new e.Set(_.changedFilesSet),w.affectedFiles=_.affectedFiles,w.affectedFilesIndex=_.affectedFilesIndex,w.currentChangedFilePath=_.currentChangedFilePath,w.currentAffectedFilesSignatures=_.currentAffectedFilesSignatures&&new e.Map(_.currentAffectedFilesSignatures),w.currentAffectedFilesExportedModulesMap=(J=_.currentAffectedFilesExportedModulesMap)===null||J===void 0?void 0:J.clone(),w.seenAffectedFiles=_.seenAffectedFiles&&new e.Set(_.seenAffectedFiles),w.cleanedDiagnosticsOfLibFiles=_.cleanedDiagnosticsOfLibFiles,w.semanticDiagnosticsFromOldState=_.semanticDiagnosticsFromOldState&&new e.Set(_.semanticDiagnosticsFromOldState),w.program=_.program,w.compilerOptions=_.compilerOptions,w.affectedFilesPendingEmit=_.affectedFilesPendingEmit&&_.affectedFilesPendingEmit.slice(),w.affectedFilesPendingEmitKind=_.affectedFilesPendingEmitKind&&new e.Map(_.affectedFilesPendingEmitKind),w.affectedFilesPendingEmitIndex=_.affectedFilesPendingEmitIndex,w.seenEmittedFiles=_.seenEmittedFiles&&new e.Map(_.seenEmittedFiles),w.programEmitComplete=_.programEmitComplete,w}function F(_,J){e.Debug.assert(!J||!_.affectedFiles||_.affectedFiles[_.affectedFilesIndex-1]!==J||!_.semanticDiagnosticsPerFile.has(J.resolvedPath))}function g(_,J,w){for(;;){var j=_.affectedFiles;if(j){for(var U=_.seenAffectedFiles,z=_.affectedFilesIndex;z<j.length;){var y=j[z];if(!U.has(y.resolvedPath))return _.affectedFilesIndex=z,H(_,y,J,w),y;z++}_.changedFilesSet.delete(_.currentChangedFilePath),_.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(_,_.currentAffectedFilesSignatures),_.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(_,_.currentAffectedFilesExportedModulesMap),_.affectedFiles=void 0}var oe=_.changedFilesSet.keys().next();if(oe.done)return;var ve=e.Debug.checkDefined(_.program),ce=ve.getCompilerOptions();if(e.outFile(ce))return e.Debug.assert(!_.semanticDiagnosticsPerFile),ve;_.currentAffectedFilesSignatures||(_.currentAffectedFilesSignatures=new e.Map),_.exportedModulesMap&&(_.currentAffectedFilesExportedModulesMap||(_.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),_.affectedFiles=e.BuilderState.getFilesAffectedBy(_,ve,oe.value,J,w,_.currentAffectedFilesSignatures,_.currentAffectedFilesExportedModulesMap),_.currentChangedFilePath=oe.value,_.affectedFilesIndex=0,_.seenAffectedFiles||(_.seenAffectedFiles=new e.Set)}}function S(_){var J=_.affectedFilesPendingEmit;if(J){for(var w=_.seenEmittedFiles||(_.seenEmittedFiles=new e.Map),j=_.affectedFilesPendingEmitIndex;j<J.length;j++){var U=e.Debug.checkDefined(_.program).getSourceFileByPath(J[j]);if(U){var z=w.get(U.resolvedPath),y=e.Debug.checkDefined(e.Debug.checkDefined(_.affectedFilesPendingEmitKind).get(U.resolvedPath));if(z===void 0||z<y)return _.affectedFilesPendingEmitIndex=j,{affectedFile:U,emitKind:y}}}_.affectedFilesPendingEmit=void 0,_.affectedFilesPendingEmitKind=void 0,_.affectedFilesPendingEmitIndex=void 0}}function H(_,J,w,j){var U;if(p(_,J.resolvedPath),_.allFilesExcludingDefaultLibraryFile===_.affectedFiles){if(!_.cleanedDiagnosticsOfLibFiles){_.cleanedDiagnosticsOfLibFiles=!0;var z=e.Debug.checkDefined(_.program),y=z.getCompilerOptions();e.forEach(z.getSourceFiles(),function(oe){return z.isSourceFileDefaultLibrary(oe)&&!e.skipTypeChecking(oe,y,z)&&p(_,oe.resolvedPath)})}e.BuilderState.updateShapeSignature(_,e.Debug.checkDefined(_.program),J,e.Debug.checkDefined(_.currentAffectedFilesSignatures),w,j,_.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(_.hasCalledUpdateShapeSignature.has(J.resolvedPath)||((U=_.currentAffectedFilesSignatures)===null||U===void 0?void 0:U.has(J.resolvedPath)),"Signature not updated for affected file: ".concat(J.fileName));_.compilerOptions.assumeChangesOnlyAffectDirectDependencies||G(_,J,function(oe,ve){return se(oe,ve,w,j)})}function se(_,J,w,j){if(p(_,J),!_.changedFilesSet.has(J)){var U=e.Debug.checkDefined(_.program),z=U.getSourceFileByPath(J);z&&(e.BuilderState.updateShapeSignature(_,U,z,e.Debug.checkDefined(_.currentAffectedFilesSignatures),w,j,_.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(_.compilerOptions)&&f(_,J,0))}}function p(_,J){return _.semanticDiagnosticsFromOldState?(_.semanticDiagnosticsFromOldState.delete(J),_.semanticDiagnosticsPerFile.delete(J),!_.semanticDiagnosticsFromOldState.size):!0}function C(_,J){var w=e.Debug.checkDefined(_.currentAffectedFilesSignatures).get(J),j=e.Debug.checkDefined(_.fileInfos.get(J)).signature;return w!==j}function G(_,J,w){var j,U;if(!(!_.exportedModulesMap||!_.changedFilesSet.has(J.resolvedPath))&&!!C(_,J.resolvedPath)){if(_.compilerOptions.isolatedModules){var z=new e.Map;z.set(J.resolvedPath,!0);for(var y=e.BuilderState.getReferencedByPaths(_,J.resolvedPath);y.length>0;){var oe=y.pop();if(!z.has(oe)&&(z.set(oe,!0),w(_,oe),C(_,oe))){var ve=e.Debug.checkDefined(_.program).getSourceFileByPath(oe);y.push.apply(y,e.BuilderState.getReferencedByPaths(_,ve.resolvedPath))}}}e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap);var ce=new e.Set;(j=_.currentAffectedFilesExportedModulesMap.getKeys(J.resolvedPath))===null||j===void 0||j.forEach(function(m){return E(_,m,ce,w)}),(U=_.exportedModulesMap.getKeys(J.resolvedPath))===null||U===void 0||U.forEach(function(m){var de;return!_.currentAffectedFilesExportedModulesMap.hasKey(m)&&!(!((de=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||de===void 0)&&de.has(m))&&E(_,m,ce,w)})}}function E(_,J,w,j){var U;(U=_.referencedMap.getKeys(J))===null||U===void 0||U.forEach(function(z){return ue(_,z,w,j)})}function ue(_,J,w,j){var U,z,y;!e.tryAddToSet(w,J)||(j(_,J),e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap),(U=_.currentAffectedFilesExportedModulesMap.getKeys(J))===null||U===void 0||U.forEach(function(oe){return ue(_,oe,w,j)}),(z=_.exportedModulesMap.getKeys(J))===null||z===void 0||z.forEach(function(oe){var ve;return!_.currentAffectedFilesExportedModulesMap.hasKey(oe)&&!(!((ve=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||ve===void 0)&&ve.has(oe))&&ue(_,oe,w,j)}),(y=_.referencedMap.getKeys(J))===null||y===void 0||y.forEach(function(oe){return!w.has(oe)&&j(_,oe)}))}function B(_,J,w,j,U){U?_.buildInfoEmitPending=!1:J===_.program?(_.changedFilesSet.clear(),_.programEmitComplete=!0):(_.seenAffectedFiles.add(J.resolvedPath),w!==void 0&&(_.seenEmittedFiles||(_.seenEmittedFiles=new e.Map)).set(J.resolvedPath,w),j?(_.affectedFilesPendingEmitIndex++,_.buildInfoEmitPending=!0):_.affectedFilesIndex++)}function re(_,J,w){return B(_,w),{result:J,affected:w}}function M(_,J,w,j,U,z){return B(_,w,j,U,z),{result:J,affected:w}}function x(_,J,w){return e.concatenate(ie(_,J,w),e.Debug.checkDefined(_.program).getProgramDiagnostics(J))}function ie(_,J,w){var j=J.resolvedPath;if(_.semanticDiagnosticsPerFile){var U=_.semanticDiagnosticsPerFile.get(j);if(U)return e.filterSemanticDiagnostics(U,_.compilerOptions)}var z=e.Debug.checkDefined(_.program).getBindAndCheckDiagnostics(J,w);return _.semanticDiagnosticsPerFile&&_.semanticDiagnosticsPerFile.set(j,z),e.filterSemanticDiagnostics(z,_.compilerOptions)}function _e(_,J){if(e.outFile(_.compilerOptions))return;var w=e.Debug.checkDefined(_.program).getCurrentDirectory(),j=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(_.compilerOptions),w)),U=[],z=new e.Map,y,oe,ve=e.arrayFrom(_.fileInfos.entries(),function(ye){var Se=ye[0],ge=ye[1],Fe=he(Se);e.Debug.assert(U[Fe-1]===er(Se));var cr=_.currentAffectedFilesSignatures&&_.currentAffectedFilesSignatures.get(Se),ur=cr!=null?cr:ge.signature;return ge.version===ur?ge.affectsGlobalScope?{version:ge.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:ge.impliedFormat}:ge.version:ur!==void 0?cr===void 0?ge:{version:ge.version,signature:cr,affectsGlobalScope:ge.affectsGlobalScope,impliedFormat:ge.impliedFormat}:{version:ge.version,signature:!1,affectsGlobalScope:ge.affectsGlobalScope,impliedFormat:ge.impliedFormat}}),ce;_.referencedMap&&(ce=e.arrayFrom(_.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(ye){return[he(ye),we(_.referencedMap.getValues(ye))]}));var m;_.exportedModulesMap&&(m=e.mapDefined(e.arrayFrom(_.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(ye){var Se;if(_.currentAffectedFilesExportedModulesMap){if(!((Se=_.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Se===void 0)&&Se.has(ye))return;var ge=_.currentAffectedFilesExportedModulesMap.getValues(ye);if(ge)return[he(ye),we(ge)]}return[he(ye),we(_.exportedModulesMap.getValues(ye))]}));var de;if(_.semanticDiagnosticsPerFile)for(var ae=0,V=e.arrayFrom(_.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);ae<V.length;ae++){var le=V[ae],ke=_.semanticDiagnosticsPerFile.get(le);(de||(de=[])).push(ke.length?[he(le),_.hasReusableDiagnostic?ke:k(ke,er)]:he(le))}var Ue;if(_.affectedFilesPendingEmit)for(var He=new e.Set,ar=0,gr=_.affectedFilesPendingEmit.slice(_.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);ar<gr.length;ar++){var me=gr[ar];e.tryAddToSet(He,me)&&(Ue||(Ue=[])).push([he(me),_.affectedFilesPendingEmitKind.get(me)])}return{fileNames:U,fileInfos:ve,options:Y(_.compilerOptions,Ge),fileIdsList:y,referencedMap:ce,exportedModulesMap:m,semanticDiagnosticsPerFile:de,affectedFilesPendingEmit:Ue};function Ge(ye){return er(e.getNormalizedAbsolutePath(ye,w))}function er(ye){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(j,ye,J))}function he(ye){var Se=z.get(ye);return Se===void 0&&(U.push(er(ye)),z.set(ye,Se=U.length)),Se}function we(ye){var Se=e.arrayFrom(ye.keys(),he).sort(e.compareValues),ge=Se.join(),Fe=oe==null?void 0:oe.get(ge);return Fe===void 0&&((y||(y=[])).push(Se),(oe||(oe=new e.Map)).set(ge,Fe=y.length)),Fe}}function Y(_,J){for(var w,j=e.getOptionsNameMap().optionsNameMap,U=0,z=e.getOwnKeys(_).sort(e.compareStringsCaseSensitive);U<z.length;U++){var y=z[U],oe=y.toLowerCase(),ve=j.get(oe);((ve==null?void 0:ve.affectsEmit)||(ve==null?void 0:ve.affectsSemanticDiagnostics)||oe==="strict"||oe==="skiplibcheck"||oe==="skipdefaultlibcheck")&&((w||(w={}))[y]=Z(ve,_[y],J))}return w}function Z(_,J,w){if(_){if(_.type==="list"){var j=J;if(_.element.isFilePath&&j.length)return j.map(w)}else if(_.isFilePath)return w(J)}return J}function k(_,J){return e.Debug.assert(!!_.length),_.map(function(w){var j=I(w,J);j.reportsUnnecessary=w.reportsUnnecessary,j.reportDeprecated=w.reportsDeprecated,j.source=w.source,j.skippedOn=w.skippedOn;var U=w.relatedInformation;return j.relatedInformation=U?U.length?U.map(function(z){return I(z,J)}):[]:void 0,j})}function I(_,J){var w=_.file;return Ve(Ve({},_),{file:w?J(w.resolvedPath):void 0})}var ne;(function(_){_[_.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",_[_.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(ne=e.BuilderProgramKind||(e.BuilderProgramKind={}));function ee(_,J,w,j,U,z){var y,oe,ve;return _===void 0?(e.Debug.assert(J===void 0),y=w,ve=j,e.Debug.assert(!!ve),oe=ve.getProgram()):e.isArray(_)?(ve=j,oe=e.createProgram({rootNames:_,options:J,host:w,oldProgram:ve&&ve.getProgramOrUndefined(),configFileParsingDiagnostics:U,projectReferences:z}),y=w):(oe=_,y=J,ve=w,U=j),{host:y,newProgram:oe,oldProgram:ve,configFileParsingDiagnostics:U||e.emptyArray}}e.getBuilderCreationParameters=ee;function A(_,J){var w=J.newProgram,j=J.host,U=J.oldProgram,z=J.configFileParsingDiagnostics,y=U&&U.getState();if(y&&w===y.program&&z===w.getConfigFileParsingDiagnostics())return w=void 0,y=void 0,U;var oe=e.createGetCanonicalFileName(j.useCaseSensitiveFileNames()),ve=e.maybeBind(j,j.createHash),ce=L(w,oe,y,j.disableUseFileVersionAsSignature),m;w.getProgramBuildInfo=function(){return _e(ce,oe)},w=void 0,U=void 0,y=void 0;var de=function(){return ce},ae=l(de,z);return ae.getState=de,ae.backupState=function(){e.Debug.assert(m===void 0),m=pe(ce)},ae.restoreState=function(){ce=e.Debug.checkDefined(m),m=void 0},ae.getAllDependencies=function(ar){return e.BuilderState.getAllDependencies(ce,e.Debug.checkDefined(ce.program),ar)},ae.getSemanticDiagnostics=He,ae.emit=ke,ae.releaseProgram=function(){Q(ce),m=void 0},_===ne.SemanticDiagnosticsBuilderProgram?ae.getSemanticDiagnosticsOfNextAffectedFile=Ue:_===ne.EmitAndSemanticDiagnosticsBuilderProgram?(ae.getSemanticDiagnosticsOfNextAffectedFile=Ue,ae.emitNextAffectedFile=le,ae.emitBuildInfo=V):e.notImplemented(),ae;function V(ar,gr){if(ce.buildInfoEmitPending){var me=e.Debug.checkDefined(ce.program).emitBuildInfo(ar||e.maybeBind(j,j.writeFile),gr);return ce.buildInfoEmitPending=!1,me}return e.emitSkippedWithNoDiagnostics}function le(ar,gr,me,Ge){var er=g(ce,gr,ve),he=1,we=!1;if(!er)if(e.outFile(ce.compilerOptions)){var ge=e.Debug.checkDefined(ce.program);if(ce.programEmitComplete)return;er=ge}else{var ye=S(ce);if(!ye){if(!ce.buildInfoEmitPending)return;var Se=e.Debug.checkDefined(ce.program);return M(ce,Se.emitBuildInfo(ar||e.maybeBind(j,j.writeFile),gr),Se,1,!1,!0)}er=ye.affectedFile,he=ye.emitKind,we=!0}return M(ce,e.Debug.checkDefined(ce.program).emit(er===ce.program?void 0:er,ar||e.maybeBind(j,j.writeFile),gr,me||he===0,Ge),er,he,we)}function ke(ar,gr,me,Ge,er){var he=!1,we,ye,Se;_!==ne.EmitAndSemanticDiagnosticsBuilderProgram&&!ar&&!e.outFile(ce.compilerOptions)&&!ce.compilerOptions.noEmit&&ce.compilerOptions.noEmitOnError&&(he=!0,we=ce.affectedFilesPendingEmit&&ce.affectedFilesPendingEmit.slice(),ye=ce.affectedFilesPendingEmitKind&&new e.Map(ce.affectedFilesPendingEmitKind),Se=ce.affectedFilesPendingEmitIndex),_===ne.EmitAndSemanticDiagnosticsBuilderProgram&&F(ce,ar);var ge=e.handleNoEmitOptions(ae,ar,gr,me);if(ge)return ge;if(he&&(ce.affectedFilesPendingEmit=we,ce.affectedFilesPendingEmitKind=ye,ce.affectedFilesPendingEmitIndex=Se),!ar&&_===ne.EmitAndSemanticDiagnosticsBuilderProgram){for(var Fe=[],cr=!1,ur=void 0,Ir=[],dr=void 0;dr=le(gr,me,Ge,er);)cr=cr||dr.result.emitSkipped,ur=e.addRange(ur,dr.result.diagnostics),Ir=e.addRange(Ir,dr.result.emittedFiles),Fe=e.addRange(Fe,dr.result.sourceMaps);return{emitSkipped:cr,diagnostics:ur||e.emptyArray,emittedFiles:Ir,sourceMaps:Fe}}return e.Debug.checkDefined(ce.program).emit(ar,gr||e.maybeBind(j,j.writeFile),me,Ge,er)}function Ue(ar,gr){for(;;){var me=g(ce,ar,ve);if(me){if(me===ce.program)return re(ce,ce.program.getSemanticDiagnostics(void 0,ar),me)}else return;if((_===ne.EmitAndSemanticDiagnosticsBuilderProgram||ce.compilerOptions.noEmit||ce.compilerOptions.noEmitOnError)&&f(ce,me.resolvedPath,1),gr&&gr(me)){B(ce,me);continue}return re(ce,x(ce,me,ar),me)}}function He(ar,gr){F(ce,ar);var me=e.Debug.checkDefined(ce.program).getCompilerOptions();if(e.outFile(me))return e.Debug.assert(!ce.semanticDiagnosticsPerFile),e.Debug.checkDefined(ce.program).getSemanticDiagnostics(ar,gr);if(ar)return x(ce,ar,gr);for(;Ue(gr););for(var Ge,er=0,he=e.Debug.checkDefined(ce.program).getSourceFiles();er<he.length;er++){var we=he[er];Ge=e.addRange(Ge,x(ce,we,gr))}return Ge||e.emptyArray}}e.createBuilderProgram=A;function f(_,J,w){_.affectedFilesPendingEmit||(_.affectedFilesPendingEmit=[]),_.affectedFilesPendingEmitKind||(_.affectedFilesPendingEmitKind=new e.Map);var j=_.affectedFilesPendingEmitKind.get(J);_.affectedFilesPendingEmit.push(J),_.affectedFilesPendingEmitKind.set(J,j||w),_.affectedFilesPendingEmitIndex===void 0&&(_.affectedFilesPendingEmitIndex=0)}function P(_){return e.isString(_)?{version:_,signature:_,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(_.signature)?_:{version:_.version,signature:_.signature===!1?void 0:_.version,affectsGlobalScope:_.affectsGlobalScope,impliedFormat:_.impliedFormat}}e.toBuilderStateFileInfo=P;function D(_,J,w){var j,U=e.getDirectoryPath(e.getNormalizedAbsolutePath(J,w.getCurrentDirectory())),z=e.createGetCanonicalFileName(w.useCaseSensitiveFileNames()),y=_.fileNames.map(m),oe=(j=_.fileIdsList)===null||j===void 0?void 0:j.map(function(ke){return new e.Set(ke.map(ae))}),ve=new e.Map;_.fileInfos.forEach(function(ke,Ue){return ve.set(ae(Ue+1),P(ke))});var ce={fileInfos:ve,compilerOptions:_.options?e.convertToOptionsWithAbsolutePaths(_.options,de):{},referencedMap:le(_.referencedMap),exportedModulesMap:le(_.exportedModulesMap),semanticDiagnosticsPerFile:_.semanticDiagnosticsPerFile&&e.arrayToMap(_.semanticDiagnosticsPerFile,function(ke){return ae(e.isNumber(ke)?ke:ke[0])},function(ke){return e.isNumber(ke)?e.emptyArray:ke[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(_.affectedFilesPendingEmit,function(ke){return ae(ke[0])}),affectedFilesPendingEmitKind:_.affectedFilesPendingEmit&&e.arrayToMap(_.affectedFilesPendingEmit,function(ke){return ae(ke[0])},function(ke){return ke[1]}),affectedFilesPendingEmitIndex:_.affectedFilesPendingEmit&&0};return{getState:function(){return ce},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return ce.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function m(ke){return e.toPath(ke,U,z)}function de(ke){return e.getNormalizedAbsolutePath(ke,U)}function ae(ke){return y[ke-1]}function V(ke){return oe[ke-1]}function le(ke){if(!!ke){var Ue=e.BuilderState.createManyToManyPathMap();return ke.forEach(function(He){var ar=He[0],gr=He[1];return Ue.set(ae(ar),V(gr))}),Ue}}}e.createBuildProgramUsingProgramBuildInfo=D;function l(_,J){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:w,getProgramOrUndefined:function(){return _().program},releaseProgram:function(){return _().program=void 0},getCompilerOptions:function(){return _().compilerOptions},getSourceFile:function(j){return w().getSourceFile(j)},getSourceFiles:function(){return w().getSourceFiles()},getOptionsDiagnostics:function(j){return w().getOptionsDiagnostics(j)},getGlobalDiagnostics:function(j){return w().getGlobalDiagnostics(j)},getConfigFileParsingDiagnostics:function(){return J},getSyntacticDiagnostics:function(j,U){return w().getSyntacticDiagnostics(j,U)},getDeclarationDiagnostics:function(j,U){return w().getDeclarationDiagnostics(j,U)},getSemanticDiagnostics:function(j,U){return w().getSemanticDiagnostics(j,U)},emit:function(j,U,z,y,oe){return w().emit(j,U,z,y,oe)},emitBuildInfo:function(j,U){return w().emitBuildInfo(j,U)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return w().getCurrentDirectory()},close:e.noop};function w(){return e.Debug.checkDefined(_().program)}}e.createRedirectedBuilderProgram=l})(Pe||(Pe={}));var Pe;(function(e){function a(W,N,Q,pe,F,g){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(W,N,Q,pe,F,g))}e.createSemanticDiagnosticsBuilderProgram=a;function O(W,N,Q,pe,F,g){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(W,N,Q,pe,F,g))}e.createEmitAndSemanticDiagnosticsBuilderProgram=O;function L(W,N,Q,pe,F,g){var S=e.getBuilderCreationParameters(W,N,Q,pe,F,g),H=S.newProgram,se=S.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:H,compilerOptions:H.getCompilerOptions()}},se)}e.createAbstractBuilder=L})(Pe||(Pe={}));var Pe;(function(e){function a(N){return e.endsWith(N,"/node_modules/.staging")?e.removeSuffix(N,"/.staging"):e.some(e.ignoredPaths,function(Q){return e.stringContains(N,Q)})?void 0:N}e.removeIgnoredPath=a;function O(N){var Q=e.getRootLength(N);if(N.length===Q)return!1;var pe=N.indexOf(e.directorySeparator,Q);if(pe===-1)return!1;var F=N.substring(Q,pe+1),g=Q>1||N.charCodeAt(0)!==47;if(g&&N.search(/[a-zA-Z]:/)!==0&&F.search(/[a-zA-z]\$\//)===0){if(pe=N.indexOf(e.directorySeparator,pe+1),pe===-1)return!1;F=N.substring(Q+F.length,pe+1)}if(g&&F.search(/users\//i)!==0)return!0;for(var S=pe+1,H=2;H>0;H--)if(S=N.indexOf(e.directorySeparator,S)+1,S===0)return!1;return!0}e.canWatchDirectory=O;function L(N,Q,pe){var F,g,S,H=e.createMultiMap(),se=[],p=e.createMultiMap(),C=!1,G,E,ue,B=e.memoize(function(){return N.getCurrentDirectory()}),re=N.getCachedDirectoryStructureHost(),M=new e.Map,x=e.createCacheWithRedirects(),ie=e.createCacheWithRedirects(),_e=e.createModuleResolutionCache(B(),N.getCanonicalFileName,void 0,x,ie),Y=new e.Map,Z=e.createCacheWithRedirects(),k=e.createTypeReferenceDirectiveResolutionCache(B(),N.getCanonicalFileName,void 0,_e.getPackageJsonInfoCache(),Z),I=[".ts",".tsx",".js",".jsx",".json"],ne=new e.Map,ee=new e.Map,A=Q&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(Q,B())),f=A&&N.toPath(A),P=f!==void 0?f.split(e.directorySeparator).length:0,D=new e.Map;return{getModuleResolutionCache:function(){return _e},startRecordingFilesWithChangedResolutions:j,finishRecordingFilesWithChangedResolutions:U,startCachingPerDirectoryResolution:oe,finishCachingPerDirectoryResolution:ve,resolveModuleNames:V,getResolvedModuleWithFailedLookupLocationsFromCache:le,resolveTypeReferenceDirectives:ae,removeResolutionsFromProjectReferenceRedirects:ge,removeResolutionsOfFile:Fe,hasChangedAutomaticTypeDirectiveNames:function(){return C},invalidateResolutionOfFile:ur,invalidateResolutionsOfFailedLookupLocations:Br,setFilesWithInvalidatedNonRelativeUnresolvedImports:Ir,createHasInvalidatedResolution:y,isFileWithInvalidatedNonRelativeUnresolvedImports:z,updateTypeRootsWatch:Pr,closeTypeRootsWatch:n,clear:w};function l(Le){return Le.resolvedModule}function _(Le){return Le.resolvedTypeReferenceDirective}function J(Le,Xe){return Le===void 0||Xe.length<=Le.length?!1:e.startsWith(Xe,Le)&&Xe[Le.length]===e.directorySeparator}function w(){e.clearMap(ee,e.closeFileWatcherOf),ne.clear(),H.clear(),n(),M.clear(),Y.clear(),p.clear(),se.length=0,G=void 0,E=void 0,ue=void 0,oe(),C=!1}function j(){F=[]}function U(){var Le=F;return F=void 0,Le}function z(Le){if(!S)return!1;var Xe=S.get(Le);return!!Xe&&!!Xe.length}function y(Le){if(Br(),Le)return g=void 0,e.returnTrue;var Xe=g;return g=void 0,function(Cr){return!!Xe&&Xe.has(Cr)||z(Cr)}}function oe(){_e.clear(),k.clear(),H.forEach(Ge),H.clear()}function ve(){S=void 0,oe(),ee.forEach(function(Le,Xe){Le.refCount===0&&(ee.delete(Xe),Le.watcher.close())}),C=!1}function ce(Le,Xe,Cr,Lr,Jr){var Rr,ci=e.resolveModuleName(Le,Xe,Cr,Lr,_e,Jr);if(!N.getGlobalCache)return ci;var be=N.getGlobalCache();if(be!==void 0&&!e.isExternalModuleNameRelative(Le)&&!(ci.resolvedModule&&e.extensionIsTS(ci.resolvedModule.extension))){var or=e.loadModuleFromGlobalCache(e.Debug.checkDefined(N.globalCacheResolutionModuleName)(Le),N.projectName,Cr,Lr,be,_e),Kr=or.resolvedModule,ei=or.failedLookupLocations;if(Kr)return ci.resolvedModule=Kr,(Rr=ci.failedLookupLocations).push.apply(Rr,ei),ci}return ci}function m(Le,Xe,Cr,Lr,Jr){return e.resolveTypeReferenceDirective(Le,Xe,Cr,Lr,Jr,k)}function de(Le){var Xe,Cr,Lr,Jr=Le.names,Rr=Le.containingFile,ci=Le.redirectedReference,be=Le.cache,or=Le.perDirectoryCacheWithRedirects,Kr=Le.loader,ei=Le.getResolutionWithResolvedFileName,li=Le.shouldRetryResolution,Si=Le.reusedNames,qi=Le.logChanges,ft=Le.containingSourceFile,bt=N.toPath(Rr),aa=be.get(bt)||be.set(bt,e.createModeAwareCache()).get(bt),sr=e.getDirectoryPath(bt),Ji=or.getOrCreateMapOfCacheRedirects(ci),di=Ji.get(sr);di||(di=e.createModeAwareCache(),Ji.set(sr,di));for(var X=[],Ye=N.getCompilationSettings(),Be=qi&&z(bt),Qe=N.getCurrentProgram(),_r=Qe&&Qe.getResolvedProjectReferenceToRedirect(Rr),hr=_r?!ci||ci.sourceFile.path!==_r.sourceFile.path:!!ci,Dr=e.createModeAwareCache(),Me=0,v=0,xe=Jr;v<xe.length;v++){var ze=xe[v],Je=ft?e.getModeForResolutionAtIndex(ft,Me):void 0;Me++;var Oe=aa.get(ze,Je);if(!Dr.has(ze,Je)&&hr||!Oe||Oe.isInvalidated||Be&&!e.isExternalModuleNameRelative(ze)&&li(Oe)){var Fr=Oe,Xr=di.get(ze,Je);if(Xr){Oe=Xr;var Or=((Xe=N.getCompilerHost)===null||Xe===void 0?void 0:Xe.call(N))||N;if(e.isTraceEnabled(Ye,Or)){var We=ei(Oe);e.trace(Or,Kr===ce?We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,ze,Rr,e.getDirectoryPath(Rr),We==null?void 0:We.resolvedFileName,(We==null?void 0:We.packagetId)&&e.packageIdToString(We.packagetId))}}else Oe=Kr(ze,Rr,Ye,((Cr=N.getCompilerHost)===null||Cr===void 0?void 0:Cr.call(N))||N,ci,ft),di.set(ze,Je,Oe),N.onDiscoveredSymlink&&W(Oe)&&N.onDiscoveredSymlink();aa.set(ze,Je,Oe),gr(ze,Oe,bt,ei),Fr&&he(Fr,bt,ei),qi&&F&&!mr(Fr,Oe)&&(F.push(bt),qi=!1)}else{var Or=((Lr=N.getCompilerHost)===null||Lr===void 0?void 0:Lr.call(N))||N;if(e.isTraceEnabled(Ye,Or)&&!Dr.has(ze,Je)){var We=ei(Oe);e.trace(Or,Kr===ce?We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:We!=null&&We.resolvedFileName?We.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,ze,Rr,We==null?void 0:We.resolvedFileName,(We==null?void 0:We.packagetId)&&e.packageIdToString(We.packagetId))}}e.Debug.assert(Oe!==void 0&&!Oe.isInvalidated),Dr.set(ze,Je,!0),X.push(ei(Oe))}return aa.forEach(function(Nr,Ur,si){!Dr.has(Ur,si)&&!e.contains(Si,Ur)&&(he(Nr,bt,ei),aa.delete(Ur,si))}),X;function mr(Nr,Ur){if(Nr===Ur)return!0;if(!Nr||!Ur)return!1;var si=ei(Nr),mi=ei(Ur);return si===mi?!0:!si||!mi?!1:si.resolvedFileName===mi.resolvedFileName}}function ae(Le,Xe,Cr){return de({names:Le,containingFile:Xe,redirectedReference:Cr,cache:Y,perDirectoryCacheWithRedirects:Z,loader:m,getResolutionWithResolvedFileName:_,shouldRetryResolution:function(Lr){return Lr.resolvedTypeReferenceDirective===void 0}})}function V(Le,Xe,Cr,Lr,Jr){return de({names:Le,containingFile:Xe,redirectedReference:Lr,cache:M,perDirectoryCacheWithRedirects:x,loader:ce,getResolutionWithResolvedFileName:l,shouldRetryResolution:function(Rr){return!Rr.resolvedModule||!e.resolutionExtensionIsTSOrJson(Rr.resolvedModule.extension)},reusedNames:Cr,logChanges:pe,containingSourceFile:Jr})}function le(Le,Xe,Cr){var Lr=M.get(N.toPath(Xe));if(!!Lr)return Lr.get(Le,Cr)}function ke(Le){return e.endsWith(Le,"/node_modules/@types")}function Ue(Le,Xe){if(J(f,Xe)){Le=e.isRootedDiskPath(Le)?e.normalizePath(Le):e.getNormalizedAbsolutePath(Le,B());var Cr=Xe.split(e.directorySeparator),Lr=Le.split(e.directorySeparator);return e.Debug.assert(Lr.length===Cr.length,"FailedLookup: ".concat(Le," failedLookupLocationPath: ").concat(Xe)),Cr.length>P+1?{dir:Lr.slice(0,P+1).join(e.directorySeparator),dirPath:Cr.slice(0,P+1).join(e.directorySeparator)}:{dir:A,dirPath:f,nonRecursive:!1}}return He(e.getDirectoryPath(e.getNormalizedAbsolutePath(Le,B())),e.getDirectoryPath(Xe))}function He(Le,Xe){for(;e.pathContainsNodeModules(Xe);)Le=e.getDirectoryPath(Le),Xe=e.getDirectoryPath(Xe);if(e.isNodeModulesDirectory(Xe))return O(e.getDirectoryPath(Xe))?{dir:Le,dirPath:Xe}:void 0;var Cr=!0,Lr,Jr;if(f!==void 0)for(;!J(Xe,f);){var Rr=e.getDirectoryPath(Xe);if(Rr===Xe)break;Cr=!1,Lr=Xe,Jr=Le,Xe=Rr,Le=e.getDirectoryPath(Le)}return O(Xe)?{dir:Jr||Le,dirPath:Lr||Xe,nonRecursive:Cr}:void 0}function ar(Le){return e.fileExtensionIsOneOf(Le,I)}function gr(Le,Xe,Cr,Lr){if(Xe.refCount)Xe.refCount++,e.Debug.assertIsDefined(Xe.files);else{Xe.refCount=1,e.Debug.assert(e.length(Xe.files)===0),e.isExternalModuleNameRelative(Le)?me(Xe):H.add(Le,Xe);var Jr=Lr(Xe);Jr&&Jr.resolvedFileName&&p.add(N.toPath(Jr.resolvedFileName),Xe)}(Xe.files||(Xe.files=[])).push(Cr)}function me(Le){e.Debug.assert(!!Le.refCount);var Xe=Le.failedLookupLocations;if(!!Xe.length){se.push(Le);for(var Cr=!1,Lr=0,Jr=Xe;Lr<Jr.length;Lr++){var Rr=Jr[Lr],ci=N.toPath(Rr),be=Ue(Rr,ci);if(be){var or=be.dir,Kr=be.dirPath,ei=be.nonRecursive;if(!ar(ci)){var li=ne.get(ci)||0;ne.set(ci,li+1)}Kr===f?(e.Debug.assert(!ei),Cr=!0):er(or,Kr,ei)}}Cr&&er(A,f,!0)}}function Ge(Le,Xe){var Cr=N.getCurrentProgram();(!Cr||!Cr.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Xe))&&Le.forEach(me)}function er(Le,Xe,Cr){var Lr=ee.get(Xe);Lr?(e.Debug.assert(!!Cr==!!Lr.nonRecursive),Lr.refCount++):ee.set(Xe,{watcher:ye(Le,Xe,Cr),refCount:1,nonRecursive:Cr})}function he(Le,Xe,Cr){if(e.unorderedRemoveItem(e.Debug.checkDefined(Le.files),Xe),Le.refCount--,!Le.refCount){var Lr=Cr(Le);if(Lr&&Lr.resolvedFileName&&p.remove(N.toPath(Lr.resolvedFileName),Le),!!e.unorderedRemoveItem(se,Le)){for(var Jr=Le.failedLookupLocations,Rr=!1,ci=0,be=Jr;ci<be.length;ci++){var or=be[ci],Kr=N.toPath(or),ei=Ue(or,Kr);if(ei){var li=ei.dirPath,Si=ne.get(Kr);Si&&(Si===1?ne.delete(Kr):(e.Debug.assert(Si>1),ne.set(Kr,Si-1))),li===f?Rr=!0:we(li)}}Rr&&we(f)}}}function we(Le){var Xe=ee.get(Le);Xe.refCount--}function ye(Le,Xe,Cr){return N.watchDirectoryOfFailedLookupLocation(Le,function(Lr){var Jr=N.toPath(Lr);re&&re.addOrDeleteFileOrDirectory(Lr,Jr),dr(Jr,Xe===Jr)},Cr?0:1)}function Se(Le,Xe,Cr){var Lr=Le.get(Xe);Lr&&(Lr.forEach(function(Jr){return he(Jr,Xe,Cr)}),Le.delete(Xe))}function ge(Le){if(!!e.fileExtensionIs(Le,".json")){var Xe=N.getCurrentProgram();if(!!Xe){var Cr=Xe.getResolvedProjectReferenceByPath(Le);!Cr||Cr.commandLine.fileNames.forEach(function(Lr){return Fe(N.toPath(Lr))})}}}function Fe(Le){Se(M,Le,l),Se(Y,Le,_)}function cr(Le,Xe){if(!Le)return!1;for(var Cr=!1,Lr=0,Jr=Le;Lr<Jr.length;Lr++){var Rr=Jr[Lr];if(!(Rr.isInvalidated||!Xe(Rr))){Rr.isInvalidated=Cr=!0;for(var ci=0,be=e.Debug.checkDefined(Rr.files);ci<be.length;ci++){var or=be[ci];(g||(g=new e.Set)).add(or),C=C||e.endsWith(or,e.inferredTypesContainingFile)}}}return Cr}function ur(Le){Fe(Le);var Xe=C;cr(p.get(Le),e.returnTrue)&&C&&!Xe&&N.onChangedAutomaticTypeDirectiveNames()}function Ir(Le){e.Debug.assert(S===Le||S===void 0),S=Le}function dr(Le,Xe){if(Xe)(ue||(ue=[])).push(Le);else{var Cr=a(Le);if(!Cr||(Le=Cr,N.fileIsOpen(Le)))return!1;var Lr=e.getDirectoryPath(Le);if(ke(Le)||e.isNodeModulesDirectory(Le)||ke(Lr)||e.isNodeModulesDirectory(Lr))(G||(G=[])).push(Le),(E||(E=new e.Set)).add(Le);else{if(!ar(Le)&&!ne.has(Le)||e.isEmittedFileOfProgram(N.getCurrentProgram(),Le))return!1;(G||(G=[])).push(Le);var Jr=e.parseNodeModuleFromPath(Le);Jr&&(E||(E=new e.Set)).add(Jr)}}N.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Br(){if(!G&&!E&&!ue)return!1;var Le=cr(se,Tr);return G=void 0,E=void 0,ue=void 0,Le}function Tr(Le){return Le.failedLookupLocations.some(function(Xe){var Cr=N.toPath(Xe);return e.contains(G,Cr)||e.firstDefinedIterator((E==null?void 0:E.keys())||e.emptyIterator,function(Lr){return e.startsWith(Cr,Lr)?!0:void 0})||(ue==null?void 0:ue.some(function(Lr){return J(Lr,Cr)}))})}function n(){e.clearMap(D,e.closeFileWatcher)}function Er(Le,Xe){if(J(f,Xe))return f;var Cr=He(Le,Xe);return Cr&&ee.has(Cr.dirPath)?Cr.dirPath:void 0}function br(Le,Xe){return N.watchTypeRootsDirectory(Xe,function(Cr){var Lr=N.toPath(Cr);re&&re.addOrDeleteFileOrDirectory(Cr,Lr),C=!0,N.onChangedAutomaticTypeDirectiveNames();var Jr=Er(Xe,Le);Jr&&dr(Lr,Jr===Lr)},1)}function Pr(){var Le=N.getCompilationSettings();if(Le.types){n();return}var Xe=e.getEffectiveTypeRoots(Le,{directoryExists:Ce,getCurrentDirectory:B});Xe?e.mutateMap(D,e.arrayToMap(Xe,function(Cr){return N.toPath(Cr)}),{createNewValue:br,onDeleteValue:e.closeFileWatcher}):n()}function Ce(Le){var Xe=e.getDirectoryPath(e.getDirectoryPath(Le)),Cr=N.toPath(Xe);return Cr===f||O(Cr)}}e.createResolutionCache=L;function W(N){var Q,pe;return!!(((Q=N.resolvedModule)===null||Q===void 0?void 0:Q.originalPath)||((pe=N.resolvedTypeReferenceDirective)===null||pe===void 0?void 0:pe.originalPath))}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(z){z[z.Relative=0]="Relative",z[z.NonRelative=1]="NonRelative",z[z.Shortest=2]="Shortest",z[z.ExternalNonRelative=3]="ExternalNonRelative"})(L||(L={}));var W;(function(z){z[z.Minimal=0]="Minimal",z[z.Index=1]="Index",z[z.JsExtension=2]="JsExtension"})(W||(W={}));function N(z,y,oe,ve){var ce=y.importModuleSpecifierPreference,m=y.importModuleSpecifierEnding;return{relativePreference:ce==="relative"?0:ce==="non-relative"?1:ce==="project-relative"?3:2,ending:de()};function de(){switch(m){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return x(ve)||pe(oe,ve.path,z)?2:e.getEmitModuleResolutionKind(oe)!==e.ModuleResolutionKind.NodeJs?1:0}}}function Q(z,y,oe,ve){return{relativePreference:e.isExternalModuleNameRelative(y)?0:1,ending:e.hasJSFileExtension(y)||pe(z,oe,ve)?2:e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeJs||e.endsWith(y,"index")?1:0}}function pe(z,y,oe){var ve;return e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(y,(ve=oe.getPackageJsonInfoCache)===null||ve===void 0?void 0:ve.call(oe),F(oe),z)!==e.ModuleKind.CommonJS}function F(z){var y;return{fileExists:z.fileExists,readFile:e.Debug.checkDefined(z.readFile),directoryExists:z.directoryExists,getCurrentDirectory:z.getCurrentDirectory,realpath:z.realpath,useCaseSensitiveFileNames:(y=z.useCaseSensitiveFileNames)===null||y===void 0?void 0:y.call(z)}}function g(z,y,oe,ve,ce,m){var de=se(z,y,oe,ve,ce,Q(z,m,oe,ce),{});if(de!==m)return de}O.updateModuleSpecifier=g;function S(z,y,oe,ve,ce){return se(z,y,oe,ve,ce,N(ce,{},z,y),{})}O.getModuleSpecifier=S;function H(z,y,oe,ve,ce){var m=B(y.path,ve),de=Z(y.path,oe,ve,ce);return e.firstDefined(de,function(ae){return P(ae,m,y,ve,z,!0)})}O.getNodeModulesPackageName=H;function se(z,y,oe,ve,ce,m,de){var ae=B(oe,ce),V=Z(oe,ve,ce,de);return e.firstDefined(V,function(le){return P(le,ae,y,ce,z)})||re(ve,ae,z,ce,m)}function p(z,y,oe,ve){return C(z,y,oe,ve)[0]}O.tryGetModuleSpecifiersFromCache=p;function C(z,y,oe,ve){var ce,m=e.getSourceFileOfModule(z);if(!m)return e.emptyArray;var de=(ce=oe.getModuleSpecifierCache)===null||ce===void 0?void 0:ce.call(oe),ae=de==null?void 0:de.get(y.path,m.path,ve);return[ae==null?void 0:ae.moduleSpecifiers,m,ae==null?void 0:ae.modulePaths,de]}function G(z,y,oe,ve,ce,m){return E(z,y,oe,ve,ce,m).moduleSpecifiers}O.getModuleSpecifiers=G;function E(z,y,oe,ve,ce,m){var de=!1,ae=I(z,y);if(ae)return{moduleSpecifiers:[ae],computedWithoutCache:de};var V=C(z,ve,ce,m),le=V[0],ke=V[1],Ue=V[2],He=V[3];if(le)return{moduleSpecifiers:le,computedWithoutCache:de};if(!ke)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:de};de=!0,Ue||(Ue=k(ve.path,ke.originalFileName,ce));var ar=ue(Ue,oe,ve,ce,m);return He==null||He.set(ve.path,ke.path,m,Ue,ar),{moduleSpecifiers:ar,computedWithoutCache:de}}O.getModuleSpecifiersWithCacheInfo=E;function ue(z,y,oe,ve,ce){var m=B(oe.path,ve),de=N(ve,ce,y,oe),ae=e.forEach(z,function(he){return e.forEach(ve.getFileIncludeReasons().get(e.toPath(he.path,ve.getCurrentDirectory(),m.getCanonicalFileName)),function(we){if(!(we.kind!==e.FileIncludeKind.Import||we.file!==oe.path)){var ye=e.getModuleNameStringLiteralAt(oe,we.index).text;return de.relativePreference!==1||!e.pathIsRelative(ye)?ye:void 0}})});if(ae){var V=[ae];return V}for(var le=e.some(z,function(he){return he.isInNodeModules}),ke,Ue,He,ar=0,gr=z;ar<gr.length;ar++){var me=gr[ar],Ge=P(me,m,oe,ve,y);if(ke=e.append(ke,Ge),Ge&&me.isRedirect)return ke;if(!Ge&&!me.isRedirect){var er=re(me.path,m,y,ve,de);e.pathIsBareSpecifier(er)?Ue=e.append(Ue,er):(!le||me.isInNodeModules)&&(He=e.append(He,er))}}return Ue!=null&&Ue.length?Ue:ke!=null&&ke.length?ke:e.Debug.checkDefined(He)}function B(z,y){var oe=e.createGetCanonicalFileName(y.useCaseSensitiveFileNames?y.useCaseSensitiveFileNames():!0),ve=e.getDirectoryPath(z);return{getCanonicalFileName:oe,importingSourceFileName:z,sourceDirectory:ve}}function re(z,y,oe,ve,ce){var m=ce.ending,de=ce.relativePreference,ae=oe.baseUrl,V=oe.paths,le=oe.rootDirs,ke=y.sourceDirectory,Ue=y.getCanonicalFileName,He=le&&f(le,z,ke,Ue,m,oe)||_(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ke,z,Ue)),m,oe);if(!ae&&!V||de===0)return He;var ar=e.getNormalizedAbsolutePath(e.getPathsBasePath(oe,ve)||ae,ve.getCurrentDirectory()),gr=j(z,ar,Ue);if(!gr)return He;var me=_(gr,m,oe),Ge=V&&ne(e.removeFileExtension(gr),me,V),er=Ge===void 0&&ae!==void 0?me:Ge;if(!er)return He;if(de===1)return er;if(de===3){var he=oe.configFilePath?e.toPath(e.getDirectoryPath(oe.configFilePath),ve.getCurrentDirectory(),y.getCanonicalFileName):y.getCanonicalFileName(ve.getCurrentDirectory()),we=e.toPath(z,he,Ue),ye=e.startsWith(ke,he),Se=e.startsWith(we,he);if(ye&&!Se||!ye&&Se)return er;var ge=_e(ve,e.getDirectoryPath(we)),Fe=_e(ve,ke);return Fe!==ge?er:He}return de!==2&&e.Debug.assertNever(de),U(er)||M(He)<M(er)?He:er}function M(z){for(var y=0,oe=e.startsWith(z,"./")?2:0;oe<z.length;oe++)z.charCodeAt(oe)===47&&y++;return y}O.countPathComponents=M;function x(z){var y=z.imports;return e.firstDefined(y,function(oe){var ve=oe.text;return e.pathIsRelative(ve)?e.hasJSFileExtension(ve):void 0})||!1}function ie(z,y){return e.compareBooleans(y.isRedirect,z.isRedirect)||e.compareNumberOfDirectorySeparators(z.path,y.path)}function _e(z,y){return z.getNearestAncestorDirectoryWithPackageJson?z.getNearestAncestorDirectoryWithPackageJson(y):!!e.forEachAncestorDirectory(y,function(oe){return z.fileExists(e.combinePaths(oe,"package.json"))?!0:void 0})}function Y(z,y,oe,ve,ce){var m,de=e.hostGetCanonicalFileName(oe),ae=oe.getCurrentDirectory(),V=oe.isSourceOfProjectReferenceRedirect(y)?oe.getProjectReferenceRedirect(y):void 0,le=e.toPath(y,ae,de),ke=oe.redirectTargetsMap.get(le)||e.emptyArray,Ue=qe(qe(qe([],V?[V]:e.emptyArray,!0),[y],!1),ke,!0),He=Ue.map(function(he){return e.getNormalizedAbsolutePath(he,ae)}),ar=!e.every(He,e.containsIgnoredPath);if(!ve){var gr=e.forEach(He,function(he){return!(ar&&e.containsIgnoredPath(he))&&ce(he,V===he)});if(gr)return gr}var me=(m=oe.getSymlinkCache)===null||m===void 0?void 0:m.call(oe).getSymlinkedDirectoriesByRealpath(),Ge=e.getNormalizedAbsolutePath(y,ae),er=me&&e.forEachAncestorDirectory(e.getDirectoryPath(Ge),function(he){var we=me.get(e.ensureTrailingDirectorySeparator(e.toPath(he,ae,de)));if(!!we)return e.startsWithDirectory(z,he,de)?!1:e.forEach(He,function(ye){if(!!e.startsWithDirectory(ye,he,de))for(var Se=e.getRelativePathFromDirectory(he,ye,de),ge=0,Fe=we;ge<Fe.length;ge++){var cr=Fe[ge],ur=e.resolvePath(cr,Se),Ir=ce(ur,ye===V);if(ar=!0,Ir)return Ir}})});return er||(ve?e.forEach(He,function(he){return ar&&e.containsIgnoredPath(he)?void 0:ce(he,he===V)}):void 0)}O.forEachFileNameOfModule=Y;function Z(z,y,oe,ve,ce){var m;ce===void 0&&(ce=e.toPath(y,oe.getCurrentDirectory(),e.hostGetCanonicalFileName(oe)));var de=(m=oe.getModuleSpecifierCache)===null||m===void 0?void 0:m.call(oe);if(de){var ae=de.get(z,ce,ve);if(ae!=null&&ae.modulePaths)return ae.modulePaths}var V=k(z,y,oe);return de&&de.setModulePaths(z,ce,ve,V),V}function k(z,y,oe){var ve=e.hostGetCanonicalFileName(oe),ce=new e.Map,m=!1;Y(z,y,oe,!0,function(He,ar){var gr=e.pathContainsNodeModules(He);ce.set(He,{path:ve(He),isRedirect:ar,isInNodeModules:gr}),m=m||gr});for(var de=[],ae=function(He){var ar=e.ensureTrailingDirectorySeparator(He),gr;ce.forEach(function(Ge,er){var he=Ge.path,we=Ge.isRedirect,ye=Ge.isInNodeModules;e.startsWith(he,ar)&&((gr||(gr=[])).push({path:er,isRedirect:we,isInNodeModules:ye}),ce.delete(er))}),gr&&(gr.length>1&&gr.sort(ie),de.push.apply(de,gr));var me=e.getDirectoryPath(He);if(me===He)return V=He,"break";He=me,V=He},V,le=e.getDirectoryPath(z);ce.size!==0;){var ke=ae(le);if(le=V,ke==="break")break}if(ce.size){var Ue=e.arrayFrom(ce.values());Ue.length>1&&Ue.sort(ie),de.push.apply(de,Ue)}return de}function I(z,y){var oe,ve=(oe=z.declarations)===null||oe===void 0?void 0:oe.find(function(de){return e.isNonGlobalAmbientModule(de)&&(!e.isExternalModuleAugmentation(de)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(de.name)))});if(ve)return ve.name.text;var ce=e.mapDefined(z.declarations,function(de){var ae,V,le,ke;if(!e.isModuleDeclaration(de))return;var Ue=me(de);if(!(((ae=Ue==null?void 0:Ue.parent)===null||ae===void 0?void 0:ae.parent)&&e.isModuleBlock(Ue.parent)&&e.isAmbientModule(Ue.parent.parent)&&e.isSourceFile(Ue.parent.parent.parent)))return;var He=(ke=(le=(V=Ue.parent.parent.symbol.exports)===null||V===void 0?void 0:V.get("export="))===null||le===void 0?void 0:le.valueDeclaration)===null||ke===void 0?void 0:ke.expression;if(!He)return;var ar=y.getSymbolAtLocation(He);if(!ar)return;var gr=(ar==null?void 0:ar.flags)&2097152?y.getAliasedSymbol(ar):ar;if(gr===de.symbol)return Ue.parent.parent;function me(Ge){for(;Ge.flags&4;)Ge=Ge.parent;return Ge}}),m=ce[0];if(m)return m.name.text}function ne(z,y,oe){for(var ve in oe)for(var ce=0,m=oe[ve];ce<m.length;ce++){var de=m[ce],ae=e.removeFileExtension(e.normalizePath(de)),V=ae.indexOf("*");if(V!==-1){var le=ae.substr(0,V),ke=ae.substr(V+1);if(y.length>=le.length+ke.length&&e.startsWith(y,le)&&e.endsWith(y,ke)||!ke&&y===e.removeTrailingDirectorySeparator(le)){var Ue=y.substr(le.length,y.length-ke.length-le.length);return ve.replace("*",Ue)}}else if(ae===y||ae===z)return ve}}var ee;(function(z){z[z.Exact=0]="Exact",z[z.Directory=1]="Directory",z[z.Pattern=2]="Pattern"})(ee||(ee={}));function A(z,y,oe,ve,ce,m,de){if(de===void 0&&(de=0),typeof ce=="string"){var ae=e.getNormalizedAbsolutePath(e.combinePaths(oe,ce),void 0),V=e.hasTSFileExtension(y)?e.removeFileExtension(y)+w(y,z):void 0;switch(de){case 0:if(e.comparePaths(y,ae)===0||V&&e.comparePaths(V,ae)===0)return{moduleFileToTry:ve};break;case 1:if(e.containsPath(ae,y)){var le=e.getRelativePathFromDirectory(ae,y,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(ve,ce),le),void 0)}}break;case 2:var ke=ae.indexOf("*"),Ue=ae.slice(0,ke),He=ae.slice(ke+1);if(e.startsWith(y,Ue)&&e.endsWith(y,He)){var ar=y.slice(Ue.length,y.length-He.length);return{moduleFileToTry:ve.replace("*",ar)}}if(V&&e.startsWith(V,Ue)&&e.endsWith(V,He)){var ar=V.slice(Ue.length,V.length-He.length);return{moduleFileToTry:ve.replace("*",ar)}}break}}else{if(Array.isArray(ce))return e.forEach(ce,function(we){return A(z,y,oe,ve,we,m)});if(typeof ce=="object"&&ce!==null){if(e.allKeysStartWithDot(ce))return e.forEach(e.getOwnKeys(ce),function(we){var ye=e.getNormalizedAbsolutePath(e.combinePaths(ve,we),void 0),Se=e.endsWith(we,"/")?1:e.stringContains(we,"*")?2:0;return A(z,y,oe,ye,ce[we],m,Se)});for(var gr=0,me=e.getOwnKeys(ce);gr<me.length;gr++){var Ge=me[gr];if(Ge==="default"||m.indexOf(Ge)>=0||e.isApplicableVersionedTypesKey(m,Ge)){var er=ce[Ge],he=A(z,y,oe,ve,er,m);if(he)return he}}}}}function f(z,y,oe,ve,ce,m){var de=l(y,z,ve);if(de!==void 0){var ae=l(oe,z,ve),V=ae!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(ae,de,ve)):de;return e.getEmitModuleResolutionKind(m)===e.ModuleResolutionKind.NodeJs?_(V,ce,m):e.removeFileExtension(V)}}function P(z,y,oe,ve,ce,m){var de=z.path,ae=z.isRedirect,V=y.getCanonicalFileName,le=y.sourceDirectory;if(!ve.fileExists||!ve.readFile)return;var ke=e.getNodeModulePathParts(de);if(!ke)return;var Ue=de,He=!1;if(!m)for(var ar=ke.packageRootIndex,gr=void 0;;){var me=cr(ar),Ge=me.moduleFileToTry,er=me.packageRootPath,he=me.blockedByExports,we=me.verbatimFromExports;if(e.getEmitModuleResolutionKind(ce)!==e.ModuleResolutionKind.Classic){if(he)return;if(we)return Ge}if(er){Ue=er,He=!0;break}if(gr||(gr=Ge),ar=de.indexOf(e.directorySeparator,ar+1),ar===-1){Ue=ur(gr);break}}if(ae&&!He)return;var ye=ve.getGlobalTypingsCacheLocation&&ve.getGlobalTypingsCacheLocation(),Se=V(Ue.substring(0,ke.topLevelNodeModulesIndex));if(!(e.startsWith(le,Se)||ye&&e.startsWith(V(ye),Se)))return;var ge=Ue.substring(ke.topLevelPackageNameIndex+1),Fe=e.getPackageNameFromTypesPackageName(ge);return e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.Classic&&Fe===ge?void 0:Fe;function cr(Ir){var dr,Br,Tr=de.substring(0,Ir),n=e.combinePaths(Tr,"package.json"),Er=de,br=(Br=(dr=ve.getPackageJsonInfoCache)===null||dr===void 0?void 0:dr.call(ve))===null||Br===void 0?void 0:Br.getPackageJsonInfo(n);if(typeof br=="object"||br===void 0&&ve.fileExists(n)){var Pr=(br==null?void 0:br.packageJsonContent)||JSON.parse(ve.readFile(n));if(e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.NodeNext){var Ce=["node",oe.impliedNodeFormat===e.ModuleKind.ESNext?"import":"require","types"],Le=Pr.exports&&typeof Pr.name=="string"?A(ce,de,Tr,e.getPackageNameFromTypesPackageName(Pr.name),Pr.exports,Ce):void 0;if(Le){var Xe=e.hasTSFileExtension(Le.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Le.moduleFileToTry)+w(Le.moduleFileToTry,ce)}:Le;return Ve(Ve({},Xe),{verbatimFromExports:!0})}if(Pr.exports)return{moduleFileToTry:de,blockedByExports:!0}}var Cr=Pr.typesVersions?e.getPackageJsonTypesVersionsPaths(Pr.typesVersions):void 0;if(Cr){var Lr=de.slice(Tr.length+1),Jr=ne(e.removeFileExtension(Lr),_(Lr,0,ce),Cr.paths);Jr!==void 0&&(Er=e.combinePaths(Tr,Jr))}var Rr=Pr.typings||Pr.types||Pr.main;if(e.isString(Rr)){var ci=e.toPath(Rr,Tr,V);if(e.removeFileExtension(ci)===e.removeFileExtension(V(Er)))return{packageRootPath:Tr,moduleFileToTry:Er}}}return{moduleFileToTry:Er}}function ur(Ir){var dr=e.removeFileExtension(Ir);return V(dr.substring(ke.fileNameIndex))==="/index"&&!D(ve,dr.substring(0,ke.fileNameIndex))?dr.substring(0,ke.fileNameIndex):dr}}function D(z,y){if(!!z.fileExists)for(var oe=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),ve=0,ce=oe;ve<ce.length;ve++){var m=ce[ve],de=y+m;if(z.fileExists(de))return de}}function l(z,y,oe){return e.firstDefined(y,function(ve){var ce=j(z,ve,oe);return ce!==void 0&&U(ce)?void 0:ce})}function _(z,y,oe){if(e.fileExtensionIsOneOf(z,[".json",".mjs",".cjs"]))return z;var ve=e.removeFileExtension(z);if(e.fileExtensionIsOneOf(z,[".d.mts",".mts",".d.cts",".cts"]))return ve+J(z,oe);switch(y){case 0:return e.removeSuffix(ve,"/index");case 1:return ve;case 2:return ve+J(z,oe);default:return e.Debug.assertNever(y)}}function J(z,y){var oe;return(oe=w(z,y))!==null&&oe!==void 0?oe:e.Debug.fail("Extension ".concat(e.extensionFromPath(z)," is unsupported:: FileName:: ").concat(z))}function w(z,y){var oe=e.tryGetExtensionFromPath(z);switch(oe){case".ts":case".d.ts":return".js";case".tsx":return y.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return oe;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}O.tryGetJSExtensionForFile=w;function j(z,y,oe){var ve=e.getRelativePathToDirectoryOrUrl(y,z,y,oe,!1);return e.isRootedDiskPath(ve)?void 0:ve}function U(z){return e.startsWith(z,"..")}})(a=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(Pe||(Pe={}));var Pe;(function(e){var a=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function O(l,_){var J=l===e.sys&&a?a:{getCurrentDirectory:function(){return l.getCurrentDirectory()},getNewLine:function(){return l.newLine},getCanonicalFileName:e.createGetCanonicalFileName(l.useCaseSensitiveFileNames)};if(!_)return function(j){return l.write(e.formatDiagnostic(j,J))};var w=new Array(1);return function(j){w[0]=j,l.write(e.formatDiagnosticsWithColorAndContext(w,J)+J.getNewLine()),w[0]=void 0}}e.createDiagnosticReporter=O;function L(l,_,J){return l.clearScreen&&!J.preserveWatchOutput&&!J.extendedDiagnostics&&!J.diagnostics&&e.contains(e.screenStartingMessageCodes,_.code)?(l.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function W(l,_){return e.contains(e.screenStartingMessageCodes,l.code)?_+_:_}function N(l){return l.now?l.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=N;function Q(l,_){return _?function(J,w,j){L(l,J,j);var U="[".concat(e.formatColorAndReset(N(l),e.ForegroundColorEscapeSequences.Grey),"] ");U+="".concat(e.flattenDiagnosticMessageText(J.messageText,l.newLine)).concat(w+w),l.write(U)}:function(J,w,j){var U="";L(l,J,j)||(U+=w),U+="".concat(N(l)," - "),U+="".concat(e.flattenDiagnosticMessageText(J.messageText,l.newLine)).concat(W(J,w)),l.write(U)}}e.createWatchStatusReporter=Q;function pe(l,_,J,w,j,U){var z=j;z.onUnRecoverableConfigFileDiagnostic=function(oe){return A(j,U,oe)};var y=e.getParsedCommandLineOfConfigFile(l,_,z,J,w);return z.onUnRecoverableConfigFileDiagnostic=void 0,y}e.parseConfigFileWithSystem=pe;function F(l){return e.countWhere(l,function(_){return _.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=F;function g(l){var _=e.filter(l,function(J){return J.category===e.DiagnosticCategory.Error}).map(function(J){if(J.file!==void 0)return"".concat(J.file.fileName)});return _.map(function(J){var w=e.find(l,function(U){return U.file!==void 0&&U.file.fileName===J});if(w!==void 0){var j=e.getLineAndCharacterOfPosition(w.file,w.start).line;return{fileName:J,line:j+1}}})}e.getFilesInErrorForSummary=g;function S(l){return l===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=S;function H(l,_){var J=e.formatColorAndReset(":"+l.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(l.fileName)&&e.pathIsAbsolute(_)?e.getRelativePathFromDirectory(_,l.fileName,!1)+J:l.fileName+J}function se(l,_,J,w){if(l===0)return"";var j=_.filter(function(ve){return ve!==void 0}),U=j.map(function(ve){return"".concat(ve.fileName,":").concat(ve.line)}).filter(function(ve,ce,m){return m.indexOf(ve)===ce}),z=j[0]&&H(j[0],w.getCurrentDirectory()),y=l===1?e.createCompilerDiagnostic(_[0]!==void 0?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,l,z):e.createCompilerDiagnostic(U.length===0?e.Diagnostics.Found_0_errors:U.length===1?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,l,U.length===1?z:U.length),oe=U.length>1?p(j,w):"";return"".concat(J).concat(e.flattenDiagnosticMessageText(y.messageText,J)).concat(J).concat(J).concat(oe)}e.getErrorSummaryText=se;function p(l,_){var J=l.filter(function(m,de,ae){return de===ae.findIndex(function(V){return(V==null?void 0:V.fileName)===(m==null?void 0:m.fileName)})});if(J.length===0)return"";var w=function(m){return Math.log(m)*Math.LOG10E+1},j=J.map(function(m){return[m,e.countWhere(l,function(de){return de.fileName===m.fileName})]}),U=j.reduce(function(m,de){return Math.max(m,de[1]||0)},0),z=e.Diagnostics.Errors_Files.message,y=z.split(" ")[0].length,oe=Math.max(y,w(U)),ve=Math.max(w(U)-y,0),ce="";return ce+=" ".repeat(ve)+z+`
|
|
`,j.forEach(function(m){var de=m[0],ae=m[1],V=Math.log(ae)*Math.LOG10E+1|0,le=V<oe?" ".repeat(oe-V):"",ke=H(de,_.getCurrentDirectory());ce+="".concat(le).concat(ae," ").concat(ke,`
|
|
`)}),ce}function C(l){return!!l.getState}e.isBuilderProgram=C;function G(l,_){var J=l.getCompilerOptions();J.explainFiles?E(C(l)?l.getProgram():l,_):(J.listFiles||J.listFilesOnly)&&e.forEach(l.getSourceFiles(),function(w){_(w.fileName)})}e.listFiles=G;function E(l,_){for(var J,w,j=l.getFileIncludeReasons(),U=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),z=function(ce){return e.convertToRelativePath(ce,l.getCurrentDirectory(),U)},y=0,oe=l.getSourceFiles();y<oe.length;y++){var ve=oe[y];_("".concat(x(ve,z))),(J=j.get(ve.path))===null||J===void 0||J.forEach(function(ce){return _(" ".concat(M(l,ce,z).messageText))}),(w=ue(ve,z))===null||w===void 0||w.forEach(function(ce){return _(" ".concat(ce.messageText))})}}e.explainFiles=E;function ue(l,_){var J;return l.path!==l.resolvedPath&&(J||(J=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,x(l.originalFileName,_))),l.redirectInfo&&(J||(J=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,x(l.redirectInfo.redirectTarget,_))),J}e.explainIfFileIsRedirect=ue;function B(l,_){var J,w=l.getCompilerOptions().configFile;if(!!(!((J=w==null?void 0:w.configFileSpecs)===null||J===void 0)&&J.validatedFilesSpec)){var j=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),U=j(_),z=e.getDirectoryPath(e.getNormalizedAbsolutePath(w.fileName,l.getCurrentDirectory()));return e.find(w.configFileSpecs.validatedFilesSpec,function(y){return j(e.getNormalizedAbsolutePath(y,z))===U})}}e.getMatchedFileSpec=B;function re(l,_){var J,w,j=l.getCompilerOptions().configFile;if(!!(!((J=j==null?void 0:j.configFileSpecs)===null||J===void 0)&&J.validatedIncludeSpecs)){var U=e.fileExtensionIs(_,".json"),z=e.getDirectoryPath(e.getNormalizedAbsolutePath(j.fileName,l.getCurrentDirectory())),y=l.useCaseSensitiveFileNames();return e.find((w=j==null?void 0:j.configFileSpecs)===null||w===void 0?void 0:w.validatedIncludeSpecs,function(oe){if(U&&!e.endsWith(oe,".json"))return!1;var ve=e.getPatternFromSpec(oe,z,"files");return!!ve&&e.getRegexFromPattern("(".concat(ve,")$"),y).test(_)})}}e.getMatchedIncludeSpec=re;function M(l,_,J){var w,j,U=l.getCompilerOptions();if(e.isReferencedFile(_)){var z=e.getReferencedFileLocation(function(le){return l.getSourceFileByPath(le)},_),y=e.isReferenceFileLocation(z)?z.file.text.substring(z.pos,z.end):'"'.concat(z.text,'"'),oe=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(z)||_.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),_.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(z)?oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:z.text===e.externalHelpersModuleNameText?oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:oe=z.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!z.packageId),oe=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:oe=z.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!z.packageId),oe=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(_)}return e.chainDiagnosticMessages(void 0,oe,y,x(z.file,J),z.packageId&&e.packageIdToString(z.packageId))}switch(_.kind){case e.FileIncludeKind.RootFile:if(!(!((w=U.configFile)===null||w===void 0)&&w.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var ve=e.getNormalizedAbsolutePath(l.getRootFileNames()[_.index],l.getCurrentDirectory()),ce=B(l,ve);if(ce)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var m=re(l,ve);return m?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,m,x(U.configFile,J)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var de=_.kind===e.FileIncludeKind.OutputFromProjectReference,ae=e.Debug.checkDefined((j=l.getResolvedProjectReferences())===null||j===void 0?void 0:j[_.index]);return e.chainDiagnosticMessages(void 0,e.outFile(U)?de?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:de?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,x(ae.sourceFile.fileName,J),U.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,U.types?_.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:_.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,_.typeReference,_.packageId&&e.packageIdToString(_.packageId));case e.FileIncludeKind.LibFile:if(_.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,U.lib[_.index]);var V=e.forEachEntry(e.targetOptionDeclaration.type,function(le,ke){return le===e.getEmitScriptTarget(U)?ke:void 0});return e.chainDiagnosticMessages(void 0,V?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,V);default:e.Debug.assertNever(_)}}e.fileIncludeReasonToDiagnostics=M;function x(l,_){var J=e.isString(l)?l:l.fileName;return _?_(J):J}function ie(l,_,J,w,j,U,z,y){var oe=!!l.getCompilerOptions().listFilesOnly,ve=l.getConfigFileParsingDiagnostics().slice(),ce=ve.length;e.addRange(ve,l.getSyntacticDiagnostics(void 0,U)),ve.length===ce&&(e.addRange(ve,l.getOptionsDiagnostics(U)),oe||(e.addRange(ve,l.getGlobalDiagnostics(U)),ve.length===ce&&e.addRange(ve,l.getSemanticDiagnostics(void 0,U))));var m=oe?{emitSkipped:!0,diagnostics:e.emptyArray}:l.emit(void 0,j,U,z,y),de=m.emittedFiles,ae=m.diagnostics;e.addRange(ve,ae);var V=e.sortAndDeduplicateDiagnostics(ve);if(V.forEach(_),J){var le=l.getCurrentDirectory();e.forEach(de,function(ke){var Ue=e.getNormalizedAbsolutePath(ke,le);J("TSFILE: ".concat(Ue))}),G(l,J)}return w&&w(F(V),g(V)),{emitResult:m,diagnostics:V}}e.emitFilesAndReportErrors=ie;function _e(l,_,J,w,j,U,z,y){var oe=ie(l,_,J,w,j,U,z,y),ve=oe.emitResult,ce=oe.diagnostics;return ve.emitSkipped&&ce.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:ce.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=_e,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function Y(l,_){l===void 0&&(l=e.sys);var J=_||Q(l);return{onWatchStatusChange:J,watchFile:e.maybeBind(l,l.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(l,l.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(l,l.setTimeout)||e.noop,clearTimeout:e.maybeBind(l,l.clearTimeout)||e.noop}}e.createWatchHost=Y,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"};function Z(l,_){var J=l.trace?_.extendedDiagnostics?e.WatchLogLevel.Verbose:_.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,w=J!==e.WatchLogLevel.None?function(U){return l.trace(U)}:e.noop,j=e.getWatchFactory(l,J,w);return j.writeLog=w,j}e.createWatchFactory=Z;function k(l,_,J){J===void 0&&(J=l);var w=l.useCaseSensitiveFileNames(),j=e.memoize(function(){return l.getNewLine()});return{getSourceFile:function(z,y,oe){var ve;try{e.performance.mark("beforeIORead"),ve=l.readFile(z,_().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(ce){oe&&oe(ce.message),ve=""}return ve!==void 0?e.createSourceFile(z,ve,y):void 0},getDefaultLibLocation:e.maybeBind(l,l.getDefaultLibLocation),getDefaultLibFileName:function(z){return l.getDefaultLibFileName(z)},writeFile:U,getCurrentDirectory:e.memoize(function(){return l.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return w},getCanonicalFileName:e.createGetCanonicalFileName(w),getNewLine:function(){return e.getNewLineCharacter(_(),j)},fileExists:function(z){return l.fileExists(z)},readFile:function(z){return l.readFile(z)},trace:e.maybeBind(l,l.trace),directoryExists:e.maybeBind(J,J.directoryExists),getDirectories:e.maybeBind(J,J.getDirectories),realpath:e.maybeBind(l,l.realpath),getEnvironmentVariable:e.maybeBind(l,l.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(l,l.createHash),readDirectory:e.maybeBind(l,l.readDirectory),disableUseFileVersionAsSignature:l.disableUseFileVersionAsSignature};function U(z,y,oe,ve){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(z,y,oe,function(ce,m,de){return l.writeFile(ce,m,de)},function(ce){return l.createDirectory(ce)},function(ce){return l.directoryExists(ce)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(ce){ve&&ve(ce.message)}}}e.createCompilerHostFromProgramHost=k;function I(l,_){var J=l.getSourceFile,w=e.maybeBind(_,_.createHash)||e.generateDjb2Hash;l.getSourceFile=function(){for(var j=[],U=0;U<arguments.length;U++)j[U]=arguments[U];var z=J.call.apply(J,qe([l],j,!1));return z&&(z.version=w(z.text)),z}}e.setGetSourceFileAsHashVersioned=I;function ne(l,_){var J=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(l.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return l.useCaseSensitiveFileNames},getNewLine:function(){return l.newLine},getCurrentDirectory:e.memoize(function(){return l.getCurrentDirectory()}),getDefaultLibLocation:J,getDefaultLibFileName:function(w){return e.combinePaths(J(),e.getDefaultLibFileName(w))},fileExists:function(w){return l.fileExists(w)},readFile:function(w,j){return l.readFile(w,j)},directoryExists:function(w){return l.directoryExists(w)},getDirectories:function(w){return l.getDirectories(w)},readDirectory:function(w,j,U,z,y){return l.readDirectory(w,j,U,z,y)},realpath:e.maybeBind(l,l.realpath),getEnvironmentVariable:e.maybeBind(l,l.getEnvironmentVariable),trace:function(w){return l.write(w+l.newLine)},createDirectory:function(w){return l.createDirectory(w)},writeFile:function(w,j,U){return l.writeFile(w,j,U)},createHash:e.maybeBind(l,l.createHash),createProgram:_||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:l.disableUseFileVersionAsSignature}}e.createProgramHost=ne;function ee(l,_,J,w){l===void 0&&(l=e.sys);var j=function(z){return l.write(z+l.newLine)},U=ne(l,_);return e.copyProperties(U,Y(l,w)),U.afterProgramCreate=function(z){var y=z.getCompilerOptions(),oe=e.getNewLineCharacter(y,function(){return l.newLine});ie(z,J,j,function(ve){return U.onWatchStatusChange(e.createCompilerDiagnostic(S(ve),ve),oe,y,ve)})},U}function A(l,_,J){_(J),l.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function f(l){var _=l.configFileName,J=l.optionsToExtend,w=l.watchOptionsToExtend,j=l.extraFileExtensions,U=l.system,z=l.createProgram,y=l.reportDiagnostic,oe=l.reportWatchStatus,ve=y||O(U),ce=ee(U,z,ve,oe);return ce.onUnRecoverableConfigFileDiagnostic=function(m){return A(U,ve,m)},ce.configFileName=_,ce.optionsToExtend=J,ce.watchOptionsToExtend=w,ce.extraFileExtensions=j,ce}e.createWatchCompilerHostOfConfigFile=f;function P(l){var _=l.rootFiles,J=l.options,w=l.watchOptions,j=l.projectReferences,U=l.system,z=l.createProgram,y=l.reportDiagnostic,oe=l.reportWatchStatus,ve=ee(U,z,y||O(U),oe);return ve.rootFiles=_,ve.options=J,ve.watchOptions=w,ve.projectReferences=j,ve}e.createWatchCompilerHostOfFilesAndCompilerOptions=P;function D(l){var _=l.system||e.sys,J=l.host||(l.host=e.createIncrementalCompilerHost(l.options,_)),w=e.createIncrementalProgram(l),j=_e(w,l.reportDiagnostic||O(_),function(U){return J.trace&&J.trace(U)},l.reportErrorSummary||l.options.pretty?function(U,z){return _.write(se(U,z,_.newLine,J))}:void 0);return l.afterProgramEmitAndDiagnostics&&l.afterProgramEmitAndDiagnostics(w),j}e.performIncrementalCompilation=D})(Pe||(Pe={}));var Pe;(function(e){function a(Q,pe){if(!e.outFile(Q)){var F=e.getTsBuildInfoEmitOutputFilePath(Q);if(!!F){var g=pe.readFile(F);if(!!g){var S=e.getBuildInfo(g);if(S.version===e.version&&!!S.program)return e.createBuildProgramUsingProgramBuildInfo(S.program,F,pe)}}}}e.readBuilderProgram=a;function O(Q,pe){pe===void 0&&(pe=e.sys);var F=e.createCompilerHostWorker(Q,void 0,pe);return F.createHash=e.maybeBind(pe,pe.createHash),F.disableUseFileVersionAsSignature=pe.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(F,pe),e.changeCompilerHostLikeToUseCache(F,function(g){return e.toPath(g,F.getCurrentDirectory(),F.getCanonicalFileName)}),F}e.createIncrementalCompilerHost=O;function L(Q){var pe=Q.rootNames,F=Q.options,g=Q.configFileParsingDiagnostics,S=Q.projectReferences,H=Q.host,se=Q.createProgram;H=H||O(F),se=se||e.createEmitAndSemanticDiagnosticsBuilderProgram;var p=a(F,H);return se(pe,F,H,p,g,S)}e.createIncrementalProgram=L;function W(Q,pe,F,g,S,H,se,p){return e.isArray(Q)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:Q,options:pe,watchOptions:p,projectReferences:se,system:F,createProgram:g,reportDiagnostic:S,reportWatchStatus:H}):e.createWatchCompilerHostOfConfigFile({configFileName:Q,optionsToExtend:pe,watchOptionsToExtend:se,extraFileExtensions:p,system:F,createProgram:g,reportDiagnostic:S,reportWatchStatus:H})}e.createWatchCompilerHost=W;function N(Q){var pe,F,g,S,H,se,p,C,G,E=Q.extendedConfigCache,ue=!1,B=!1,re=new e.Map,M,x=!1,ie=Q.useCaseSensitiveFileNames(),_e=Q.getCurrentDirectory(),Y=Q.configFileName,Z=Q.optionsToExtend,k=Z===void 0?{}:Z,I=Q.watchOptionsToExtend,ne=Q.extraFileExtensions,ee=Q.createProgram,A=Q.rootFiles,f=Q.options,P=Q.watchOptions,D=Q.projectReferences,l,_,J=!1,w=!1,j=Y===void 0?void 0:e.createCachedDirectoryStructureHost(Q,_e,ie),U=j||Q,z=e.parseConfigHostFromCompilerHostLike(Q,U),y=he();Y&&Q.configFileParsingResult&&(Jr(Q.configFileParsingResult),y=he()),dr(e.Diagnostics.Starting_compilation_in_watch_mode),Y&&!Q.configFileParsingResult&&(y=e.getNewLineCharacter(k,function(){return Q.getNewLine()}),e.Debug.assert(!A),Lr(),y=he());var oe=e.createWatchFactory(Q,f),ve=oe.watchFile,ce=oe.watchDirectory,m=oe.writeLog,de=e.createGetCanonicalFileName(ie);m("Current directory: ".concat(_e," CaseSensitiveFileNames: ").concat(ie));var ae;Y&&(ae=ve(Y,Pr,e.PollingInterval.High,P,e.WatchType.ConfigFile));var V=e.createCompilerHostFromProgramHost(Q,function(){return f},U);e.setGetSourceFileAsHashVersioned(V,Q);var le=V.getSourceFile;V.getSourceFile=function(di){for(var X=[],Ye=1;Ye<arguments.length;Ye++)X[Ye-1]=arguments[Ye];return Fe.apply(void 0,qe([di,we(di)],X,!1))},V.getSourceFileByPath=Fe,V.getNewLine=function(){return y},V.fileExists=ge,V.onReleaseOldSourceFile=Ir,V.onReleaseParsedCommandLine=be,V.toPath=we,V.getCompilationSettings=function(){return f},V.useSourceOfProjectReferenceRedirect=e.maybeBind(Q,Q.useSourceOfProjectReferenceRedirect),V.watchDirectoryOfFailedLookupLocation=function(di,X,Ye){return ce(di,X,Ye,P,e.WatchType.FailedLookupLocations)},V.watchTypeRootsDirectory=function(di,X,Ye){return ce(di,X,Ye,P,e.WatchType.TypeRoots)},V.getCachedDirectoryStructureHost=function(){return j},V.scheduleInvalidateResolutionsOfFailedLookupLocations=n,V.onInvalidatedResolution=br,V.onChangedAutomaticTypeDirectiveNames=br,V.fileIsOpen=e.returnFalse,V.getCurrentProgram=gr,V.writeLog=m,V.getParsedCommandLine=Rr;var ke=e.createResolutionCache(V,Y?e.getDirectoryPath(e.getNormalizedAbsolutePath(Y,_e)):_e,!1);V.resolveModuleNames=Q.resolveModuleNames?function(){for(var di=[],X=0;X<arguments.length;X++)di[X]=arguments[X];return Q.resolveModuleNames.apply(Q,di)}:function(di,X,Ye,Be,Qe,_r){return ke.resolveModuleNames(di,X,Ye,Be,_r)},V.resolveTypeReferenceDirectives=Q.resolveTypeReferenceDirectives?function(){for(var di=[],X=0;X<arguments.length;X++)di[X]=arguments[X];return Q.resolveTypeReferenceDirectives.apply(Q,di)}:function(di,X,Ye){return ke.resolveTypeReferenceDirectives(di,X,Ye)};var Ue=!!Q.resolveModuleNames||!!Q.resolveTypeReferenceDirectives;return pe=a(f,V),me(),bt(),Y&&sr(we(Y),f,P,e.WatchType.ExtendedConfigFile),Y?{getCurrentProgram:ar,getProgram:Le,close:He}:{getCurrentProgram:ar,getProgram:Le,updateRootFileNames:er,close:He};function He(){Tr(),ke.clear(),e.clearMap(re,function(di){di&&di.fileWatcher&&(di.fileWatcher.close(),di.fileWatcher=void 0)}),ae&&(ae.close(),ae=void 0),E==null||E.clear(),E=void 0,G&&(e.clearMap(G,e.closeFileWatcherOf),G=void 0),H&&(e.clearMap(H,e.closeFileWatcherOf),H=void 0),g&&(e.clearMap(g,e.closeFileWatcher),g=void 0),C&&(e.clearMap(C,function(di){var X;(X=di.watcher)===null||X===void 0||X.close(),di.watcher=void 0,di.watchedDirectories&&e.clearMap(di.watchedDirectories,e.closeFileWatcherOf),di.watchedDirectories=void 0}),C=void 0),S&&(e.clearMap(S,e.closeFileWatcher),S=void 0)}function ar(){return pe}function gr(){return pe&&pe.getProgramOrUndefined()}function me(){m("Synchronizing program"),Tr();var di=ar();x&&(y=he(),di&&(ue||e.changesAffectModuleResolution(di.getCompilerOptions(),f))&&ke.clear());var X=ke.createHasInvalidatedResolution(Ue||ue);return e.isProgramUptoDate(gr(),A,f,ur,ge,X,Br,Rr,D)?w&&(B&&dr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),pe=ee(void 0,void 0,V,pe,_,D),w=!1):(B&&dr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),Ge(X)),ue=!1,B=!1,Q.afterProgramCreate&&di!==pe&&Q.afterProgramCreate(pe),pe}function Ge(di){m("CreatingProgramWith::"),m(" roots: ".concat(JSON.stringify(A))),m(" options: ".concat(JSON.stringify(f))),D&&m(" projectReferences: ".concat(JSON.stringify(D)));var X=x||!gr();x=!1,w=!1,ke.startCachingPerDirectoryResolution(),V.hasInvalidatedResolution=di,V.hasChangedAutomaticTypeDirectiveNames=Br,pe=ee(A,f,V,pe,_,D);var Ye=e.map(ke.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(hr){var Dr=hr[0],Me=hr[1];return[V.realpath?we(V.realpath(Dr)):Dr,Me]});if(ke.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(pe.getProgram(),g||(g=new e.Map),li),e.updatePackageJsonWatch(Ye,S||(S=new e.Map),Si),X&&ke.updateTypeRootsWatch(),M){for(var Be=0,Qe=M;Be<Qe.length;Be++){var _r=Qe[Be];g.has(_r)||re.delete(_r)}M=void 0}}function er(di){e.Debug.assert(!Y,"Cannot update root file names with config file watch mode"),A=di,br()}function he(){return e.getNewLineCharacter(f||k,function(){return Q.getNewLine()})}function we(di){return e.toPath(di,_e,de)}function ye(di){return typeof di=="boolean"}function Se(di){return typeof di.version=="boolean"}function ge(di){var X=we(di);return ye(re.get(X))?!1:U.fileExists(di)}function Fe(di,X,Ye,Be,Qe){var _r=re.get(X);if(!ye(_r)){if(_r===void 0||Qe||Se(_r)){var hr=le(di,Ye,Be);if(_r)hr?(_r.sourceFile=hr,_r.version=hr.version,_r.fileWatcher||(_r.fileWatcher=or(X,di,Kr,e.PollingInterval.Low,P,e.WatchType.SourceFile))):(_r.fileWatcher&&_r.fileWatcher.close(),re.set(X,!1));else if(hr){var Dr=or(X,di,Kr,e.PollingInterval.Low,P,e.WatchType.SourceFile);re.set(X,{sourceFile:hr,version:hr.version,fileWatcher:Dr})}else re.set(X,!1);return hr&&(hr.impliedNodeFormat=e.getImpliedNodeFormatForFile(X,ke.getModuleResolutionCache().getPackageJsonInfoCache(),V,V.getCompilationSettings())),hr}return _r.sourceFile}}function cr(di){var X=re.get(di);X!==void 0&&(ye(X)?re.set(di,{version:!1}):X.version=!1)}function ur(di){var X=re.get(di);return!X||!X.version?void 0:X.version}function Ir(di,X,Ye){var Be=re.get(di.resolvedPath);Be!==void 0&&(ye(Be)?(M||(M=[])).push(di.path):Be.sourceFile===di&&(Be.fileWatcher&&Be.fileWatcher.close(),re.delete(di.resolvedPath),Ye||ke.removeResolutionsOfFile(di.path)))}function dr(di){Q.onWatchStatusChange&&Q.onWatchStatusChange(e.createCompilerDiagnostic(di),y,f||k)}function Br(){return ke.hasChangedAutomaticTypeDirectiveNames()}function Tr(){return p?(Q.clearTimeout(p),p=void 0,!0):!1}function n(){if(!Q.setTimeout||!Q.clearTimeout)return ke.invalidateResolutionsOfFailedLookupLocations();var di=Tr();m("Scheduling invalidateFailedLookup".concat(di?", Cancelled earlier one":"")),p=Q.setTimeout(Er,250)}function Er(){p=void 0,ke.invalidateResolutionsOfFailedLookupLocations()&&br()}function br(){!Q.setTimeout||!Q.clearTimeout||(se&&Q.clearTimeout(se),m("Scheduling update"),se=Q.setTimeout(Ce,250))}function Pr(){e.Debug.assert(!!Y),F=e.ConfigFileProgramReloadLevel.Full,br()}function Ce(){se=void 0,B=!0,Le()}function Le(){switch(F){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),Xe();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),Cr();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),me();break}return e.perfLogger.logStopUpdateProgram("Done"),ar()}function Xe(){m("Reloading new file names and options"),A=e.getFileNamesFromConfigSpecs(f.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Y),_e),f,z,ne),e.updateErrorForNoInputFiles(A,e.getNormalizedAbsolutePath(Y,_e),f.configFile.configFileSpecs,_,J)&&(w=!0),me()}function Cr(){m("Reloading config file: ".concat(Y)),F=e.ConfigFileProgramReloadLevel.None,j&&j.clearCache(),Lr(),x=!0,me(),bt(),sr(we(Y),f,P,e.WatchType.ExtendedConfigFile)}function Lr(){Jr(e.getParsedCommandLineOfConfigFile(Y,k,z,E||(E=new e.Map),I,ne))}function Jr(di){A=di.fileNames,f=di.options,P=di.watchOptions,D=di.projectReferences,l=di.wildcardDirectories,_=e.getConfigFileParsingDiagnostics(di).slice(),J=e.canJsonReportNoInputFiles(di.raw),w=!0}function Rr(di){var X=we(di),Ye=C==null?void 0:C.get(X);if(Ye){if(!Ye.reloadLevel)return Ye.parsedCommandLine;if(Ye.parsedCommandLine&&Ye.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!Q.getParsedCommandLine){m("Reloading new file names and options");var Be=e.getFileNamesFromConfigSpecs(Ye.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(di),_e),f,z);return Ye.parsedCommandLine=Ve(Ve({},Ye.parsedCommandLine),{fileNames:Be}),Ye.reloadLevel=void 0,Ye.parsedCommandLine}}m("Loading config file: ".concat(di));var Qe=Q.getParsedCommandLine?Q.getParsedCommandLine(di):ci(di);return Ye?(Ye.parsedCommandLine=Qe,Ye.reloadLevel=void 0):(C||(C=new e.Map)).set(X,Ye={parsedCommandLine:Qe}),Ji(di,X,Ye),Qe}function ci(di){var X=z.onUnRecoverableConfigFileDiagnostic;z.onUnRecoverableConfigFileDiagnostic=e.noop;var Ye=e.getParsedCommandLineOfConfigFile(di,void 0,z,E||(E=new e.Map),I);return z.onUnRecoverableConfigFileDiagnostic=X,Ye}function be(di){var X,Ye=we(di),Be=C==null?void 0:C.get(Ye);!Be||(C.delete(Ye),Be.watchedDirectories&&e.clearMap(Be.watchedDirectories,e.closeFileWatcherOf),(X=Be.watcher)===null||X===void 0||X.close(),e.clearSharedExtendedConfigFileWatcher(Ye,G))}function or(di,X,Ye,Be,Qe,_r){return ve(X,function(hr,Dr){return Ye(hr,Dr,di)},Be,Qe,_r)}function Kr(di,X,Ye){ei(di,Ye,X),X===e.FileWatcherEventKind.Deleted&&re.has(Ye)&&ke.invalidateResolutionOfFile(Ye),cr(Ye),br()}function ei(di,X,Ye){j&&j.addOrDeleteFile(di,X,Ye)}function li(di){return C!=null&&C.has(di)?e.noopFileWatcher:or(di,di,ft,e.PollingInterval.Medium,P,e.WatchType.MissingFile)}function Si(di){return re.has(di)?e.noopFileWatcher:or(di,di,qi,e.PollingInterval.High,P,e.WatchType.PackageJson)}function qi(di,X,Ye){ei(di,Ye,X),F=e.ConfigFileProgramReloadLevel.Full,ue=!0,br()}function ft(di,X,Ye){ei(di,Ye,X),X===e.FileWatcherEventKind.Created&&g.has(Ye)&&(g.get(Ye).close(),g.delete(Ye),cr(Ye),br())}function bt(){l?e.updateWatchingWildcardDirectories(H||(H=new e.Map),new e.Map(e.getEntries(l)),aa):H&&e.clearMap(H,e.closeFileWatcherOf)}function aa(di,X){return ce(di,function(Ye){e.Debug.assert(!!Y);var Be=we(Ye);j&&j.addOrDeleteFileOrDirectory(Ye,Be),cr(Be),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:we(di),fileOrDirectory:Ye,fileOrDirectoryPath:Be,configFileName:Y,extraFileExtensions:ne,options:f,program:ar()||A,currentDirectory:_e,useCaseSensitiveFileNames:ie,writeLog:m,toPath:we})&&F!==e.ConfigFileProgramReloadLevel.Full&&(F=e.ConfigFileProgramReloadLevel.Partial,br())},X,P,e.WatchType.WildcardDirectory)}function sr(di,X,Ye,Be){e.updateSharedExtendedConfigFileWatcher(di,X,G||(G=new e.Map),function(Qe,_r){return ve(Qe,function(hr,Dr){var Me;ei(Qe,_r,Dr),E&&e.cleanExtendedConfigCache(E,_r,we);var v=(Me=G.get(_r))===null||Me===void 0?void 0:Me.projects;!(v!=null&&v.size)||v.forEach(function(xe){if(we(Y)===xe)F=e.ConfigFileProgramReloadLevel.Full;else{var ze=C==null?void 0:C.get(xe);ze&&(ze.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ke.removeResolutionsFromProjectReferenceRedirects(xe)}br()})},e.PollingInterval.High,Ye,Be)},we)}function Ji(di,X,Ye){var Be,Qe,_r,hr,Dr;Ye.watcher||(Ye.watcher=ve(di,function(Me,v){ei(di,X,v);var xe=C==null?void 0:C.get(X);xe&&(xe.reloadLevel=e.ConfigFileProgramReloadLevel.Full),ke.removeResolutionsFromProjectReferenceRedirects(X),br()},e.PollingInterval.High,((Be=Ye.parsedCommandLine)===null||Be===void 0?void 0:Be.watchOptions)||P,e.WatchType.ConfigFileOfReferencedProject)),!((Qe=Ye.parsedCommandLine)===null||Qe===void 0)&&Qe.wildcardDirectories?e.updateWatchingWildcardDirectories(Ye.watchedDirectories||(Ye.watchedDirectories=new e.Map),new e.Map(e.getEntries((_r=Ye.parsedCommandLine)===null||_r===void 0?void 0:_r.wildcardDirectories)),function(Me,v){var xe;return ce(Me,function(ze){var Je=we(ze);j&&j.addOrDeleteFileOrDirectory(ze,Je),cr(Je);var Oe=C==null?void 0:C.get(X);!(Oe!=null&&Oe.parsedCommandLine)||e.isIgnoredFileFromWildCardWatching({watchedDirPath:we(Me),fileOrDirectory:ze,fileOrDirectoryPath:Je,configFileName:di,options:Oe.parsedCommandLine.options,program:Oe.parsedCommandLine.fileNames,currentDirectory:_e,useCaseSensitiveFileNames:ie,writeLog:m,toPath:we})||Oe.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(Oe.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,br())},v,((xe=Ye.parsedCommandLine)===null||xe===void 0?void 0:xe.watchOptions)||P,e.WatchType.WildcardDirectoryOfReferencedProject)}):Ye.watchedDirectories&&(e.clearMap(Ye.watchedDirectories,e.closeFileWatcherOf),Ye.watchedDirectories=void 0),sr(X,(hr=Ye.parsedCommandLine)===null||hr===void 0?void 0:hr.options,((Dr=Ye.parsedCommandLine)===null||Dr===void 0?void 0:Dr.watchOptions)||P,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=N})(Pe||(Pe={}));var Pe;(function(e){var a;(function(L){L[L.Unbuildable=0]="Unbuildable",L[L.UpToDate=1]="UpToDate",L[L.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",L[L.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",L[L.OutputMissing=4]="OutputMissing",L[L.OutOfDateWithSelf=5]="OutOfDateWithSelf",L[L.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",L[L.UpstreamOutOfDate=7]="UpstreamOutOfDate",L[L.UpstreamBlocked=8]="UpstreamBlocked",L[L.ComputingUpstream=9]="ComputingUpstream",L[L.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",L[L.ContainerOnly=11]="ContainerOnly"})(a=e.UpToDateStatusType||(e.UpToDateStatusType={}));function O(L){return e.fileExtensionIs(L,".json")?L:e.combinePaths(L,"tsconfig.json")}e.resolveConfigFileProjectName=O})(Pe||(Pe={}));var Pe;(function(e){var a=new Date(-864e13),O=new Date(864e13),L;(function(Ce){Ce[Ce.None=0]="None",Ce[Ce.Success=1]="Success",Ce[Ce.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",Ce[Ce.ConfigFileErrors=4]="ConfigFileErrors",Ce[Ce.SyntaxErrors=8]="SyntaxErrors",Ce[Ce.TypeErrors=16]="TypeErrors",Ce[Ce.DeclarationEmitErrors=32]="DeclarationEmitErrors",Ce[Ce.EmitErrors=64]="EmitErrors",Ce[Ce.AnyErrors=124]="AnyErrors"})(L||(L={}));function W(Ce,Le,Xe){var Cr=Ce.get(Le),Lr;return Cr||(Lr=Xe(),Ce.set(Le,Lr)),Cr||Lr}function N(Ce,Le){return W(Ce,Le,function(){return new e.Map})}function Q(Ce,Le){return Le>Ce?Le:Ce}function pe(Ce){return e.fileExtensionIs(Ce,".d.ts")}function F(Ce){return!!Ce&&!!Ce.buildOrder}e.isCircularBuildOrder=F;function g(Ce){return F(Ce)?Ce.buildOrder:Ce}e.getBuildOrderFromAnyBuildOrder=g;function S(Ce,Le){return function(Xe){var Cr=Le?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(Ce),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(Ce)," - ");Cr+="".concat(e.flattenDiagnosticMessageText(Xe.messageText,Ce.newLine)).concat(Ce.newLine+Ce.newLine),Ce.write(Cr)}}e.createBuilderStatusReporter=S;function H(Ce,Le,Xe,Cr){var Lr=e.createProgramHost(Ce,Le);return Lr.getModifiedTime=Ce.getModifiedTime?function(Jr){return Ce.getModifiedTime(Jr)}:e.returnUndefined,Lr.setModifiedTime=Ce.setModifiedTime?function(Jr,Rr){return Ce.setModifiedTime(Jr,Rr)}:e.noop,Lr.deleteFile=Ce.deleteFile?function(Jr){return Ce.deleteFile(Jr)}:e.noop,Lr.reportDiagnostic=Xe||e.createDiagnosticReporter(Ce),Lr.reportSolutionBuilderStatus=Cr||S(Ce),Lr.now=e.maybeBind(Ce,Ce.now),Lr}function se(Ce,Le,Xe,Cr,Lr){Ce===void 0&&(Ce=e.sys);var Jr=H(Ce,Le,Xe,Cr);return Jr.reportErrorSummary=Lr,Jr}e.createSolutionBuilderHost=se;function p(Ce,Le,Xe,Cr,Lr){Ce===void 0&&(Ce=e.sys);var Jr=H(Ce,Le,Xe,Cr),Rr=e.createWatchHost(Ce,Lr);return e.copyProperties(Jr,Rr),Jr}e.createSolutionBuilderWithWatchHost=p;function C(Ce){var Le={};return e.commonOptionsWithBuild.forEach(function(Xe){e.hasProperty(Ce,Xe.name)&&(Le[Xe.name]=Ce[Xe.name])}),Le}function G(Ce,Le,Xe){return Fe(!1,Ce,Le,Xe)}e.createSolutionBuilder=G;function E(Ce,Le,Xe,Cr){return Fe(!0,Ce,Le,Xe,Cr)}e.createSolutionBuilderWithWatch=E;function ue(Ce,Le,Xe,Cr,Lr){var Jr=Le,Rr=Le,ci=Jr.getCurrentDirectory(),be=e.createGetCanonicalFileName(Jr.useCaseSensitiveFileNames()),or=C(Cr),Kr=e.createCompilerHostFromProgramHost(Jr,function(){return Ji.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Kr,Jr),Kr.getParsedCommandLine=function(di){return ie(Ji,di,re(Ji,di))},Kr.resolveModuleNames=e.maybeBind(Jr,Jr.resolveModuleNames),Kr.resolveTypeReferenceDirectives=e.maybeBind(Jr,Jr.resolveTypeReferenceDirectives);var ei=Kr.resolveModuleNames?void 0:e.createModuleResolutionCache(ci,be),li=Kr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(ci,be,void 0,ei==null?void 0:ei.getPackageJsonInfoCache());if(!Kr.resolveModuleNames){var Si=function(di,X,Ye,Be){return e.resolveModuleName(di,Ye,Ji.projectCompilerOptions,Kr,ei,Be,X).resolvedModule};Kr.resolveModuleNames=function(di,X,Ye,Be,Qe,_r){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(di),e.Debug.checkDefined(_r),X,Be,Si)},Kr.getModuleResolutionCache=function(){return ei}}if(!Kr.resolveTypeReferenceDirectives){var qi=function(di,X,Ye){return e.resolveTypeReferenceDirective(di,X,Ji.projectCompilerOptions,Kr,Ye,Ji.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Kr.resolveTypeReferenceDirectives=function(di,X,Ye){return e.loadWithLocalCache(e.Debug.checkEachDefined(di),X,Ye,qi)}}var ft=e.createWatchFactory(Rr,Cr),bt=ft.watchFile,aa=ft.watchDirectory,sr=ft.writeLog,Ji={host:Jr,hostWithWatch:Rr,currentDirectory:ci,getCanonicalFileName:be,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(Jr),write:e.maybeBind(Jr,Jr.trace),options:Cr,baseCompilerOptions:or,rootNames:Xe,baseWatchOptions:Lr,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Kr,moduleResolutionCache:ei,typeReferenceDirectiveResolutionCache:li,buildOrder:void 0,readFileWithCache:function(di){return Jr.readFile(di)},projectCompilerOptions:or,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:Ce,currentInvalidatedProject:void 0,watch:Ce,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:bt,watchDirectory:aa,writeLog:sr};return Ji}function B(Ce,Le){return e.toPath(Le,Ce.currentDirectory,Ce.getCanonicalFileName)}function re(Ce,Le){var Xe=Ce.resolvedConfigFilePaths,Cr=Xe.get(Le);if(Cr!==void 0)return Cr;var Lr=B(Ce,Le);return Xe.set(Le,Lr),Lr}function M(Ce){return!!Ce.options}function x(Ce,Le){var Xe=Ce.configFileCache.get(Le);return Xe&&M(Xe)?Xe:void 0}function ie(Ce,Le,Xe){var Cr=Ce.configFileCache,Lr=Cr.get(Xe);if(Lr)return M(Lr)?Lr:void 0;var Jr,Rr=Ce.parseConfigFileHost,ci=Ce.baseCompilerOptions,be=Ce.baseWatchOptions,or=Ce.extendedConfigCache,Kr=Ce.host,ei;return Kr.getParsedCommandLine?(ei=Kr.getParsedCommandLine(Le),ei||(Jr=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,Le))):(Rr.onUnRecoverableConfigFileDiagnostic=function(li){return Jr=li},ei=e.getParsedCommandLineOfConfigFile(Le,ci,Rr,or,be),Rr.onUnRecoverableConfigFileDiagnostic=e.noop),Cr.set(Xe,ei||Jr),ei}function _e(Ce,Le){return e.resolveConfigFileProjectName(e.resolvePath(Ce.currentDirectory,Le))}function Y(Ce,Le){for(var Xe=new e.Map,Cr=new e.Map,Lr=[],Jr,Rr,ci=0,be=Le;ci<be.length;ci++){var or=be[ci];Kr(or)}return Rr?{buildOrder:Jr||e.emptyArray,circularDiagnostics:Rr}:Jr||e.emptyArray;function Kr(ei,li){var Si=re(Ce,ei);if(!Cr.has(Si)){if(Xe.has(Si)){li||(Rr||(Rr=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,Lr.join(`\r
|
|
`)));return}Xe.set(Si,!0),Lr.push(ei);var qi=ie(Ce,ei,Si);if(qi&&qi.projectReferences)for(var ft=0,bt=qi.projectReferences;ft<bt.length;ft++){var aa=bt[ft],sr=_e(Ce,aa.path);Kr(sr,li||aa.circular)}Lr.pop(),Cr.set(Si,!0),(Jr||(Jr=[])).push(ei)}}}function Z(Ce){return Ce.buildOrder||k(Ce)}function k(Ce){var Le=Y(Ce,Ce.rootNames.map(function(Lr){return _e(Ce,Lr)}));Ce.resolvedConfigFilePaths.clear();var Xe=new e.Map(g(Le).map(function(Lr){return[re(Ce,Lr),!0]})),Cr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(Ce.configFileCache,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectStatus,Xe,Cr),e.mutateMapSkippingNewValues(Ce.buildInfoChecked,Xe,Cr),e.mutateMapSkippingNewValues(Ce.builderPrograms,Xe,Cr),e.mutateMapSkippingNewValues(Ce.diagnostics,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectPendingBuild,Xe,Cr),e.mutateMapSkippingNewValues(Ce.projectErrorsReported,Xe,Cr),Ce.watch&&(e.mutateMapSkippingNewValues(Ce.allWatchedConfigFiles,Xe,{onDeleteValue:e.closeFileWatcher}),Ce.allWatchedExtendedConfigFiles.forEach(function(Lr){Lr.projects.forEach(function(Jr){Xe.has(Jr)||Lr.projects.delete(Jr)}),Lr.close()}),e.mutateMapSkippingNewValues(Ce.allWatchedWildcardDirectories,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(Ce.allWatchedInputFiles,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(Ce.allWatchedPackageJsonFiles,Xe,{onDeleteValue:function(Lr){return Lr.forEach(e.closeFileWatcher)}})),Ce.buildOrder=Le}function I(Ce,Le,Xe){var Cr=Le&&_e(Ce,Le),Lr=Z(Ce);if(F(Lr))return Lr;if(Cr){var Jr=re(Ce,Cr),Rr=e.findIndex(Lr,function(be){return re(Ce,be)===Jr});if(Rr===-1)return}var ci=Cr?Y(Ce,[Cr]):Lr;return e.Debug.assert(!F(ci)),e.Debug.assert(!Xe||Cr!==void 0),e.Debug.assert(!Xe||ci[ci.length-1]===Cr),Xe?ci.slice(0,ci.length-1):ci}function ne(Ce){Ce.cache&&ee(Ce);var Le=Ce.compilerHost,Xe=Ce.host,Cr=Ce.readFileWithCache,Lr=Le.getSourceFile,Jr=e.changeCompilerHostLikeToUseCache(Xe,function(Si){return B(Ce,Si)},function(){for(var Si=[],qi=0;qi<arguments.length;qi++)Si[qi]=arguments[qi];return Lr.call.apply(Lr,qe([Le],Si,!1))}),Rr=Jr.originalReadFile,ci=Jr.originalFileExists,be=Jr.originalDirectoryExists,or=Jr.originalCreateDirectory,Kr=Jr.originalWriteFile,ei=Jr.getSourceFileWithCache,li=Jr.readFileWithCache;Ce.readFileWithCache=li,Le.getSourceFile=ei,Ce.cache={originalReadFile:Rr,originalFileExists:ci,originalDirectoryExists:be,originalCreateDirectory:or,originalWriteFile:Kr,originalReadFileWithCache:Cr,originalGetSourceFile:Lr}}function ee(Ce){if(!!Ce.cache){var Le=Ce.cache,Xe=Ce.host,Cr=Ce.compilerHost,Lr=Ce.extendedConfigCache,Jr=Ce.moduleResolutionCache,Rr=Ce.typeReferenceDirectiveResolutionCache;Xe.readFile=Le.originalReadFile,Xe.fileExists=Le.originalFileExists,Xe.directoryExists=Le.originalDirectoryExists,Xe.createDirectory=Le.originalCreateDirectory,Xe.writeFile=Le.originalWriteFile,Cr.getSourceFile=Le.originalGetSourceFile,Ce.readFileWithCache=Le.originalReadFileWithCache,Lr.clear(),Jr==null||Jr.clear(),Rr==null||Rr.clear(),Ce.cache=void 0}}function A(Ce,Le){Ce.projectStatus.delete(Le),Ce.diagnostics.delete(Le)}function f(Ce,Le,Xe){var Cr=Ce.projectPendingBuild,Lr=Cr.get(Le);(Lr===void 0||Lr<Xe)&&Cr.set(Le,Xe)}function P(Ce,Le){if(!!Ce.allProjectBuildPending){Ce.allProjectBuildPending=!1,Ce.options.watch&&Ir(Ce,e.Diagnostics.Starting_compilation_in_watch_mode),ne(Ce);var Xe=g(Z(Ce));Xe.forEach(function(Cr){return Ce.projectPendingBuild.set(re(Ce,Cr),e.ConfigFileProgramReloadLevel.None)}),Le&&Le.throwIfCancellationRequested()}}var D;(function(Ce){Ce[Ce.Build=0]="Build",Ce[Ce.UpdateBundle=1]="UpdateBundle",Ce[Ce.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(D=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function l(Ce,Le){return Ce.projectPendingBuild.delete(Le),Ce.currentInvalidatedProject=void 0,Ce.diagnostics.has(Le)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function _(Ce,Le,Xe,Cr,Lr){var Jr=!0;return{kind:D.UpdateOutputFileStamps,project:Le,projectPath:Xe,buildOrder:Lr,getCompilerOptions:function(){return Cr.options},getCurrentDirectory:function(){return Ce.currentDirectory},updateOutputFileStatmps:function(){V(Ce,Cr,Xe),Jr=!1},done:function(){return Jr&&V(Ce,Cr,Xe),l(Ce,Xe)}}}var J;(function(Ce){Ce[Ce.CreateProgram=0]="CreateProgram",Ce[Ce.SyntaxDiagnostics=1]="SyntaxDiagnostics",Ce[Ce.SemanticDiagnostics=2]="SemanticDiagnostics",Ce[Ce.Emit=3]="Emit",Ce[Ce.EmitBundle=4]="EmitBundle",Ce[Ce.EmitBuildInfo=5]="EmitBuildInfo",Ce[Ce.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",Ce[Ce.QueueReferencingProjects=7]="QueueReferencingProjects",Ce[Ce.Done=8]="Done"})(J||(J={}));function w(Ce,Le,Xe,Cr,Lr,Jr,Rr){var ci=Ce===D.Build?J.CreateProgram:J.EmitBundle,be,or,Kr;return Ce===D.Build?{kind:Ce,project:Xe,projectPath:Cr,buildOrder:Rr,getCompilerOptions:function(){return Jr.options},getCurrentDirectory:function(){return Le.currentDirectory},getBuilderProgram:function(){return li(e.identity)},getProgram:function(){return li(function(Be){return Be.getProgramOrUndefined()})},getSourceFile:function(Be){return li(function(Qe){return Qe.getSourceFile(Be)})},getSourceFiles:function(){return Si(function(Be){return Be.getSourceFiles()})},getOptionsDiagnostics:function(Be){return Si(function(Qe){return Qe.getOptionsDiagnostics(Be)})},getGlobalDiagnostics:function(Be){return Si(function(Qe){return Qe.getGlobalDiagnostics(Be)})},getConfigFileParsingDiagnostics:function(){return Si(function(Be){return Be.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(Be,Qe){return Si(function(_r){return _r.getSyntacticDiagnostics(Be,Qe)})},getAllDependencies:function(Be){return Si(function(Qe){return Qe.getAllDependencies(Be)})},getSemanticDiagnostics:function(Be,Qe){return Si(function(_r){return _r.getSemanticDiagnostics(Be,Qe)})},getSemanticDiagnosticsOfNextAffectedFile:function(Be,Qe){return li(function(_r){return _r.getSemanticDiagnosticsOfNextAffectedFile&&_r.getSemanticDiagnosticsOfNextAffectedFile(Be,Qe)})},emit:function(Be,Qe,_r,hr,Dr){if(Be||hr)return li(function(Me){var v,xe;return Me.emit(Be,Qe,_r,hr,Dr||((xe=(v=Le.host).getCustomTransformers)===null||xe===void 0?void 0:xe.call(v,Xe)))});if(Ye(J.SemanticDiagnostics,_r),ci===J.EmitBuildInfo)return Ji(Qe,_r);if(ci===J.Emit)return sr(Qe,_r,Dr)},done:ei}:{kind:Ce,project:Xe,projectPath:Cr,buildOrder:Rr,getCompilerOptions:function(){return Jr.options},getCurrentDirectory:function(){return Le.currentDirectory},emit:function(Be,Qe){return ci!==J.EmitBundle?Kr:X(Be,Qe)},done:ei};function ei(Be,Qe,_r){return Ye(J.Done,Be,Qe,_r),l(Le,Cr)}function li(Be){return Ye(J.CreateProgram),be&&Be(be)}function Si(Be){return li(Be)||e.emptyArray}function qi(){var Be,Qe;if(e.Debug.assert(be===void 0),Le.options.dry){ur(Le,e.Diagnostics.A_non_dry_build_would_build_project_0,Xe),or=L.Success,ci=J.QueueReferencingProjects;return}if(Le.options.verbose&&ur(Le,e.Diagnostics.Building_project_0,Xe),Jr.fileNames.length===0){Br(Le,Cr,e.getConfigFileParsingDiagnostics(Jr)),or=L.None,ci=J.QueueReferencingProjects;return}var _r=Le.host,hr=Le.compilerHost;Le.projectCompilerOptions=Jr.options,(Be=Le.moduleResolutionCache)===null||Be===void 0||Be.update(Jr.options),(Qe=Le.typeReferenceDirectiveResolutionCache)===null||Qe===void 0||Qe.update(Jr.options),be=_r.createProgram(Jr.fileNames,Jr.options,hr,y(Le,Cr,Jr),e.getConfigFileParsingDiagnostics(Jr),Jr.projectReferences),Le.watch&&(Le.lastCachedPackageJsonLookups.set(Cr,Le.moduleResolutionCache&&e.map(Le.moduleResolutionCache.getPackageJsonInfoCache().entries(),function(Dr){var Me=Dr[0],v=Dr[1];return[Le.host.realpath&&v?B(Le,Le.host.realpath(Me)):Me,v]})),Le.builderPrograms.set(Cr,be)),ci++}function ft(Be,Qe,_r){var hr;Be.length?(hr=ve(Le,Cr,be,Jr,Be,Qe,_r),or=hr.buildResult,ci=hr.step):ci++}function bt(Be){e.Debug.assertIsDefined(be),ft(qe(qe(qe(qe([],be.getConfigFileParsingDiagnostics(),!0),be.getOptionsDiagnostics(Be),!0),be.getGlobalDiagnostics(Be),!0),be.getSyntacticDiagnostics(void 0,Be),!0),L.SyntaxErrors,"Syntactic")}function aa(Be){ft(e.Debug.checkDefined(be).getSemanticDiagnostics(void 0,Be),L.TypeErrors,"Semantic")}function sr(Be,Qe,_r){var hr,Dr,Me;e.Debug.assertIsDefined(be),e.Debug.assert(ci===J.Emit),be.backupState();var v,xe=function(Ur){return(v||(v=[])).push(Ur)},ze=[],Je=e.emitFilesAndReportErrors(be,xe,void 0,void 0,function(Ur,si,mi){return ze.push({name:Ur,text:si,writeByteOrderMark:mi})},Qe,!1,_r||((Me=(Dr=Le.host).getCustomTransformers)===null||Me===void 0?void 0:Me.call(Dr,Xe))).emitResult;if(v)return be.restoreState(),hr=ve(Le,Cr,be,Jr,v,L.DeclarationEmitErrors,"Declaration file"),or=hr.buildResult,ci=hr.step,{emitSkipped:!0,diagnostics:Je.diagnostics};var Oe=Le.host,Fr=Le.compilerHost,Xr=L.DeclarationOutputUnchanged,Or=a,We=!1,mr=e.createDiagnosticCollection(),Nr=new e.Map;return ze.forEach(function(Ur){var si=Ur.name,mi=Ur.text,Ti=Ur.writeByteOrderMark,hi;!We&&pe(si)&&(Oe.fileExists(si)&&Le.readFileWithCache(si)===mi?hi=Oe.getModifiedTime(si):(Xr&=~L.DeclarationOutputUnchanged,We=!0)),Nr.set(B(Le,si),si),e.writeFile(Be?{writeFile:Be}:Fr,mr,si,mi,Ti),hi!==void 0&&(Or=Q(hi,Or))}),di(mr,Nr,Or,We,ze.length?ze[0].name:e.getFirstProjectOutput(Jr,!Oe.useCaseSensitiveFileNames()),Xr),Je}function Ji(Be,Qe){e.Debug.assertIsDefined(be),e.Debug.assert(ci===J.EmitBuildInfo);var _r=be.emitBuildInfo(Be,Qe);return _r.diagnostics.length&&(dr(Le,_r.diagnostics),Le.diagnostics.set(Cr,qe(qe([],Le.diagnostics.get(Cr),!0),_r.diagnostics,!0)),or=L.EmitErrors&or),_r.emittedFiles&&Le.write&&_r.emittedFiles.forEach(function(hr){return z(Le,Jr,hr)}),oe(Le,be,Jr),ci=J.QueueReferencingProjects,_r}function di(Be,Qe,_r,hr,Dr,Me){var v,xe=Be.getDiagnostics();if(xe.length)return v=ve(Le,Cr,be,Jr,xe,L.EmitErrors,"Emit"),or=v.buildResult,ci=v.step,xe;Le.write&&Qe.forEach(function(Je){return z(Le,Jr,Je)});var ze=ae(Le,Jr,_r,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Qe);return Le.diagnostics.delete(Cr),Le.projectStatus.set(Cr,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:hr?O:ze,oldestOutputFileName:Dr}),oe(Le,be,Jr),ci=J.QueueReferencingProjects,or=Me,xe}function X(Be,Qe){var _r,hr;if(e.Debug.assert(Ce===D.UpdateBundle),Le.options.dry){ur(Le,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,Xe),or=L.Success,ci=J.QueueReferencingProjects;return}Le.options.verbose&&ur(Le,e.Diagnostics.Updating_output_of_project_0,Xe);var Dr=Le.compilerHost;Le.projectCompilerOptions=Jr.options;var Me=e.emitUsingBuildInfo(Jr,Dr,function(Je){var Oe=_e(Le,Je.path);return ie(Le,Oe,re(Le,Oe))},Qe||((hr=(_r=Le.host).getCustomTransformers)===null||hr===void 0?void 0:hr.call(_r,Xe)));if(e.isString(Me))return ur(Le,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,Xe,cr(Le,Me)),ci=J.BuildInvalidatedProjectOfBundle,Kr=w(D.Build,Le,Xe,Cr,Lr,Jr,Rr);e.Debug.assert(!!Me.length);var v=e.createDiagnosticCollection(),xe=new e.Map;Me.forEach(function(Je){var Oe=Je.name,Fr=Je.text,Xr=Je.writeByteOrderMark;xe.set(B(Le,Oe),Oe),e.writeFile(Be?{writeFile:Be}:Dr,v,Oe,Fr,Xr)});var ze=di(v,xe,a,!1,Me[0].name,L.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:ze}}function Ye(Be,Qe,_r,hr){for(;ci<=Be&&ci<J.Done;){var Dr=ci;switch(ci){case J.CreateProgram:qi();break;case J.SyntaxDiagnostics:bt(Qe);break;case J.SemanticDiagnostics:aa(Qe);break;case J.Emit:sr(_r,Qe,hr);break;case J.EmitBuildInfo:Ji(_r,Qe);break;case J.EmitBundle:X(_r,hr);break;case J.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Kr).done(Qe,_r,hr),ci=J.Done;break;case J.QueueReferencingProjects:le(Le,Xe,Cr,Lr,Jr,Rr,e.Debug.checkDefined(or)),ci++;break;case J.Done:default:e.assertType(ci)}e.Debug.assert(ci>Dr)}}}function j(Ce,Le,Xe){var Cr=Ce.options;return Le.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Cr.force?!0:Xe.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(Xe).length||!e.isIncrementalCompilation(Xe.options)}function U(Ce,Le,Xe){if(!!Ce.projectPendingBuild.size&&!F(Le)){if(Ce.currentInvalidatedProject)return e.arrayIsEqualTo(Ce.currentInvalidatedProject.buildOrder,Le)?Ce.currentInvalidatedProject:void 0;for(var Cr=Ce.options,Lr=Ce.projectPendingBuild,Jr=0;Jr<Le.length;Jr++){var Rr=Le[Jr],ci=re(Ce,Rr),be=Ce.projectPendingBuild.get(ci);if(be!==void 0){Xe&&(Xe=!1,Er(Ce,Le));var or=ie(Ce,Rr,ci);if(!or){Tr(Ce,ci),Lr.delete(ci);continue}be===e.ConfigFileProgramReloadLevel.Full?(Ge(Ce,Rr,ci,or),er(Ce,ci,or),he(Ce,Rr,ci,or),we(Ce,Rr,ci,or),ye(Ce,Rr,ci,or)):be===e.ConfigFileProgramReloadLevel.Partial&&(or.fileNames=e.getFileNamesFromConfigSpecs(or.options.configFile.configFileSpecs,e.getDirectoryPath(Rr),or.options,Ce.parseConfigFileHost),e.updateErrorForNoInputFiles(or.fileNames,Rr,or.options.configFile.configFileSpecs,or.errors,e.canJsonReportNoInputFiles(or.raw)),we(Ce,Rr,ci,or),ye(Ce,Rr,ci,or));var Kr=de(Ce,or,ci);if(Pr(Ce,Rr,Kr),!Cr.force){if(Kr.type===e.UpToDateStatusType.UpToDate){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci),Cr.dry&&ur(Ce,e.Diagnostics.Project_0_is_up_to_date,Rr);continue}if(Kr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),_(Ce,Rr,ci,or,Le)}if(Kr.type===e.UpToDateStatusType.UpstreamBlocked){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci),Cr.verbose&&ur(Ce,Kr.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,Rr,Kr.upstreamProjectName);continue}if(Kr.type===e.UpToDateStatusType.ContainerOnly){Br(Ce,ci,e.getConfigFileParsingDiagnostics(or)),Lr.delete(ci);continue}return w(j(Ce,Kr,or)?D.Build:D.UpdateBundle,Ce,Rr,ci,Jr,or,Le)}}}}function z(Ce,Le,Xe){var Cr=Ce.write;Cr&&Le.options.listEmittedFiles&&Cr("TSFILE: ".concat(Xe))}function y(Ce,Le,Xe){var Cr=Ce.options,Lr=Ce.builderPrograms,Jr=Ce.compilerHost;if(!Cr.force){var Rr=Lr.get(Le);return Rr||e.readBuilderProgram(Xe.options,Jr)}}function oe(Ce,Le,Xe){Le?(Le&&Ce.write&&e.listFiles(Le,Ce.write),Ce.host.afterProgramEmitAndDiagnostics&&Ce.host.afterProgramEmitAndDiagnostics(Le),Le.releaseProgram()):Ce.host.afterEmitBundle&&Ce.host.afterEmitBundle(Xe),Ce.projectCompilerOptions=Ce.baseCompilerOptions}function ve(Ce,Le,Xe,Cr,Lr,Jr,Rr){var ci=!(Jr&L.SyntaxErrors)&&Xe&&!e.outFile(Xe.getCompilerOptions());return Br(Ce,Le,Lr),Ce.projectStatus.set(Le,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Rr," errors")}),ci?{buildResult:Jr,step:J.EmitBuildInfo}:(oe(Ce,Xe,Cr),{buildResult:Jr,step:J.QueueReferencingProjects})}function ce(Ce,Le,Xe,Cr){var Lr=e.getModifiedTime(Ce.host,Le);if(Xe<Lr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Cr,newerInputFileName:Le}}function m(Ce,Le,Xe){for(var Cr=!!Ce.options.force,Lr=void 0,Jr=a,Rr=Ce.host,ci=0,be=Le.fileNames;ci<be.length;ci++){var or=be[ci];if(!Rr.fileExists(or))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(or," does not exist")};if(!Cr){var Kr=e.getModifiedTime(Rr,or);Kr>Jr&&(Lr=or,Jr=Kr)}}if(!Le.fileNames.length&&!e.canJsonReportNoInputFiles(Le.raw))return{type:e.UpToDateStatusType.ContainerOnly};var ei=e.getAllProjectOutputs(Le,!Rr.useCaseSensitiveFileNames()),li="(none)",Si=O,qi="(none)",ft=a,bt,aa=a,sr=!1;if(!Cr)for(var Ji=0,di=ei;Ji<di.length;Ji++){var X=di[Ji];if(!Rr.fileExists(X)){bt=X;break}var Ye=e.getModifiedTime(Rr,X);if(Ye<Si&&(Si=Ye,li=X),Ye<Jr){sr=!0;break}if(Ye>ft&&(ft=Ye,qi=X),pe(X)){var Be=e.getModifiedTime(Rr,X);aa=Q(aa,Be)}}var Qe=!1,_r=!1,hr;if(Le.projectReferences){Ce.projectStatus.set(Xe,{type:e.UpToDateStatusType.ComputingUpstream});for(var Dr=0,Me=Le.projectReferences;Dr<Me.length;Dr++){var v=Me[Dr];_r=_r||!!v.prepend;var xe=e.resolveProjectReferencePath(v),ze=re(Ce,xe),Je=de(Ce,ie(Ce,xe,ze),ze);if(!(Je.type===e.UpToDateStatusType.ComputingUpstream||Je.type===e.UpToDateStatusType.ContainerOnly)){if(Je.type===e.UpToDateStatusType.Unbuildable||Je.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:v.path,upstreamProjectBlocked:Je.type===e.UpToDateStatusType.UpstreamBlocked};if(Je.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:v.path};if(!Cr&&!bt){if(Je.newestInputFileTime&&Je.newestInputFileTime<=Si)continue;if(Je.newestDeclarationFileContentChangedTime&&Je.newestDeclarationFileContentChangedTime<=Si){Qe=!0,hr=v.path;continue}return e.Debug.assert(li!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:li,newerProjectName:v.path}}}}}if(bt!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:bt};if(sr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:li,newerInputFileName:Lr};var Oe=ce(Ce,Le.options.configFilePath,Si,li);if(Oe)return Oe;var Fr=e.forEach(Le.options.configFile.extendedSourceFiles||e.emptyArray,function(Nr){return ce(Ce,Nr,Si,li)});if(Fr)return Fr;var Xr=e.forEach(Ce.lastCachedPackageJsonLookups.get(Xe)||e.emptyArray,function(Nr){var Ur=Nr[0];return ce(Ce,Ur,Si,li)});if(Xr)return Xr;if(!Cr&&!Ce.buildInfoChecked.has(Xe)){Ce.buildInfoChecked.set(Xe,!0);var Or=e.getTsBuildInfoEmitOutputFilePath(Le.options);if(Or){var We=Ce.readFileWithCache(Or),mr=We&&e.getBuildInfo(We);if(mr&&(mr.bundle||mr.program)&&mr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:mr.version}}}return _r&&Qe?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:li,newerProjectName:hr}:{type:Qe?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:aa,newestInputFileTime:Jr,newestOutputFileTime:ft,newestInputFileName:Lr,newestOutputFileName:qi,oldestOutputFileName:li}}function de(Ce,Le,Xe){if(Le===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Cr=Ce.projectStatus.get(Xe);if(Cr!==void 0)return Cr;var Lr=m(Ce,Le,Xe);return Ce.projectStatus.set(Xe,Lr),Lr}function ae(Ce,Le,Xe,Cr,Lr){if(Le.options.noEmit)return Xe;var Jr=Ce.host,Rr=e.getAllProjectOutputs(Le,!Jr.useCaseSensitiveFileNames());if(!Lr||Rr.length!==Lr.size)for(var ci=!!Ce.options.verbose,be=Jr.now?Jr.now():new Date,or=0,Kr=Rr;or<Kr.length;or++){var ei=Kr[or];Lr&&Lr.has(B(Ce,ei))||(ci&&(ci=!1,ur(Ce,Cr,Le.options.configFilePath)),pe(ei)&&(Xe=Q(Xe,e.getModifiedTime(Jr,ei))),Jr.setModifiedTime(ei,be))}return Xe}function V(Ce,Le,Xe){if(Ce.options.dry)return ur(Ce,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,Le.options.configFilePath);var Cr=ae(Ce,Le,a,e.Diagnostics.Updating_output_timestamps_of_project_0);Ce.projectStatus.set(Xe,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Cr,oldestOutputFileName:e.getFirstProjectOutput(Le,!Ce.host.useCaseSensitiveFileNames())})}function le(Ce,Le,Xe,Cr,Lr,Jr,Rr){if(!(Rr&L.AnyErrors)&&!!Lr.options.composite)for(var ci=Cr+1;ci<Jr.length;ci++){var be=Jr[ci],or=re(Ce,be);if(!Ce.projectPendingBuild.has(or)){var Kr=ie(Ce,be,or);if(!(!Kr||!Kr.projectReferences))for(var ei=0,li=Kr.projectReferences;ei<li.length;ei++){var Si=li[ei],qi=_e(Ce,Si.path);if(re(Ce,qi)===Xe){var ft=Ce.projectStatus.get(or);if(ft)switch(ft.type){case e.UpToDateStatusType.UpToDate:if(Rr&L.DeclarationOutputUnchanged){Si.prepend?Ce.projectStatus.set(or,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:ft.oldestOutputFileName,newerProjectName:Le}):ft.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:Rr&L.DeclarationOutputUnchanged||Ce.projectStatus.set(or,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:ft.type===e.UpToDateStatusType.OutOfDateWithPrepend?ft.outOfDateOutputFileName:ft.oldestOutputFileName,newerProjectName:Le});break;case e.UpToDateStatusType.UpstreamBlocked:re(Ce,_e(Ce,ft.upstreamProjectName))===Xe&&A(Ce,or);break}f(Ce,or,e.ConfigFileProgramReloadLevel.None);break}}}}}function ke(Ce,Le,Xe,Cr,Lr,Jr){var Rr=I(Ce,Le,Jr);if(!Rr)return e.ExitStatus.InvalidProject_OutputsSkipped;P(Ce,Xe);for(var ci=!0,be=0;;){var or=U(Ce,Rr,ci);if(!or)break;ci=!1,or.done(Xe,Cr,Lr==null?void 0:Lr(or.project)),Ce.diagnostics.has(or.projectPath)||be++}return ee(Ce),n(Ce,Rr),Se(Ce,Rr),F(Rr)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:Rr.some(function(Kr){return Ce.diagnostics.has(re(Ce,Kr))})?be?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Ue(Ce,Le,Xe){var Cr=I(Ce,Le,Xe);if(!Cr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(F(Cr))return dr(Ce,Cr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var Lr=Ce.options,Jr=Ce.host,Rr=Lr.dry?[]:void 0,ci=0,be=Cr;ci<be.length;ci++){var or=be[ci],Kr=re(Ce,or),ei=ie(Ce,or,Kr);if(ei===void 0){Tr(Ce,Kr);continue}var li=e.getAllProjectOutputs(ei,!Jr.useCaseSensitiveFileNames());if(!!li.length)for(var Si=new e.Set(ei.fileNames.map(function(aa){return B(Ce,aa)})),qi=0,ft=li;qi<ft.length;qi++){var bt=ft[qi];Si.has(B(Ce,bt))||Jr.fileExists(bt)&&(Rr?Rr.push(bt):(Jr.deleteFile(bt),He(Ce,Kr,e.ConfigFileProgramReloadLevel.None)))}}return Rr&&ur(Ce,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,Rr.map(function(aa){return`\r
|
|
* `.concat(aa)}).join("")),e.ExitStatus.Success}function He(Ce,Le,Xe){Ce.host.getParsedCommandLine&&Xe===e.ConfigFileProgramReloadLevel.Partial&&(Xe=e.ConfigFileProgramReloadLevel.Full),Xe===e.ConfigFileProgramReloadLevel.Full&&(Ce.configFileCache.delete(Le),Ce.buildOrder=void 0),Ce.needsSummary=!0,A(Ce,Le),f(Ce,Le,Xe),ne(Ce)}function ar(Ce,Le,Xe){Ce.reportFileChangeDetected=!0,He(Ce,Le,Xe),gr(Ce)}function gr(Ce){var Le=Ce.hostWithWatch;!Le.setTimeout||!Le.clearTimeout||(Ce.timerToBuildInvalidatedProject&&Le.clearTimeout(Ce.timerToBuildInvalidatedProject),Ce.timerToBuildInvalidatedProject=Le.setTimeout(me,250,Ce))}function me(Ce){Ce.timerToBuildInvalidatedProject=void 0,Ce.reportFileChangeDetected&&(Ce.reportFileChangeDetected=!1,Ce.projectErrorsReported.clear(),Ir(Ce,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var Le=Z(Ce),Xe=U(Ce,Le,!1);if(Xe&&(Xe.done(),Ce.projectPendingBuild.size)){Ce.watch&&!Ce.timerToBuildInvalidatedProject&&gr(Ce);return}ee(Ce),n(Ce,Le)}function Ge(Ce,Le,Xe,Cr){!Ce.watch||Ce.allWatchedConfigFiles.has(Xe)||Ce.allWatchedConfigFiles.set(Xe,Ce.watchFile(Le,function(){ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.ConfigFile,Le))}function er(Ce,Le,Xe){e.updateSharedExtendedConfigFileWatcher(Le,Xe==null?void 0:Xe.options,Ce.allWatchedExtendedConfigFiles,function(Cr,Lr){return Ce.watchFile(Cr,function(){var Jr;return(Jr=Ce.allWatchedExtendedConfigFiles.get(Lr))===null||Jr===void 0?void 0:Jr.projects.forEach(function(Rr){return ar(Ce,Rr,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,Xe==null?void 0:Xe.watchOptions,e.WatchType.ExtendedConfigFile)},function(Cr){return B(Ce,Cr)})}function he(Ce,Le,Xe,Cr){!Ce.watch||e.updateWatchingWildcardDirectories(N(Ce.allWatchedWildcardDirectories,Xe),new e.Map(e.getEntries(Cr.wildcardDirectories)),function(Lr,Jr){return Ce.watchDirectory(Lr,function(Rr){var ci;e.isIgnoredFileFromWildCardWatching({watchedDirPath:B(Ce,Lr),fileOrDirectory:Rr,fileOrDirectoryPath:B(Ce,Rr),configFileName:Le,currentDirectory:Ce.currentDirectory,options:Cr.options,program:Ce.builderPrograms.get(Xe)||((ci=x(Ce,Xe))===null||ci===void 0?void 0:ci.fileNames),useCaseSensitiveFileNames:Ce.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(be){return Ce.writeLog(be)},toPath:function(be){return B(Ce,be)}})||ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Partial)},Jr,Cr==null?void 0:Cr.watchOptions,e.WatchType.WildcardDirectory,Le)})}function we(Ce,Le,Xe,Cr){!Ce.watch||e.mutateMap(N(Ce.allWatchedInputFiles,Xe),e.arrayToMap(Cr.fileNames,function(Lr){return B(Ce,Lr)}),{createNewValue:function(Lr,Jr){return Ce.watchFile(Jr,function(){return ar(Ce,Xe,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Cr==null?void 0:Cr.watchOptions,e.WatchType.SourceFile,Le)},onDeleteValue:e.closeFileWatcher})}function ye(Ce,Le,Xe,Cr){!Ce.watch||!Ce.lastCachedPackageJsonLookups||e.mutateMap(N(Ce.allWatchedPackageJsonFiles,Xe),new e.Map(Ce.lastCachedPackageJsonLookups.get(Xe)),{createNewValue:function(Lr,Jr){return Ce.watchFile(Lr,function(){return ar(Ce,Xe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.PackageJson,Le)},onDeleteValue:e.closeFileWatcher})}function Se(Ce,Le){if(!!Ce.watchAllProjectsPending){Ce.watchAllProjectsPending=!1;for(var Xe=0,Cr=g(Le);Xe<Cr.length;Xe++){var Lr=Cr[Xe],Jr=re(Ce,Lr),Rr=ie(Ce,Lr,Jr);Ge(Ce,Lr,Jr,Rr),er(Ce,Jr,Rr),Rr&&(he(Ce,Lr,Jr,Rr),we(Ce,Lr,Jr,Rr),ye(Ce,Lr,Jr,Rr))}}}function ge(Ce){e.clearMap(Ce.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(Ce.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(Ce.allWatchedWildcardDirectories,function(Le){return e.clearMap(Le,e.closeFileWatcherOf)}),e.clearMap(Ce.allWatchedInputFiles,function(Le){return e.clearMap(Le,e.closeFileWatcher)}),e.clearMap(Ce.allWatchedPackageJsonFiles,function(Le){return e.clearMap(Le,e.closeFileWatcher)})}function Fe(Ce,Le,Xe,Cr,Lr){var Jr=ue(Ce,Le,Xe,Cr,Lr);return{build:function(Rr,ci,be,or){return ke(Jr,Rr,ci,be,or)},clean:function(Rr){return Ue(Jr,Rr)},buildReferences:function(Rr,ci,be,or){return ke(Jr,Rr,ci,be,or,!0)},cleanReferences:function(Rr){return Ue(Jr,Rr,!0)},getNextInvalidatedProject:function(Rr){return P(Jr,Rr),U(Jr,Z(Jr),!1)},getBuildOrder:function(){return Z(Jr)},getUpToDateStatusOfProject:function(Rr){var ci=_e(Jr,Rr),be=re(Jr,ci);return de(Jr,ie(Jr,ci,be),be)},invalidateProject:function(Rr,ci){return He(Jr,Rr,ci||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return me(Jr)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(Jr.configFileCache.values(),function(Rr){return M(Rr)?Rr:void 0}))},close:function(){return ge(Jr)}}}function cr(Ce,Le){return e.convertToRelativePath(Le,Ce.currentDirectory,function(Xe){return Ce.getCanonicalFileName(Xe)})}function ur(Ce,Le){for(var Xe=[],Cr=2;Cr<arguments.length;Cr++)Xe[Cr-2]=arguments[Cr];Ce.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,qe([Le],Xe,!1)))}function Ir(Ce,Le){for(var Xe,Cr,Lr=[],Jr=2;Jr<arguments.length;Jr++)Lr[Jr-2]=arguments[Jr];(Cr=(Xe=Ce.hostWithWatch).onWatchStatusChange)===null||Cr===void 0||Cr.call(Xe,e.createCompilerDiagnostic.apply(void 0,qe([Le],Lr,!1)),Ce.host.getNewLine(),Ce.baseCompilerOptions)}function dr(Ce,Le){var Xe=Ce.host;Le.forEach(function(Cr){return Xe.reportDiagnostic(Cr)})}function Br(Ce,Le,Xe){dr(Ce,Xe),Ce.projectErrorsReported.set(Le,!0),Xe.length&&Ce.diagnostics.set(Le,Xe)}function Tr(Ce,Le){Br(Ce,Le,[Ce.configFileCache.get(Le)])}function n(Ce,Le){if(!!Ce.needsSummary){Ce.needsSummary=!1;var Xe=Ce.watch||!!Ce.host.reportErrorSummary,Cr=Ce.diagnostics,Lr=0,Jr=[];F(Le)?(Er(Ce,Le.buildOrder),dr(Ce,Le.circularDiagnostics),Xe&&(Lr+=e.getErrorCountForSummary(Le.circularDiagnostics)),Xe&&(Jr=qe(qe([],Jr,!0),e.getFilesInErrorForSummary(Le.circularDiagnostics),!0))):(Le.forEach(function(Rr){var ci=re(Ce,Rr);Ce.projectErrorsReported.has(ci)||dr(Ce,Cr.get(ci)||e.emptyArray)}),Xe&&Cr.forEach(function(Rr){return Lr+=e.getErrorCountForSummary(Rr)}),Xe&&Cr.forEach(function(Rr){return qe(qe([],Jr,!0),e.getFilesInErrorForSummary(Rr),!0)})),Ce.watch?Ir(Ce,e.getWatchErrorSummaryDiagnosticMessage(Lr),Lr):Ce.host.reportErrorSummary&&Ce.host.reportErrorSummary(Lr,Jr)}}function Er(Ce,Le){Ce.options.verbose&&ur(Ce,e.Diagnostics.Projects_in_this_build_Colon_0,Le.map(function(Xe){return`\r
|
|
* `+cr(Ce,Xe)}).join(""))}function br(Ce,Le,Xe){if(Ce.options.force&&(Xe.type===e.UpToDateStatusType.UpToDate||Xe.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return ur(Ce,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,cr(Ce,Le));switch(Xe.type){case e.UpToDateStatusType.OutOfDateWithSelf:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,cr(Ce,Le),cr(Ce,Xe.outOfDateOutputFileName),cr(Ce,Xe.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,cr(Ce,Le),cr(Ce,Xe.outOfDateOutputFileName),cr(Ce,Xe.newerProjectName));case e.UpToDateStatusType.OutputMissing:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cr(Ce,Le),cr(Ce,Xe.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(Xe.newestInputFileTime!==void 0)return ur(Ce,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,cr(Ce,Le),cr(Ce,Xe.newestInputFileName||""),cr(Ce,Xe.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cr(Ce,Le),cr(Ce,Xe.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return ur(Ce,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cr(Ce,Le));case e.UpToDateStatusType.UpstreamOutOfDate:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cr(Ce,Le),cr(Ce,Xe.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return ur(Ce,Xe.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,cr(Ce,Le),cr(Ce,Xe.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return ur(Ce,e.Diagnostics.Failed_to_parse_file_0_Colon_1,cr(Ce,Le),Xe.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return ur(Ce,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cr(Ce,Le),Xe.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(Xe)}}function Pr(Ce,Le,Xe){Ce.options.verbose&&br(Ce,Le,Xe)}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.ActionSet="action::set",O.ActionInvalidate="action::invalidate",O.ActionPackageInstalled="action::packageInstalled",O.EventTypesRegistry="event::typesRegistry",O.EventBeginInstallTypes="event::beginInstallTypes",O.EventEndInstallTypes="event::endInstallTypes",O.EventInitializationFailed="event::initializationFailed";var L;(function(pe){pe.GlobalCacheLocation="--globalTypingsCacheLocation",pe.LogFile="--logFile",pe.EnableTelemetry="--enableTelemetry",pe.TypingSafeListLocation="--typingSafeListLocation",pe.TypesMapLocation="--typesMapLocation",pe.NpmLocation="--npmLocation",pe.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(L=O.Arguments||(O.Arguments={}));function W(pe){return e.sys.args.indexOf(pe)>=0}O.hasArgument=W;function N(pe){var F=e.sys.args.indexOf(pe);return F>=0&&F<e.sys.args.length-1?e.sys.args[F+1]:void 0}O.findArgument=N;function Q(){var pe=new Date;return"".concat(e.padLeft(pe.getHours().toString(),2,"0"),":").concat(e.padLeft(pe.getMinutes().toString(),2,"0"),":").concat(e.padLeft(pe.getSeconds().toString(),2,"0"),".").concat(e.padLeft(pe.getMilliseconds().toString(),3,"0"))}O.nowString=Q})(a=e.server||(e.server={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(G,E){var ue=new e.Version(e.getProperty(E,"ts".concat(e.versionMajorMinor))||e.getProperty(E,"latest"));return ue.compareTo(G.version)<=0}O.isTypingUpToDate=L;var W=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];O.prefixedNodeCoreModuleList=W.map(function(G){return"node:".concat(G)}),O.nodeCoreModuleList=qe(qe([],W,!0),O.prefixedNodeCoreModuleList,!0),O.nodeCoreModules=new e.Set(O.nodeCoreModuleList);function N(G){return O.nodeCoreModules.has(G)?"node":G}O.nonRelativeModuleNameForTypingCache=N;function Q(G,E){var ue=e.readConfigFile(E,function(B){return G.readFile(B)});return new e.Map(e.getEntries(ue.config))}O.loadSafeList=Q;function pe(G,E){var ue=e.readConfigFile(E,function(B){return G.readFile(B)});if(ue.config)return new e.Map(e.getEntries(ue.config.simpleMap))}O.loadTypesMap=pe;function F(G,E,ue,B,re,M,x,ie,_e){if(!x||!x.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var Y=new e.Map;ue=e.mapDefined(ue,function(z){var y=e.normalizePath(z);if(e.hasJSFileExtension(y))return y});var Z=[];x.include&&w(x.include,"Explicitly included types");var k=x.exclude||[],I=new e.Set(ue.map(e.getDirectoryPath));if(I.add(B),I.forEach(function(z){j(z,"bower.json","bower_components",Z),j(z,"package.json","node_modules",Z)}),x.disableFilenameBasedTypeAcquisition||U(ue),ie){var ne=e.deduplicate(ie.map(N),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);w(ne,"Inferred typings from unresolved imports")}M.forEach(function(z,y){var oe=_e.get(y);Y.has(y)&&Y.get(y)===void 0&&oe!==void 0&&L(z,oe)&&Y.set(y,z.typingLocation)});for(var ee=0,A=k;ee<A.length;ee++){var f=A[ee],P=Y.delete(f);P&&E&&E("Typing for ".concat(f," is in exclude list, will be ignored."))}var D=[],l=[];Y.forEach(function(z,y){z!==void 0?l.push(z):D.push(y)});var _={cachedTypingPaths:l,newTypingNames:D,filesToWatch:Z};return E&&E("Result: ".concat(JSON.stringify(_))),_;function J(z){Y.has(z)||Y.set(z,void 0)}function w(z,y){E&&E("".concat(y,": ").concat(JSON.stringify(z))),e.forEach(z,J)}function j(z,y,oe,ve){var ce=e.combinePaths(z,y),m,de;G.fileExists(ce)&&(ve.push(ce),m=e.readConfigFile(ce,function(he){return G.readFile(he)}).config,de=e.flatMap([m.dependencies,m.devDependencies,m.optionalDependencies,m.peerDependencies],e.getOwnKeys),w(de,"Typing names in '".concat(ce,"' dependencies")));var ae=e.combinePaths(z,oe);if(ve.push(ae),!!G.directoryExists(ae)){var V=[],le=de?de.map(function(he){return e.combinePaths(ae,he,y)}):G.readDirectory(ae,[".json"],void 0,void 0,3).filter(function(he){if(e.getBaseFileName(he)!==y)return!1;var we=e.getPathComponents(e.normalizePath(he)),ye=we[we.length-3][0]==="@";return ye&&we[we.length-4].toLowerCase()===oe||!ye&&we[we.length-3].toLowerCase()===oe});E&&E("Searching for typing names in ".concat(ae,"; all files: ").concat(JSON.stringify(le)));for(var ke=0,Ue=le;ke<Ue.length;ke++){var He=Ue[ke],ar=e.normalizePath(He),gr=e.readConfigFile(ar,function(he){return G.readFile(he)}),me=gr.config;if(!!me.name){var Ge=me.types||me.typings;if(Ge){var er=e.getNormalizedAbsolutePath(Ge,e.getDirectoryPath(ar));G.fileExists(er)?(E&&E(" Package '".concat(me.name,"' provides its own types.")),Y.set(me.name,er)):E&&E(" Package '".concat(me.name,"' provides its own types but they are missing."))}else V.push(me.name)}}w(V," Found package names")}}function U(z){var y=e.mapDefined(z,function(ve){if(!!e.hasJSFileExtension(ve)){var ce=e.removeFileExtension(e.getBaseFileName(ve.toLowerCase())),m=e.removeMinAndVersionNumbers(ce);return re.get(m)}});y.length&&w(y,"Inferred typings from file names");var oe=e.some(z,function(ve){return e.fileExtensionIs(ve,".jsx")});oe&&(E&&E("Inferred 'react' typings due to presence of '.jsx' extension"),J("react"))}}O.discoverTypings=F;var g;(function(G){G[G.Ok=0]="Ok",G[G.EmptyName=1]="EmptyName",G[G.NameTooLong=2]="NameTooLong",G[G.NameStartsWithDot=3]="NameStartsWithDot",G[G.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",G[G.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(g=O.NameValidationResult||(O.NameValidationResult={}));var S=214;function H(G){return se(G,!0)}O.validatePackageName=H;function se(G,E){if(!G)return 1;if(G.length>S)return 2;if(G.charCodeAt(0)===46)return 3;if(G.charCodeAt(0)===95)return 4;if(E){var ue=/^@([^/]+)\/([^/]+)$/.exec(G);if(ue){var B=se(ue[1],!1);if(B!==0)return{name:ue[1],isScopeName:!0,result:B};var re=se(ue[2],!1);return re!==0?{name:ue[2],isScopeName:!1,result:re}:0}}return encodeURIComponent(G)!==G?5:0}function p(G,E){return typeof G=="object"?C(E,G.result,G.name,G.isScopeName):C(E,G,E,!1)}O.renderPackageNameValidationFailure=p;function C(G,E,ue,B){var re=B?"Scope":"Package";switch(E){case 1:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot be empty");case 2:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' should be less than ").concat(S," characters");case 3:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot start with '.'");case 4:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' cannot start with '_'");case 5:return"'".concat(G,"':: ").concat(re," name '").concat(ue,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(E)}}})(a=e.JsTyping||(e.JsTyping={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(x){var ie=function(){function Y(Z){this.text=Z}return Y.prototype.getText=function(Z,k){return Z===0&&k===this.text.length?this.text:this.text.substring(Z,k)},Y.prototype.getLength=function(){return this.text.length},Y.prototype.getChangeRange=function(){},Y}();function _e(Y){return new ie(Y)}x.fromString=_e})(a=e.ScriptSnapshot||(e.ScriptSnapshot={}));var O;(function(x){x[x.Dependencies=1]="Dependencies",x[x.DevDependencies=2]="DevDependencies",x[x.PeerDependencies=4]="PeerDependencies",x[x.OptionalDependencies=8]="OptionalDependencies",x[x.All=15]="All"})(O=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var L;(function(x){x[x.Off=0]="Off",x[x.On=1]="On",x[x.Auto=2]="Auto"})(L=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var W;(function(x){x[x.Semantic=0]="Semantic",x[x.PartialSemantic=1]="PartialSemantic",x[x.Syntactic=2]="Syntactic"})(W=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var N;(function(x){x.Original="original",x.TwentyTwenty="2020"})(N=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var Q;(function(x){x[x.Invoked=1]="Invoked",x[x.TriggerCharacter=2]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(Q=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var pe;(function(x){x.Type="Type",x.Parameter="Parameter",x.Enum="Enum"})(pe=e.InlayHintKind||(e.InlayHintKind={}));var F;(function(x){x.none="none",x.definition="definition",x.reference="reference",x.writtenReference="writtenReference"})(F=e.HighlightSpanKind||(e.HighlightSpanKind={}));var g;(function(x){x[x.None=0]="None",x[x.Block=1]="Block",x[x.Smart=2]="Smart"})(g=e.IndentStyle||(e.IndentStyle={}));var S;(function(x){x.Ignore="ignore",x.Insert="insert",x.Remove="remove"})(S=e.SemicolonPreference||(e.SemicolonPreference={}));function H(x){return{indentSize:4,tabSize:4,newLineCharacter:x||`
|
|
`,convertTabsToSpaces:!0,indentStyle:g.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:S.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=H,e.testFormatSettings=H(`
|
|
`);var se;(function(x){x[x.aliasName=0]="aliasName",x[x.className=1]="className",x[x.enumName=2]="enumName",x[x.fieldName=3]="fieldName",x[x.interfaceName=4]="interfaceName",x[x.keyword=5]="keyword",x[x.lineBreak=6]="lineBreak",x[x.numericLiteral=7]="numericLiteral",x[x.stringLiteral=8]="stringLiteral",x[x.localName=9]="localName",x[x.methodName=10]="methodName",x[x.moduleName=11]="moduleName",x[x.operator=12]="operator",x[x.parameterName=13]="parameterName",x[x.propertyName=14]="propertyName",x[x.punctuation=15]="punctuation",x[x.space=16]="space",x[x.text=17]="text",x[x.typeParameterName=18]="typeParameterName",x[x.enumMemberName=19]="enumMemberName",x[x.functionName=20]="functionName",x[x.regularExpressionLiteral=21]="regularExpressionLiteral",x[x.link=22]="link",x[x.linkName=23]="linkName",x[x.linkText=24]="linkText"})(se=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var p;(function(x){x.Comment="comment",x.Region="region",x.Code="code",x.Imports="imports"})(p=e.OutliningSpanKind||(e.OutliningSpanKind={}));var C;(function(x){x[x.JavaScript=0]="JavaScript",x[x.SourceMap=1]="SourceMap",x[x.Declaration=2]="Declaration"})(C=e.OutputFileType||(e.OutputFileType={}));var G;(function(x){x[x.None=0]="None",x[x.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",x[x.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",x[x.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",x[x.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",x[x.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",x[x.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})(G=e.EndOfLineState||(e.EndOfLineState={}));var E;(function(x){x[x.Punctuation=0]="Punctuation",x[x.Keyword=1]="Keyword",x[x.Operator=2]="Operator",x[x.Comment=3]="Comment",x[x.Whitespace=4]="Whitespace",x[x.Identifier=5]="Identifier",x[x.NumberLiteral=6]="NumberLiteral",x[x.BigIntLiteral=7]="BigIntLiteral",x[x.StringLiteral=8]="StringLiteral",x[x.RegExpLiteral=9]="RegExpLiteral"})(E=e.TokenClass||(e.TokenClass={}));var ue;(function(x){x.unknown="",x.warning="warning",x.keyword="keyword",x.scriptElement="script",x.moduleElement="module",x.classElement="class",x.localClassElement="local class",x.interfaceElement="interface",x.typeElement="type",x.enumElement="enum",x.enumMemberElement="enum member",x.variableElement="var",x.localVariableElement="local var",x.functionElement="function",x.localFunctionElement="local function",x.memberFunctionElement="method",x.memberGetAccessorElement="getter",x.memberSetAccessorElement="setter",x.memberVariableElement="property",x.constructorImplementationElement="constructor",x.callSignatureElement="call",x.indexSignatureElement="index",x.constructSignatureElement="construct",x.parameterElement="parameter",x.typeParameterElement="type parameter",x.primitiveType="primitive type",x.label="label",x.alias="alias",x.constElement="const",x.letElement="let",x.directory="directory",x.externalModuleName="external module name",x.jsxAttribute="JSX attribute",x.string="string",x.link="link",x.linkName="link name",x.linkText="link text"})(ue=e.ScriptElementKind||(e.ScriptElementKind={}));var B;(function(x){x.none="",x.publicMemberModifier="public",x.privateMemberModifier="private",x.protectedMemberModifier="protected",x.exportedModifier="export",x.ambientModifier="declare",x.staticModifier="static",x.abstractModifier="abstract",x.optionalModifier="optional",x.deprecatedModifier="deprecated",x.dtsModifier=".d.ts",x.tsModifier=".ts",x.tsxModifier=".tsx",x.jsModifier=".js",x.jsxModifier=".jsx",x.jsonModifier=".json",x.dmtsModifier=".d.mts",x.mtsModifier=".mts",x.mjsModifier=".mjs",x.dctsModifier=".d.cts",x.ctsModifier=".cts",x.cjsModifier=".cjs"})(B=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var re;(function(x){x.comment="comment",x.identifier="identifier",x.keyword="keyword",x.numericLiteral="number",x.bigintLiteral="bigint",x.operator="operator",x.stringLiteral="string",x.whiteSpace="whitespace",x.text="text",x.punctuation="punctuation",x.className="class name",x.enumName="enum name",x.interfaceName="interface name",x.moduleName="module name",x.typeParameterName="type parameter name",x.typeAliasName="type alias name",x.parameterName="parameter name",x.docCommentTagName="doc comment tag name",x.jsxOpenTagName="jsx open tag name",x.jsxCloseTagName="jsx close tag name",x.jsxSelfClosingTagName="jsx self closing tag name",x.jsxAttribute="jsx attribute",x.jsxText="jsx text",x.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(re=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var M;(function(x){x[x.comment=1]="comment",x[x.identifier=2]="identifier",x[x.keyword=3]="keyword",x[x.numericLiteral=4]="numericLiteral",x[x.operator=5]="operator",x[x.stringLiteral=6]="stringLiteral",x[x.regularExpressionLiteral=7]="regularExpressionLiteral",x[x.whiteSpace=8]="whiteSpace",x[x.text=9]="text",x[x.punctuation=10]="punctuation",x[x.className=11]="className",x[x.enumName=12]="enumName",x[x.interfaceName=13]="interfaceName",x[x.moduleName=14]="moduleName",x[x.typeParameterName=15]="typeParameterName",x[x.typeAliasName=16]="typeAliasName",x[x.parameterName=17]="parameterName",x[x.docCommentTagName=18]="docCommentTagName",x[x.jsxOpenTagName=19]="jsxOpenTagName",x[x.jsxCloseTagName=20]="jsxCloseTagName",x[x.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",x[x.jsxAttribute=22]="jsxAttribute",x[x.jsxText=23]="jsxText",x[x.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",x[x.bigintLiteral=25]="bigintLiteral"})(M=e.ClassificationType||(e.ClassificationType={}))})(Pe||(Pe={}));var Pe;(function(e){e.scanner=e.createScanner(99,!0);var a;(function(Te){Te[Te.None=0]="None",Te[Te.Value=1]="Value",Te[Te.Type=2]="Type",Te[Te.Namespace=4]="Namespace",Te[Te.All=7]="All"})(a=e.SemanticMeaning||(e.SemanticMeaning={}));function O(Te){switch(Te.kind){case 253:return e.isInJSFile(Te)&&e.getJSDocEnumTag(Te)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return Te.name===void 0?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(Te)||e.getModuleInstanceState(Te)===1?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}e.getMeaningFromDeclaration=O;function L(Te){Te=Br(Te);var vr=Te.parent;return Te.kind===303?1:e.isExportAssignment(vr)||e.isExportSpecifier(vr)||e.isExternalModuleReference(vr)||e.isImportSpecifier(vr)||e.isImportClause(vr)||e.isImportEqualsDeclaration(vr)&&Te===vr.name?7:N(Te)?W(Te):e.isDeclarationName(Te)?O(vr):e.isEntityName(Te)&&e.findAncestor(Te,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:g(Te)?2:Q(Te)?4:e.isTypeParameterDeclaration(vr)?(e.Debug.assert(e.isJSDocTemplateTag(vr.parent)),2):e.isLiteralTypeNode(vr)?3:1}e.getMeaningFromLocation=L;function W(Te){var vr=Te.kind===160?Te:e.isQualifiedName(Te.parent)&&Te.parent.right===Te?Te.parent:void 0;return vr&&vr.parent.kind===264?7:4}function N(Te){for(;Te.parent.kind===160;)Te=Te.parent;return e.isInternalModuleImportEqualsDeclaration(Te.parent)&&Te.parent.moduleReference===Te}e.isInRightSideOfInternalImportEqualsDeclaration=N;function Q(Te){return pe(Te)||F(Te)}function pe(Te){var vr=Te,Sr=!0;if(vr.parent.kind===160){for(;vr.parent&&vr.parent.kind===160;)vr=vr.parent;Sr=vr.right===Te}return vr.parent.kind===177&&!Sr}function F(Te){var vr=Te,Sr=!0;if(vr.parent.kind===205){for(;vr.parent&&vr.parent.kind===205;)vr=vr.parent;Sr=vr.name===Te}if(!Sr&&vr.parent.kind===227&&vr.parent.parent.kind===290){var Di=vr.parent.parent.parent;return Di.kind===256&&vr.parent.parent.token===117||Di.kind===257&&vr.parent.parent.token===94}return!1}function g(Te){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(Te)&&(Te=Te.parent),Te.kind){case 108:return!e.isExpressionNode(Te);case 191:return!0}switch(Te.parent.kind){case 177:return!0;case 199:return!Te.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(Te.parent)}return!1}function S(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isCallExpression,E,vr,Sr)}e.isCallExpressionTarget=S;function H(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isNewExpression,E,vr,Sr)}e.isNewExpressionTarget=H;function se(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isCallOrNewExpression,E,vr,Sr)}e.isCallOrNewExpressionTarget=se;function p(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isTaggedTemplateExpression,ue,vr,Sr)}e.isTaggedTemplateTag=p;function C(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isDecorator,E,vr,Sr)}e.isDecoratorTarget=C;function G(Te,vr,Sr){return vr===void 0&&(vr=!1),Sr===void 0&&(Sr=!1),re(Te,e.isJsxOpeningLikeElement,B,vr,Sr)}e.isJsxOpeningLikeElementTagName=G;function E(Te){return Te.expression}function ue(Te){return Te.tag}function B(Te){return Te.tagName}function re(Te,vr,Sr,Di,nt){var _a=Di?x(Te):M(Te);return nt&&(_a=e.skipOuterExpressions(_a)),!!_a&&!!_a.parent&&vr(_a.parent)&&Sr(_a.parent)===_a}function M(Te){return ee(Te)?Te.parent:Te}e.climbPastPropertyAccess=M;function x(Te){return ee(Te)||A(Te)?Te.parent:Te}e.climbPastPropertyOrElementAccess=x;function ie(Te,vr){for(;Te;){if(Te.kind===249&&Te.label.escapedText===vr)return Te.label;Te=Te.parent}}e.getTargetLabel=ie;function _e(Te,vr){return e.isPropertyAccessExpression(Te.expression)?Te.expression.name.text===vr:!1}e.hasPropertyAccessExpressionWithName=_e;function Y(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isBreakOrContinueStatement))===null||vr===void 0?void 0:vr.label)===Te}e.isJumpStatementTarget=Y;function Z(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isLabeledStatement))===null||vr===void 0?void 0:vr.label)===Te}e.isLabelOfLabeledStatement=Z;function k(Te){return Z(Te)||Y(Te)}e.isLabelName=k;function I(Te){var vr;return((vr=e.tryCast(Te.parent,e.isJSDocTag))===null||vr===void 0?void 0:vr.tagName)===Te}e.isTagName=I;function ne(Te){var vr;return((vr=e.tryCast(Te.parent,e.isQualifiedName))===null||vr===void 0?void 0:vr.right)===Te}e.isRightSideOfQualifiedName=ne;function ee(Te){var vr;return((vr=e.tryCast(Te.parent,e.isPropertyAccessExpression))===null||vr===void 0?void 0:vr.name)===Te}e.isRightSideOfPropertyAccess=ee;function A(Te){var vr;return((vr=e.tryCast(Te.parent,e.isElementAccessExpression))===null||vr===void 0?void 0:vr.argumentExpression)===Te}e.isArgumentExpressionOfElementAccess=A;function f(Te){var vr;return((vr=e.tryCast(Te.parent,e.isModuleDeclaration))===null||vr===void 0?void 0:vr.name)===Te}e.isNameOfModuleDeclaration=f;function P(Te){var vr;return e.isIdentifier(Te)&&((vr=e.tryCast(Te.parent,e.isFunctionLike))===null||vr===void 0?void 0:vr.name)===Te}e.isNameOfFunctionDeclaration=P;function D(Te){switch(Te.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(Te.parent)===Te;case 206:return Te.parent.argumentExpression===Te;case 161:return!0;case 195:return Te.parent.parent.kind===193;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=D;function l(Te){return e.isExternalModuleImportEqualsDeclaration(Te.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(Te.parent.parent)===Te}e.isExpressionOfExternalModuleImportEqualsDeclaration=l;function _(Te){for(e.isJSDocTypeAlias(Te)&&(Te=Te.parent.parent);;){if(Te=Te.parent,!Te)return;switch(Te.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return Te}}}e.getContainerNode=_;function J(Te){switch(Te.kind){case 303:return e.isExternalModule(Te)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return Na(Te);case 202:return Na(e.getRootDeclaration(Te));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var vr=Te.initializer;return e.isFunctionLike(vr)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(Te,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var Sr=e.getAssignmentDeclarationKind(Te),Di=Te.right;switch(Sr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var nt=J(Di);return nt===""?"const":nt;case 3:return e.isFunctionExpression(Di)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(Di)?"method":"property";case 6:return"local class";default:return e.assertType(Sr),""}case 79:return e.isImportClause(Te.parent)?"alias":"";case 270:var _a=J(Te.expression);return _a===""?"const":_a;default:return""}function Na(wn){return e.isVarConst(wn)?"const":e.isLet(wn)?"let":"var"}}e.getNodeKind=J;function w(Te){switch(Te.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(Te)&&Te.parent.kind===163;default:return!1}}e.isThis=w;var j=/^\/\/\/\s*</;function U(Te,vr){var Sr=e.getLineStarts(vr),Di=vr.getLineAndCharacterOfPosition(Te).line;return Sr[Di]}e.getLineStartPositionForPosition=U;function z(Te,vr){return ce(Te.pos,Te.end,vr)}e.rangeContainsRange=z;function y(Te,vr){return ve(Te,vr.pos)&&ve(Te,vr.end)}e.rangeContainsRangeExclusive=y;function oe(Te,vr){return Te.pos<=vr&&vr<=Te.end}e.rangeContainsPosition=oe;function ve(Te,vr){return Te.pos<vr&&vr<Te.end}e.rangeContainsPositionExclusive=ve;function ce(Te,vr,Sr){return Te<=Sr.pos&&vr>=Sr.end}e.startEndContainsRange=ce;function m(Te,vr,Sr){return Te.pos<=vr&&Te.end>=Sr}e.rangeContainsStartEnd=m;function de(Te,vr,Sr){return V(Te.pos,Te.end,vr,Sr)}e.rangeOverlapsWithStartEnd=de;function ae(Te,vr,Sr,Di){return V(Te.getStart(vr),Te.end,Sr,Di)}e.nodeOverlapsWithStartEnd=ae;function V(Te,vr,Sr,Di){var nt=Math.max(Te,Sr),_a=Math.min(vr,Di);return nt<_a}e.startEndOverlapsWithStartEnd=V;function le(Te,vr,Sr){return e.Debug.assert(Te.pos<=vr),vr<Te.end||!ke(Te,Sr)}e.positionBelongsToNode=le;function ke(Te,vr){if(Te===void 0||e.nodeIsMissing(Te))return!1;switch(Te.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return Ue(Te,19,vr);case 291:return ke(Te.block,vr);case 208:if(!Te.arguments)return!0;case 207:case 211:case 190:return Ue(Te,21,vr);case 178:case 179:return ke(Te.type,vr);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return Te.body?ke(Te.body,vr):Te.type?ke(Te.type,vr):ar(Te,21,vr);case 260:return!!Te.body&&ke(Te.body,vr);case 238:return Te.elseStatement?ke(Te.elseStatement,vr):ke(Te.thenStatement,vr);case 237:return ke(Te.expression,vr)||ar(Te,26,vr);case 203:case 201:case 206:case 161:case 183:return Ue(Te,23,vr);case 175:return Te.type?ke(Te.type,vr):ar(Te,23,vr);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return ke(Te.statement,vr);case 239:return ar(Te,115,vr)?Ue(Te,21,vr):ke(Te.statement,vr);case 180:return ke(Te.exprName,vr);case 215:case 214:case 216:case 223:case 224:var Sr=Te;return ke(Sr.expression,vr);case 209:return ke(Te.template,vr);case 222:var Di=e.lastOrUndefined(Te.templateSpans);return ke(Di,vr);case 232:return e.nodeIsPresent(Te.literal);case 271:case 265:return e.nodeIsPresent(Te.moduleSpecifier);case 218:return ke(Te.operand,vr);case 220:return ke(Te.right,vr);case 221:return ke(Te.whenFalse,vr);default:return!0}}function Ue(Te,vr,Sr){var Di=Te.getChildren(Sr);if(Di.length){var nt=e.last(Di);if(nt.kind===vr)return!0;if(nt.kind===26&&Di.length!==1)return Di[Di.length-2].kind===vr}return!1}function He(Te){var vr=me(Te);if(!!vr){var Sr=vr.getChildren(),Di=e.indexOfNode(Sr,Te);return{listItemIndex:Di,list:vr}}}e.findListItemInfo=He;function ar(Te,vr,Sr){return!!gr(Te,vr,Sr)}e.hasChildOfKind=ar;function gr(Te,vr,Sr){return e.find(Te.getChildren(Sr),function(Di){return Di.kind===vr})}e.findChildOfKind=gr;function me(Te){var vr=e.find(Te.parent.getChildren(),function(Sr){return e.isSyntaxList(Sr)&&z(Sr,Te)});return e.Debug.assert(!vr||e.contains(vr.getChildren(),Te)),vr}e.findContainingList=me;function Ge(Te){return Te.kind===88}function er(Te){return Te.kind===84}function he(Te){return Te.kind===98}function we(Te){if(e.isNamedDeclaration(Te))return Te.name;if(e.isClassDeclaration(Te)){var vr=Te.modifiers&&e.find(Te.modifiers,Ge);if(vr)return vr}if(e.isClassExpression(Te)){var Sr=e.find(Te.getChildren(),er);if(Sr)return Sr}}function ye(Te){if(e.isNamedDeclaration(Te))return Te.name;if(e.isFunctionDeclaration(Te)){var vr=e.find(Te.modifiers,Ge);if(vr)return vr}if(e.isFunctionExpression(Te)){var Sr=e.find(Te.getChildren(),he);if(Sr)return Sr}}function Se(Te){var vr;return e.findAncestor(Te,function(Sr){return e.isTypeNode(Sr)&&(vr=Sr),!e.isQualifiedName(Sr.parent)&&!e.isTypeNode(Sr.parent)&&!e.isTypeElement(Sr.parent)}),vr}function ge(Te,vr){var Sr=ao(Te,vr);if(Sr)return Sr;var Di=Se(Te);return Di&&vr.getTypeAtLocation(Di)}e.getContextualTypeFromParentOrAncestorTypeNode=ge;function Fe(Te,vr){if(!vr)switch(Te.kind){case 256:case 225:return we(Te);case 255:case 212:return ye(Te)}if(e.isNamedDeclaration(Te))return Te.name}function cr(Te,vr){if(Te.importClause){if(Te.importClause.name&&Te.importClause.namedBindings)return;if(Te.importClause.name)return Te.importClause.name;if(Te.importClause.namedBindings){if(e.isNamedImports(Te.importClause.namedBindings)){var Sr=e.singleOrUndefined(Te.importClause.namedBindings.elements);return Sr?Sr.name:void 0}else if(e.isNamespaceImport(Te.importClause.namedBindings))return Te.importClause.namedBindings.name}}if(!vr)return Te.moduleSpecifier}function ur(Te,vr){if(Te.exportClause){if(e.isNamedExports(Te.exportClause)){var Sr=e.singleOrUndefined(Te.exportClause.elements);return Sr?Te.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(Te.exportClause))return Te.exportClause.name}if(!vr)return Te.moduleSpecifier}function Ir(Te){if(Te.types.length===1)return Te.types[0].expression}function dr(Te,vr){var Sr=Te.parent;if(e.isModifier(Te)&&(vr||Te.kind!==88)?e.contains(Sr.modifiers,Te):Te.kind===84?e.isClassDeclaration(Sr)||e.isClassExpression(Te):Te.kind===98?e.isFunctionDeclaration(Sr)||e.isFunctionExpression(Te):Te.kind===118?e.isInterfaceDeclaration(Sr):Te.kind===92?e.isEnumDeclaration(Sr):Te.kind===151?e.isTypeAliasDeclaration(Sr):Te.kind===142||Te.kind===141?e.isModuleDeclaration(Sr):Te.kind===100?e.isImportEqualsDeclaration(Sr):Te.kind===136?e.isGetAccessorDeclaration(Sr):Te.kind===148&&e.isSetAccessorDeclaration(Sr)){var Di=Fe(Sr,vr);if(Di)return Di}if((Te.kind===113||Te.kind===85||Te.kind===119)&&e.isVariableDeclarationList(Sr)&&Sr.declarations.length===1){var nt=Sr.declarations[0];if(e.isIdentifier(nt.name))return nt.name}if(Te.kind===151){if(e.isImportClause(Sr)&&Sr.isTypeOnly){var Di=cr(Sr.parent,vr);if(Di)return Di}if(e.isExportDeclaration(Sr)&&Sr.isTypeOnly){var Di=ur(Sr,vr);if(Di)return Di}}if(Te.kind===127){if(e.isImportSpecifier(Sr)&&Sr.propertyName||e.isExportSpecifier(Sr)&&Sr.propertyName||e.isNamespaceImport(Sr)||e.isNamespaceExport(Sr))return Sr.name;if(e.isExportDeclaration(Sr)&&Sr.exportClause&&e.isNamespaceExport(Sr.exportClause))return Sr.exportClause.name}if(Te.kind===100&&e.isImportDeclaration(Sr)){var Di=cr(Sr,vr);if(Di)return Di}if(Te.kind===93){if(e.isExportDeclaration(Sr)){var Di=ur(Sr,vr);if(Di)return Di}if(e.isExportAssignment(Sr))return e.skipOuterExpressions(Sr.expression)}if(Te.kind===145&&e.isExternalModuleReference(Sr))return Sr.expression;if(Te.kind===155&&(e.isImportDeclaration(Sr)||e.isExportDeclaration(Sr))&&Sr.moduleSpecifier)return Sr.moduleSpecifier;if((Te.kind===94||Te.kind===117)&&e.isHeritageClause(Sr)&&Sr.token===Te.kind){var Di=Ir(Sr);if(Di)return Di}if(Te.kind===94){if(e.isTypeParameterDeclaration(Sr)&&Sr.constraint&&e.isTypeReferenceNode(Sr.constraint))return Sr.constraint.typeName;if(e.isConditionalTypeNode(Sr)&&e.isTypeReferenceNode(Sr.extendsType))return Sr.extendsType.typeName}if(Te.kind===137&&e.isInferTypeNode(Sr))return Sr.typeParameter.name;if(Te.kind===101&&e.isTypeParameterDeclaration(Sr)&&e.isMappedTypeNode(Sr.parent))return Sr.name;if(Te.kind===140&&e.isTypeOperatorNode(Sr)&&Sr.operator===140&&e.isTypeReferenceNode(Sr.type))return Sr.type.typeName;if(Te.kind===144&&e.isTypeOperatorNode(Sr)&&Sr.operator===144&&e.isArrayTypeNode(Sr.type)&&e.isTypeReferenceNode(Sr.type.elementType))return Sr.type.elementType.typeName;if(!vr){if((Te.kind===103&&e.isNewExpression(Sr)||Te.kind===114&&e.isVoidExpression(Sr)||Te.kind===112&&e.isTypeOfExpression(Sr)||Te.kind===132&&e.isAwaitExpression(Sr)||Te.kind===125&&e.isYieldExpression(Sr)||Te.kind===89&&e.isDeleteExpression(Sr))&&Sr.expression)return e.skipOuterExpressions(Sr.expression);if((Te.kind===101||Te.kind===102)&&e.isBinaryExpression(Sr)&&Sr.operatorToken===Te)return e.skipOuterExpressions(Sr.right);if(Te.kind===127&&e.isAsExpression(Sr)&&e.isTypeReferenceNode(Sr.type))return Sr.type.typeName;if(Te.kind===101&&e.isForInStatement(Sr)||Te.kind===159&&e.isForOfStatement(Sr))return e.skipOuterExpressions(Sr.expression)}return Te}function Br(Te){return dr(Te,!1)}e.getAdjustedReferenceLocation=Br;function Tr(Te){return dr(Te,!0)}e.getAdjustedRenameLocation=Tr;function n(Te,vr){return Er(Te,vr,function(Sr){return e.isPropertyNameLiteral(Sr)||e.isKeyword(Sr.kind)||e.isPrivateIdentifier(Sr)})}e.getTouchingPropertyName=n;function Er(Te,vr,Sr){return Pr(Te,vr,!1,Sr,!1)}e.getTouchingToken=Er;function br(Te,vr){return Pr(Te,vr,!0,void 0,!1)}e.getTokenAtPosition=br;function Pr(Te,vr,Sr,Di,nt){var _a=Te,Na,wn=function(){var vo=_a.getChildren(Te),Vn=e.binarySearchKey(vo,vr,function(to,Jo){return Jo},function(to,Jo){var Xo=Sr?vo[to].getFullStart():vo[to].getStart(Te,!0);return Xo>vr?1:Go(vo[to])?vo[to-1]&&Go(vo[to-1])?1:0:Di&&Xo===vr&&vo[to-1]&&vo[to-1].getEnd()===vr&&Go(vo[to-1])?1:-1});return Na?{value:Na}:Vn>=0&&vo[Vn]?(_a=vo[Vn],"continue-outer"):{value:_a}};e:for(;;){var no=wn();if(typeof no=="object")return no.value;switch(no){case"continue-outer":continue e}}function Go(vo){var Vn=Sr?vo.getFullStart():vo.getStart(Te,!0);if(Vn>vr)return!1;var to=vo.getEnd();if(vr<to||vr===to&&(vo.kind===1||nt))return!0;if(Di&&to===vr){var Jo=Cr(vr,Te,vo);if(Jo&&Di(Jo))return Na=Jo,!0}return!1}}function Ce(Te,vr){for(var Sr=br(Te,vr);or(Sr);){var Di=Xe(Sr,Sr.parent,Te);if(!Di)return;Sr=Di}return Sr}e.findFirstNonJsxWhitespaceToken=Ce;function Le(Te,vr){var Sr=br(Te,vr);return e.isToken(Sr)&&vr>Sr.getStart(Te)&&vr<Sr.getEnd()?Sr:Cr(vr,Te)}e.findTokenOnLeftOfPosition=Le;function Xe(Te,vr,Sr){return Di(vr);function Di(nt){return e.isToken(nt)&&nt.pos===Te.end?nt:e.firstDefined(nt.getChildren(Sr),function(_a){var Na=_a.pos<=Te.pos&&_a.end>Te.end||_a.pos===Te.end;return Na&&di(_a,Sr)?Di(_a):void 0})}}e.findNextToken=Xe;function Cr(Te,vr,Sr,Di){var nt=_a(Sr||vr);return e.Debug.assert(!(nt&&or(nt))),nt;function _a(Na){if(Lr(Na)&&Na.kind!==1)return Na;var wn=Na.getChildren(vr),no=e.binarySearchKey(wn,Te,function(Xo,Wr){return Wr},function(Xo,Wr){return Te<wn[Xo].end?!wn[Xo-1]||Te>=wn[Xo-1].end?0:1:-1});if(no>=0&&wn[no]){var Go=wn[no];if(Te<Go.end){var vo=Go.getStart(vr,!Di),Vn=vo>=Te||!di(Go,vr)||or(Go);if(Vn){var to=Rr(wn,no,vr,Na.kind);return to&&Jr(to,vr)}else return _a(Go)}}e.Debug.assert(Sr!==void 0||Na.kind===303||Na.kind===1||e.isJSDocCommentContainingNode(Na));var Jo=Rr(wn,wn.length,vr,Na.kind);return Jo&&Jr(Jo,vr)}}e.findPrecedingToken=Cr;function Lr(Te){return e.isToken(Te)&&!or(Te)}function Jr(Te,vr){if(Lr(Te))return Te;var Sr=Te.getChildren(vr);if(Sr.length===0)return Te;var Di=Rr(Sr,Sr.length,vr,Te.kind);return Di&&Jr(Di,vr)}function Rr(Te,vr,Sr,Di){for(var nt=vr-1;nt>=0;nt--){var _a=Te[nt];if(or(_a))nt===0&&(Di===11||Di===278)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(di(Te[nt],Sr))return Te[nt]}}function ci(Te,vr,Sr){if(Sr===void 0&&(Sr=Cr(vr,Te)),Sr&&e.isStringTextContainingNode(Sr)){var Di=Sr.getStart(Te),nt=Sr.getEnd();if(Di<vr&&vr<nt)return!0;if(vr===nt)return!!Sr.isUnterminated}return!1}e.isInString=ci;function be(Te,vr){var Sr=br(Te,vr);return Sr?!!(Sr.kind===11||Sr.kind===29&&Sr.parent.kind===11||Sr.kind===29&&Sr.parent.kind===287||Sr&&Sr.kind===19&&Sr.parent.kind===287||Sr.kind===29&&Sr.parent.kind===280):!1}e.isInsideJsxElementOrAttribute=be;function or(Te){return e.isJsxText(Te)&&Te.containsOnlyTriviaWhiteSpaces}function Kr(Te,vr){var Sr=br(Te,vr);return e.isTemplateLiteralKind(Sr.kind)&&vr>Sr.getStart(Te)}e.isInTemplateString=Kr;function ei(Te,vr){var Sr=br(Te,vr);return!!(e.isJsxText(Sr)||Sr.kind===18&&e.isJsxExpression(Sr.parent)&&e.isJsxElement(Sr.parent.parent)||Sr.kind===29&&e.isJsxOpeningLikeElement(Sr.parent)&&e.isJsxElement(Sr.parent.parent))}e.isInJSXText=ei;function li(Te,vr){function Sr(Di){for(;Di;)if(Di.kind>=278&&Di.kind<=287||Di.kind===11||Di.kind===29||Di.kind===31||Di.kind===79||Di.kind===19||Di.kind===18||Di.kind===43)Di=Di.parent;else if(Di.kind===277){if(vr>Di.getStart(Te))return!0;Di=Di.parent}else return!1;return!1}return Sr(br(Te,vr))}e.isInsideJsxElement=li;function Si(Te,vr,Sr){var Di=e.tokenToString(Te.kind),nt=e.tokenToString(vr),_a=Te.getFullStart(),Na=Sr.text.lastIndexOf(nt,_a);if(Na!==-1){if(Sr.text.lastIndexOf(Di,_a-1)<Na){var wn=Cr(Na+1,Sr);if(wn&&wn.kind===vr)return wn}for(var no=Te.kind,Go=0;;){var vo=Cr(Te.getFullStart(),Sr);if(!vo)return;if(Te=vo,Te.kind===vr){if(Go===0)return Te;Go--}else Te.kind===no&&Go++}}}e.findPrecedingMatchingToken=Si;function qi(Te,vr,Sr){return vr?Te.getNonNullableType():Sr?Te.getNonOptionalType():Te}e.removeOptionality=qi;function ft(Te,vr,Sr){var Di=aa(Te,vr);return Di!==void 0&&(e.isPartOfTypeNode(Di.called)||bt(Di.called,Di.nTypeArguments,Sr).length!==0||ft(Di.called,vr,Sr))}e.isPossiblyTypeArgumentPosition=ft;function bt(Te,vr,Sr){var Di=Sr.getTypeAtLocation(Te);e.isOptionalChain(Te.parent)&&(Di=qi(Di,e.isOptionalChainRoot(Te.parent),!0));var nt=e.isNewExpression(Te.parent)?Di.getConstructSignatures():Di.getCallSignatures();return nt.filter(function(_a){return!!_a.typeParameters&&_a.typeParameters.length>=vr})}e.getPossibleGenericSignatures=bt;function aa(Te,vr){if(vr.text.lastIndexOf("<",Te?Te.pos:vr.text.length)!==-1)for(var Sr=Te,Di=0,nt=0;Sr;){switch(Sr.kind){case 29:if(Sr=Cr(Sr.getFullStart(),vr),Sr&&Sr.kind===28&&(Sr=Cr(Sr.getFullStart(),vr)),!Sr||!e.isIdentifier(Sr))return;if(!Di)return e.isDeclarationName(Sr)?void 0:{called:Sr,nTypeArguments:nt};Di--;break;case 49:Di=3;break;case 48:Di=2;break;case 31:Di++;break;case 19:if(Sr=Si(Sr,18,vr),!Sr)return;break;case 21:if(Sr=Si(Sr,20,vr),!Sr)return;break;case 23:if(Sr=Si(Sr,22,vr),!Sr)return;break;case 27:nt++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(Sr))break;return}Sr=Cr(Sr.getFullStart(),vr)}}e.getPossibleTypeArgumentsInfo=aa;function sr(Te,vr,Sr){return e.formatting.getRangeOfEnclosingComment(Te,vr,void 0,Sr)}e.isInComment=sr;function Ji(Te,vr){var Sr=br(Te,vr);return!!e.findAncestor(Sr,e.isJSDoc)}e.hasDocComment=Ji;function di(Te,vr){return Te.kind===1?!!Te.jsDoc:Te.getWidth(vr)!==0}function X(Te,vr){vr===void 0&&(vr=0);var Sr=[],Di=e.isDeclaration(Te)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Te)&~vr:0;return Di&8&&Sr.push("private"),Di&16&&Sr.push("protected"),Di&4&&Sr.push("public"),(Di&32||e.isClassStaticBlockDeclaration(Te))&&Sr.push("static"),Di&128&&Sr.push("abstract"),Di&1&&Sr.push("export"),Di&8192&&Sr.push("deprecated"),Te.flags&8388608&&Sr.push("declare"),Te.kind===270&&Sr.push("export"),Sr.length>0?Sr.join(","):""}e.getNodeModifiers=X;function Ye(Te){if(Te.kind===177||Te.kind===207)return Te.typeArguments;if(e.isFunctionLike(Te)||Te.kind===256||Te.kind===257)return Te.typeParameters}e.getTypeArgumentOrTypeParameterList=Ye;function Be(Te){return Te===2||Te===3}e.isComment=Be;function Qe(Te){return!!(Te===10||Te===13||e.isTemplateLiteralKind(Te))}e.isStringOrRegularExpressionOrTemplateLiteral=Qe;function _r(Te){return 18<=Te&&Te<=78}e.isPunctuation=_r;function hr(Te,vr,Sr){return e.isTemplateLiteralKind(Te.kind)&&Te.getStart(Sr)<vr&&vr<Te.end||!!Te.isUnterminated&&vr===Te.end}e.isInsideTemplateLiteral=hr;function Dr(Te){switch(Te){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=Dr;function Me(Te){var vr=e.clone(Te);return e.setConfigFileInOptions(vr,Te&&Te.configFile),vr}e.cloneCompilerOptions=Me;function v(Te){return!!((Te.kind===203||Te.kind===204)&&(Te.parent.kind===220&&Te.parent.left===Te&&Te.parent.operatorToken.kind===63||Te.parent.kind===243&&Te.parent.initializer===Te||v(Te.parent.kind===294?Te.parent.parent:Te.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=v;function xe(Te,vr){return Je(Te,vr,!0)}e.isInReferenceComment=xe;function ze(Te,vr){return Je(Te,vr,!1)}e.isInNonReferenceComment=ze;function Je(Te,vr,Sr){var Di=sr(Te,vr,void 0);return!!Di&&Sr===j.test(Te.text.substring(Di.pos,Di.end))}function Oe(Te){if(!!Te)switch(Te.kind){case 10:case 14:return Xr(Te);default:return Fr(Te)}}e.getReplacementSpanForContextToken=Oe;function Fr(Te,vr,Sr){return e.createTextSpanFromBounds(Te.getStart(vr),(Sr||Te).getEnd())}e.createTextSpanFromNode=Fr;function Xr(Te){if(!Te.isUnterminated)return e.createTextSpanFromBounds(Te.getStart()+1,Te.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=Xr;function Or(Te,vr){return e.createRange(Te.getStart(vr),Te.end)}e.createTextRangeFromNode=Or;function We(Te){return e.createTextSpanFromBounds(Te.pos,Te.end)}e.createTextSpanFromRange=We;function mr(Te){return e.createRange(Te.start,Te.start+Te.length)}e.createTextRangeFromSpan=mr;function Nr(Te,vr,Sr){return Ur(e.createTextSpan(Te,vr),Sr)}e.createTextChangeFromStartLength=Nr;function Ur(Te,vr){return{span:Te,newText:vr}}e.createTextChange=Ur,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154];function si(Te){return e.contains(e.typeKeywords,Te)}e.isTypeKeyword=si;function mi(Te){return Te.kind===151}e.isTypeKeywordToken=mi;function Ti(Te){return mi(Te)||e.isIdentifier(Te)&&Te.text==="type"}e.isTypeKeywordTokenOrIdentifier=Ti;function hi(Te){return!!(Te.flags&1536)&&Te.name.charCodeAt(0)===34}e.isExternalModuleSymbol=hi;function ki(){var Te=[];return function(vr){var Sr=e.getNodeId(vr);return!Te[Sr]&&(Te[Sr]=!0)}}e.nodeSeenTracker=ki;function Ui(Te){return Te.getText(0,Te.getLength())}e.getSnapshotText=Ui;function zi(Te,vr){for(var Sr="",Di=0;Di<vr;Di++)Sr+=Te;return Sr}e.repeatString=zi;function ri(Te){return Te.isTypeParameter()&&Te.getConstraint()||Te}e.skipConstraint=ri;function Gi(Te){return Te.kind===161?e.isStringOrNumericLiteralLike(Te.expression)?Te.expression.text:void 0:e.isPrivateIdentifier(Te)?e.idText(Te):e.getTextOfIdentifierOrLiteral(Te)}e.getNameFromPropertyName=Gi;function Rt(Te){return Te.getSourceFiles().some(function(vr){return!vr.isDeclarationFile&&!Te.isSourceFileFromExternalLibrary(vr)&&!!(vr.externalModuleIndicator||vr.commonJsModuleIndicator)})}e.programContainsModules=Rt;function pa(Te){return Te.getSourceFiles().some(function(vr){return!vr.isDeclarationFile&&!Te.isSourceFileFromExternalLibrary(vr)&&!!vr.externalModuleIndicator})}e.programContainsEsModules=pa;function xt(Te){return!!Te.module||e.getEmitScriptTarget(Te)>=2||!!Te.noEmit}e.compilerOptionsIndicateEsModules=xt;function ua(Te,vr){return{fileExists:function(Sr){return Te.fileExists(Sr)},getCurrentDirectory:function(){return vr.getCurrentDirectory()},readFile:e.maybeBind(vr,vr.readFile),useCaseSensitiveFileNames:e.maybeBind(vr,vr.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(vr,vr.getSymlinkCache)||Te.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(vr,vr.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var Sr;return(Sr=Te.getModuleResolutionCache())===null||Sr===void 0?void 0:Sr.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(vr,vr.getGlobalTypingsCacheLocation),redirectTargetsMap:Te.redirectTargetsMap,getProjectReferenceRedirect:function(Sr){return Te.getProjectReferenceRedirect(Sr)},isSourceOfProjectReferenceRedirect:function(Sr){return Te.isSourceOfProjectReferenceRedirect(Sr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(vr,vr.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return Te.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=ua;function Vt(Te,vr){return Ve(Ve({},ua(Te,vr)),{getCommonSourceDirectory:function(){return Te.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=Vt;function St(Te,vr,Sr,Di){return Te||vr&&vr.length?Ci(Te,vr,Sr,Di):void 0}e.makeImportIfNecessary=St;function Ci(Te,vr,Sr,Di,nt){return e.factory.createImportDeclaration(void 0,void 0,Te||vr?e.factory.createImportClause(!!nt,Te,vr&&vr.length?e.factory.createNamedImports(vr):void 0):void 0,typeof Sr=="string"?Hi(Sr,Di):Sr,void 0)}e.makeImport=Ci;function Hi(Te,vr){return e.factory.createStringLiteral(Te,vr===0)}e.makeStringLiteral=Hi;var Yi;(function(Te){Te[Te.Single=0]="Single",Te[Te.Double=1]="Double"})(Yi=e.QuotePreference||(e.QuotePreference={}));function yt(Te,vr){return e.isStringDoubleQuoted(Te,vr)?1:0}e.quotePreferenceFromString=yt;function gt(Te,vr){if(vr.quotePreference&&vr.quotePreference!=="auto")return vr.quotePreference==="single"?0:1;var Sr=Te.imports&&e.find(Te.imports,function(Di){return e.isStringLiteral(Di)&&!e.nodeIsSynthesized(Di.parent)});return Sr?yt(Sr,Te):1}e.getQuotePreference=gt;function oa(Te){switch(Te){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(Te)}}e.getQuoteFromPreference=oa;function Bt(Te){var vr=Pi(Te);return vr===void 0?void 0:e.unescapeLeadingUnderscores(vr)}e.symbolNameNoDefault=Bt;function Pi(Te){return Te.escapedName!=="default"?Te.escapedName:e.firstDefined(Te.declarations,function(vr){var Sr=e.getNameOfDeclaration(vr);return Sr&&Sr.kind===79?Sr.escapedText:void 0})}e.symbolEscapedNameNoDefault=Pi;function Oi(Te){return e.isStringLiteralLike(Te)&&(e.isExternalModuleReference(Te.parent)||e.isImportDeclaration(Te.parent)||e.isRequireCall(Te.parent,!1)&&Te.parent.arguments[0]===Te||e.isImportCall(Te.parent)&&Te.parent.arguments[0]===Te)}e.isModuleSpecifierLike=Oi;function wi(Te){return e.isBindingElement(Te)&&e.isObjectBindingPattern(Te.parent)&&e.isIdentifier(Te.name)&&!Te.propertyName}e.isObjectBindingElementWithoutPropertyName=wi;function Qr(Te,vr){var Sr=Te.getTypeAtLocation(vr.parent);return Sr&&Te.getPropertyOfType(Sr,vr.name.text)}e.getPropertySymbolFromBindingElement=Qr;function Ct(Te,vr,Sr){if(!!Te)for(;Te.parent;){if(e.isSourceFile(Te.parent)||!tt(Sr,Te.parent,vr))return Te;Te=Te.parent}}e.getParentNodeInSpan=Ct;function tt(Te,vr,Sr){return e.textSpanContainsPosition(Te,vr.getStart(Sr))&&vr.getEnd()<=e.textSpanEnd(Te)}function ta(Te,vr){return Te.modifiers&&e.find(Te.modifiers,function(Sr){return Sr.kind===vr})}e.findModifier=ta;function Xa(Te,vr,Sr,Di){var nt=e.isArray(Sr)?Sr[0]:Sr,_a=nt.kind===236?e.isRequireVariableStatement:e.isAnyImportSyntax,Na=e.filter(vr.statements,_a),wn=e.isArray(Sr)?e.stableSort(Sr,e.OrganizeImports.compareImportsOrRequireStatements):[Sr];if(!Na.length)Te.insertNodesAtTopOfFile(vr,wn,Di);else if(Na&&e.OrganizeImports.importsAreSorted(Na))for(var no=0,Go=wn;no<Go.length;no++){var vo=Go[no],Vn=e.OrganizeImports.getImportDeclarationInsertionIndex(Na,vo);if(Vn===0){var to=Na[0]===vr.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};Te.insertNodeBefore(vr,Na[0],vo,!1,to)}else{var Jo=Na[Vn-1];Te.insertNodeAfter(vr,Jo,vo)}}else{var Xo=e.lastOrUndefined(Na);Xo?Te.insertNodesAfter(vr,Xo,wn):Te.insertNodesAtTopOfFile(vr,wn,Di)}}e.insertImports=Xa;function on(Te,vr){return e.Debug.assert(Te.isTypeOnly),e.cast(Te.getChildAt(0,vr),mi)}e.getTypeKeywordOfTypeOnlyImport=on;function qr(Te,vr){return!!Te&&!!vr&&Te.start===vr.start&&Te.length===vr.length}e.textSpansEqual=qr;function bn(Te,vr){return Te.fileName===vr.fileName&&qr(Te.textSpan,vr.textSpan)}e.documentSpansEqual=bn;function Rn(Te,vr){if(Te){for(var Sr=0;Sr<Te.length;Sr++)if(Te.indexOf(Te[Sr])===Sr){var Di=vr(Te[Sr],Sr);if(Di)return Di}}}e.forEachUnique=Rn;function Sn(Te,vr,Sr){for(var Di=vr;Di<Sr;Di++)if(!e.isWhiteSpaceLike(Te.charCodeAt(Di)))return!1;return!0}e.isTextWhiteSpaceLike=Sn;function zn(Te){var vr=Te.declarations?e.firstOrUndefined(Te.declarations):void 0;return!!e.findAncestor(vr,function(Sr){return e.isParameter(Sr)?!0:e.isBindingElement(Sr)||e.isObjectBindingPattern(Sr)||e.isArrayBindingPattern(Sr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=zn;var Zn=ho();function ho(){var Te=e.defaultMaximumTruncationLength*10,vr,Sr,Di,nt;vo();var _a=function(Vn){return wn(Vn,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Vn=vr.length&&vr[vr.length-1].text;return nt>Te&&Vn&&Vn!=="..."&&(e.isWhiteSpaceLike(Vn.charCodeAt(Vn.length-1))||vr.push(Cn(" ",e.SymbolDisplayPartKind.space)),vr.push(Cn("...",e.SymbolDisplayPartKind.punctuation))),vr},writeKeyword:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Vn){return wn(Vn,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:no,writeLine:Go,write:_a,writeComment:_a,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return Di},increaseIndent:function(){Di++},decreaseIndent:function(){Di--},clear:vo,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Na(){if(!(nt>Te)&&Sr){var Vn=e.getIndentString(Di);Vn&&(nt+=Vn.length,vr.push(Cn(Vn,e.SymbolDisplayPartKind.space))),Sr=!1}}function wn(Vn,to){nt>Te||(Na(),nt+=Vn.length,vr.push(Cn(Vn,to)))}function no(Vn,to){nt>Te||(Na(),nt+=Vn.length,vr.push(Vo(Vn,to)))}function Go(){nt>Te||(nt+=1,vr.push(ut()),Sr=!0)}function vo(){vr=[],Sr=!0,Di=0,nt=0}}function Vo(Te,vr){return Cn(Te,Sr(vr));function Sr(Di){var nt=Di.flags;return nt&3?zn(Di)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:nt&4||nt&32768||nt&65536?e.SymbolDisplayPartKind.propertyName:nt&8?e.SymbolDisplayPartKind.enumMemberName:nt&16?e.SymbolDisplayPartKind.functionName:nt&32?e.SymbolDisplayPartKind.className:nt&64?e.SymbolDisplayPartKind.interfaceName:nt&384?e.SymbolDisplayPartKind.enumName:nt&1536?e.SymbolDisplayPartKind.moduleName:nt&8192?e.SymbolDisplayPartKind.methodName:nt&262144?e.SymbolDisplayPartKind.typeParameterName:nt&524288||nt&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Vo;function Cn(Te,vr){return{text:Te,kind:e.SymbolDisplayPartKind[vr]}}e.displayPart=Cn;function go(){return Cn(" ",e.SymbolDisplayPartKind.space)}e.spacePart=go;function ro(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.keyword)}e.keywordPart=ro;function Ko(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=Ko;function rs(Te){return Cn(e.tokenToString(Te),e.SymbolDisplayPartKind.operator)}e.operatorPart=rs;function rn(Te){return Cn(Te,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=rn;function Do(Te){return Cn(Te,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Do;function io(Te){var vr=e.stringToToken(Te);return vr===void 0?pn(Te):ro(vr)}e.textOrKeywordPart=io;function pn(Te){return Cn(Te,e.SymbolDisplayPartKind.text)}e.textPart=pn;function Qn(Te){return Cn(Te,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=Qn;function wo(Te){return Cn(Te,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=wo;function xo(Te){return Cn(Te,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=xo;function ds(Te,vr){return{text:Te,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(vr).fileName,textSpan:Fr(vr)}}}e.linkNamePart=ds;function No(Te){return Cn(Te,e.SymbolDisplayPartKind.link)}e.linkPart=No;function Ts(Te,vr){var Sr,Di=e.isJSDocLink(Te)?"link":e.isJSDocLinkCode(Te)?"linkcode":"linkplain",nt=[No("{@".concat(Di," "))];if(!Te.name)Te.text&&nt.push(xo(Te.text));else{var _a=vr==null?void 0:vr.getSymbolAtLocation(Te.name),Na=Ms(Te.text),wn=e.getTextOfNode(Te.name)+Te.text.slice(0,Na),no=Te.text.slice(Na),Go=(_a==null?void 0:_a.valueDeclaration)||((Sr=_a==null?void 0:_a.declarations)===null||Sr===void 0?void 0:Sr[0]);Go?(nt.push(ds(wn,Go)),no&&nt.push(xo(no))):nt.push(xo(wn+(Na||no.indexOf("://")===0?"":" ")+no))}return nt.push(No("}")),nt}e.buildLinkParts=Ts;function Ms(Te){if(Te.indexOf("()")===0)return 2;if(Te[0]!=="<")return 0;for(var vr=0,Sr=0;Sr<Te.length;)if(Te[Sr]==="<"&&vr++,Te[Sr]===">"&&vr--,Sr++,!vr)return Sr;return 0}var xr=`\r
|
|
`;function bi(Te,vr){var Sr;return(vr==null?void 0:vr.newLineCharacter)||((Sr=Te.getNewLine)===null||Sr===void 0?void 0:Sr.call(Te))||xr}e.getNewLineOrDefaultFromHost=bi;function ut(){return Cn(`
|
|
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=ut;function Ht(Te){try{return Te(Zn),Zn.displayParts()}finally{Zn.clear()}}e.mapToDisplayParts=Ht;function Ka(Te,vr,Sr,Di){return Di===void 0&&(Di=0),Ht(function(nt){Te.writeType(vr,Sr,Di|1024|16384,nt)})}e.typeToDisplayParts=Ka;function an(Te,vr,Sr,Di,nt){return nt===void 0&&(nt=0),Ht(function(_a){Te.writeSymbol(vr,Sr,Di,nt|8,_a)})}e.symbolToDisplayParts=an;function Ke(Te,vr,Sr,Di){return Di===void 0&&(Di=0),Di|=25632,Ht(function(nt){Te.writeSignature(vr,Sr,Di,void 0,nt)})}e.signatureToDisplayParts=Ke;function h(Te){return!!Te.parent&&e.isImportOrExportSpecifier(Te.parent)&&Te.parent.propertyName===Te}e.isImportOrExportSpecifierName=h;function Ee(Te,vr){return e.ensureScriptKind(Te,vr.getScriptKind&&vr.getScriptKind(Te))}e.getScriptKind=Ee;function Re(Te,vr){for(var Sr=Te;Gr(Sr)||nr(Sr)&&Sr.target;)nr(Sr)&&Sr.target?Sr=Sr.target:Sr=e.skipAlias(Sr,vr);return Sr}e.getSymbolTarget=Re;function nr(Te){return(Te.flags&33554432)!==0}function Gr(Te){return(Te.flags&2097152)!==0}function _i(Te,vr){return e.getSymbolId(e.skipAlias(Te,vr))}e.getUniqueSymbolId=_i;function Ei(Te,vr){for(;e.isWhiteSpaceLike(Te.charCodeAt(vr));)vr+=1;return vr}e.getFirstNonSpaceCharacterPosition=Ei;function Ki(Te,vr){for(;vr>-1&&e.isWhiteSpaceSingleLine(Te.charCodeAt(vr));)vr-=1;return vr+1}e.getPrecedingNonSpaceCharacterPosition=Ki;function Nt(Te,vr){vr===void 0&&(vr=!0);var Sr=Te&&Fa(Te);return Sr&&!vr&&so(Sr),Sr}e.getSynthesizedDeepClone=Nt;function ca(Te,vr,Sr){var Di=Sr(Te);return Di?e.setOriginalNode(Di,Te):Di=Fa(Te,Sr),Di&&!vr&&so(Di),Di}e.getSynthesizedDeepCloneWithReplacements=ca;function Fa(Te,vr){var Sr=vr?function(Na){return ca(Na,!0,vr)}:Nt,Di=vr?function(Na){return Na&&In(Na,!0,vr)}:function(Na){return Na&&Ta(Na)},nt=e.visitEachChild(Te,Sr,e.nullTransformationContext,Di,Sr);if(nt===Te){var _a=e.isStringLiteral(Te)?e.setOriginalNode(e.factory.createStringLiteralFromNode(Te),Te):e.isNumericLiteral(Te)?e.setOriginalNode(e.factory.createNumericLiteral(Te.text,Te.numericLiteralFlags),Te):e.factory.cloneNode(Te);return e.setTextRange(_a,Te)}return nt.parent=void 0,nt}function Ta(Te,vr){return vr===void 0&&(vr=!0),Te&&e.factory.createNodeArray(Te.map(function(Sr){return Nt(Sr,vr)}),Te.hasTrailingComma)}e.getSynthesizedDeepClones=Ta;function In(Te,vr,Sr){return e.factory.createNodeArray(Te.map(function(Di){return ca(Di,vr,Sr)}),Te.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=In;function so(Te){as(Te),Ho(Te)}e.suppressLeadingAndTrailingTrivia=so;function as(Te){mc(Te,512,Hs)}e.suppressLeadingTrivia=as;function Ho(Te){mc(Te,1024,e.getLastChild)}e.suppressTrailingTrivia=Ho;function Ds(Te,vr){var Sr=Te.getSourceFile(),Di=Sr.text;Os(Te,Di)?ga(Te,vr,Sr):yn(Te,vr,Sr),xn(Te,vr,Sr)}e.copyComments=Ds;function Os(Te,vr){for(var Sr=Te.getFullStart(),Di=Te.getStart(),nt=Sr;nt<Di;nt++)if(vr.charCodeAt(nt)===10)return!0;return!1}function mc(Te,vr,Sr){e.addEmitFlags(Te,vr);var Di=Sr(Te);Di&&mc(Di,vr,Sr)}function Hs(Te){return Te.forEachChild(function(vr){return vr})}function Mi(Te,vr){for(var Sr=Te,Di=1;!e.isFileLevelUniqueName(vr,Sr);Di++)Sr="".concat(Te,"_").concat(Di);return Sr}e.getUniqueName=Mi;function $t(Te,vr,Sr,Di){for(var nt=0,_a=-1,Na=0,wn=Te;Na<wn.length;Na++){var no=wn[Na],Go=no.fileName,vo=no.textChanges;e.Debug.assert(Go===vr);for(var Vn=0,to=vo;Vn<to.length;Vn++){var Jo=to[Vn],Xo=Jo.span,Wr=Jo.newText,Ws=Pa(Wr,Sr);if(Ws!==-1&&(_a=Xo.start+nt+Ws,!Di))return _a;nt+=Wr.length-Xo.length}}return e.Debug.assert(Di),e.Debug.assert(_a>=0),_a}e.getRenameLocation=$t;function ga(Te,vr,Sr,Di,nt){e.forEachLeadingCommentRange(Sr.text,Te.pos,An(vr,Sr,Di,nt,e.addSyntheticLeadingComment))}e.copyLeadingComments=ga;function xn(Te,vr,Sr,Di,nt){e.forEachTrailingCommentRange(Sr.text,Te.end,An(vr,Sr,Di,nt,e.addSyntheticTrailingComment))}e.copyTrailingComments=xn;function yn(Te,vr,Sr,Di,nt){e.forEachTrailingCommentRange(Sr.text,Te.pos,An(vr,Sr,Di,nt,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=yn;function An(Te,vr,Sr,Di,nt){return function(_a,Na,wn,no){wn===3?(_a+=2,Na-=2):_a+=2,nt(Te,Sr||wn,vr.text.slice(_a,Na),Di!==void 0?Di:no)}}function Pa(Te,vr){if(e.startsWith(Te,vr))return 0;var Sr=Te.indexOf(" "+vr);return Sr===-1&&(Sr=Te.indexOf("."+vr)),Sr===-1&&(Sr=Te.indexOf('"'+vr)),Sr===-1?-1:Sr+1}function Mn(Te){return e.isBinaryExpression(Te)&&Te.operatorToken.kind===27||e.isObjectLiteralExpression(Te)||e.isAsExpression(Te)&&e.isObjectLiteralExpression(Te.expression)}e.needsParentheses=Mn;function ao(Te,vr){var Sr=Te.parent;switch(Sr.kind){case 208:return vr.getContextualType(Sr);case 220:{var Di=Sr,nt=Di.left,_a=Di.operatorToken,Na=Di.right;return De(_a.kind)?vr.getTypeAtLocation(Te===Na?nt:Na):vr.getContextualType(Te)}case 288:return Sr.expression===Te?et(Sr,vr):void 0;default:return vr.getContextualType(Te)}}e.getContextualTypeFromParent=ao;function co(Te,vr,Sr){var Di=gt(Te,vr),nt=JSON.stringify(Sr);return Di===0?"'".concat(e.stripQuotes(nt).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):nt}e.quote=co;function De(Te){switch(Te){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=De;function zr(Te){switch(Te.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}}e.isStringLiteralOrTemplate=zr;function xi(Te){return!!Te.getStringIndexType()||!!Te.getNumberIndexType()}e.hasIndexSignature=xi;function et(Te,vr){return vr.getTypeAtLocation(Te.parent.parent.expression)}e.getSwitchedType=et,e.ANONYMOUS="anonymous function";function je(Te,vr,Sr,Di){var nt=Sr.getTypeChecker(),_a=!0,Na=function(){return _a=!1},wn=nt.typeToTypeNode(Te,vr,1,{trackSymbol:function(no,Go,vo){return _a=_a&&nt.isSymbolAccessible(no,Go,vo,!1).accessibility===0,!_a},reportInaccessibleThisError:Na,reportPrivateInBaseOfClassExpression:Na,reportInaccessibleUniqueSymbolError:Na,moduleResolverHost:Vt(Sr,Di)});return _a?wn:void 0}e.getTypeNodeIfAccessible=je;function ti(Te){return Te===173||Te===174||Te===175||Te===165||Te===167}function mt(Te){return Te===255||Te===170||Te===168||Te===171||Te===172}function Zt(Te){return Te===260}function ln(Te){return Te===236||Te===237||Te===239||Te===244||Te===245||Te===246||Te===250||Te===252||Te===166||Te===258||Te===265||Te===264||Te===271||Te===263||Te===270}e.syntaxRequiresTrailingSemicolonOrASI=ln,e.syntaxMayBeASICandidate=e.or(ti,mt,Zt,ln);function Ba(Te,vr){var Sr=Te.getLastToken(vr);if(Sr&&Sr.kind===26)return!1;if(ti(Te.kind)){if(Sr&&Sr.kind===27)return!1}else if(Zt(Te.kind)){var Di=e.last(Te.getChildren(vr));if(Di&&e.isModuleBlock(Di))return!1}else if(mt(Te.kind)){var Di=e.last(Te.getChildren(vr));if(Di&&e.isFunctionBlock(Di))return!1}else if(!ln(Te.kind))return!1;if(Te.kind===239)return!0;var nt=e.findAncestor(Te,function(no){return!no.parent}),_a=Xe(Te,nt,vr);if(!_a||_a.kind===19)return!0;var Na=vr.getLineAndCharacterOfPosition(Te.getEnd()).line,wn=vr.getLineAndCharacterOfPosition(_a.getStart(vr)).line;return Na!==wn}function Oo(Te,vr,Sr){var Di=e.findAncestor(vr,function(nt){return nt.end!==Te?"quit":e.syntaxMayBeASICandidate(nt.kind)});return!!Di&&Ba(Di,Sr)}e.positionIsASICandidate=Oo;function jr(Te){var vr=0,Sr=0,Di=5;return e.forEachChild(Te,function nt(_a){if(ln(_a.kind)){var Na=_a.getLastToken(Te);(Na==null?void 0:Na.kind)===26?vr++:Sr++}else if(ti(_a.kind)){var Na=_a.getLastToken(Te);if((Na==null?void 0:Na.kind)===26)vr++;else if(Na&&Na.kind!==27){var wn=e.getLineAndCharacterOfPosition(Te,Na.getStart(Te)).line,no=e.getLineAndCharacterOfPosition(Te,e.getSpanOfTokenAtPosition(Te,Na.end).start).line;wn!==no&&Sr++}}return vr+Sr>=Di?!0:e.forEachChild(_a,nt)}),vr===0&&Sr<=1?!0:vr/Sr>1/Di}e.probablyUsesSemicolons=jr;function is(Te,vr){return rc(Te,Te.getDirectories,vr)||[]}e.tryGetDirectories=is;function hc(Te,vr,Sr,Di,nt){return rc(Te,Te.readDirectory,vr,Sr,Di,nt)||e.emptyArray}e.tryReadDirectory=hc;function nc(Te,vr){return rc(Te,Te.fileExists,vr)}e.tryFileExists=nc;function ns(Te,vr){return Xs(function(){return e.directoryProbablyExists(vr,Te)})||!1}e.tryDirectoryExists=ns;function Xs(Te){try{return Te()}catch{return}}e.tryAndIgnoreErrors=Xs;function rc(Te,vr){for(var Sr=[],Di=2;Di<arguments.length;Di++)Sr[Di-2]=arguments[Di];return Xs(function(){return vr&&vr.apply(Te,Sr)})}e.tryIOAndConsumeErrors=rc;function uu(Te,vr,Sr){var Di=[];return e.forEachAncestorDirectory(Te,function(nt){if(nt===Sr)return!0;var _a=e.combinePaths(nt,"package.json");nc(vr,_a)&&Di.push(_a)}),Di}e.findPackageJsons=uu;function Bc(Te,vr){var Sr;return e.forEachAncestorDirectory(Te,function(Di){if(Di==="node_modules"||(Sr=e.findConfigFile(Di,function(nt){return nc(vr,nt)},"package.json"),Sr))return!0}),Sr}e.findPackageJson=Bc;function Qu(Te,vr){if(!vr.fileExists)return[];var Sr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(Te),function(Di){var nt=e.combinePaths(Di,"package.json");if(vr.fileExists(nt)){var _a=uo(nt,vr);_a&&Sr.push(_a)}}),Sr}e.getPackageJsonsVisibleToFile=Qu;function uo(Te,vr){if(!vr.readFile)return;var Sr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],Di=vr.readFile(Te)||"",nt=Ru(Di),_a={};if(nt)for(var Na=0,wn=Sr;Na<wn.length;Na++){var no=wn[Na],Go=nt[no];if(!!Go){var vo=new e.Map;for(var Vn in Go)vo.set(Vn,Go[Vn]);_a[no]=vo}}var to=[[1,_a.dependencies],[2,_a.devDependencies],[8,_a.optionalDependencies],[4,_a.peerDependencies]];return Ve(Ve({},_a),{parseable:!!nt,fileName:Te,get:Jo,has:function(Xo,Wr){return!!Jo(Xo,Wr)}});function Jo(Xo,Wr){Wr===void 0&&(Wr=15);for(var Ws=0,nu=to;Ws<nu.length;Ws++){var Tu=nu[Ws],oc=Tu[0],Qc=Tu[1];if(Qc&&Wr&oc){var fu=Qc.get(Xo);if(fu!==void 0)return fu}}}}e.createPackageJsonInfo=uo;function Xc(Te,vr,Sr){var Di=(Sr.getPackageJsonsVisibleToFile&&Sr.getPackageJsonsVisibleToFile(Te.fileName)||Qu(Te.fileName,Sr)).filter(function(to){return to.parseable}),nt;return{allowsImportingAmbientModule:Na,allowsImportingSourceFile:wn,allowsImportingSpecifier:no};function _a(to){for(var Jo=Vn(to),Xo=0,Wr=Di;Xo<Wr.length;Xo++){var Ws=Wr[Xo];if(Ws.has(Jo)||Ws.has(e.getTypesPackageName(Jo)))return!0}return!1}function Na(to,Jo){if(!Di.length||!to.valueDeclaration)return!0;var Xo=to.valueDeclaration.getSourceFile(),Wr=vo(Xo.fileName,Jo);if(typeof Wr>"u")return!0;var Ws=e.stripQuotes(to.getName());return Go(Ws)?!0:_a(Wr)||_a(Ws)}function wn(to,Jo){if(!Di.length)return!0;var Xo=vo(to.fileName,Jo);return Xo?_a(Xo):!0}function no(to){return!Di.length||Go(to)||e.pathIsRelative(to)||e.isRootedDiskPath(to)?!0:_a(to)}function Go(to){return!!(e.isSourceFileJS(Te)&&e.JsTyping.nodeCoreModules.has(to)&&(nt===void 0&&(nt=Dc(Te)),nt))}function vo(to,Jo){if(!!e.stringContains(to,"node_modules")){var Xo=e.moduleSpecifiers.getNodeModulesPackageName(Sr.getCompilationSettings(),Te,to,Jo,vr);if(!!Xo&&!e.pathIsRelative(Xo)&&!e.isRootedDiskPath(Xo))return Vn(Xo)}}function Vn(to){var Jo=e.getPathComponents(e.getPackageNameFromTypesPackageName(to)).slice(1);return e.startsWith(Jo[0],"@")?"".concat(Jo[0],"/").concat(Jo[1]):Jo[0]}}e.createPackageJsonImportFilter=Xc;function Ru(Te){try{return JSON.parse(Te)}catch{return}}function Dc(Te){return e.some(Te.imports,function(vr){var Sr=vr.text;return e.JsTyping.nodeCoreModules.has(Sr)})}e.consumesNodeCoreModules=Dc;function Yu(Te){return e.contains(e.getPathComponents(Te),"node_modules")}e.isInsideNodeModules=Yu;function lu(Te){return Te.file!==void 0&&Te.start!==void 0&&Te.length!==void 0}e.isDiagnosticWithLocation=lu;function qa(Te,vr){var Sr=Fr(Te),Di=e.binarySearchKey(vr,Sr,e.identity,e.compareTextSpans);if(Di>=0){var nt=vr[Di];return e.Debug.assertEqual(nt.file,Te.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(nt,lu)}}e.findDiagnosticForNode=qa;function Bu(Te,vr){var Sr,Di=e.binarySearchKey(vr,Te.start,function(wn){return wn.start},e.compareValues);for(Di<0&&(Di=~Di);((Sr=vr[Di-1])===null||Sr===void 0?void 0:Sr.start)===Te.start;)Di--;for(var nt=[],_a=e.textSpanEnd(Te);;){var Na=e.tryCast(vr[Di],lu);if(!Na||Na.start>_a)break;e.textSpanContainsTextSpan(Te,Na)&&nt.push(Na),Di++}return nt}e.getDiagnosticsWithinSpan=Bu;function $u(Te){var vr=Te.startPosition,Sr=Te.endPosition;return e.createTextSpanFromBounds(vr,Sr===void 0?vr:Sr)}e.getRefactorContextSpan=$u;function au(Te,vr){var Sr=br(Te,vr.start),Di=e.findAncestor(Sr,function(nt){return nt.getStart(Te)<vr.start||nt.getEnd()>e.textSpanEnd(vr)?"quit":e.isExpression(nt)&&qr(vr,Fr(nt,Te))});return Di}e.getFixableErrorSpanExpression=au;function Vr(Te,vr,Sr){return Sr===void 0&&(Sr=e.identity),Te?e.isArray(Te)?Sr(e.map(Te,vr)):vr(Te,0):void 0}e.mapOneOrMany=Vr;function fi(Te){return e.isArray(Te)?e.first(Te):Te}e.firstOrOnly=fi;function Ni(Te,vr){if(Tt(Te)){var Sr=Dt(Te);if(Sr)return Sr;var Di=e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!1),nt=e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!0);return Di===nt?Di:[Di,nt]}return Te.name}e.getNamesForExportedSymbol=Ni;function rt(Te,vr,Sr){return Tt(Te)?Dt(Te)||e.codefix.moduleSymbolToValidIdentifier(jt(Te),vr,!!Sr):Te.name}e.getNameForExportedSymbol=rt;function Tt(Te){return!(Te.flags&33554432)&&(Te.escapedName==="export="||Te.escapedName==="default")}function Dt(Te){return e.firstDefined(Te.declarations,function(vr){var Sr;return e.isExportAssignment(vr)?(Sr=e.tryCast(e.skipOuterExpressions(vr.expression),e.isIdentifier))===null||Sr===void 0?void 0:Sr.text:void 0})}function jt(Te){var vr;return e.Debug.checkDefined(Te.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(Te.flags),". ")+"Declarations: ".concat((vr=Te.declarations)===null||vr===void 0?void 0:vr.map(function(Sr){var Di=e.Debug.formatSyntaxKind(Sr.kind),nt=e.isInJSFile(Sr),_a=Sr.expression;return(nt?"[JS]":"")+Di+(_a?" (expression: ".concat(e.Debug.formatSyntaxKind(_a.kind),")"):"")}).join(", "),"."))}function na(Te,vr,Sr){var Di=vr.length;if(Di+Sr>Te.length)return!1;for(var nt=0;nt<Di;nt++)if(vr.charCodeAt(nt)!==Te.charCodeAt(nt+Sr))return!1;return!0}e.stringContainsAt=na;function Za(Te){return Te.charCodeAt(0)===95}e.startsWithUnderscore=Za;function ya(Te){return!ha(Te)}e.isGlobalDeclaration=ya;function ha(Te){var vr=Te.getSourceFile();return!vr.externalModuleIndicator&&!vr.commonJsModuleIndicator?!1:e.isInJSFile(Te)||!e.findAncestor(Te,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=ha;function Ja(Te){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(Te)&8192)}e.isDeprecatedDeclaration=Ja;function Eo(Te,vr){var Sr=e.firstDefined(Te.imports,function(Di){if(e.JsTyping.nodeCoreModules.has(Di.text))return e.startsWith(Di.text,"node:")});return Sr!=null?Sr:vr.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=Eo;function Hn(Te){return Te===`
|
|
`?1:0}e.getNewLineKind=Hn;function lo(Te){return e.isArray(Te)?e.formatStringFromArgs(e.getLocaleSpecificMessage(Te[0]),Te.slice(1)):e.getLocaleSpecificMessage(Te)}e.diagnosticToString=lo;function Kn(Te,vr){var Sr=Te.options,Di=!Sr.semicolons||Sr.semicolons===e.SemicolonPreference.Ignore,nt=Sr.semicolons===e.SemicolonPreference.Remove||Di&&!jr(vr);return Ve(Ve({},Sr),{semicolons:nt?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}e.getFormatCodeSettingsForWriting=Kn})(Pe||(Pe={}));var Pe;(function(e){var a;(function(C){C[C.Named=0]="Named",C[C.Default=1]="Default",C[C.Namespace=2]="Namespace",C[C.CommonJS=3]="CommonJS"})(a=e.ImportKind||(e.ImportKind={}));var O;(function(C){C[C.Named=0]="Named",C[C.Default=1]="Default",C[C.ExportEquals=2]="ExportEquals",C[C.UMD=3]="UMD"})(O=e.ExportKind||(e.ExportKind={}));function L(C){var G=1,E=e.createMultiMap(),ue=new e.Map,B=new e.Map,re,M={isUsableByFile:function(I){return I===re},isEmpty:function(){return!E.size},clear:function(){E.clear(),ue.clear(),re=void 0},add:function(I,ne,ee,A,f,P,D,l){I!==re&&(M.clear(),re=I);var _;if(f){var J=e.getNodeModulePathParts(f.fileName);if(J){var w=J.topLevelNodeModulesIndex,j=J.topLevelPackageNameIndex,U=J.packageRootIndex;if(_=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(f.fileName.substring(j+1,U))),e.startsWith(I,f.path.substring(0,w))){var z=B.get(_),y=f.fileName.substring(0,j);if(z){var oe=z.indexOf(e.nodeModulesPathPart);w>oe&&B.set(_,y)}else B.set(_,y)}}}var ve=P===1,ce=ve&&e.getLocalSymbolForExportDefault(ne)||ne,m=P===0||e.isExternalModuleSymbol(ce)?e.unescapeLeadingUnderscores(ee):e.getNamesForExportedSymbol(ce,void 0),de=typeof m=="string"?m:m[0],ae=typeof m=="string"?void 0:m[1],V=e.stripQuotes(A.name),le=G++,ke=e.skipAlias(ne,l),Ue=ne.flags&33554432?void 0:ne,He=A.flags&33554432?void 0:A;(!Ue||!He)&&ue.set(le,[ne,A]),E.add(ie(de,ne,e.isExternalModuleNameRelative(V)?void 0:V,l),{id:le,symbolTableKey:ee,symbolName:de,capitalizedSymbolName:ae,moduleName:V,moduleFile:f,moduleFileName:f==null?void 0:f.fileName,packageName:_,exportKind:P,targetFlags:ke.flags,isFromPackageJson:D,symbol:Ue,moduleSymbol:He})},get:function(I,ne){if(I===re){var ee=E.get(ne);return ee==null?void 0:ee.map(x)}},search:function(I,ne,ee,A){I===re&&E.forEach(function(f,P){var D=_e(P),l=D.symbolName,_=D.ambientModuleName,J=ne&&f[0].capitalizedSymbolName||l;if(ee(J,f[0].targetFlags)){var w=f.map(x),j=w.filter(function(U,z){return k(U,f[z].packageName)});j.length&&A(j,J,!!_,P)}})},releaseSymbols:function(){ue.clear()},onFileChanged:function(I,ne,ee){return Y(I)&&Y(ne)?!1:re&&re!==ne.path||ee&&e.consumesNodeCoreModules(I)!==e.consumesNodeCoreModules(ne)||!e.arrayIsEqualTo(I.moduleAugmentations,ne.moduleAugmentations)||!Z(I,ne)?(M.clear(),!0):(re=ne.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(M,"__cache",{get:function(){return E}}),M;function x(I){if(I.symbol&&I.moduleSymbol)return I;var ne=I.id,ee=I.exportKind,A=I.targetFlags,f=I.isFromPackageJson,P=I.moduleFileName,D=ue.get(ne)||e.emptyArray,l=D[0],_=D[1];if(l&&_)return{symbol:l,moduleSymbol:_,moduleFileName:P,exportKind:ee,targetFlags:A,isFromPackageJson:f};var J=(f?C.getPackageJsonAutoImportProvider():C.getCurrentProgram()).getTypeChecker(),w=I.moduleSymbol||_||e.Debug.checkDefined(I.moduleFile?J.getMergedSymbol(I.moduleFile.symbol):J.tryFindAmbientModule(I.moduleName)),j=I.symbol||l||e.Debug.checkDefined(ee===2?J.resolveExternalModuleSymbol(w):J.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(I.symbolTableKey),w),"Could not find symbol '".concat(I.symbolName,"' by key '").concat(I.symbolTableKey,"' in module ").concat(w.name));return ue.set(ne,[j,w]),{symbol:j,moduleSymbol:w,moduleFileName:P,exportKind:ee,targetFlags:A,isFromPackageJson:f}}function ie(I,ne,ee,A){var f=ee||"";return"".concat(I,"|").concat(e.getSymbolId(e.skipAlias(ne,A)),"|").concat(f)}function _e(I){var ne=I.substring(0,I.indexOf("|")),ee=I.substring(I.lastIndexOf("|")+1),A=ee===""?void 0:ee;return{symbolName:ne,ambientModuleName:A}}function Y(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function Z(I,ne){if(!e.arrayIsEqualTo(I.ambientModuleNames,ne.ambientModuleNames))return!1;for(var ee=-1,A=-1,f=function(J){var w=function(j){return e.isNonGlobalAmbientModule(j)&&j.name.text===J};if(ee=e.findIndex(I.statements,w,ee+1),A=e.findIndex(ne.statements,w,A+1),I.statements[ee]!==ne.statements[A])return{value:!1}},P=0,D=ne.ambientModuleNames;P<D.length;P++){var l=D[P],_=f(l);if(typeof _=="object")return _.value}return!0}function k(I,ne){if(!ne||!I.moduleFileName)return!0;var ee=B.get(ne);return!ee||e.startsWith(I.moduleFileName,ee)}}e.createCacheableExportInfoMap=L;function W(C,G,E,ue,B,re,M){var x;if(G===E)return!1;var ie=M==null?void 0:M.get(G.path,E.path,ue);if((ie==null?void 0:ie.isAutoImportable)!==void 0)return ie.isAutoImportable;var _e=e.hostGetCanonicalFileName(re),Y=(x=re.getGlobalTypingsCacheLocation)===null||x===void 0?void 0:x.call(re),Z=!!e.moduleSpecifiers.forEachFileNameOfModule(G.fileName,E.fileName,re,!1,function(I){var ne=C.getSourceFile(I);return(ne===E||!ne)&&N(G.fileName,I,_e,Y)});if(B){var k=Z&&B.allowsImportingSourceFile(E,re);return M==null||M.setIsAutoImportable(G.path,E.path,ue,k),k}return Z}e.isImportableFile=W;function N(C,G,E,ue){var B=e.forEachAncestorDirectory(G,function(M){return e.getBaseFileName(M)==="node_modules"?M:void 0}),re=B&&e.getDirectoryPath(E(B));return re===void 0||e.startsWith(E(C),re)||!!ue&&e.startsWith(E(ue),re)}function Q(C,G,E,ue){var B,re;pe(C.getTypeChecker(),C.getSourceFiles(),function(ie,_e){return ue(ie,_e,C,!1)});var M=E&&((B=G.getPackageJsonAutoImportProvider)===null||B===void 0?void 0:B.call(G));if(M){var x=e.timestamp();pe(M.getTypeChecker(),M.getSourceFiles(),function(ie,_e){return ue(ie,_e,M,!0)}),(re=G.log)===null||re===void 0||re.call(G,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-x))}}e.forEachExternalModuleToImportFrom=Q;function pe(C,G,E){for(var ue=0,B=C.getAmbientModules();ue<B.length;ue++){var re=B[ue];e.stringContains(re.name,"*")||E(re,void 0)}for(var M=0,x=G;M<x.length;M++){var ie=x[M];e.isExternalOrCommonJsModule(ie)&&E(C.getMergedSymbol(ie.symbol),ie)}}function F(C,G,E,ue){var B,re,M,x,ie,_e=e.timestamp();(B=G.getPackageJsonAutoImportProvider)===null||B===void 0||B.call(G);var Y=((re=G.getCachedExportInfoMap)===null||re===void 0?void 0:re.call(G))||L({getCurrentProgram:function(){return E},getPackageJsonAutoImportProvider:function(){var I;return(I=G.getPackageJsonAutoImportProvider)===null||I===void 0?void 0:I.call(G)}});if(Y.isUsableByFile(C.path))return(M=G.log)===null||M===void 0||M.call(G,"getExportInfoMap: cache hit"),Y;(x=G.log)===null||x===void 0||x.call(G,"getExportInfoMap: cache miss or empty; calculating new results");var Z=E.getCompilerOptions(),k=0;return Q(E,G,!0,function(I,ne,ee,A){++k%100===0&&(ue==null||ue.throwIfCancellationRequested());var f=new e.Map,P=ee.getTypeChecker(),D=g(I,P,Z);D&&S(D.symbol,P)&&Y.add(C.path,D.symbol,D.exportKind===1?"default":"export=",I,ne,D.exportKind,A,P),P.forEachExportAndPropertyOfModule(I,function(l,_){l!==(D==null?void 0:D.symbol)&&S(l,P)&&e.addToSeen(f,_)&&Y.add(C.path,l,_,I,ne,0,A,P)})}),(ie=G.log)===null||ie===void 0||ie.call(G,"getExportInfoMap: done in ".concat(e.timestamp()-_e," ms")),Y}e.getExportInfoMap=F;function g(C,G,E){var ue=H(C,G);if(!!ue){var B=ue.symbol,re=ue.exportKind,M=se(B,G,E);return M&&Ve({symbol:B,exportKind:re},M)}}e.getDefaultLikeExportInfo=g;function S(C,G){return!G.isUndefinedSymbol(C)&&!G.isUnknownSymbol(C)&&!e.isKnownSymbol(C)&&!e.isPrivateIdentifierSymbol(C)}function H(C,G){var E=G.resolveExternalModuleSymbol(C);if(E!==C)return{symbol:E,exportKind:2};var ue=G.tryGetMemberInModuleExports("default",C);if(ue)return{symbol:ue,exportKind:1}}function se(C,G,E){var ue=e.getLocalSymbolForExportDefault(C);if(ue)return{symbolForMeaning:ue,name:ue.name};var B=p(C);if(B!==void 0)return{symbolForMeaning:C,name:B};if(C.flags&2097152){var re=G.getImmediateAliasedSymbol(C);if(re&&re.parent)return se(re,G,E)}return C.escapedName!=="default"&&C.escapedName!=="export="?{symbolForMeaning:C,name:C.getName()}:{symbolForMeaning:C,name:e.getNameForExportedSymbol(C,E.target)}}function p(C){return C.declarations&&e.firstDefined(C.declarations,function(G){var E;if(e.isExportAssignment(G))return(E=e.tryCast(e.skipOuterExpressions(G.expression),e.isIdentifier))===null||E===void 0?void 0:E.text;if(e.isExportSpecifier(G))return e.Debug.assert(G.name.text==="default","Expected the specifier to be a default export"),G.propertyName&&G.propertyName.text})}})(Pe||(Pe={}));var Pe;(function(e){function a(){var x=e.createScanner(99,!1);function ie(Y,Z,k){return N(_e(Y,Z,k),Y)}function _e(Y,Z,k){var I=0,ne=0,ee=[],A=F(Z),f=A.prefix,P=A.pushTemplate;Y=f+Y;var D=f.length;P&&ee.push(15),x.setText(Y);var l=0,_=[],J=0;do{I=x.scan(),e.isTrivia(I)||(U(),ne=I);var w=x.getTextPos();if(W(x.getTokenPos(),w,D,H(I),_),w>=Y.length){var j=L(x,I,e.lastOrUndefined(ee));j!==void 0&&(l=j)}}while(I!==1);function U(){switch(I){case 43:case 68:!O[ne]&&x.reScanSlashToken()===13&&(I=13);break;case 29:ne===79&&J++;break;case 31:J>0&&J--;break;case 130:case 149:case 146:case 133:case 150:J>0&&!k&&(I=79);break;case 15:ee.push(I);break;case 18:ee.length>0&&ee.push(I);break;case 19:if(ee.length>0){var z=e.lastOrUndefined(ee);z===15?(I=x.reScanTemplateToken(!1),I===17?ee.pop():e.Debug.assertEqual(I,16,"Should have been a template middle.")):(e.Debug.assertEqual(z,18,"Should have been an open brace"),ee.pop())}break;default:if(!e.isKeyword(I))break;(ne===24||e.isKeyword(ne)&&e.isKeyword(I)&&!pe(ne,I))&&(I=79)}}return{endOfLineState:l,spans:_}}return{getClassificationsForLine:ie,getEncodedLexicalClassifications:_e}}e.createClassifier=a;var O=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(x){return x},function(){return!0});function L(x,ie,_e){switch(ie){case 10:{if(!x.isUnterminated())return;for(var Y=x.getTokenText(),Z=Y.length-1,k=0;Y.charCodeAt(Z-k)===92;)k++;return(k&1)===0?void 0:Y.charCodeAt(0)===34?3:2}case 3:return x.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(ie)){if(!x.isUnterminated())return;switch(ie){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+ie)}}return _e===15?6:void 0}}function W(x,ie,_e,Y,Z){if(Y!==8){x===0&&_e>0&&(x+=_e);var k=ie-x;k>0&&Z.push(x-_e,k,Y)}}function N(x,ie){for(var _e=[],Y=x.spans,Z=0,k=0;k<Y.length;k+=3){var I=Y[k],ne=Y[k+1],ee=Y[k+2];if(Z>=0){var A=I-Z;A>0&&_e.push({length:A,classification:e.TokenClass.Whitespace})}_e.push({length:ne,classification:Q(ee)}),Z=I+ne}var f=ie.length-Z;return f>0&&_e.push({length:f,classification:e.TokenClass.Whitespace}),{entries:_e,finalLexState:x.endOfLineState}}function Q(x){switch(x){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function pe(x,ie){if(!e.isAccessibilityModifier(x))return!0;switch(ie){case 136:case 148:case 134:case 124:return!0;default:return!1}}function F(x){switch(x){case 3:return{prefix:`"\\
|
|
`};case 2:return{prefix:`'\\
|
|
`};case 1:return{prefix:`/*
|
|
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
|
|
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(x)}}function g(x){switch(x){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function S(x){switch(x){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function H(x){if(e.isKeyword(x))return 3;if(g(x)||S(x))return 5;if(x>=18&&x<=78)return 10;switch(x){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(x)?6:2}}function se(x,ie,_e,Y,Z){return B(C(x,ie,_e,Y,Z))}e.getSemanticClassifications=se;function p(x,ie){switch(ie){case 260:case 256:case 257:case 255:case 225:case 212:case 213:x.throwIfCancellationRequested()}}function C(x,ie,_e,Y,Z){var k=[];return _e.forEachChild(function ne(ee){if(!(!ee||!e.textSpanIntersectsWith(Z,ee.pos,ee.getFullWidth()))){if(p(ie,ee.kind),e.isIdentifier(ee)&&!e.nodeIsMissing(ee)&&Y.has(ee.escapedText)){var A=x.getSymbolAtLocation(ee),f=A&&G(A,e.getMeaningFromLocation(ee),x);f&&I(ee.getStart(_e),ee.getEnd(),f)}ee.forEachChild(ne)}}),{spans:k,endOfLineState:0};function I(ne,ee,A){var f=ee-ne;e.Debug.assert(f>0,"Classification had non-positive length of ".concat(f)),k.push(ne),k.push(f),k.push(A)}}e.getEncodedSemanticClassifications=C;function G(x,ie,_e){var Y=x.getFlags();if((Y&2885600)!==0)return Y&32?11:Y&384?12:Y&524288?16:Y&1536?ie&4||ie&1&&E(x)?14:void 0:Y&2097152?G(_e.getAliasedSymbol(x),ie,_e):ie&2?Y&64?13:Y&262144?15:void 0:void 0}function E(x){return e.some(x.declarations,function(ie){return e.isModuleDeclaration(ie)&&e.getModuleInstanceState(ie)===1})}function ue(x){switch(x){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function B(x){e.Debug.assert(x.spans.length%3===0);for(var ie=x.spans,_e=[],Y=0;Y<ie.length;Y+=3)_e.push({textSpan:e.createTextSpan(ie[Y],ie[Y+1]),classificationType:ue(ie[Y+2])});return _e}function re(x,ie,_e){return B(M(x,ie,_e))}e.getSyntacticClassifications=re;function M(x,ie,_e){var Y=_e.start,Z=_e.length,k=e.createScanner(99,!1,ie.languageVariant,ie.text),I=e.createScanner(99,!1,ie.languageVariant,ie.text),ne=[];return y(ie),{spans:ne,endOfLineState:0};function ee(oe,ve,ce){ne.push(oe),ne.push(ve),ne.push(ce)}function A(oe){for(k.setTextPos(oe.pos);;){var ve=k.getTextPos();if(!e.couldStartTrivia(ie.text,ve))return ve;var ce=k.scan(),m=k.getTextPos(),de=m-ve;if(!e.isTrivia(ce))return ve;switch(ce){case 4:case 5:continue;case 2:case 3:f(oe,ce,ve,de),k.setTextPos(m);continue;case 7:var ae=ie.text,V=ae.charCodeAt(ve);if(V===60||V===62){ee(ve,de,1);continue}e.Debug.assert(V===124||V===61),J(ae,ve,m);break;case 6:break;default:e.Debug.assertNever(ce)}}}function f(oe,ve,ce,m){if(ve===3){var de=e.parseIsolatedJSDocComment(ie.text,ce,m);if(de&&de.jsDoc){e.setParent(de.jsDoc,oe),D(de.jsDoc);return}}else if(ve===2&&l(ce,m))return;P(ce,m)}function P(oe,ve){ee(oe,ve,1)}function D(oe){var ve,ce,m,de,ae,V,le,ke=oe.pos;if(oe.tags)for(var Ue=0,He=oe.tags;Ue<He.length;Ue++){var ar=He[Ue];ar.pos!==ke&&P(ke,ar.pos-ke),ee(ar.pos,1,10),ee(ar.tagName.pos,ar.tagName.end-ar.tagName.pos,18),ke=ar.tagName.end;var gr=ar.tagName.end;switch(ar.kind){case 338:var me=ar;he(me),gr=me.isNameFirst&&((ve=me.typeExpression)===null||ve===void 0?void 0:ve.end)||me.name.end;break;case 345:var Ge=ar;gr=Ge.isNameFirst&&((ce=Ge.typeExpression)===null||ce===void 0?void 0:ce.end)||Ge.name.end;break;case 342:_(ar),ke=ar.end,gr=ar.typeParameters.end;break;case 343:var er=ar;gr=((m=er.typeExpression)===null||m===void 0?void 0:m.kind)===307&&((de=er.fullName)===null||de===void 0?void 0:de.end)||((ae=er.typeExpression)===null||ae===void 0?void 0:ae.end)||gr;break;case 336:gr=ar.typeExpression.end;break;case 341:y(ar.typeExpression),ke=ar.end,gr=ar.typeExpression.end;break;case 340:case 337:gr=ar.typeExpression.end;break;case 339:y(ar.typeExpression),ke=ar.end,gr=((V=ar.typeExpression)===null||V===void 0?void 0:V.end)||gr;break;case 344:gr=((le=ar.name)===null||le===void 0?void 0:le.end)||gr;break;case 326:case 327:gr=ar.class.end;break}typeof ar.comment=="object"?P(ar.comment.pos,ar.comment.end-ar.comment.pos):typeof ar.comment=="string"&&P(gr,ar.end-gr)}ke!==oe.end&&P(ke,oe.end-ke);return;function he(we){we.isNameFirst&&(P(ke,we.name.pos-ke),ee(we.name.pos,we.name.end-we.name.pos,17),ke=we.name.end),we.typeExpression&&(P(ke,we.typeExpression.pos-ke),y(we.typeExpression),ke=we.typeExpression.end),we.isNameFirst||(P(ke,we.name.pos-ke),ee(we.name.pos,we.name.end-we.name.pos,17),ke=we.name.end)}}function l(oe,ve){var ce=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,m=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,de=ie.text.substr(oe,ve),ae=ce.exec(de);if(!ae||!ae[3]||!(ae[3]in e.commentPragmas))return!1;var V=oe;P(V,ae[1].length),V+=ae[1].length,ee(V,ae[2].length,10),V+=ae[2].length,ee(V,ae[3].length,21),V+=ae[3].length;for(var le=ae[4],ke=V;;){var Ue=m.exec(le);if(!Ue)break;var He=V+Ue.index+Ue[1].length;He>ke&&(P(ke,He-ke),ke=He),ee(ke,Ue[2].length,22),ke+=Ue[2].length,Ue[3].length&&(P(ke,Ue[3].length),ke+=Ue[3].length),ee(ke,Ue[4].length,5),ke+=Ue[4].length,Ue[5].length&&(P(ke,Ue[5].length),ke+=Ue[5].length),ee(ke,Ue[6].length,24),ke+=Ue[6].length}V+=ae[4].length,V>ke&&P(ke,V-ke),ae[5]&&(ee(V,ae[5].length,10),V+=ae[5].length);var ar=oe+ve;return V<ar&&P(V,ar-V),!0}function _(oe){for(var ve=0,ce=oe.getChildren();ve<ce.length;ve++){var m=ce[ve];y(m)}}function J(oe,ve,ce){var m;for(m=ve;m<ce&&!e.isLineBreak(oe.charCodeAt(m));m++);for(ee(ve,m-ve,1),I.setTextPos(m);I.getTextPos()<ce;)w()}function w(){var oe=I.getTextPos(),ve=I.scan(),ce=I.getTextPos(),m=z(ve);m&&ee(oe,ce-oe,m)}function j(oe){if(e.isJSDoc(oe)||e.nodeIsMissing(oe))return!0;var ve=U(oe);if(!e.isToken(oe)&&oe.kind!==11&&ve===void 0)return!1;var ce=oe.kind===11?oe.pos:A(oe),m=oe.end-ce;if(e.Debug.assert(m>=0),m>0){var de=ve||z(oe.kind,oe);de&&ee(ce,m,de)}return!0}function U(oe){switch(oe.parent&&oe.parent.kind){case 279:if(oe.parent.tagName===oe)return 19;break;case 280:if(oe.parent.tagName===oe)return 20;break;case 278:if(oe.parent.tagName===oe)return 21;break;case 284:if(oe.parent.name===oe)return 22;break}}function z(oe,ve){if(e.isKeyword(oe))return 3;if((oe===29||oe===31)&&ve&&e.getTypeArgumentOrTypeParameterList(ve.parent))return 10;if(e.isPunctuation(oe)){if(ve){var ce=ve.parent;if(oe===63&&(ce.kind===253||ce.kind===166||ce.kind===163||ce.kind===284)||ce.kind===220||ce.kind===218||ce.kind===219||ce.kind===221)return 5}return 10}else{if(oe===8)return 4;if(oe===9)return 25;if(oe===10)return ve&&ve.parent.kind===284?24:6;if(oe===13)return 6;if(e.isTemplateLiteralKind(oe))return 6;if(oe===11)return 23;if(oe===79){if(ve){switch(ve.parent.kind){case 256:return ve.parent.name===ve?11:void 0;case 162:return ve.parent.name===ve?15:void 0;case 257:return ve.parent.name===ve?13:void 0;case 259:return ve.parent.name===ve?12:void 0;case 260:return ve.parent.name===ve?14:void 0;case 163:return ve.parent.name===ve?e.isThisIdentifier(ve)?3:17:void 0}if(e.isConstTypeReference(ve.parent))return 3}return 2}}}function y(oe){if(!!oe&&e.decodedTextSpanIntersectsWith(Y,Z,oe.pos,oe.getFullWidth())){p(x,oe.kind);for(var ve=0,ce=oe.getChildren(ie);ve<ce.length;ve++){var m=ce[ve];j(m)||y(m)}}}}e.getEncodedSyntacticClassifications=M})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N;(function(M){M[M.typeOffset=8]="typeOffset",M[M.modifierMask=255]="modifierMask"})(N=W.TokenEncodingConsts||(W.TokenEncodingConsts={}));var Q;(function(M){M[M.class=0]="class",M[M.enum=1]="enum",M[M.interface=2]="interface",M[M.namespace=3]="namespace",M[M.typeParameter=4]="typeParameter",M[M.type=5]="type",M[M.parameter=6]="parameter",M[M.variable=7]="variable",M[M.enumMember=8]="enumMember",M[M.property=9]="property",M[M.function=10]="function",M[M.member=11]="member"})(Q=W.TokenType||(W.TokenType={}));var pe;(function(M){M[M.declaration=0]="declaration",M[M.static=1]="static",M[M.async=2]="async",M[M.readonly=3]="readonly",M[M.defaultLibrary=4]="defaultLibrary",M[M.local=5]="local"})(pe=W.TokenModifier||(W.TokenModifier={}));function F(M,x,ie,_e){var Y=g(M,x,ie,_e);e.Debug.assert(Y.spans.length%3===0);for(var Z=Y.spans,k=[],I=0;I<Z.length;I+=3)k.push({textSpan:e.createTextSpan(Z[I],Z[I+1]),classificationType:Z[I+2]});return k}W.getSemanticClassifications=F;function g(M,x,ie,_e){return{spans:S(M,ie,_e,x),endOfLineState:0}}W.getEncodedSemanticClassifications=g;function S(M,x,ie,_e){var Y=[],Z=function(k,I,ne){Y.push(k.getStart(x),k.getWidth(x),(I+1<<8)+ne)};return M&&x&&H(M,x,ie,Z,_e),Y}function H(M,x,ie,_e,Y){var Z=M.getTypeChecker(),k=!1;function I(ne){switch(ne.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:Y.throwIfCancellationRequested()}if(!(!ne||!e.textSpanIntersectsWith(ie,ne.pos,ne.getFullWidth())||ne.getFullWidth()===0)){var ee=k;if((e.isJsxElement(ne)||e.isJsxSelfClosingElement(ne))&&(k=!0),e.isJsxExpression(ne)&&(k=!1),e.isIdentifier(ne)&&!k&&!E(ne)&&!e.isInfinityOrNaNString(ne.escapedText)){var A=Z.getSymbolAtLocation(ne);if(A){A.flags&2097152&&(A=Z.getAliasedSymbol(A));var f=se(A,e.getMeaningFromLocation(ne));if(f!==void 0){var P=0;if(ne.parent){var D=e.isBindingElement(ne.parent)||re.get(ne.parent.kind)===f;D&&ne.parent.name===ne&&(P=1<<0)}f===6&&B(ne)&&(f=9),f=p(Z,ne,f);var l=A.valueDeclaration;if(l){var _=e.getCombinedModifierFlags(l),J=e.getCombinedNodeFlags(l);_&32&&(P|=1<<1),_&256&&(P|=1<<2),f!==0&&f!==2&&(_&64||J&2||A.getFlags()&8)&&(P|=1<<3),(f===7||f===10)&&C(l,x)&&(P|=1<<5),M.isSourceFileDefaultLibrary(l.getSourceFile())&&(P|=1<<4)}else A.declarations&&A.declarations.some(function(w){return M.isSourceFileDefaultLibrary(w.getSourceFile())})&&(P|=1<<4);_e(ne,f,P)}}}e.forEachChild(ne,I),k=ee}}I(x)}function se(M,x){var ie=M.getFlags();if(ie&32)return 0;if(ie&384)return 1;if(ie&524288)return 5;if(ie&64){if(x&2)return 2}else if(ie&262144)return 4;var _e=M.valueDeclaration||M.declarations&&M.declarations[0];return _e&&e.isBindingElement(_e)&&(_e=G(_e)),_e&&re.get(_e.kind)}function p(M,x,ie){if(ie===7||ie===9||ie===6){var _e=M.getTypeAtLocation(x);if(_e){var Y=function(Z){return Z(_e)||_e.isUnion()&&_e.types.some(Z)};if(ie!==6&&Y(function(Z){return Z.getConstructSignatures().length>0}))return 0;if(Y(function(Z){return Z.getCallSignatures().length>0})&&!Y(function(Z){return Z.getProperties().length>0})||ue(x))return ie===9?11:10}}return ie}function C(M,x){return e.isBindingElement(M)&&(M=G(M)),e.isVariableDeclaration(M)?(!e.isSourceFile(M.parent.parent.parent)||e.isCatchClause(M.parent))&&M.getSourceFile()===x:e.isFunctionDeclaration(M)?!e.isSourceFile(M.parent)&&M.getSourceFile()===x:!1}function G(M){for(;;)if(e.isBindingElement(M.parent.parent))M=M.parent.parent;else return M.parent.parent}function E(M){var x=M.parent;return x&&(e.isImportClause(x)||e.isImportSpecifier(x)||e.isNamespaceImport(x))}function ue(M){for(;B(M);)M=M.parent;return e.isCallExpression(M.parent)&&M.parent.expression===M}function B(M){return e.isQualifiedName(M.parent)&&M.parent.right===M||e.isPropertyAccessExpression(M.parent)&&M.parent.name===M}var re=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})(L=O.v2020||(O.v2020={}))})(a=e.classifier||(e.classifier={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){function N(V,le,ke,Ue,He,ar,gr,me){if(e.isInReferenceComment(V,le)){var Ge=U(V,le,Ue,He);return Ge&&g(Ge)}if(e.isInString(V,le,ke)){if(!ke||!e.isStringLiteralLike(ke))return;var Ge=se(V,ke,le,ar.getTypeChecker(),Ue,He,me);return Q(Ge,ke,V,He,ar,gr,Ue,me)}}W.getStringLiteralCompletions=N;function Q(V,le,ke,Ue,He,ar,gr,me){if(V!==void 0){var Ge=e.createTextSpanFromStringLiteralLikeContent(le);switch(V.kind){case 0:return g(V.paths);case 1:{var er=e.createSortedArray();return O.getCompletionEntriesFromSymbols(V.symbols,er,le,le,ke,ke,Ue,He,99,ar,4,me,gr,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:V.hasIndexSignature,optionalReplacementSpan:Ge,entries:er}}case 2:{var er=V.types.map(function(we){return{name:we.value,kindModifiers:"",kind:"string",sortText:O.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(le)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:V.isNewIdentifier,optionalReplacementSpan:Ge,entries:er}}default:return e.Debug.assertNever(V)}}}function pe(V,le,ke,Ue,He,ar,gr,me,Ge){if(!(!Ue||!e.isStringLiteralLike(Ue))){var er=se(le,Ue,ke,He,ar,gr,Ge);return er&&F(V,Ue,er,le,He,me)}}W.getStringLiteralCompletionDetails=pe;function F(V,le,ke,Ue,He,ar){switch(ke.kind){case 0:{var gr=e.find(ke.paths,function(me){return me.name===V});return gr&&O.createCompletionDetails(V,S(gr.extension),gr.kind,[e.textPart(V)])}case 1:{var gr=e.find(ke.symbols,function(Ge){return Ge.name===V});return gr&&O.createCompletionDetailsForSymbol(gr,He,Ue,le,ar)}case 2:return e.find(ke.types,function(me){return me.value===V})?O.createCompletionDetails(V,"","type",[e.textPart(V)]):void 0;default:return e.Debug.assertNever(ke)}}function g(V){var le=!1,ke=!0,Ue=V.map(function(He){var ar=He.name,gr=He.kind,me=He.span,Ge=He.extension;return{name:ar,kind:gr,kindModifiers:S(Ge),sortText:O.SortText.LocationPriority,replacementSpan:me}});return{isGlobalCompletion:le,isMemberCompletion:!1,isNewIdentifierLocation:ke,entries:Ue}}function S(V){switch(V){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(V)}}var H;(function(V){V[V.Paths=0]="Paths",V[V.Properties=1]="Properties",V[V.Types=2]="Types"})(H||(H={}));function se(V,le,ke,Ue,He,ar,gr){var me=p(le.parent);switch(me.kind){case 195:{var Ge=p(me.parent);switch(Ge.kind){case 177:{var er=Ge,he=e.findAncestor(me,function(Tr){return Tr.parent===er});return he?{kind:2,types:B(Ue.getTypeArgumentConstraint(he)),isNewIdentifier:!1}:void 0}case 193:var we=Ge,ye=we.indexType,Se=we.objectType;return e.rangeContainsPosition(ye,ke)?E(Ue.getTypeFromTypeNode(Se)):void 0;case 199:return{kind:0,paths:ie(V,le,He,ar,Ue,gr)};case 186:{if(!e.isTypeReferenceNode(Ge.parent))return;var ge=C(Ge,me),Fe=B(Ue.getTypeArgumentConstraint(Ge)).filter(function(Tr){return!e.contains(ge,Tr.value)});return{kind:2,types:Fe,isNewIdentifier:!1}}default:return}}case 294:return e.isObjectLiteralExpression(me.parent)&&me.name===le?ue(Ue,me.parent):Br();case 206:{var cr=me,ur=cr.expression,Ir=cr.argumentExpression;return le===e.skipParentheses(Ir)?E(Ue.getTypeAtLocation(ur)):void 0}case 207:case 208:if(!ae(le)&&!e.isImportCall(me)){var dr=e.SignatureHelp.getArgumentInfoForCompletions(le,ke,V);return dr?G(dr,Ue):Br()}case 265:case 271:case 276:return{kind:0,paths:ie(V,le,He,ar,Ue,gr)};default:return Br()}function Br(){return{kind:2,types:B(e.getContextualTypeFromParent(le,Ue)),isNewIdentifier:!1}}}function p(V){switch(V.kind){case 190:return e.walkUpParenthesizedTypes(V);case 211:return e.walkUpParenthesizedExpressions(V);default:return V}}function C(V,le){return e.mapDefined(V.types,function(ke){return ke!==le&&e.isLiteralTypeNode(ke)&&e.isStringLiteral(ke.literal)?ke.literal.text:void 0})}function G(V,le){var ke=!1,Ue=new e.Map,He=[];le.getResolvedSignature(V.invocation,He,V.argumentCount);var ar=e.flatMap(He,function(gr){if(!(!e.signatureHasRestParameter(gr)&&V.argumentCount>gr.parameters.length)){var me=gr.getTypeParameterAtPosition(V.argumentIndex);return ke=ke||!!(me.flags&4),B(me,Ue)}});return{kind:2,types:ar,isNewIdentifier:ke}}function E(V){return V&&{kind:1,symbols:e.filter(V.getApparentProperties(),function(le){return!(le.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(le.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(V)}}function ue(V,le){var ke=V.getContextualType(le);if(!!ke){var Ue=V.getContextualType(le,4),He=O.getPropertiesForObjectExpression(ke,Ue,le,V);return{kind:1,symbols:He,hasIndexSignature:e.hasIndexSignature(ke)}}}function B(V,le){return le===void 0&&(le=new e.Map),V?(V=e.skipConstraint(V),V.isUnion()?e.flatMap(V.types,function(ke){return B(ke,le)}):V.isStringLiteral()&&!(V.flags&1024)&&e.addToSeen(le,V.value)?[V]:e.emptyArray):e.emptyArray}function re(V,le,ke){return{name:V,kind:le,extension:ke}}function M(V){return re(V,"directory",void 0)}function x(V,le,ke){var Ue=oe(V,le),He=V.length===0?void 0:e.createTextSpan(le,V.length);return ke.map(function(ar){var gr=ar.name,me=ar.kind,Ge=ar.extension;return Math.max(gr.indexOf(e.directorySeparator),gr.indexOf(e.altDirectorySeparator))!==-1?{name:gr,kind:me,extension:Ge,span:He}:{name:gr,kind:me,extension:Ge,span:Ue}})}function ie(V,le,ke,Ue,He,ar){return x(le.text,le.getStart(V)+1,_e(V,le,ke,Ue,He,ar))}function _e(V,le,ke,Ue,He,ar){var gr=e.normalizeSlashes(le.text),me=V.path,Ge=e.getDirectoryPath(me);return ve(gr)||!ke.baseUrl&&(e.isRootedDiskPath(gr)||e.isUrl(gr))?Z(gr,Ge,ke,Ue,me,er()):P(gr,Ge,ke,Ue,He);function er(){var he=e.isStringLiteralLike(le)?e.getModeForUsageLocation(V,le):void 0;return ar.importModuleSpecifierEnding==="js"||he===e.ModuleKind.ESNext?2:0}}function Y(V,le){return le===void 0&&(le=0),{extensions:e.flatten(k(V)),includeExtensionsOption:le}}function Z(V,le,ke,Ue,He,ar){var gr=Y(ke,ar);return ke.rootDirs?ne(ke.rootDirs,V,le,gr,ke,Ue,He):A(V,le,gr,Ue,He)}function k(V){var le=e.getSupportedExtensions(V);return e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(V,le):le}function I(V,le,ke,Ue){V=V.map(function(ar){return e.normalizePath(e.isRootedDiskPath(ar)?ar:e.combinePaths(le,ar))});var He=e.firstDefined(V,function(ar){return e.containsPath(ar,ke,le,Ue)?ke.substr(ar.length):void 0});return e.deduplicate(qe(qe([],V.map(function(ar){return e.combinePaths(ar,He)}),!0),[ke],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function ne(V,le,ke,Ue,He,ar,gr){var me=He.project||ar.getCurrentDirectory(),Ge=!(ar.useCaseSensitiveFileNames&&ar.useCaseSensitiveFileNames()),er=I(V,me,ke,Ge);return e.flatMap(er,function(he){return A(le,he,Ue,ar,gr)})}var ee;(function(V){V[V.Exclude=0]="Exclude",V[V.Include=1]="Include",V[V.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(ee||(ee={}));function A(V,le,ke,Ue,He,ar){var gr=ke.extensions,me=ke.includeExtensionsOption;ar===void 0&&(ar=[]),V===void 0&&(V=""),V=e.normalizeSlashes(V),e.hasTrailingDirectorySeparator(V)||(V=e.getDirectoryPath(V)),V===""&&(V="."+e.directorySeparator),V=e.ensureTrailingDirectorySeparator(V);var Ge=e.resolvePath(le,V),er=e.hasTrailingDirectorySeparator(Ge)?Ge:e.getDirectoryPath(Ge),he=!(Ue.useCaseSensitiveFileNames&&Ue.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Ue,er))return ar;var we=e.tryReadDirectory(Ue,er,gr,void 0,["./*"]);if(we){for(var ye=new e.Map,Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];if(Fe=e.normalizePath(Fe),!(He&&e.comparePaths(Fe,He,le,he)===0)){var cr=void 0,ur=e.moduleSpecifiers.tryGetJSExtensionForFile(Fe,Ue.getCompilationSettings());me===0&&!e.fileExtensionIsOneOf(Fe,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(cr=e.removeFileExtension(e.getBaseFileName(Fe)),ye.set(cr,e.tryGetExtensionFromPath(Fe))):(e.fileExtensionIsOneOf(Fe,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||me===2)&&ur?(cr=e.changeExtension(e.getBaseFileName(Fe),ur),ye.set(cr,ur)):(cr=e.getBaseFileName(Fe),ye.set(cr,e.tryGetExtensionFromPath(Fe)))}}ye.forEach(function(Cr,Lr){ar.push(re(Lr,"script",Cr))})}var Ir=e.tryGetDirectories(Ue,er);if(Ir)for(var dr=0,Br=Ir;dr<Br.length;dr++){var Tr=Br[dr],n=e.getBaseFileName(e.normalizePath(Tr));n!=="@types"&&ar.push(M(n))}var Er=e.findPackageJson(er,Ue);if(Er){var br=e.readJson(Er,Ue),Pr=br.typesVersions;if(typeof Pr=="object"){var Ce=e.getPackageJsonTypesVersionsPaths(Pr),Le=Ce&&Ce.paths,Xe=Ge.slice(e.ensureTrailingDirectorySeparator(er).length);Le&&f(ar,Xe,er,gr,Le,Ue)}}return ar}function f(V,le,ke,Ue,He,ar){for(var gr in He)if(!!e.hasProperty(He,gr)){var me=He[gr];if(me)for(var Ge=function(Fe,cr,ur){V.some(function(Ir){return Ir.name===Fe})||V.push(re(Fe,cr,ur))},er=0,he=l(gr,me,le,ke,Ue,ar);er<he.length;er++){var we=he[er],ye=we.name,Se=we.kind,ge=we.extension;Ge(ye,Se,ge)}}}function P(V,le,ke,Ue,He){var ar=ke.baseUrl,gr=ke.paths,me=[],Ge=Y(ke);if(ar){var er=ke.project||Ue.getCurrentDirectory(),he=e.normalizePath(e.combinePaths(er,ar));A(V,he,Ge,Ue,void 0,me),gr&&f(me,V,he,Ge.extensions,gr,Ue)}for(var we=D(V),ye=0,Se=j(V,we,He);ye<Se.length;ye++){var ge=Se[ye];me.push(re(ge,"external module name",void 0))}if(z(Ue,ke,le,we,Ge,me),e.getEmitModuleResolutionKind(ke)===e.ModuleResolutionKind.NodeJs){var Fe=!1;if(we===void 0)for(var cr=function(Br){me.some(function(Tr){return Tr.name===Br})||(Fe=!0,me.push(re(Br,"external module name",void 0)))},ur=0,Ir=y(Ue,le);ur<Ir.length;ur++){var dr=Ir[ur];cr(dr)}Fe||e.forEachAncestorDirectory(le,function(Br){var Tr=e.combinePaths(Br,"node_modules");e.tryDirectoryExists(Ue,Tr)&&A(V,Tr,Ge,Ue,void 0,me)})}return me}function D(V){return de(V)?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0}function l(V,le,ke,Ue,He,ar){if(!e.endsWith(V,"*"))return e.stringContains(V,"*")?e.emptyArray:Ge(V);var gr=V.slice(0,V.length-1),me=e.tryRemovePrefix(ke,gr);return me===void 0?Ge(gr):e.flatMap(le,function(er){return _(me,Ue,er,He,ar)});function Ge(er){return e.startsWith(er,ke)?[M(er)]:e.emptyArray}}function _(V,le,ke,Ue,He){if(!He.readDirectory)return;var ar=e.tryParsePattern(ke);if(ar===void 0||e.isString(ar))return;var gr=e.resolvePath(ar.prefix),me=e.hasTrailingDirectorySeparator(ar.prefix)?gr:e.getDirectoryPath(gr),Ge=e.hasTrailingDirectorySeparator(ar.prefix)?"":e.getBaseFileName(gr),er=de(V),he=er?e.hasTrailingDirectorySeparator(V)?V:e.getDirectoryPath(V):void 0,we=er?e.combinePaths(me,Ge+he):me,ye=e.normalizePath(ar.suffix),Se=e.normalizePath(e.combinePaths(le,we)),ge=er?Se:e.ensureTrailingDirectorySeparator(Se)+Ge,Fe=ye?"**/*":"./*",cr=e.mapDefined(e.tryReadDirectory(He,Se,Ue,void 0,[Fe]),function(dr){var Br=e.tryGetExtensionFromPath(dr),Tr=Ir(dr);return Tr===void 0?void 0:re(e.removeFileExtension(Tr),"script",Br)}),ur=e.mapDefined(e.tryGetDirectories(He,Se).map(function(dr){return e.combinePaths(Se,dr)}),function(dr){var Br=Ir(dr);return Br===void 0?void 0:M(Br)});return qe(qe([],cr,!0),ur,!0);function Ir(dr){var Br=J(e.normalizePath(dr),ge,ye);return Br===void 0?void 0:w(Br)}}function J(V,le,ke){return e.startsWith(V,le)&&e.endsWith(V,ke)?V.slice(le.length,V.length-ke.length):void 0}function w(V){return V[0]===e.directorySeparator?V.slice(1):V}function j(V,le,ke){var Ue=ke.getAmbientModules().map(function(gr){return e.stripQuotes(gr.name)}),He=Ue.filter(function(gr){return e.startsWith(gr,V)});if(le!==void 0){var ar=e.ensureTrailingDirectorySeparator(le);return He.map(function(gr){return e.removePrefix(gr,ar)})}return He}function U(V,le,ke,Ue){var He=e.getTokenAtPosition(V,le),ar=e.getLeadingCommentRanges(V.text,He.pos),gr=ar&&e.find(ar,function(ge){return le>=ge.pos&&le<=ge.end});if(!!gr){var me=V.text.slice(gr.pos,le),Ge=ce.exec(me);if(!!Ge){var er=Ge[1],he=Ge[2],we=Ge[3],ye=e.getDirectoryPath(V.path),Se=he==="path"?A(we,ye,Y(ke,1),Ue,V.path):he==="types"?z(Ue,ke,ye,D(we),Y(ke)):e.Debug.fail();return x(we,gr.pos+er.length,Se)}}}function z(V,le,ke,Ue,He,ar){ar===void 0&&(ar=[]);for(var gr=new e.Map,me=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(le,V)})||e.emptyArray,Ge=0,er=me;Ge<er.length;Ge++){var he=er[Ge];Fe(he)}for(var we=0,ye=e.findPackageJsons(ke,V);we<ye.length;we++){var Se=ye[we],ge=e.combinePaths(e.getDirectoryPath(Se),"node_modules/@types");Fe(ge)}return ar;function Fe(cr){if(!!e.tryDirectoryExists(V,cr))for(var ur=0,Ir=e.tryGetDirectories(V,cr);ur<Ir.length;ur++){var dr=Ir[ur],Br=e.unmangleScopedPackageName(dr);if(!(le.types&&!e.contains(le.types,Br)))if(Ue===void 0)gr.has(Br)||(ar.push(re(Br,"external module name",void 0)),gr.set(Br,!0));else{var Tr=e.combinePaths(cr,dr),n=e.tryRemoveDirectoryPrefix(Ue,Br,e.hostGetCanonicalFileName(V));n!==void 0&&A(n,Tr,He,V,void 0,ar)}}}}function y(V,le){if(!V.readFile||!V.fileExists)return e.emptyArray;for(var ke=[],Ue=0,He=e.findPackageJsons(le,V);Ue<He.length;Ue++)for(var ar=He[Ue],gr=e.readJson(ar,V),me=0,Ge=m;me<Ge.length;me++){var er=Ge[me],he=gr[er];if(!!he)for(var we in he)he.hasOwnProperty(we)&&!e.startsWith(we,"@types/")&&ke.push(we)}return ke}function oe(V,le){var ke=Math.max(V.lastIndexOf(e.directorySeparator),V.lastIndexOf(e.altDirectorySeparator)),Ue=ke!==-1?ke+1:0,He=V.length-Ue;return He===0||e.isIdentifierText(V.substr(Ue,He),99)?void 0:e.createTextSpan(le+Ue,He)}function ve(V){if(V&&V.length>=2&&V.charCodeAt(0)===46){var le=V.length>=3&&V.charCodeAt(1)===46?2:1,ke=V.charCodeAt(le);return ke===47||ke===92}return!1}var ce=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,m=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function de(V){return e.stringContains(V,e.directorySeparator)}function ae(V){return e.isCallExpression(V.parent)&&e.firstOrUndefined(V.parent.arguments)===V&&e.isIdentifier(V.parent.expression)&&V.parent.expression.escapedText==="require"}})(L=O.StringCompletions||(O.StringCompletions={}))})(a=e.Completions||(e.Completions={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.moduleSpecifierResolutionLimit=100,O.moduleSpecifierResolutionCacheAttemptLimit=1e3;var L;(function(Me){Me.LocalDeclarationPriority="10",Me.LocationPriority="11",Me.OptionalMember="12",Me.MemberDeclaredBySpreadAssignment="13",Me.SuggestedClassMembers="14",Me.GlobalsOrKeywords="15",Me.AutoImportSuggestions="16",Me.JavascriptIdentifiers="17",Me.DeprecatedLocalDeclarationPriority="18",Me.DeprecatedLocationPriority="19",Me.DeprecatedOptionalMember="20",Me.DeprecatedMemberDeclaredBySpreadAssignment="21",Me.DeprecatedSuggestedClassMembers="22",Me.DeprecatedGlobalsOrKeywords="23",Me.DeprecatedAutoImportSuggestions="24"})(L=O.SortText||(O.SortText={}));var W;(function(Me){Me[Me.LocalDeclarationPriority=10]="LocalDeclarationPriority",Me[Me.LocationPriority=11]="LocationPriority",Me[Me.OptionalMember=12]="OptionalMember",Me[Me.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",Me[Me.SuggestedClassMembers=14]="SuggestedClassMembers",Me[Me.GlobalsOrKeywords=15]="GlobalsOrKeywords",Me[Me.AutoImportSuggestions=16]="AutoImportSuggestions",Me[Me._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",Me[Me._DeprecatedStart=18]="_DeprecatedStart",Me[Me._First=10]="_First",Me[Me.DeprecatedOffset=8]="DeprecatedOffset"})(W||(W={}));var N;(function(Me){Me.ThisProperty="ThisProperty/",Me.ClassMemberSnippet="ClassMemberSnippet/",Me.TypeOnlyAlias="TypeOnlyAlias/"})(N=O.CompletionSource||(O.CompletionSource={}));var Q;(function(Me){Me[Me.ThisType=1]="ThisType",Me[Me.SymbolMember=2]="SymbolMember",Me[Me.Export=4]="Export",Me[Me.Promise=8]="Promise",Me[Me.Nullable=16]="Nullable",Me[Me.ResolvedExport=32]="ResolvedExport",Me[Me.TypeOnlyAlias=64]="TypeOnlyAlias",Me[Me.SymbolMemberNoExport=2]="SymbolMemberNoExport",Me[Me.SymbolMemberExport=6]="SymbolMemberExport"})(Q||(Q={}));function pe(Me){return!!(Me.kind&1)}function F(Me){return!!(Me.kind&2)}function g(Me){return!!(Me&&Me.kind&4)}function S(Me){return!!(Me&&Me.kind===32)}function H(Me){return g(Me)||S(Me)}function se(Me){return(g(Me)||S(Me))&&!!Me.isFromPackageJson}function p(Me){return!!(Me.kind&8)}function C(Me){return!!(Me.kind&16)}function G(Me){return!!(Me&&Me.kind&64)}var E;(function(Me){Me[Me.None=0]="None",Me[Me.All=1]="All",Me[Me.ClassElementKeywords=2]="ClassElementKeywords",Me[Me.InterfaceElementKeywords=3]="InterfaceElementKeywords",Me[Me.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",Me[Me.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",Me[Me.TypeAssertionKeywords=6]="TypeAssertionKeywords",Me[Me.TypeKeywords=7]="TypeKeywords",Me[Me.TypeKeyword=8]="TypeKeyword",Me[Me.Last=7]="Last"})(E||(E={}));var ue;(function(Me){Me[Me.Continue=0]="Continue",Me[Me.Success=1]="Success",Me[Me.Fail=2]="Fail"})(ue||(ue={}));function B(Me,v,xe,ze,Je,Oe,Fr){var Xr,Or,We,mr=e.timestamp(),Nr=e.createPackageJsonImportFilter(ze,Je,v),Ur=!1,si=0,mi=0,Ti=0,hi=0,ki=Fr({tryResolve:zi,resolutionLimitExceeded:function(){return Ur}}),Ui=hi?" (".concat((Ti/hi*100).toFixed(1),"% hit rate)"):"";return(Xr=v.log)===null||Xr===void 0||Xr.call(v,"".concat(Me,": resolved ").concat(mi," module specifiers, plus ").concat(si," ambient and ").concat(Ti," from cache").concat(Ui)),(Or=v.log)===null||Or===void 0||Or.call(v,"".concat(Me,": response is ").concat(Ur?"incomplete":"complete")),(We=v.log)===null||We===void 0||We.call(v,"".concat(Me,": ").concat(e.timestamp()-mr)),ki;function zi(ri,Gi){if(Gi){var Rt=e.codefix.getModuleSpecifierForBestExportInfo(ri,ze,xe,v,Je);return Rt&&si++,Rt}var pa=Oe||Je.allowIncompleteCompletions&&mi<O.moduleSpecifierResolutionLimit,xt=!pa&&Je.allowIncompleteCompletions&&hi<O.moduleSpecifierResolutionCacheAttemptLimit,ua=pa||xt?e.codefix.getModuleSpecifierForBestExportInfo(ri,ze,xe,v,Je,Nr,xt):void 0;return(!pa&&!xt||xt&&!ua)&&(Ur=!0),mi+=(ua==null?void 0:ua.computedWithoutCacheCount)||0,Ti+=ri.length-mi,xt&&hi++,ua}}function re(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We){var mr,Nr=ur(Je,ze).previousToken;if(!(Fr&&!e.isInString(ze,Je,Nr)&&!Si(ze,Fr,Nr,Je))){if(Fr===" ")return Oe.includeCompletionsForImportStatements&&Oe.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Ur=v.getCompilerOptions(),si=Oe.allowIncompleteCompletions?(mr=Me.getIncompleteCompletionsCache)===null||mr===void 0?void 0:mr.call(Me):void 0;if(si&&Xr===3&&Nr&&e.isIdentifier(Nr)){var mi=ie(si,ze,Nr,v,Me,Oe,Or);if(mi)return mi}else si==null||si.clear();var Ti=O.StringCompletions.getStringLiteralCompletions(ze,Je,Nr,Ur,Me,v,xe,Oe);if(Ti)return Ti;if(Nr&&e.isBreakOrContinueStatement(Nr.parent)&&(Nr.kind===81||Nr.kind===86||Nr.kind===79))return le(Nr.parent);var hi=cr(v,xe,ze,A(ze,Ur),Je,Oe,void 0,Me,Or);if(!!hi)switch(hi.kind){case 0:var ki=ee(ze,Me,v,Ur,xe,hi,Oe,We,Je);return ki!=null&&ki.isIncomplete&&(si==null||si.set(ki)),ki;case 1:return _e(e.JsDoc.getJSDocTagNameCompletions());case 2:return _e(e.JsDoc.getJSDocTagCompletions());case 3:return _e(e.JsDoc.getJSDocParameterNameCompletions(hi.tag));case 4:return Z(hi.keywordCompletions,hi.isNewIdentifierLocation);default:return e.Debug.assertNever(hi)}}}O.getCompletionsAtPosition=re;function M(Me,v){var xe,ze,Je=e.compareStringsCaseSensitiveUI(Me.sortText,v.sortText);return Je===0&&(Je=e.compareStringsCaseSensitiveUI(Me.name,v.name)),Je===0&&((xe=Me.data)===null||xe===void 0?void 0:xe.moduleSpecifier)&&((ze=v.data)===null||ze===void 0?void 0:ze.moduleSpecifier)&&(Je=e.compareNumberOfDirectorySeparators(Me.data.moduleSpecifier,v.data.moduleSpecifier)),Je===0?-1:Je}function x(Me){return!!(Me!=null&&Me.moduleSpecifier)}function ie(Me,v,xe,ze,Je,Oe,Fr){var Xr=Me.get();if(!!Xr){var Or=xe.text.toLowerCase(),We=e.getExportInfoMap(v,Je,ze,Fr),mr=B("continuePreviousIncompleteResponse",Je,ze,v,Oe,!1,function(Nr){var Ur=e.mapDefined(Xr.entries,function(si){if(!si.hasAction||!si.source||!si.data||x(si.data))return si;if(!!hr(si.name,Or)){var mi=e.Debug.checkDefined(Ir(si.name,si.data,ze,Je)).origin,Ti=We.get(v.path,si.data.exportMapKey),hi=Ti&&Nr.tryResolve(Ti,!e.isExternalModuleNameRelative(e.stripQuotes(mi.moduleSymbol.name)));if(!hi)return si;var ki=Ve(Ve({},mi),{kind:32,moduleSpecifier:hi.moduleSpecifier});return si.data=oe(ki),si.source=ae(ki),si.sourceDisplay=[e.textPart(ki.moduleSpecifier)],si}});return Nr.resolutionLimitExceeded()||(Xr.isIncomplete=void 0),Ur});return Xr.entries=mr,Xr}}function _e(Me){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Me}}function Y(Me){return{name:e.tokenToString(Me),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords}}function Z(Me,v){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v,entries:Me.slice()}}function k(Me,v,xe){return{kind:4,keywordCompletions:n(Me,v),isNewIdentifierLocation:xe}}function I(Me){switch(Me){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function ne(Me){return(Me==null?void 0:Me.kind)===79?e.createTextSpanFromNode(Me):void 0}function ee(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Oe.symbols,mr=Oe.contextToken,Nr=Oe.completionKind,Ur=Oe.isInSnippetScope,si=Oe.isNewIdentifierLocation,mi=Oe.location,Ti=Oe.propertyAccessToConvert,hi=Oe.keywordFilters,ki=Oe.literals,Ui=Oe.symbolToOriginInfoMap,zi=Oe.recommendedCompletion,ri=Oe.isJsxInitializer,Gi=Oe.isTypeOnlyLocation,Rt=Oe.isJsxIdentifierExpected,pa=Oe.isRightOfOpenTag,xt=Oe.importCompletionNode,ua=Oe.insideJsDocTagTypeExpression,Vt=Oe.symbolToSortTextIdMap,St=Oe.hasUnresolvedAutoImports;if(e.getLanguageVariant(Me.scriptKind)===1){var Ci=P(mi,Me);if(Ci)return Ci}var Hi=e.createSortedArray();if(A(Me,ze)){var Yi=V(We,Hi,void 0,mr,mi,Me,v,xe,e.getEmitScriptTarget(ze),Je,Nr,Fr,ze,Xr,Gi,Ti,Rt,ri,xt,zi,Ui,Vt,Rt,pa);D(Me,mi.pos,Yi,e.getEmitScriptTarget(ze),Hi)}else{if(!si&&(!We||We.length===0)&&hi===0)return;V(We,Hi,void 0,mr,mi,Me,v,xe,e.getEmitScriptTarget(ze),Je,Nr,Fr,ze,Xr,Gi,Ti,Rt,ri,xt,zi,Ui,Vt,Rt,pa)}if(hi!==0)for(var yt=new e.Set(Hi.map(function(ta){return ta.name})),gt=0,oa=n(hi,!ua&&e.isSourceFileJS(Me));gt<oa.length;gt++){var Bt=oa[gt];yt.has(Bt.name)||e.insertSorted(Hi,Bt,M,!0)}for(var Pi=new e.Set(Hi.map(function(ta){return ta.name})),Oi=0,wi=Cr(mr,Or);Oi<wi.length;Oi++){var Bt=wi[Oi];Pi.has(Bt.name)||e.insertSorted(Hi,Bt,M,!0)}for(var Qr=0,Ct=ki;Qr<Ct.length;Qr++){var tt=Ct[Qr];e.insertSorted(Hi,_(Me,Fr,tt),M,!0)}return{isGlobalCompletion:Ur,isIncomplete:Fr.allowIncompleteCompletions&&St?!0:void 0,isMemberCompletion:f(Nr),isNewIdentifierLocation:si,optionalReplacementSpan:ne(mi),entries:Hi}}function A(Me,v){return e.isSourceFileJS(Me)&&!e.isCheckJsEnabledForFile(Me,v)}function f(Me){switch(Me){case 0:case 3:case 2:return!0;default:return!1}}function P(Me,v){var xe=e.findAncestor(Me,function(We){switch(We.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}});if(xe){var ze=!!e.findChildOfKind(xe,31,v),Je=xe.parent.openingElement.tagName,Oe=Je.getText(v),Fr=Oe+(ze?"":">"),Xr=e.createTextSpanFromNode(xe.tagName),Or={name:Fr,kind:"class",kindModifiers:void 0,sortText:L.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Xr,entries:[Or]}}}function D(Me,v,xe,ze,Je){e.getNameTable(Me).forEach(function(Oe,Fr){if(Oe!==v){var Xr=e.unescapeLeadingUnderscores(Fr);!xe.has(Xr)&&e.isIdentifierText(Xr,ze)&&(xe.add(Xr),e.insertSorted(Je,{name:Xr,kind:"warning",kindModifiers:"",sortText:L.JavascriptIdentifiers,isFromUncheckedFile:!0},M))}})}function l(Me,v,xe){return typeof xe=="object"?e.pseudoBigIntToString(xe)+"n":e.isString(xe)?e.quote(Me,v,xe):JSON.stringify(xe)}function _(Me,v,xe){return{name:l(Me,v,xe),kind:"string",kindModifiers:"",sortText:L.LocationPriority}}function J(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui,zi,ri,Gi){var Rt,pa,xt,ua=e.getReplacementSpanForContextToken(xe),Vt,St,Ci=ae(mr),Hi,Yi,yt=Xr.getTypeChecker(),gt=mr&&C(mr),oa=mr&&F(mr)||We;if(mr&&pe(mr))xt=We?"this".concat(gt?"?.":"","[").concat(m(Oe,ki,Or),"]"):"this".concat(gt?"?.":".").concat(Or);else if((oa||gt)&&Ur){xt=oa?We?"[".concat(m(Oe,ki,Or),"]"):"[".concat(Or,"]"):Or,(gt||Ur.questionDotToken)&&(xt="?.".concat(xt));var Bt=e.findChildOfKind(Ur,24,Oe)||e.findChildOfKind(Ur,28,Oe);if(!Bt)return;var Pi=e.startsWith(Or,Ur.name.text)?Ur.name.end:Bt.end;ua=e.createTextSpanFromBounds(Bt.getStart(Oe),Pi)}if(si&&(xt===void 0&&(xt=Or),xt="{".concat(xt,"}"),typeof si!="boolean"&&(ua=e.createTextSpanFromNode(si,Oe))),mr&&p(mr)&&Ur){xt===void 0&&(xt=Or);var Oi=e.findPrecedingToken(Ur.pos,Oe),wi="";Oi&&e.positionIsASICandidate(Oi.end,Oi.parent,Oe)&&(wi=";"),wi+="(await ".concat(Ur.expression.getText(),")"),xt=We?"".concat(wi).concat(xt):"".concat(wi).concat(gt?"?.":".").concat(xt),ua=e.createTextSpanFromBounds(Ur.getStart(Oe),Ur.end)}if(S(mr)&&(Hi=[e.textPart(mr.moduleSpecifier)],mi&&(Rt=ce(Or,mi,ze,mr,Ti,hi,ki),xt=Rt.insertText,ua=Rt.replacementSpan,St=ki.includeCompletionsWithSnippetText?!0:void 0)),(mr==null?void 0:mr.kind)===64&&(Yi=!0),ki.includeCompletionsWithClassMemberSnippets&&ki.includeCompletionsWithInsertText&&Ui===3&&w(Me,Je)){var Qr=void 0;pa=j(Fr,Xr,hi,ki,Or,Me,Je,ze,zi),xt=pa.insertText,St=pa.isSnippet,Qr=pa.importAdder,Qr!=null&&Qr.hasFixes()&&(Yi=!0,Ci=N.ClassMemberSnippet)}if(ri&&!Gi&&ki.includeCompletionsWithSnippetText&&ki.jsxAttributeCompletionStyle&&ki.jsxAttributeCompletionStyle!=="none"){var Ct=ki.jsxAttributeCompletionStyle==="braces",tt=yt.getTypeOfSymbolAtLocation(Me,Je);ki.jsxAttributeCompletionStyle==="auto"&&!(tt.flags&528)&&!(tt.flags&1048576&&e.find(tt.types,function(ta){return!!(ta.flags&528)}))&&(tt.flags&402653316||tt.flags&1048576&&e.every(tt.types,function(ta){return!!(ta.flags&402686084)})?(xt="".concat(e.escapeSnippetText(Or),"=").concat(e.quote(Oe,ki,"$1")),St=!0):Ct=!0),Ct&&(xt="".concat(e.escapeSnippetText(Or),"={$1}"),St=!0)}if(!(xt!==void 0&&!ki.includeCompletionsWithInsertText))return(g(mr)||S(mr))&&(Vt=oe(mr),Yi=!mi),{name:Or,kind:e.SymbolDisplay.getSymbolKind(yt,Me,Je),kindModifiers:e.SymbolDisplay.getSymbolModifiers(yt,Me),sortText:v,source:Ci,hasAction:Yi?!0:void 0,isRecommended:de(Me,Nr,yt)||void 0,insertText:xt,replacementSpan:ua,sourceDisplay:Hi,isSnippet:St,isPackageJsonImport:se(mr)||void 0,isImportStatementCompletion:!!mi||void 0,data:Vt}}function w(Me,v){if(e.isInJSFile(v))return!1;var xe=106500;return!!(Me.flags&xe)&&(e.isClassLike(v)||v.parent&&v.parent.parent&&e.isClassElement(v.parent)&&v===v.parent.name&&e.isClassLike(v.parent.parent)||v.parent&&e.isSyntaxList(v)&&e.isClassLike(v.parent))}function j(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=e.findAncestor(Fr,e.isClassLike);if(!We)return{insertText:Je};var mr,Nr=Je,Ur=v.getTypeChecker(),si=Fr.getSourceFile(),mi=y({removeComments:!0,module:xe.module,target:xe.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(xe,e.maybeBind(Me,Me.getNewLine)))}),Ti=e.codefix.createImportAdder(si,v,ze,Me),hi;if(ze.includeCompletionsWithSnippetText){mr=!0;var ki=e.factory.createEmptyStatement();hi=e.factory.createBlock([ki],!0),e.setSnippetElement(ki,{kind:0,order:0})}else hi=e.factory.createBlock([],!0);var Ui=0,zi=Xr&&z(Xr)===126,ri=[];if(e.codefix.addNewNodeForMemberSymbol(Oe,We,si,{program:v,host:Me},ze,Ti,function(xt){var ua=0;zi&&(ua|=128),e.isClassElement(xt)&&Ur.getMemberOverrideModifierStatus(We,xt)===1&&(ua|=16384);var Vt=0;ri.length||(Xr&&(Vt=U(Xr)),Ui=xt.modifierFlagsCache|ua|Vt),xt=e.factory.updateModifiers(xt,Ui&~Vt),ri.push(xt)},hi,2,zi),ri.length)if(Or){var Gi={text:mi.printSnippetList(131073,e.factory.createNodeArray(ri),si),getLineAndCharacterOfPosition:function(xt){return e.getLineAndCharacterOfPosition(this,xt)}},Rt=e.getFormatCodeSettingsForWriting(Or,si),pa=e.flatMap(ri,function(xt){var ua=e.textChanges.assignPositionsToNode(xt);return e.formatting.formatNodeGivenIndentation(ua,Gi,si.languageVariant,0,0,Ve(Ve({},Or),{options:Rt}))});Nr=e.textChanges.applyChanges(Gi.text,pa)}else Nr=mi.printSnippetList(131073,e.factory.createNodeArray(ri),si);return{insertText:Nr,isSnippet:mr,importAdder:Ti}}function U(Me){var v=0,xe;return(xe=z(Me))&&(v|=e.modifierToFlag(xe)),e.isPropertyDeclaration(Me.parent)&&(v|=e.modifiersToFlags(Me.parent.modifiers)),v}function z(Me){if(e.isModifier(Me))return Me.kind;if(e.isIdentifier(Me)&&Me.originalKeywordKind&&e.isModifierKind(Me.originalKeywordKind))return Me.originalKeywordKind}function y(Me){var v=e.textChanges.createWriter(e.getNewLineCharacter(Me)),xe=e.createPrinter(Me,v),ze=Ve(Ve({},v),{write:function(Oe){return v.write(e.escapeSnippetText(Oe))},nonEscapingWrite:v.write,writeLiteral:function(Oe){return v.writeLiteral(e.escapeSnippetText(Oe))},writeStringLiteral:function(Oe){return v.writeStringLiteral(e.escapeSnippetText(Oe))},writeSymbol:function(Oe,Fr){return v.writeSymbol(e.escapeSnippetText(Oe),Fr)},writeParameter:function(Oe){return v.writeParameter(e.escapeSnippetText(Oe))},writeComment:function(Oe){return v.writeComment(e.escapeSnippetText(Oe))},writeProperty:function(Oe){return v.writeProperty(e.escapeSnippetText(Oe))}});return{printSnippetList:Je};function Je(Oe,Fr,Xr){return ze.clear(),xe.writeList(Oe,Fr,Xr,ze),ze.getText()}}function oe(Me){var v=Me.fileName?void 0:e.stripQuotes(Me.moduleSymbol.name),xe=Me.isFromPackageJson?!0:void 0;if(S(Me)){var ze={exportName:Me.exportName,moduleSpecifier:Me.moduleSpecifier,ambientModuleName:v,fileName:Me.fileName,isPackageJsonImport:xe};return ze}var Je={exportName:Me.exportName,exportMapKey:Me.exportMapKey,fileName:Me.fileName,ambientModuleName:Me.fileName?void 0:e.stripQuotes(Me.moduleSymbol.name),isPackageJsonImport:Me.isFromPackageJson?!0:void 0};return Je}function ve(Me,v,xe){var ze=Me.exportName==="default",Je=!!Me.isPackageJsonImport;if(x(Me)){var Oe={kind:32,exportName:Me.exportName,moduleSpecifier:Me.moduleSpecifier,symbolName:v,fileName:Me.fileName,moduleSymbol:xe,isDefaultExport:ze,isFromPackageJson:Je};return Oe}var Fr={kind:4,exportName:Me.exportName,exportMapKey:Me.exportMapKey,symbolName:v,fileName:Me.fileName,moduleSymbol:xe,isDefaultExport:ze,isFromPackageJson:Je};return Fr}function ce(Me,v,xe,ze,Je,Oe,Fr){var Xr,Or,We,mr=v.getSourceFile(),Nr=e.createTextSpanFromNode(e.findAncestor(v,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||v,mr),Ur=e.quote(mr,Fr,ze.moduleSpecifier),si=ze.isDefaultExport?1:ze.exportName==="export="?2:0,mi=Fr.includeCompletionsWithSnippetText?"$1":"",Ti=e.codefix.getImportKind(mr,si,Oe,!0),hi=((Or=(Xr=e.tryCast(v,e.isImportDeclaration))===null||Xr===void 0?void 0:Xr.importClause)===null||Or===void 0?void 0:Or.isTypeOnly)||((We=e.tryCast(v,e.isImportEqualsDeclaration))===null||We===void 0?void 0:We.isTypeOnly),ki=Ji(v,xe),Ui=hi?" ".concat(e.tokenToString(151)," "):" ",zi=ki?"".concat(e.tokenToString(151)," "):"",ri=Je?";":"";switch(Ti){case 3:return{replacementSpan:Nr,insertText:"import".concat(Ui).concat(e.escapeSnippetText(Me)).concat(mi," = require(").concat(Ur,")").concat(ri)};case 1:return{replacementSpan:Nr,insertText:"import".concat(Ui).concat(e.escapeSnippetText(Me)).concat(mi," from ").concat(Ur).concat(ri)};case 2:return{replacementSpan:Nr,insertText:"import".concat(Ui,"* as ").concat(e.escapeSnippetText(Me)," from ").concat(Ur).concat(ri)};case 0:return{replacementSpan:Nr,insertText:"import".concat(Ui,"{ ").concat(zi).concat(e.escapeSnippetText(Me)).concat(mi," } from ").concat(Ur).concat(ri)}}}function m(Me,v,xe){return/^\d+$/.test(xe)?xe:e.quote(Me,v,xe)}function de(Me,v,xe){return Me===v||!!(Me.flags&1048576)&&xe.getExportSymbolOfSymbol(Me)===v}function ae(Me){if(g(Me))return e.stripQuotes(Me.moduleSymbol.name);if(S(Me))return Me.moduleSpecifier;if((Me==null?void 0:Me.kind)===1)return N.ThisProperty;if((Me==null?void 0:Me.kind)===64)return N.TypeOnlyAlias}function V(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi,Ti,hi,ki,Ui,zi,ri,Gi,Rt,pa){for(var xt,ua=e.timestamp(),Vt=Ye(Je),St=e.probablyUsesSemicolons(Oe),Ci=Xr.getTypeChecker(),Hi=new e.Map,Yi=0;Yi<Me.length;Yi++){var yt=Me[Yi],gt=ri==null?void 0:ri[Yi],oa=dr(yt,Or,gt,mr,!!hi);if(!(!oa||Hi.get(oa.name)||mr===1&&Gi&&!tt(yt,Gi))){var Bt=oa.name,Pi=oa.needsConvertPropertyAccess,Oi=(xt=Gi==null?void 0:Gi[e.getSymbolId(yt)])!==null&&xt!==void 0?xt:11,wi=(_r(yt,Ci)?8+Oi:Oi).toString(),Qr=J(yt,wi,xe,ze,Je,Oe,Fr,Xr,Bt,Pi,gt,zi,Ti,ki,Ui,St,Ur,Nr,mr,si,Rt,pa);if(!!Qr){var Ct=(!gt||G(gt))&&!(yt.parent===void 0&&!e.some(yt.declarations,function(ta){return ta.getSourceFile()===Je.getSourceFile()}));Hi.set(Bt,Ct),e.insertSorted(v,Qr,M,!0)}}}return We("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-ua)),{has:function(ta){return Hi.has(ta)},add:function(ta){return Hi.set(ta,!0)}};function tt(ta,Xa){var on=ta.flags;if(!e.isSourceFile(Je)){if(e.isExportAssignment(Je.parent))return!0;if(Vt&&ta.valueDeclaration===Vt)return!1;var qr=e.skipAlias(ta,Ci);if(!!Oe.externalModuleIndicator&&!Ur.allowUmdGlobalAccess&&Xa[e.getSymbolId(ta)]===15&&(Xa[e.getSymbolId(qr)]===16||Xa[e.getSymbolId(qr)]===11))return!1;if(on|=e.getCombinedLocalAndExportSymbolFlags(qr),e.isInRightSideOfInternalImportEqualsDeclaration(Je))return!!(on&1920);if(mi)return Qe(ta,Ci)}return!!(on&111551)}}O.getCompletionEntriesFromSymbols=V;function le(Me){var v=ke(Me);if(v.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:v}}function ke(Me){for(var v=[],xe=new e.Map,ze=Me;ze&&!e.isFunctionLike(ze);){if(e.isLabeledStatement(ze)){var Je=ze.label.text;xe.has(Je)||(xe.set(Je,!0),v.push({name:Je,kindModifiers:"",kind:"label",sortText:L.LocationPriority}))}ze=ze.parent}return v}function Ue(Me,v,xe,ze,Je,Oe,Fr){if(Je.data){var Xr=Ir(Je.name,Je.data,Me,Oe);if(Xr){var Or=ur(ze,xe),We=Or.contextToken,mr=Or.previousToken;return{type:"symbol",symbol:Xr.symbol,location:e.getTouchingPropertyName(xe,ze),previousToken:mr,contextToken:We,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Xr.origin}}}var Nr=Me.getCompilerOptions(),Ur=cr(Me,v,xe,A(xe,Nr),ze,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},Je,Oe);if(!Ur)return{type:"none"};if(Ur.kind!==0)return{type:"request",request:Ur};var si=Ur.symbols,mi=Ur.literals,Ti=Ur.location,hi=Ur.completionKind,ki=Ur.symbolToOriginInfoMap,Ui=Ur.contextToken,zi=Ur.previousToken,ri=Ur.isJsxInitializer,Gi=Ur.isTypeOnlyLocation,Rt=e.find(mi,function(pa){return l(xe,Fr,pa)===Je.name});return Rt!==void 0?{type:"literal",literal:Rt}:e.firstDefined(si,function(pa,xt){var ua=ki[xt],Vt=dr(pa,e.getEmitScriptTarget(Nr),ua,hi,Ur.isJsxIdentifierExpected);return Vt&&Vt.name===Je.name&&(Je.source===N.ClassMemberSnippet&&pa.flags&106500||ae(ua)===Je.source)?{type:"symbol",symbol:pa,location:Ti,origin:ua,contextToken:Ui,previousToken:zi,isJsxInitializer:ri,isTypeOnlyLocation:Gi}:void 0})||{type:"none"}}function He(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Me.getTypeChecker(),mr=Me.getCompilerOptions(),Nr=Je.name,Ur=Je.source,si=Je.data,mi=e.findPrecedingToken(ze,xe);if(e.isInString(xe,ze,mi))return O.StringCompletions.getStringLiteralCompletionDetails(Nr,xe,ze,mi,We,mr,Oe,Or,Xr);var Ti=Ue(Me,v,xe,ze,Je,Oe,Xr);switch(Ti.type){case"request":{var hi=Ti.request;switch(hi.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(Nr);case 2:return e.JsDoc.getJSDocTagCompletionDetails(Nr);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(Nr);case 4:return e.some(hi.keywordCompletions,function(Vt){return Vt.name===Nr})?ar(Nr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(hi)}}case"symbol":{var ki=Ti.symbol,Ui=Ti.location,zi=Ti.contextToken,ri=Ti.origin,Gi=Ti.previousToken,Rt=Ge(Nr,Ui,zi,ri,ki,Me,Oe,mr,xe,ze,Gi,Fr,Xr,si,Ur),pa=Rt.codeActions,xt=Rt.sourceDisplay;return gr(ki,We,xe,Ui,Or,pa,xt)}case"literal":{var ua=Ti.literal;return ar(l(xe,Xr,ua),"string",typeof ua=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return Tr().some(function(Vt){return Vt.name===Nr})?ar(Nr,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Ti)}}O.getCompletionEntryDetails=He;function ar(Me,v,xe){return me(Me,"",v,[e.displayPart(Me,xe)])}function gr(Me,v,xe,ze,Je,Oe,Fr){var Xr=v.runWithCancellationToken(Je,function(Ur){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Ur,Me,xe,ze,ze,7)}),Or=Xr.displayParts,We=Xr.documentation,mr=Xr.symbolKind,Nr=Xr.tags;return me(Me.name,e.SymbolDisplay.getSymbolModifiers(v,Me),mr,Or,We,Nr,Oe,Fr)}O.createCompletionDetailsForSymbol=gr;function me(Me,v,xe,ze,Je,Oe,Fr,Xr){return{name:Me,kindModifiers:v,kind:xe,displayParts:ze,documentation:Je,tags:Oe,codeActions:Fr,source:Xr,sourceDisplay:Xr}}O.createCompletionDetails=me;function Ge(Me,v,xe,ze,Je,Oe,Fr,Xr,Or,We,mr,Nr,Ur,si,mi){if(si!=null&&si.moduleSpecifier&&mr&&sr(xe||mr).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(si.moduleSpecifier)]};if(mi===N.ClassMemberSnippet){var Ti=j(Fr,Oe,Xr,Ur,Me,Je,v,xe,Nr).importAdder;if(Ti){var hi=e.textChanges.ChangeTracker.with({host:Fr,formatContext:Nr,preferences:Ur},Ti.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:hi,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,Me])}]}}}if(G(ze)){var ki=e.codefix.getPromoteTypeOnlyCompletionAction(Or,ze.declaration.name,Oe,Fr,Nr,Ur);return e.Debug.assertIsDefined(ki,"Expected to have a code action for promoting type-only alias"),{codeActions:[ki],sourceDisplay:void 0}}if(!ze||!(g(ze)||S(ze)))return{codeActions:void 0,sourceDisplay:void 0};var Ui=ze.isFromPackageJson?Fr.getPackageJsonAutoImportProvider().getTypeChecker():Oe.getTypeChecker(),zi=ze.moduleSymbol,ri=Ui.getMergedSymbol(e.skipAlias(Je.exportSymbol||Je,Ui)),Gi=(xe==null?void 0:xe.kind)===29&&e.isJsxOpeningLikeElement(xe.parent),Rt=e.codefix.getImportCompletionAction(ri,zi,Or,e.getNameForExportedSymbol(Je,e.getEmitScriptTarget(Xr),Gi),Gi,Fr,Oe,Nr,mr&&e.isIdentifier(mr)?mr.getStart(Or):We,Ur),pa=Rt.moduleSpecifier,xt=Rt.codeAction;return e.Debug.assert(!(si!=null&&si.moduleSpecifier)||pa===si.moduleSpecifier),{sourceDisplay:[e.textPart(pa)],codeActions:[xt]}}function er(Me,v,xe,ze,Je,Oe,Fr){var Xr=Ue(Me,v,xe,ze,Je,Oe,Fr);return Xr.type==="symbol"?Xr.symbol:void 0}O.getCompletionEntrySymbol=er;var he;(function(Me){Me[Me.Data=0]="Data",Me[Me.JsDocTagName=1]="JsDocTagName",Me[Me.JsDocTag=2]="JsDocTag",Me[Me.JsDocParameterName=3]="JsDocParameterName",Me[Me.Keywords=4]="Keywords"})(he||(he={}));var we;(function(Me){Me[Me.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",Me[Me.Global=1]="Global",Me[Me.PropertyAccess=2]="PropertyAccess",Me[Me.MemberLike=3]="MemberLike",Me[Me.String=4]="String",Me[Me.None=5]="None"})(we=O.CompletionKind||(O.CompletionKind={}));function ye(Me,v,xe){return e.firstDefined(v&&(v.isUnion()?v.types:[v]),function(ze){var Je=ze&&ze.symbol;return Je&&Je.flags&424&&!e.isAbstractConstructorSymbol(Je)?ge(Je,Me,xe):void 0})}function Se(Me,v,xe,ze){var Je=Me.parent;switch(Me.kind){case 79:return e.getContextualTypeFromParent(Me,ze);case 63:switch(Je.kind){case 253:return ze.getContextualType(Je.initializer);case 220:return ze.getTypeAtLocation(Je.left);case 284:return ze.getContextualTypeForJsxAttribute(Je);default:return}case 103:return ze.getContextualType(Je);case 82:var Oe=e.tryCast(Je,e.isCaseClause);return Oe?e.getSwitchedType(Oe,ze):void 0;case 18:return e.isJsxExpression(Je)&&!e.isJsxElement(Je.parent)&&!e.isJsxFragment(Je.parent)?ze.getContextualTypeForJsxAttribute(Je.parent):void 0;default:var Fr=e.SignatureHelp.getArgumentInfoForCompletions(Me,v,xe);return Fr?ze.getContextualTypeForArgumentAtIndex(Fr.invocation,Fr.argumentIndex+(Me.kind===27?1:0)):e.isEqualityOperatorKind(Me.kind)&&e.isBinaryExpression(Je)&&e.isEqualityOperatorKind(Je.operatorToken.kind)?ze.getTypeAtLocation(Je.left):ze.getContextualType(Me)}}function ge(Me,v,xe){var ze=xe.getAccessibleSymbolChain(Me,v,67108863,!1);return ze?e.first(ze):Me.parent&&(Fe(Me.parent)?Me:ge(Me.parent,v,xe))}function Fe(Me){var v;return!!(!((v=Me.declarations)===null||v===void 0)&&v.some(function(xe){return xe.kind===303}))}function cr(Me,v,xe,ze,Je,Oe,Fr,Xr,Or){var We=Me.getTypeChecker(),mr=e.timestamp(),Nr=e.getTokenAtPosition(xe,Je);v("getCompletionData: Get current token: "+(e.timestamp()-mr)),mr=e.timestamp();var Ur=e.isInComment(xe,Je,Nr);v("getCompletionData: Is inside comment: "+(e.timestamp()-mr));var si=!1,mi=!1;if(Ur){if(e.hasDocComment(xe,Je)){if(xe.text.charCodeAt(Je-1)===64)return{kind:1};var Ti=e.getLineStartPositionForPosition(Je,xe);if(!/[^\*|\s(/)]/.test(xe.text.substring(Ti,Je)))return{kind:2}}var hi=Lr(Nr,Je);if(hi){if(hi.tagName.pos<=Je&&Je<=hi.tagName.end)return{kind:1};if(Vo(hi)&&hi.typeExpression&&hi.typeExpression.kind===307&&(Nr=e.getTokenAtPosition(xe,Je),(!Nr||!e.isDeclarationName(Nr)&&(Nr.parent.kind!==345||Nr.parent.name!==Nr))&&(si=Hs(hi.typeExpression))),!si&&e.isJSDocParameterTag(hi)&&(e.nodeIsMissing(hi.name)||hi.name.pos<=Je&&Je<=hi.name.end))return{kind:3,tag:hi}}if(!si){v("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}mr=e.timestamp();var ki=!si&&e.isSourceFileJS(xe),Ui=ur(Je,xe),zi=Ui.previousToken,ri=Ui.contextToken;v("getCompletionData: Get previous token: "+(e.timestamp()-mr));var Gi=Nr,Rt,pa=!1,xt=!1,ua=!1,Vt=!1,St=!1,Ci=!1,Hi,Yi=e.getTouchingPropertyName(xe,Je),yt=0,gt=!1;if(ri){var oa=sr(ri);if(gt=oa.isNewIdentifierLocation,oa.keywordCompletion){if(oa.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Y(oa.keywordCompletion)],isNewIdentifierLocation:gt};yt=I(oa.keywordCompletion)}if(oa.replacementNode&&Oe.includeCompletionsForImportStatements&&Oe.includeCompletionsWithInsertText&&(Hi=oa.replacementNode),!Hi&&bi(ri))return v("Returning an empty list because completion was requested in an invalid position."),yt?k(yt,ki,Ht()):void 0;var Bt=ri.parent;if(ri.kind===24||ri.kind===28)switch(pa=ri.kind===24,xt=ri.kind===28,Bt.kind){case 205:Rt=Bt,Gi=Rt.expression;var Pi=e.getLeftmostAccessExpression(Rt);if(e.nodeIsMissing(Pi)||(e.isCallExpression(Gi)||e.isFunctionLike(Gi))&&Gi.end===ri.pos&&Gi.getChildCount(xe)&&e.last(Gi.getChildren(xe)).kind!==21)return;break;case 160:Gi=Bt.left;break;case 260:Gi=Bt.name;break;case 199:Gi=Bt;break;case 230:Gi=Bt.getFirstToken(xe),e.Debug.assert(Gi.kind===100||Gi.kind===103);break;default:return}else if(!Hi&&xe.languageVariant===1){if(Bt&&Bt.kind===205&&(ri=Bt,Bt=Bt.parent),Nr.parent===Yi)switch(Nr.kind){case 31:(Nr.parent.kind===277||Nr.parent.kind===279)&&(Yi=Nr);break;case 43:Nr.parent.kind===278&&(Yi=Nr);break}switch(Bt.kind){case 280:ri.kind===43&&(Vt=!0,Yi=ri);break;case 220:if(!qi(Bt))break;case 278:case 277:case 279:Ci=!0,ri.kind===29&&(ua=!0,Yi=ri);break;case 287:case 286:zi.kind===19&&Nr.kind===31&&(Ci=!0);break;case 284:if(Bt.initializer===zi&&zi.end<Je){Ci=!0;break}switch(zi.kind){case 63:St=!0;break;case 79:Ci=!0,Bt!==zi.parent&&!Bt.initializer&&e.findChildOfKind(Bt,63,xe)&&(St=zi)}break}}}var Oi=e.timestamp(),wi=5,Qr=!1,Ct=!1,tt=[],ta=[],Xa=[],on=new e.Map,qr=xo(),bn=e.memoizeOne(function(Mi){return e.createModuleSpecifierResolutionHost(Mi?Xr.getPackageJsonAutoImportProvider():Me,Xr)});if(pa||xt)Cn();else if(ua)tt=We.getJsxIntrinsicTagNamesAt(Yi),e.Debug.assertEachIsDefined(tt,"getJsxIntrinsicTagNames() should all be defined"),rs(),wi=1,yt=0;else if(Vt){var Rn=ri.parent.parent.openingElement.tagName,Sn=We.getSymbolAtLocation(Rn);Sn&&(tt=[Sn]),wi=1,yt=0}else if(!rs())return yt?k(yt,ki,gt):void 0;v("getCompletionData: Semantic work: "+(e.timestamp()-Oi));var zn=zi&&Se(zi,Je,xe,We),Zn=e.mapDefined(zn&&(zn.isUnion()?zn.types:[zn]),function(Mi){return Mi.isLiteral()&&!(Mi.flags&1024)?Mi.value:void 0}),ho=zi&&zn&&ye(zi,zn,We);return{kind:0,symbols:tt,completionKind:wi,isInSnippetScope:mi,propertyAccessToConvert:Rt,isNewIdentifierLocation:gt,location:Yi,keywordFilters:yt,literals:Zn,symbolToOriginInfoMap:ta,recommendedCompletion:ho,previousToken:zi,contextToken:ri,isJsxInitializer:St,insideJsDocTagTypeExpression:si,symbolToSortTextIdMap:Xa,isTypeOnlyLocation:qr,isJsxIdentifierExpected:Ci,isRightOfOpenTag:ua,importCompletionNode:Hi,hasUnresolvedAutoImports:Ct};function Vo(Mi){switch(Mi.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}function Cn(){wi=2;var Mi=e.isLiteralImportTypeNode(Gi),$t=si||Mi&&!Gi.isTypeOf||e.isPartOfTypeNode(Gi.parent)||e.isPossiblyTypeArgumentPosition(ri,xe,We),ga=e.isInRightSideOfInternalImportEqualsDeclaration(Gi);if(e.isEntityName(Gi)||Mi||e.isPropertyAccessExpression(Gi)){var xn=e.isModuleDeclaration(Gi.parent);xn&&(gt=!0);var yn=We.getSymbolAtLocation(Gi);if(yn&&(yn=e.skipAlias(yn,We),yn.flags&1920)){var An=We.getExportsOfModule(yn);e.Debug.assertEachIsDefined(An,"getExportsOfModule() should all be defined");for(var Pa=function(ti){return We.isValidPropertyAccess(Mi?Gi:Gi.parent,ti.name)},Mn=function(ti){return Qe(ti,We)},ao=xn?function(ti){var mt;return!!(ti.flags&1920)&&!(!((mt=ti.declarations)===null||mt===void 0)&&mt.every(function(Zt){return Zt.parent===Gi.parent}))}:ga?function(ti){return Mn(ti)||Pa(ti)}:$t?Mn:Pa,co=0,De=An;co<De.length;co++){var zr=De[co];ao(zr)&&tt.push(zr)}if(!$t&&yn.declarations&&yn.declarations.some(function(ti){return ti.kind!==303&&ti.kind!==260&&ti.kind!==259})){var xi=We.getTypeOfSymbolAtLocation(yn,Gi).getNonOptionalType(),et=!1;if(xi.isNullableType()){var je=pa&&!xt&&Oe.includeAutomaticOptionalChainCompletions!==!1;(je||xt)&&(xi=xi.getNonNullableType(),je&&(et=!0))}go(xi,!!(Gi.flags&32768),et)}return}}if(!$t){We.tryGetThisTypeAt(Gi,!1);var xi=We.getTypeAtLocation(Gi).getNonOptionalType(),et=!1;if(xi.isNullableType()){var je=pa&&!xt&&Oe.includeAutomaticOptionalChainCompletions!==!1;(je||xt)&&(xi=xi.getNonNullableType(),je&&(et=!0))}go(xi,!!(Gi.flags&32768),et)}}function go(Mi,$t,ga){gt=!!Mi.getStringIndexType(),xt&&e.some(Mi.getCallSignatures())&&(gt=!0);var xn=Gi.kind===199?Gi:Gi.parent;if(ze)tt.push.apply(tt,e.filter(be(Mi,We),function(De){return We.isValidPropertyAccessForCompletions(xn,Mi,De)}));else for(var yn=0,An=Mi.getApparentProperties();yn<An.length;yn++){var Pa=An[yn];We.isValidPropertyAccessForCompletions(xn,Mi,Pa)&&ro(Pa,!1,ga)}if($t&&Oe.includeCompletionsWithInsertText){var Mn=We.getPromisedTypeOfPromise(Mi);if(Mn)for(var ao=0,co=Mn.getApparentProperties();ao<co.length;ao++){var Pa=co[ao];We.isValidPropertyAccessForCompletions(xn,Mn,Pa)&&ro(Pa,!0,ga)}}}function ro(Mi,$t,ga){var xn,yn=e.firstDefined(Mi.declarations,function(mt){return e.tryCast(e.getNameOfDeclaration(mt),e.isComputedPropertyName)});if(yn){var An=Ko(yn.expression),Pa=An&&We.getSymbolAtLocation(An),Mn=Pa&&ge(Pa,ri,We);if(Mn&&e.addToSeen(on,e.getSymbolId(Mn))){var ao=tt.length;tt.push(Mn);var co=Mn.parent;if(!co||!e.isExternalModuleSymbol(co)||We.tryGetMemberInModuleExportsAndProperties(Mn.name,co)!==Mn)ta[ao]={kind:ti(2)};else{var De=e.isExternalModuleNameRelative(e.stripQuotes(co.name))?(xn=e.getSourceFileOfModule(co))===null||xn===void 0?void 0:xn.fileName:void 0,zr=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:De,isFromPackageJson:!1,moduleSymbol:co,symbol:Mn,targetFlags:e.skipAlias(Mn,We).flags}],xe,Me,Xr,Oe)||{}).moduleSpecifier;if(zr){var xi={kind:ti(6),moduleSymbol:co,isDefaultExport:!1,symbolName:Mn.name,exportName:Mn.name,fileName:De,moduleSpecifier:zr};ta[ao]=xi}}}else Oe.includeCompletionsWithInsertText&&(je(Mi),et(Mi),tt.push(Mi))}else je(Mi),et(Mi),tt.push(Mi);function et(mt){bt(mt)&&(Xa[e.getSymbolId(mt)]=10)}function je(mt){Oe.includeCompletionsWithInsertText&&($t&&e.addToSeen(on,e.getSymbolId(mt))?ta[tt.length]={kind:ti(8)}:ga&&(ta[tt.length]={kind:16}))}function ti(mt){return ga?mt|16:mt}}function Ko(Mi){return e.isIdentifier(Mi)?Mi:e.isPropertyAccessExpression(Mi)?Ko(Mi.expression):void 0}function rs(){var Mi=an()||Ke()||io()||h()||Ee()||rn()||Re()||Do()||(pn(),1);return Mi===1}function rn(){return _i(ri)?(wi=5,gt=!0,yt=4,1):0}function Do(){var Mi=Ki(ri),$t=Mi&&We.getContextualType(Mi.attributes);if(!$t)return 0;var ga=Mi&&We.getContextualType(Mi.attributes,4);return tt=e.concatenate(tt,mc(Jr($t,ga,Mi.attributes,We),Mi.attributes.properties)),Ho(),wi=3,gt=!1,1}function io(){return Hi?(gt=!0,Ts(),1):0}function pn(){yt=Ei(ri)?5:1,wi=1,gt=Ht(),zi!==ri&&e.Debug.assert(!!zi,"Expected 'contextToken' to be defined when different from 'previousToken'.");var Mi=zi!==ri?zi.getStart():Je,$t=xr(ri,Mi,xe)||xe;mi=wo($t);var ga=(qr?0:111551)|788968|1920|2097152,xn=zi&&!e.isValidTypeOnlyAliasUseSite(zi);tt=e.concatenate(tt,We.getSymbolsInScope($t,ga)),e.Debug.assertEachIsDefined(tt,"getSymbolsInScope() should all be defined");for(var yn=0;yn<tt.length;yn++){var An=tt[yn];if(!We.isArgumentsSymbol(An)&&!e.some(An.declarations,function(zr){return zr.getSourceFile()===xe})&&(Xa[e.getSymbolId(An)]=15),xn&&!(An.flags&111551)){var Pa=An.declarations&&e.find(An.declarations,e.isTypeOnlyImportOrExportDeclaration);if(Pa){var Mn={kind:64,declaration:Pa};ta[yn]=Mn}}}if(Oe.includeCompletionsWithInsertText&&$t.kind!==303){var ao=We.tryGetThisTypeAt($t,!1);if(ao&&!ft(ao,xe,We))for(var co=0,De=be(ao,We);co<De.length;co++){var An=De[co];ta[tt.length]={kind:1},tt.push(An),Xa[e.getSymbolId(An)]=14}}Ts(),qr&&(yt=ri&&e.isAssertionExpression(ri.parent)?6:7)}function Qn(){return Hi?!0:Qr||!Oe.includeCompletionsForModuleExports?!1:xe.externalModuleIndicator||xe.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(Me.getCompilerOptions())?!0:e.programContainsModules(Me)}function wo(Mi){switch(Mi.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(Mi)}}function xo(){return si||!!Hi&&e.isTypeOnlyImportOrExportDeclaration(Yi.parent)||!ds(ri)&&(e.isPossiblyTypeArgumentPosition(ri,xe,We)||e.isPartOfTypeNode(Yi)||No(ri))}function ds(Mi){return Mi&&(Mi.kind===112&&(Mi.parent.kind===180||e.isTypeOfExpression(Mi.parent))||Mi.kind===128&&Mi.parent.kind===176)}function No(Mi){if(Mi){var $t=Mi.parent.kind;switch(Mi.kind){case 58:return $t===166||$t===165||$t===163||$t===253||e.isFunctionLikeKind($t);case 63:return $t===258;case 127:return $t===228;case 29:return $t===177||$t===210;case 94:return $t===162}}return!1}function Ts(){var Mi,$t;if(!Qn()||(e.Debug.assert(!(Fr!=null&&Fr.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),Fr&&!Fr.source))return;var ga=zi===ri&&Hi&&Ji(Hi,ri),xn=ga?"":zi&&e.isIdentifier(zi)?zi.text.toLowerCase():"",yn=(Mi=Xr.getModuleSpecifierCache)===null||Mi===void 0?void 0:Mi.call(Xr),An=e.getExportInfoMap(xe,Xr,Me,Or),Pa=($t=Xr.getPackageJsonAutoImportProvider)===null||$t===void 0?void 0:$t.call(Xr),Mn=Fr?void 0:e.createPackageJsonImportFilter(xe,Oe,Xr);B("collectAutoImports",Xr,Me,xe,Oe,!!Hi,function(co){An.search(xe.path,ua,function(De,zr){if(!e.isIdentifierText(De,e.getEmitScriptTarget(Xr.getCompilationSettings()))||!Fr&&e.isStringANonContextualKeyword(De)||!qr&&!Hi&&!(zr&111551)||qr&&!(zr&790504))return!1;var xi=De.charCodeAt(0);return ua&&(xi<65||xi>90)?!1:Fr?!0:hr(De,xn)},function(De,zr,xi,et){if(!(Fr&&!e.some(De,function(jr){return Fr.source===e.stripQuotes(jr.moduleSymbol.name)}))){var je=e.find(De,ao);if(!!je){var ti=co.tryResolve(De,xi)||{},mt=ti.exportInfo,Zt=mt===void 0?je:mt,ln=ti.moduleSpecifier,Ba=Zt.exportKind===1,Oo=Ba&&e.getLocalSymbolForExportDefault(Zt.symbol)||Zt.symbol;Ms(Oo,{kind:ln?32:4,moduleSpecifier:ln,symbolName:zr,exportMapKey:et,exportName:Zt.exportKind===2?"export=":Zt.symbol.name,fileName:Zt.moduleFileName,isDefaultExport:Ba,moduleSymbol:Zt.moduleSymbol,isFromPackageJson:Zt.isFromPackageJson})}}}),Ct=co.resolutionLimitExceeded()});function ao(co){var De=e.tryCast(co.moduleSymbol.valueDeclaration,e.isSourceFile);if(!De){var zr=e.stripQuotes(co.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(zr)&&e.startsWith(zr,"node:")!==e.shouldUseUriStyleNodeCoreModules(xe,Me)?!1:Mn?Mn.allowsImportingAmbientModule(co.moduleSymbol,bn(co.isFromPackageJson)):!0}return e.isImportableFile(co.isFromPackageJson?Pa:Me,xe,De,Oe,Mn,bn(co.isFromPackageJson),yn)}}function Ms(Mi,$t){var ga=e.getSymbolId(Mi);Xa[ga]!==15&&(ta[tt.length]=$t,Xa[ga]=Hi?11:16,tt.push(Mi))}function xr(Mi,$t,ga){for(var xn=Mi;xn&&!e.positionBelongsToNode(xn,$t,ga);)xn=xn.parent;return xn}function bi(Mi){var $t=e.timestamp(),ga=Ka(Mi)||Nt(Mi)||Ta(Mi)||ut(Mi)||e.isBigIntLiteral(Mi);return v("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-$t)),ga}function ut(Mi){if(Mi.kind===11)return!0;if(Mi.kind===31&&Mi.parent){if(Yi===Mi.parent&&(Yi.kind===279||Yi.kind===278))return!1;if(Mi.parent.kind===279)return Yi.parent.kind!==279;if(Mi.parent.kind===280||Mi.parent.kind===278)return!!Mi.parent.parent&&Mi.parent.parent.kind===277}return!1}function Ht(){if(ri){var Mi=ri.parent.kind,$t=Xe(ri);switch($t){case 27:return Mi===207||Mi===170||Mi===208||Mi===203||Mi===220||Mi===178||Mi===204;case 20:return Mi===207||Mi===170||Mi===208||Mi===211||Mi===190;case 22:return Mi===203||Mi===175||Mi===161;case 141:case 142:case 100:return!0;case 24:return Mi===260;case 18:return Mi===256||Mi===204;case 63:return Mi===253||Mi===220;case 15:return Mi===222;case 16:return Mi===232;case 131:return Mi===168||Mi===295;case 41:return Mi===168}if(Ce($t))return!0}return!1}function Ka(Mi){return(e.isRegularExpressionLiteral(Mi)||e.isStringTextContainingNode(Mi))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(Mi)),Je)||Je===Mi.end&&(!!Mi.isUnterminated||e.isRegularExpressionLiteral(Mi)))}function an(){var Mi=Kr(ri);if(!Mi)return 0;var $t=e.isIntersectionTypeNode(Mi.parent)?Mi.parent:void 0,ga=$t||Mi,xn=ei(ga,We);if(!xn)return 0;var yn=We.getTypeFromTypeNode(ga),An=be(xn,We),Pa=be(yn,We),Mn=new e.Set;return Pa.forEach(function(ao){return Mn.add(ao.escapedName)}),tt=e.concatenate(tt,e.filter(An,function(ao){return!Mn.has(ao.escapedName)})),wi=0,gt=!0,1}function Ke(){var Mi=nr(ri);if(!Mi)return 0;wi=0;var $t,ga;if(Mi.kind===204){var xn=aa(Mi,We);if(xn===void 0)return Mi.flags&16777216?2:(Qr=!0,0);var yn=We.getContextualType(Mi,4),An=(yn||xn).getStringIndexType(),Pa=(yn||xn).getNumberIndexType();if(gt=!!An||!!Pa,$t=Jr(xn,yn,Mi,We),ga=Mi.properties,$t.length===0&&!Pa)return Qr=!0,0}else{e.Debug.assert(Mi.kind===200),gt=!1;var Mn=e.getRootDeclaration(Mi.parent);if(!e.isVariableLike(Mn))return e.Debug.fail("Root declaration is not variable-like.");var ao=e.hasInitializer(Mn)||e.hasType(Mn)||Mn.parent.parent.kind===243;if(!ao&&Mn.kind===163&&(e.isExpression(Mn.parent)?ao=!!We.getContextualType(Mn.parent):(Mn.parent.kind===168||Mn.parent.kind===172)&&(ao=e.isExpression(Mn.parent.parent)&&!!We.getContextualType(Mn.parent.parent))),ao){var co=We.getTypeAtLocation(Mi);if(!co)return 2;$t=We.getPropertiesOfType(co).filter(function(De){return We.isPropertyAccessible(Mi,!1,!1,co,De)}),ga=Mi.elements}}return $t&&$t.length>0&&(tt=e.concatenate(tt,so($t,e.Debug.checkDefined(ga)))),Ho(),1}function h(){if(!ri)return 0;var Mi=ri.kind===18||ri.kind===27?e.tryCast(ri.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(ri)?e.tryCast(ri.parent.parent,e.isNamedImportsOrExports):void 0;if(!Mi)return 0;e.isTypeKeywordTokenOrIdentifier(ri)||(yt=8);var $t=(Mi.kind===268?Mi.parent.parent:Mi.parent).moduleSpecifier;if(!$t)return gt=!0,Mi.kind===268?2:0;var ga=We.getSymbolAtLocation($t);if(!ga)return gt=!0,2;wi=3,gt=!1;var xn=We.getExportsAndPropertiesOfModule(ga),yn=new e.Set(Mi.elements.filter(function(Pa){return!Hs(Pa)}).map(function(Pa){return(Pa.propertyName||Pa.name).escapedText})),An=xn.filter(function(Pa){return Pa.escapedName!=="default"&&!yn.has(Pa.escapedName)});return tt=e.concatenate(tt,An),An.length||(yt=0),1}function Ee(){var Mi,$t=ri&&(ri.kind===18||ri.kind===27)?e.tryCast(ri.parent,e.isNamedExports):void 0;if(!$t)return 0;var ga=e.findAncestor($t,e.or(e.isSourceFile,e.isModuleDeclaration));return wi=5,gt=!1,(Mi=ga.locals)===null||Mi===void 0||Mi.forEach(function(xn,yn){var An,Pa;tt.push(xn),!((Pa=(An=ga.symbol)===null||An===void 0?void 0:An.exports)===null||Pa===void 0)&&Pa.has(yn)&&(Xa[e.getSymbolId(xn)]=12)}),1}function Re(){var Mi=or(xe,ri,Yi,Je);if(!Mi)return 0;if(wi=3,gt=!0,yt=ri.kind===41?0:e.isClassLike(Mi)?2:3,!e.isClassLike(Mi))return 1;var $t=ri.kind===26?ri.parent.parent:ri.parent,ga=e.isClassElement($t)?e.getEffectiveModifierFlags($t):0;if(ri.kind===79&&!Hs(ri))switch(ri.getText()){case"private":ga=ga|8;break;case"static":ga=ga|32;break;case"override":ga=ga|16384;break}if(e.isClassStaticBlockDeclaration($t)&&(ga|=32),!(ga&8)){var xn=e.isClassLike(Mi)&&ga&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(Mi)):e.getAllSuperTypeNodes(Mi),yn=e.flatMap(xn,function(An){var Pa=We.getTypeAtLocation(An);return ga&32?(Pa==null?void 0:Pa.symbol)&&We.getPropertiesOfType(We.getTypeOfSymbolAtLocation(Pa.symbol,Mi)):Pa&&We.getPropertiesOfType(Pa)});tt=e.concatenate(tt,Os(yn,Mi.members,ga))}return 1}function nr(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 18:case 27:if(e.isObjectLiteralExpression($t)||e.isObjectBindingPattern($t))return $t;break;case 41:return e.isMethodDeclaration($t)?e.tryCast($t.parent,e.isObjectLiteralExpression):void 0;case 79:return Mi.text==="async"&&e.isShorthandPropertyAssignment(Mi.parent)?Mi.parent.parent:void 0}}}function Gr(Mi){return!!Mi.parent&&e.isParameter(Mi.parent)&&e.isConstructorDeclaration(Mi.parent.parent)&&(e.isParameterPropertyModifier(Mi.kind)||e.isDeclarationName(Mi))}function _i(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 20:case 27:return e.isConstructorDeclaration(Mi.parent)?Mi.parent:void 0;default:if(Gr(Mi))return $t.parent}}}function Ei(Mi){if(Mi){var $t,ga=e.findAncestor(Mi.parent,function(xn){return e.isClassLike(xn)?"quit":e.isFunctionLikeDeclaration(xn)&&$t===xn.body?!0:($t=xn,!1)});return ga&&ga}}function Ki(Mi){if(Mi){var $t=Mi.parent;switch(Mi.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if($t&&($t.kind===278||$t.kind===279)){if(Mi.kind===31){var ga=e.findPrecedingToken(Mi.pos,xe,void 0);if(!$t.typeArguments||ga&&ga.kind===43)break}return $t}else if($t.kind===284)return $t.parent.parent;break;case 10:if($t&&($t.kind===284||$t.kind===286))return $t.parent.parent;break;case 19:if($t&&$t.kind===287&&$t.parent&&$t.parent.kind===284)return $t.parent.parent.parent;if($t&&$t.kind===286)return $t.parent.parent;break}}}function Nt(Mi){var $t=Mi.parent,ga=$t.kind;switch(Mi.kind){case 27:return ga===253||In(Mi)||ga===236||ga===259||Fa(ga)||ga===257||ga===201||ga===258||e.isClassLike($t)&&!!$t.typeParameters&&$t.typeParameters.end>=Mi.pos;case 24:return ga===201;case 58:return ga===202;case 22:return ga===201;case 20:return ga===291||Fa(ga);case 18:return ga===259;case 29:return ga===256||ga===225||ga===257||ga===258||e.isFunctionLikeKind(ga);case 124:return ga===166&&!e.isClassLike($t.parent);case 25:return ga===163||!!$t.parent&&$t.parent.kind===201;case 123:case 121:case 122:return ga===163&&!e.isConstructorDeclaration($t.parent);case 127:return ga===269||ga===274||ga===267;case 136:case 148:return!li(Mi);case 79:if(ga===269&&Mi===$t.name&&Mi.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return ga!==269;case 41:return e.isFunctionLike(Mi.parent)&&!e.isMethodDeclaration(Mi.parent)}if(Ce(Xe(Mi))&&li(Mi)||Gr(Mi)&&(!e.isIdentifier(Mi)||e.isParameterPropertyModifier(Xe(Mi))||Hs(Mi)))return!1;switch(Xe(Mi)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(Mi.parent)}var xn=e.findAncestor(Mi.parent,e.isClassLike);if(xn&&Mi===zi&&ca(Mi,Je))return!1;var yn=e.getAncestor(Mi.parent,166);if(yn&&Mi!==zi&&e.isClassLike(zi.parent.parent)&&Je<=zi.end){if(ca(Mi,zi.end))return!1;if(Mi.kind!==63&&(e.isInitializedProperty(yn)||e.hasType(yn)))return!0}return e.isDeclarationName(Mi)&&!e.isShorthandPropertyAssignment(Mi.parent)&&!e.isJsxAttribute(Mi.parent)&&!(e.isClassLike(Mi.parent)&&(Mi!==zi||Je>zi.end))}function ca(Mi,$t){return Mi.kind!==63&&(Mi.kind===26||!e.positionsAreOnSameLine(Mi.end,$t,xe))}function Fa(Mi){return e.isFunctionLikeKind(Mi)&&Mi!==170}function Ta(Mi){if(Mi.kind===8){var $t=Mi.getFullText();return $t.charAt($t.length-1)==="."}return!1}function In(Mi){return Mi.parent.kind===254&&!e.isPossiblyTypeArgumentPosition(Mi,xe,We)}function so(Mi,$t){if($t.length===0)return Mi;for(var ga=new e.Set,xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];if(!(Pa.kind!==294&&Pa.kind!==295&&Pa.kind!==202&&Pa.kind!==168&&Pa.kind!==171&&Pa.kind!==172&&Pa.kind!==296)&&!Hs(Pa)){var Mn=void 0;if(e.isSpreadAssignment(Pa))as(Pa,ga);else if(e.isBindingElement(Pa)&&Pa.propertyName)Pa.propertyName.kind===79&&(Mn=Pa.propertyName.escapedText);else{var ao=e.getNameOfDeclaration(Pa);Mn=ao&&e.isPropertyNameLiteral(ao)?e.getEscapedTextOfIdentifierOrLiteral(ao):void 0}Mn!==void 0&&xn.add(Mn)}}var co=Mi.filter(function(De){return!xn.has(De.escapedName)});return Ds(ga,co),co}function as(Mi,$t){var ga=Mi.expression,xn=We.getSymbolAtLocation(ga),yn=xn&&We.getTypeOfSymbolAtLocation(xn,ga),An=yn&&yn.properties;An&&An.forEach(function(Pa){$t.add(Pa.name)})}function Ho(){tt.forEach(function(Mi){var $t;if(Mi.flags&16777216){var ga=e.getSymbolId(Mi);Xa[ga]=($t=Xa[ga])!==null&&$t!==void 0?$t:12}})}function Ds(Mi,$t){if(Mi.size!==0)for(var ga=0,xn=$t;ga<xn.length;ga++){var yn=xn[ga];Mi.has(yn.name)&&(Xa[e.getSymbolId(yn)]=13)}}function Os(Mi,$t,ga){for(var xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];if(!(Pa.kind!==166&&Pa.kind!==168&&Pa.kind!==171&&Pa.kind!==172)&&!Hs(Pa)&&!e.hasEffectiveModifier(Pa,8)&&e.isStatic(Pa)===!!(ga&32)){var Mn=e.getPropertyNameForPropertyNameNode(Pa.name);Mn&&xn.add(Mn)}}return Mi.filter(function(ao){return!xn.has(ao.escapedName)&&!!ao.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(ao)&8)&&!(ao.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(ao.valueDeclaration))})}function mc(Mi,$t){for(var ga=new e.Set,xn=new e.Set,yn=0,An=$t;yn<An.length;yn++){var Pa=An[yn];Hs(Pa)||(Pa.kind===284?ga.add(Pa.name.escapedText):e.isJsxSpreadAttribute(Pa)&&as(Pa,xn))}var Mn=Mi.filter(function(ao){return!ga.has(ao.escapedName)});return Ds(xn,Mn),Mn}function Hs(Mi){return Mi.getStart(xe)<=Je&&Je<=Mi.getEnd()}}function ur(Me,v){var xe=e.findPrecedingToken(Me,v);if(xe&&Me<=xe.end&&(e.isMemberName(xe)||e.isKeyword(xe.kind))){var ze=e.findPrecedingToken(xe.getFullStart(),v,void 0);return{contextToken:ze,previousToken:xe}}return{contextToken:xe,previousToken:xe}}function Ir(Me,v,xe,ze){var Je=v.isPackageJsonImport?ze.getPackageJsonAutoImportProvider():xe,Oe=Je.getTypeChecker(),Fr=v.ambientModuleName?Oe.tryFindAmbientModule(v.ambientModuleName):v.fileName?Oe.getMergedSymbol(e.Debug.checkDefined(Je.getSourceFile(v.fileName)).symbol):void 0;if(!!Fr){var Xr=v.exportName==="export="?Oe.resolveExternalModuleSymbol(Fr):Oe.tryGetMemberInModuleExportsAndProperties(v.exportName,Fr);if(!!Xr){var Or=v.exportName==="default";return Xr=Or&&e.getLocalSymbolForExportDefault(Xr)||Xr,{symbol:Xr,origin:ve(v,Me,Fr)}}}}function dr(Me,v,xe,ze,Je){var Oe=H(xe)?xe.symbolName:Me.name;if(!(Oe===void 0||Me.flags&1536&&e.isSingleOrDoubleQuote(Oe.charCodeAt(0))||e.isKnownSymbol(Me))){var Fr={name:Oe,needsConvertPropertyAccess:!1};if(e.isIdentifierText(Oe,v,Je?1:0)||Me.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Me.valueDeclaration))return Fr;switch(ze){case 3:return;case 0:return{name:JSON.stringify(Oe),needsConvertPropertyAccess:!1};case 2:case 1:return Oe.charCodeAt(0)===32?void 0:{name:Oe,needsConvertPropertyAccess:!0};case 5:case 4:return Fr;default:e.Debug.assertNever(ze)}}}var Br=[],Tr=e.memoize(function(){for(var Me=[],v=81;v<=159;v++)Me.push({name:e.tokenToString(v),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords});return Me});function n(Me,v){if(!v)return Er(Me);var xe=Me+7+1;return Br[xe]||(Br[xe]=Er(Me).filter(function(ze){return!br(e.stringToToken(ze.name))}))}function Er(Me){return Br[Me]||(Br[Me]=Tr().filter(function(v){var xe=e.stringToToken(v.name);switch(Me){case 0:return!1;case 1:return Le(xe)||xe===135||xe===141||xe===151||xe===142||xe===126||e.isTypeKeyword(xe)&&xe!==152;case 5:return Le(xe);case 2:return Ce(xe);case 3:return Pr(xe);case 4:return e.isParameterPropertyModifier(xe);case 6:return e.isTypeKeyword(xe)||xe===85;case 7:return e.isTypeKeyword(xe);case 8:return xe===151;default:return e.Debug.assertNever(Me)}}))}function br(Me){switch(Me){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}function Pr(Me){return Me===144}function Ce(Me){switch(Me){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(Me)}}function Le(Me){return Me===131||Me===132||Me===127||!e.isContextualKeyword(Me)&&!Ce(Me)}function Xe(Me){return e.isIdentifier(Me)?Me.originalKeywordKind||0:Me.kind}function Cr(Me,v){var xe=[];if(Me){var ze=Me.getSourceFile(),Je=Me.parent,Oe=ze.getLineAndCharacterOfPosition(Me.end).line,Fr=ze.getLineAndCharacterOfPosition(v).line;(e.isImportDeclaration(Je)||e.isExportDeclaration(Je)&&Je.moduleSpecifier)&&Me===Je.moduleSpecifier&&Oe===Fr&&xe.push({name:e.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:L.GlobalsOrKeywords})}return xe}function Lr(Me,v){return e.findAncestor(Me,function(xe){return e.isJSDocTag(xe)&&e.rangeContainsPosition(xe,v)?!0:e.isJSDoc(xe)?"quit":!1})}function Jr(Me,v,xe,ze){var Je=v&&v!==Me,Oe=Je&&!(v.flags&3)?ze.getUnionType([Me,v]):Me,Fr=Rr(Oe,xe,ze);return Oe.isClass()&&ci(Fr)?[]:Je?e.filter(Fr,Xr):Fr;function Xr(Or){return e.length(Or.declarations)?e.some(Or.declarations,function(We){return We.parent!==xe}):!0}}O.getPropertiesForObjectExpression=Jr;function Rr(Me,v,xe){return Me.isUnion()?xe.getAllPossiblePropertiesOfTypes(e.filter(Me.types,function(ze){return!(ze.flags&131068||xe.isArrayLikeType(ze)||xe.isTypeInvalidDueToUnionDiscriminant(ze,v)||e.typeHasCallOrConstructSignatures(ze,xe)||ze.isClass()&&ci(ze.getApparentProperties()))})):Me.getApparentProperties()}function ci(Me){return e.some(Me,function(v){return!!(e.getDeclarationModifierFlagsFromSymbol(v)&24)})}function be(Me,v){return Me.isUnion()?e.Debug.checkEachDefined(v.getAllPossiblePropertiesOfTypes(Me.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(Me.getApparentProperties(),"getApparentProperties() should all be defined")}function or(Me,v,xe,ze){switch(xe.kind){case 346:return e.tryCast(xe.parent,e.isObjectTypeDeclaration);case 1:var Je=e.tryCast(e.lastOrUndefined(e.cast(xe.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(Je&&!e.findChildOfKind(Je,19,Me))return Je;break;case 79:{if(e.isPropertyDeclaration(xe.parent)&&xe.parent.initializer===xe)return;if(li(xe))return e.findAncestor(xe,e.isObjectTypeDeclaration)}}if(!!v){if(xe.kind===134||e.isIdentifier(v)&&e.isPropertyDeclaration(v.parent)&&e.isClassLike(xe))return e.findAncestor(v,e.isClassLike);switch(v.kind){case 63:return;case 26:case 19:return li(xe)&&xe.parent.name===xe?xe.parent.parent:e.tryCast(xe,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(v.parent,e.isObjectTypeDeclaration);default:if(!li(v))return e.getLineAndCharacterOfPosition(Me,v.getEnd()).line!==e.getLineAndCharacterOfPosition(Me,ze).line&&e.isObjectTypeDeclaration(xe)?xe:void 0;var Oe=e.isClassLike(v.parent.parent)?Ce:Pr;return Oe(v.kind)||v.kind===41||e.isIdentifier(v)&&Oe(e.stringToToken(v.text))?v.parent.parent:void 0}}}function Kr(Me){if(!!Me){var v=Me.parent;switch(Me.kind){case 18:if(e.isTypeLiteralNode(v))return v;break;case 26:case 27:case 79:if(v.kind===165&&e.isTypeLiteralNode(v.parent))return v.parent;break}}}function ei(Me,v){if(!!Me){if(e.isTypeNode(Me)&&e.isTypeReferenceType(Me.parent))return v.getTypeArgumentConstraint(Me);var xe=ei(Me.parent,v);if(!!xe)switch(Me.kind){case 165:return v.getTypeOfPropertyOfContextualType(xe,Me.symbol.escapedName);case 187:case 181:case 186:return xe}}}function li(Me){return Me.parent&&e.isClassOrTypeElement(Me.parent)&&e.isObjectTypeDeclaration(Me.parent.parent)}function Si(Me,v,xe,ze){switch(v){case".":case"@":return!0;case'"':case"'":case"`":return!!xe&&e.isStringLiteralOrTemplate(xe)&&ze===xe.getStart(Me)+1;case"#":return!!xe&&e.isPrivateIdentifier(xe)&&!!e.getContainingClass(xe);case"<":return!!xe&&xe.kind===29&&(!e.isBinaryExpression(xe.parent)||qi(xe.parent));case"/":return!!xe&&(e.isStringLiteralLike(xe)?!!e.tryGetImportFromModuleSpecifier(xe):xe.kind===43&&e.isJsxClosingElement(xe.parent));case" ":return!!xe&&e.isImportKeyword(xe)&&xe.parent.kind===303;default:return e.Debug.assertNever(v)}}function qi(Me){var v=Me.left;return e.nodeIsMissing(v)}function ft(Me,v,xe){var ze=xe.resolveName("self",void 0,111551,!1);if(ze&&xe.getTypeOfSymbolAtLocation(ze,v)===Me)return!0;var Je=xe.resolveName("global",void 0,111551,!1);if(Je&&xe.getTypeOfSymbolAtLocation(Je,v)===Me)return!0;var Oe=xe.resolveName("globalThis",void 0,111551,!1);return!!(Oe&&xe.getTypeOfSymbolAtLocation(Oe,v)===Me)}function bt(Me){return!!(Me.valueDeclaration&&e.getEffectiveModifierFlags(Me.valueDeclaration)&32&&e.isClassLike(Me.valueDeclaration.parent))}function aa(Me,v){var xe=v.getContextualType(Me);if(xe)return xe;if(e.isBinaryExpression(Me.parent)&&Me.parent.operatorToken.kind===63&&Me===Me.parent.left)return v.getTypeAtLocation(Me.parent)}function sr(Me){var v,xe=!1,ze=Je();return{isKeywordOnlyCompletion:xe,keywordCompletion:v,isNewIdentifierLocation:!!(ze||v===151),replacementNode:ze&&e.rangeIsOnSingleLine(ze,ze.getSourceFile())?ze:void 0};function Je(){var Oe=Me.parent;if(e.isImportEqualsDeclaration(Oe))return v=Me.kind===151?void 0:151,X(Oe.moduleReference)?Oe:void 0;if(Ji(Oe,Me)&&di(Oe.parent))return Oe;if(e.isNamedImports(Oe)||e.isNamespaceImport(Oe)){if(!Oe.parent.isTypeOnly&&(Me.kind===18||Me.kind===100||Me.kind===27)&&(v=151),di(Oe))if(Me.kind===19||Me.kind===79)xe=!0,v=155;else return Oe.parent.parent;return}if(e.isImportKeyword(Me)&&e.isSourceFile(Oe))return v=151,Me;if(e.isImportKeyword(Me)&&e.isImportDeclaration(Oe))return v=151,X(Oe.moduleSpecifier)?Oe:void 0}}function Ji(Me,v){return e.isImportSpecifier(Me)&&(Me.isTypeOnly||v===Me.name&&e.isTypeKeywordTokenOrIdentifier(v))}function di(Me){return X(Me.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(Me)||Me.elements.length<2)&&!Me.parent.name}function X(Me){var v;return e.nodeIsMissing(Me)?!0:!(!((v=e.tryCast(e.isExternalModuleReference(Me)?Me.expression:Me,e.isStringLiteralLike))===null||v===void 0)&&v.text)}function Ye(Me){var v=e.findAncestor(Me,function(xe){return e.isFunctionBlock(xe)||Be(xe)||e.isBindingPattern(xe)?"quit":e.isVariableDeclaration(xe)});return v}function Be(Me){return Me.parent&&e.isArrowFunction(Me.parent)&&Me.parent.body===Me}function Qe(Me,v,xe){return xe===void 0&&(xe=new e.Map),ze(Me)||ze(e.skipAlias(Me.exportSymbol||Me,v));function ze(Je){return!!(Je.flags&788968)||v.isUnknownSymbol(Je)||!!(Je.flags&1536)&&e.addToSeen(xe,e.getSymbolId(Je))&&v.getExportsOfModule(Je).some(function(Oe){return Qe(Oe,v,xe)})}}function _r(Me,v){var xe=e.skipAlias(Me,v).declarations;return!!e.length(xe)&&e.every(xe,e.isDeprecatedDeclaration)}function hr(Me,v){if(v.length===0)return!0;for(var xe=!1,ze,Je=0,Oe=Me.length,Fr=0;Fr<Oe;Fr++){var Xr=Me.charCodeAt(Fr),Or=v.charCodeAt(Je);if((Xr===Or||Xr===Dr(Or))&&(xe||(xe=ze===void 0||97<=ze&&ze<=122&&65<=Xr&&Xr<=90||ze===95&&Xr!==95),xe&&Je++,Je===v.length))return!0;ze=Xr}return!1}function Dr(Me){return 97<=Me&&Me<=122?Me-32:Me}})(a=e.Completions||(e.Completions={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(ee,A,f,P,D){var l=e.getTouchingPropertyName(f,P);if(l.parent&&(e.isJsxOpeningElement(l.parent)&&l.parent.tagName===l||e.isJsxClosingElement(l.parent))){var _=l.parent.parent,J=_.openingElement,w=_.closingElement,j=[J,w].map(function(U){var z=U.tagName;return W(z,f)});return[{fileName:f.fileName,highlightSpans:j}]}return N(P,l,ee,A,D)||Q(l,f)}O.getDocumentHighlights=L;function W(ee,A){return{fileName:A.fileName,textSpan:e.createTextSpanFromNode(ee,A),kind:"none"}}function N(ee,A,f,P,D){var l=new e.Set(D.map(function(j){return j.fileName})),_=e.FindAllReferences.getReferenceEntriesForNode(ee,A,f,D,P,void 0,l);if(!!_){var J=e.arrayToMultiMap(_.map(e.FindAllReferences.toHighlightSpan),function(j){return j.fileName},function(j){return j.span}),w=e.createGetCanonicalFileName(f.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(J.entries()),function(j){var U=j[0],z=j[1];if(!l.has(U)){if(!f.redirectTargetsMap.has(e.toPath(U,f.getCurrentDirectory(),w)))return;var y=f.getSourceFile(U),oe=e.find(D,function(ve){return!!ve.redirectInfo&&ve.redirectInfo.redirectTarget===y});U=oe.fileName,e.Debug.assert(l.has(U))}return{fileName:U,highlightSpans:z}})}}function Q(ee,A){var f=pe(ee,A);return f&&[{fileName:A.fileName,highlightSpans:f}]}function pe(ee,A){switch(ee.kind){case 99:case 91:return e.isIfStatement(ee.parent)?k(ee.parent,A):void 0;case 105:return D(ee.parent,e.isReturnStatement,ie);case 109:return D(ee.parent,e.isThrowStatement,x);case 111:case 83:case 96:var f=ee.kind===83?ee.parent.parent:ee.parent;return D(f,e.isTryStatement,M);case 107:return D(ee.parent,e.isSwitchStatement,re);case 82:case 88:return e.isDefaultClause(ee.parent)||e.isCaseClause(ee.parent)?D(ee.parent.parent.parent,e.isSwitchStatement,re):void 0;case 81:case 86:return D(ee.parent,e.isBreakOrContinueStatement,B);case 97:case 115:case 90:return D(ee.parent,function(_){return e.isIterationStatement(_,!0)},ue);case 134:return P(e.isConstructorDeclaration,[134]);case 136:case 148:return P(e.isAccessor,[136,148]);case 132:return D(ee.parent,e.isAwaitExpression,_e);case 131:return l(_e(ee));case 125:return l(Y(ee));default:return e.isModifierKind(ee.kind)&&(e.isDeclaration(ee.parent)||e.isVariableStatement(ee.parent))?l(C(ee.kind,ee.parent)):void 0}function P(_,J){return D(ee.parent,_,function(w){return e.mapDefined(w.symbol.declarations,function(j){return _(j)?e.find(j.getChildren(A),function(U){return e.contains(J,U.kind)}):void 0})})}function D(_,J,w){return J(_)?l(w(_,A)):void 0}function l(_){return _&&_.map(function(J){return W(J,A)})}}function F(ee){return e.isThrowStatement(ee)?[ee]:e.isTryStatement(ee)?e.concatenate(ee.catchClause?F(ee.catchClause):ee.tryBlock&&F(ee.tryBlock),ee.finallyBlock&&F(ee.finallyBlock)):e.isFunctionLike(ee)?void 0:H(ee,F)}function g(ee){for(var A=ee;A.parent;){var f=A.parent;if(e.isFunctionBlock(f)||f.kind===303)return f;if(e.isTryStatement(f)&&f.tryBlock===A&&f.catchClause)return A;A=f}}function S(ee){return e.isBreakOrContinueStatement(ee)?[ee]:e.isFunctionLike(ee)?void 0:H(ee,S)}function H(ee,A){var f=[];return ee.forEachChild(function(P){var D=A(P);D!==void 0&&f.push.apply(f,e.toArray(D))}),f}function se(ee,A){var f=p(A);return!!f&&f===ee}function p(ee){return e.findAncestor(ee,function(A){switch(A.kind){case 248:if(ee.kind===244)return!1;case 241:case 242:case 243:case 240:case 239:return!ee.label||ne(A,ee.label.escapedText);default:return e.isFunctionLike(A)&&"quit"}})}function C(ee,A){return e.mapDefined(G(A,e.modifierToFlag(ee)),function(f){return e.findModifier(f,ee)})}function G(ee,A){var f=ee.parent;switch(f.kind){case 261:case 303:case 234:case 288:case 289:return A&128&&e.isClassDeclaration(ee)?qe(qe([],ee.members,!0),[ee],!1):f.statements;case 170:case 168:case 255:return qe(qe([],f.parameters,!0),e.isClassLike(f.parent)?f.parent.members:[],!0);case 256:case 225:case 257:case 181:var P=f.members;if(A&92){var D=e.find(f.members,e.isConstructorDeclaration);if(D)return qe(qe([],P,!0),D.parameters,!0)}else if(A&128)return qe(qe([],P,!0),[f],!1);return P;case 204:return;default:e.Debug.assertNever(f,"Invalid container kind.")}}function E(ee,A){for(var f=[],P=2;P<arguments.length;P++)f[P-2]=arguments[P];return A&&e.contains(f,A.kind)?(ee.push(A),!0):!1}function ue(ee){var A=[];if(E(A,ee.getFirstToken(),97,115,90)&&ee.kind===239)for(var f=ee.getChildren(),P=f.length-1;P>=0&&!E(A,f[P],115);P--);return e.forEach(S(ee.statement),function(D){se(ee,D)&&E(A,D.getFirstToken(),81,86)}),A}function B(ee){var A=p(ee);if(A)switch(A.kind){case 241:case 242:case 243:case 239:case 240:return ue(A);case 248:return re(A)}}function re(ee){var A=[];return E(A,ee.getFirstToken(),107),e.forEach(ee.caseBlock.clauses,function(f){E(A,f.getFirstToken(),82,88),e.forEach(S(f),function(P){se(ee,P)&&E(A,P.getFirstToken(),81)})}),A}function M(ee,A){var f=[];if(E(f,ee.getFirstToken(),111),ee.catchClause&&E(f,ee.catchClause.getFirstToken(),83),ee.finallyBlock){var P=e.findChildOfKind(ee,96,A);E(f,P,96)}return f}function x(ee,A){var f=g(ee);if(!!f){var P=[];return e.forEach(F(f),function(D){P.push(e.findChildOfKind(D,109,A))}),e.isFunctionBlock(f)&&e.forEachReturnStatement(f,function(D){P.push(e.findChildOfKind(D,105,A))}),P}}function ie(ee,A){var f=e.getContainingFunction(ee);if(!!f){var P=[];return e.forEachReturnStatement(e.cast(f.body,e.isBlock),function(D){P.push(e.findChildOfKind(D,105,A))}),e.forEach(F(f.body),function(D){P.push(e.findChildOfKind(D,109,A))}),P}}function _e(ee){var A=e.getContainingFunction(ee);if(!!A){var f=[];return A.modifiers&&A.modifiers.forEach(function(P){E(f,P,131)}),e.forEachChild(A,function(P){Z(P,function(D){e.isAwaitExpression(D)&&E(f,D.getFirstToken(),132)})}),f}}function Y(ee){var A=e.getContainingFunction(ee);if(!!A){var f=[];return e.forEachChild(A,function(P){Z(P,function(D){e.isYieldExpression(D)&&E(f,D.getFirstToken(),125)})}),f}}function Z(ee,A){A(ee),!e.isFunctionLike(ee)&&!e.isClassLike(ee)&&!e.isInterfaceDeclaration(ee)&&!e.isModuleDeclaration(ee)&&!e.isTypeAliasDeclaration(ee)&&!e.isTypeNode(ee)&&e.forEachChild(ee,function(f){return Z(f,A)})}function k(ee,A){for(var f=I(ee,A),P=[],D=0;D<f.length;D++){if(f[D].kind===91&&D<f.length-1){for(var l=f[D],_=f[D+1],J=!0,w=_.getStart(A)-1;w>=l.end;w--)if(!e.isWhiteSpaceSingleLine(A.text.charCodeAt(w))){J=!1;break}if(J){P.push({fileName:A.fileName,textSpan:e.createTextSpanFromBounds(l.getStart(),_.end),kind:"reference"}),D++;continue}}P.push(W(f[D],A))}return P}function I(ee,A){for(var f=[];e.isIfStatement(ee.parent)&&ee.parent.elseStatement===ee;)ee=ee.parent;for(;;){var P=ee.getChildren(A);E(f,P[0],99);for(var D=P.length-1;D>=0&&!E(f,P[D],91);D--);if(!ee.elseStatement||!e.isIfStatement(ee.elseStatement))break;ee=ee.elseStatement}return f}function ne(ee,A){return!!e.findAncestor(ee.parent,function(f){return e.isLabeledStatement(f)?f.label.escapedText===A:"quit"})}})(a=e.DocumentHighlights||(e.DocumentHighlights={}))})(Pe||(Pe={}));var Pe;(function(e){function a(N){return!!N.sourceFile}function O(N,Q){return L(N,Q)}e.createDocumentRegistry=O;function L(N,Q,pe){Q===void 0&&(Q="");var F=new e.Map,g=e.createGetCanonicalFileName(!!N);function S(){var M=e.arrayFrom(F.keys()).filter(function(x){return x&&x.charAt(0)==="_"}).map(function(x){var ie=F.get(x),_e=[];return ie.forEach(function(Y,Z){a(Y)?_e.push({name:Z,scriptKind:Y.sourceFile.scriptKind,refCount:Y.languageServiceRefCount}):Y.forEach(function(k,I){return _e.push({name:Z,scriptKind:I,refCount:k.languageServiceRefCount})})}),_e.sort(function(Y,Z){return Z.refCount-Y.refCount}),{bucket:x,sourceFiles:_e}});return JSON.stringify(M,void 0,2)}function H(M,x,ie,_e,Y){var Z=e.toPath(M,Q,g),k=W(x);return se(M,Z,x,k,ie,_e,Y)}function se(M,x,ie,_e,Y,Z,k){return E(M,x,ie,_e,Y,Z,!0,k)}function p(M,x,ie,_e,Y){var Z=e.toPath(M,Q,g),k=W(x);return C(M,Z,x,k,ie,_e,Y)}function C(M,x,ie,_e,Y,Z,k){return E(M,x,ie,_e,Y,Z,!1,k)}function G(M,x){var ie=a(M)?M:M.get(e.Debug.checkDefined(x,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(x===void 0||!ie||ie.sourceFile.scriptKind===x,"Script kind should match provided ScriptKind:".concat(x," and sourceFile.scriptKind: ").concat(ie==null?void 0:ie.sourceFile.scriptKind,", !entry: ").concat(!ie)),ie}function E(M,x,ie,_e,Y,Z,k,I){I=e.ensureScriptKind(M,I);var ne=I===6?100:e.getEmitScriptTarget(ie),ee=F.size,A=e.getOrUpdate(F,_e,function(){return new e.Map});if(e.tracing){F.size>ee&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:ie.configFilePath,key:_e});var f=!e.fileExtensionIs(x,".d.ts")&&e.forEachEntry(F,function(J,w){return w!==_e&&J.has(x)&&w});f&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:x,key1:f,key2:_e})}var P=A.get(x),D=P&&G(P,I);if(!D&&pe){var l=pe.getDocument(_e,x);l&&(e.Debug.assert(k),D={sourceFile:l,languageServiceRefCount:0},_())}if(D)D.sourceFile.version!==Z&&(D.sourceFile=e.updateLanguageServiceSourceFile(D.sourceFile,Y,Z,Y.getChangeRange(D.sourceFile.scriptSnapshot)),pe&&pe.setDocument(_e,x,D.sourceFile)),k&&D.languageServiceRefCount++;else{var l=e.createLanguageServiceSourceFile(M,Y,ne,Z,!1,I);pe&&pe.setDocument(_e,x,l),D={sourceFile:l,languageServiceRefCount:1},_()}return e.Debug.assert(D.languageServiceRefCount!==0),D.sourceFile;function _(){if(!P)A.set(x,D);else if(a(P)){var J=new e.Map;J.set(P.sourceFile.scriptKind,P),J.set(I,D),A.set(x,J)}else P.set(I,D)}}function ue(M,x,ie){var _e=e.toPath(M,Q,g),Y=W(x);return B(_e,Y,ie)}function B(M,x,ie){var _e=e.Debug.checkDefined(F.get(x)),Y=_e.get(M),Z=G(Y,ie);Z.languageServiceRefCount--,e.Debug.assert(Z.languageServiceRefCount>=0),Z.languageServiceRefCount===0&&(a(Y)?_e.delete(M):(Y.delete(ie),Y.size===1&&_e.set(M,e.firstDefinedIterator(Y.values(),e.identity))))}function re(M,x){return e.arrayFrom(F.entries(),function(ie){var _e=ie[0],Y=ie[1],Z=Y.get(M),k=Z&&G(Z,x);return[_e,k&&k.languageServiceRefCount]})}return{acquireDocument:H,acquireDocumentWithKey:se,updateDocument:p,updateDocumentWithKey:C,releaseDocument:ue,releaseDocumentWithKey:B,getLanguageServiceRefCounts:re,reportStats:S,getKeyForCompilationSettings:W}}e.createDocumentRegistryInternal=L;function W(N){return e.sourceFileAffectingCompilerOptions.map(function(Q){return e.getCompilerOptionValue(N,Q)}).join("|")}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(_e,Y,Z,k){var I=S(_e,Z,k);return function(ne,ee,A){var f=Q(_e,Y,I,ee,Z,k),P=f.directImports,D=f.indirectUsers;return Ve({indirectUsers:D},pe(P,ne,ee.exportKind,Z,A))}}O.createImportTracker=L;var W;(function(_e){_e[_e.Named=0]="Named",_e[_e.Default=1]="Default",_e[_e.ExportEquals=2]="ExportEquals"})(W=O.ExportKind||(O.ExportKind={}));var N;(function(_e){_e[_e.Import=0]="Import",_e[_e.Export=1]="Export"})(N=O.ImportExport||(O.ImportExport={}));function Q(_e,Y,Z,k,I,ne){var ee=k.exportingModuleSymbol,A=k.exportKind,f=e.nodeSeenTracker(),P=e.nodeSeenTracker(),D=[],l=!!ee.globalExports,_=l?void 0:[];return w(ee),{directImports:D,indirectUsers:J()};function J(){if(l)return _e;if(ee.declarations)for(var ve=0,ce=ee.declarations;ve<ce.length;ve++){var m=ce[ve];e.isExternalModuleAugmentation(m)&&Y.has(m.getSourceFile().fileName)&&y(m)}return _.map(e.getSourceFileOfNode)}function w(ve){var ce=oe(ve);if(ce)for(var m=0,de=ce;m<de.length;m++){var ae=de[m];if(!!f(ae))switch(ne&&ne.throwIfCancellationRequested(),ae.kind){case 207:if(e.isImportCall(ae)){j(ae);break}if(!l){var V=ae.parent;if(A===2&&V.kind===253){var le=V.name;if(le.kind===79){D.push(le);break}}}break;case 79:break;case 264:z(ae,ae.name,e.hasSyntacticModifier(ae,1),!1);break;case 265:D.push(ae);var ke=ae.importClause&&ae.importClause.namedBindings;ke&&ke.kind===267?z(ae,ke.name,!1,!0):!l&&e.isDefaultImport(ae)&&y(M(ae));break;case 271:ae.exportClause?ae.exportClause.kind===273?y(M(ae),!0):D.push(ae):w(re(ae,I));break;case 199:ae.isTypeOf&&!ae.qualifier&&U(ae)&&y(ae.getSourceFile(),!0),D.push(ae);break;default:e.Debug.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(ve){var ce=e.findAncestor(ve,x)||ve.getSourceFile();y(ce,!!U(ve,!0))}function U(ve,ce){return ce===void 0&&(ce=!1),e.findAncestor(ve,function(m){return ce&&x(m)?"quit":e.some(m.modifiers,function(de){return de.kind===93})})}function z(ve,ce,m,de){if(A===2)de||D.push(ve);else if(!l){var ae=M(ve);e.Debug.assert(ae.kind===303||ae.kind===260),m||F(ae,ce,I)?y(ae,!0):y(ae)}}function y(ve,ce){ce===void 0&&(ce=!1),e.Debug.assert(!l);var m=P(ve);if(!!m&&(_.push(ve),!!ce)){var de=I.getMergedSymbol(ve.symbol);if(!!de){e.Debug.assert(!!(de.flags&1536));var ae=oe(de);if(ae)for(var V=0,le=ae;V<le.length;V++){var ke=le[V];e.isImportTypeNode(ke)||y(M(ke),!0)}}}}function oe(ve){return Z.get(e.getSymbolId(ve).toString())}}function pe(_e,Y,Z,k,I){var ne=[],ee=[];function A(j,U){ne.push([j,U])}if(_e)for(var f=0,P=_e;f<P.length;f++){var D=P[f];l(D)}return{importSearches:ne,singleReferences:ee};function l(j){if(j.kind===264){ie(j)&&_(j.name);return}if(j.kind===79){_(j);return}if(j.kind===199){if(j.qualifier){var U=e.getFirstIdentifier(j.qualifier);U.escapedText===e.symbolName(Y)&&ee.push(U)}else Z===2&&ee.push(j.argument.literal);return}if(j.moduleSpecifier.kind===10){if(j.kind===271){j.exportClause&&e.isNamedExports(j.exportClause)&&J(j.exportClause);return}var z=j.importClause||{name:void 0,namedBindings:void 0},y=z.name,oe=z.namedBindings;if(oe)switch(oe.kind){case 267:_(oe.name);break;case 268:(Z===0||Z===1)&&J(oe);break;default:e.Debug.assertNever(oe)}if(y&&(Z===1||Z===2)&&(!I||y.escapedText===e.symbolEscapedNameNoDefault(Y))){var ve=k.getSymbolAtLocation(y);A(y,ve)}}}function _(j){Z===2&&(!I||w(j.escapedText))&&A(j,k.getSymbolAtLocation(j))}function J(j){if(!!j)for(var U=0,z=j.elements;U<z.length;U++){var y=z[U],oe=y.name,ve=y.propertyName;if(!!w((ve||oe).escapedText))if(ve)ee.push(ve),(!I||oe.escapedText===Y.escapedName)&&A(oe,k.getSymbolAtLocation(oe));else{var ce=y.kind===274&&y.propertyName?k.getExportSpecifierLocalTargetSymbol(y):k.getSymbolAtLocation(oe);A(oe,ce)}}}function w(j){return j===Y.escapedName||Z!==0&&j==="default"}}function F(_e,Y,Z){var k=Z.getSymbolAtLocation(Y);return!!H(_e,function(I){if(!!e.isExportDeclaration(I)){var ne=I.exportClause,ee=I.moduleSpecifier;return!ee&&ne&&e.isNamedExports(ne)&&ne.elements.some(function(A){return Z.getExportSpecifierLocalTargetSymbol(A)===k})}})}function g(_e,Y,Z){for(var k=[],I=_e.getTypeChecker(),ne=0,ee=Y;ne<ee.length;ne++){var A=ee[ne],f=Z.valueDeclaration;if((f==null?void 0:f.kind)===303){for(var P=0,D=A.referencedFiles;P<D.length;P++){var l=D[P];_e.getSourceFileFromReference(A,l)===f&&k.push({kind:"reference",referencingFile:A,ref:l})}for(var _=0,J=A.typeReferenceDirectives;_<J.length;_++){var l=J[_],w=_e.getResolvedTypeReferenceDirectives().get(l.fileName);w!==void 0&&w.resolvedFileName===f.fileName&&k.push({kind:"reference",referencingFile:A,ref:l})}}se(A,function(j,U){var z=I.getSymbolAtLocation(U);z===Z&&k.push({kind:"import",literal:U})})}return k}O.findModuleReferences=g;function S(_e,Y,Z){for(var k=new e.Map,I=0,ne=_e;I<ne.length;I++){var ee=ne[I];Z&&Z.throwIfCancellationRequested(),se(ee,function(A,f){var P=Y.getSymbolAtLocation(f);if(P){var D=e.getSymbolId(P).toString(),l=k.get(D);l||k.set(D,l=[]),l.push(A)}})}return k}function H(_e,Y){return e.forEach(_e.kind===303?_e.statements:_e.body.statements,function(Z){return Y(Z)||x(Z)&&e.forEach(Z.body&&Z.body.statements,Y)})}function se(_e,Y){if(_e.externalModuleIndicator||_e.imports!==void 0)for(var Z=0,k=_e.imports;Z<k.length;Z++){var I=k[Z];Y(e.importFromModuleSpecifier(I),I)}else H(_e,function(ne){switch(ne.kind){case 271:case 265:{var ee=ne;ee.moduleSpecifier&&e.isStringLiteral(ee.moduleSpecifier)&&Y(ee,ee.moduleSpecifier);break}case 264:{var ee=ne;ie(ee)&&Y(ee,ee.moduleReference.expression);break}}})}function p(_e,Y,Z,k){return k?I():I()||ne();function I(){var f,P=_e.parent,D=P.parent;if(Y.exportSymbol)return P.kind===205?((f=Y.declarations)===null||f===void 0?void 0:f.some(function(j){return j===P}))&&e.isBinaryExpression(D)?w(D,!1):void 0:ee(Y.exportSymbol,A(P));var l=G(P,_e);if(l&&e.hasSyntacticModifier(l,1))if(e.isImportEqualsDeclaration(l)&&l.moduleReference===_e){if(k)return;var _=Z.getSymbolAtLocation(l.name);return{kind:0,symbol:_}}else return ee(Y,A(l));else{if(e.isNamespaceExport(P))return ee(Y,0);if(e.isExportAssignment(P))return J(P);if(e.isExportAssignment(D))return J(D);if(e.isBinaryExpression(P))return w(P,!0);if(e.isBinaryExpression(D))return w(D,!0);if(e.isJSDocTypedefTag(P))return ee(Y,0)}function J(j){if(!!j.symbol.parent){var U=j.isExportEquals?2:1;return{kind:1,symbol:Y,exportInfo:{exportingModuleSymbol:j.symbol.parent,exportKind:U}}}}function w(j,U){var z;switch(e.getAssignmentDeclarationKind(j)){case 1:z=0;break;case 2:z=2;break;default:return}var y=U?Z.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(j.left,e.isAccessExpression))):Y;return y&&ee(y,z)}}function ne(){var f=E(_e);if(!!f){var P=Z.getImmediateAliasedSymbol(Y);if(!!P){P=B(P,Z),P.escapedName==="export="&&(P=C(P,Z));var D=e.symbolEscapedNameNoDefault(P);if(D===void 0||D==="default"||D===Y.escapedName)return{kind:0,symbol:P}}}}function ee(f,P){var D=ue(f,P,Z);return D&&{kind:1,symbol:f,exportInfo:D}}function A(f){return e.hasSyntacticModifier(f,512)?1:0}}O.getImportOrExportSymbol=p;function C(_e,Y){if(_e.flags&2097152)return e.Debug.checkDefined(Y.getImmediateAliasedSymbol(_e));var Z=e.Debug.checkDefined(_e.valueDeclaration);return e.isExportAssignment(Z)?e.Debug.checkDefined(Z.expression.symbol):e.isBinaryExpression(Z)?e.Debug.checkDefined(Z.right.symbol):e.isSourceFile(Z)?e.Debug.checkDefined(Z.symbol):e.Debug.fail()}function G(_e,Y){var Z=e.isVariableDeclaration(_e)?_e:e.isBindingElement(_e)?e.walkUpBindingElementsAndPatterns(_e):void 0;return Z?_e.name!==Y||e.isCatchClause(Z.parent)?void 0:e.isVariableStatement(Z.parent.parent)?Z.parent.parent:void 0:_e}function E(_e){var Y=_e.parent;switch(Y.kind){case 264:return Y.name===_e&&ie(Y);case 269:return!Y.propertyName;case 266:case 267:return e.Debug.assert(Y.name===_e),!0;case 202:return e.isInJSFile(_e)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Y);default:return!1}}function ue(_e,Y,Z){var k=_e.parent;if(!!k){var I=Z.getMergedSymbol(k);return e.isExternalModuleSymbol(I)?{exportingModuleSymbol:I,exportKind:Y}:void 0}}O.getExportInfo=ue;function B(_e,Y){if(_e.declarations)for(var Z=0,k=_e.declarations;Z<k.length;Z++){var I=k[Z];if(e.isExportSpecifier(I)&&!I.propertyName&&!I.parent.parent.moduleSpecifier)return Y.getExportSpecifierLocalTargetSymbol(I);if(e.isPropertyAccessExpression(I)&&e.isModuleExportsAccessExpression(I.expression)&&!e.isPrivateIdentifier(I.name))return Y.getSymbolAtLocation(I);if(e.isShorthandPropertyAssignment(I)&&e.isBinaryExpression(I.parent.parent)&&e.getAssignmentDeclarationKind(I.parent.parent)===2)return Y.getExportSpecifierLocalTargetSymbol(I.name)}return _e}function re(_e,Y){return Y.getMergedSymbol(M(_e).symbol)}function M(_e){if(_e.kind===207)return _e.getSourceFile();var Y=_e.parent;return Y.kind===303?Y:(e.Debug.assert(Y.kind===261),e.cast(Y.parent,x))}function x(_e){return _e.kind===260&&_e.name.kind===10}function ie(_e){return _e.moduleReference.kind===276&&_e.moduleReference.expression.kind===10}})(a=e.FindAllReferences||(e.FindAllReferences={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(D){D[D.Symbol=0]="Symbol",D[D.Label=1]="Label",D[D.Keyword=2]="Keyword",D[D.This=3]="This",D[D.String=4]="String",D[D.TripleSlashReference=5]="TripleSlashReference"})(L=O.DefinitionKind||(O.DefinitionKind={}));var W;(function(D){D[D.Span=0]="Span",D[D.Node=1]="Node",D[D.StringLiteral=2]="StringLiteral",D[D.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",D[D.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(W=O.EntryKind||(O.EntryKind={}));function N(D,l){return l===void 0&&(l=1),{kind:l,node:D.name||D,context:pe(D)}}O.nodeEntry=N;function Q(D){return D&&D.kind===void 0}O.isContextWithStartAndEndNode=Q;function pe(D){if(e.isDeclaration(D))return F(D);if(!!D.parent){if(!e.isDeclaration(D.parent)&&!e.isExportAssignment(D.parent)){if(e.isInJSFile(D)){var l=e.isBinaryExpression(D.parent)?D.parent:e.isAccessExpression(D.parent)&&e.isBinaryExpression(D.parent.parent)&&D.parent.parent.left===D.parent?D.parent.parent:void 0;if(l&&e.getAssignmentDeclarationKind(l)!==0)return F(l)}if(e.isJsxOpeningElement(D.parent)||e.isJsxClosingElement(D.parent))return D.parent.parent;if(e.isJsxSelfClosingElement(D.parent)||e.isLabeledStatement(D.parent)||e.isBreakOrContinueStatement(D.parent))return D.parent;if(e.isStringLiteralLike(D)){var _=e.tryGetImportFromModuleSpecifier(D);if(_){var J=e.findAncestor(_,function(j){return e.isDeclaration(j)||e.isStatement(j)||e.isJSDocTag(j)});return e.isDeclaration(J)?F(J):J}}var w=e.findAncestor(D,e.isComputedPropertyName);return w?F(w.parent):void 0}if(D.parent.name===D||e.isConstructorDeclaration(D.parent)||e.isExportAssignment(D.parent)||(e.isImportOrExportSpecifier(D.parent)||e.isBindingElement(D.parent))&&D.parent.propertyName===D||D.kind===88&&e.hasSyntacticModifier(D.parent,513))return F(D.parent)}}function F(D){if(!!D)switch(D.kind){case 253:return!e.isVariableDeclarationList(D.parent)||D.parent.declarations.length!==1?D:e.isVariableStatement(D.parent.parent)?D.parent.parent:e.isForInOrOfStatement(D.parent.parent)?F(D.parent.parent):D.parent;case 202:return F(D.parent.parent);case 269:return D.parent.parent.parent;case 274:case 267:return D.parent.parent;case 266:case 273:return D.parent;case 220:return e.isExpressionStatement(D.parent)?D.parent:D;case 243:case 242:return{start:D.initializer,end:D.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)?F(e.findAncestor(D.parent,function(l){return e.isBinaryExpression(l)||e.isForInOrOfStatement(l)})):D;default:return D}}O.getContextNode=F;function g(D,l,_){if(!!_){var J=Q(_)?I(_.start,l,_.end):I(_,l);return J.start!==D.start||J.length!==D.length?{contextSpan:J}:void 0}}O.toContextSpan=g;var S;(function(D){D[D.Other=0]="Other",D[D.References=1]="References",D[D.Rename=2]="Rename"})(S=O.FindReferencesUse||(O.FindReferencesUse={}));function H(D,l,_,J,w){var j=e.getTouchingPropertyName(J,w),U=P.getReferencedSymbolsForNode(w,j,D,_,l,{use:1}),z=D.getTypeChecker(),y=z.getSymbolAtLocation(j);return!U||!U.length?void 0:e.mapDefined(U,function(oe){var ve=oe.definition,ce=oe.references;return ve&&{definition:z.runWithCancellationToken(l,function(m){return ue(ve,m,j)}),references:ce.map(function(m){return x(m,y)})}})}O.findReferencedSymbols=H;function se(D,l,_,J,w){var j=e.getTouchingPropertyName(J,w),U,z=p(D,l,_,j,w);if(j.parent.kind===205||j.parent.kind===202||j.parent.kind===206||j.kind===106)U=z&&qe([],z,!0);else for(var y=z&&qe([],z,!0),oe=new e.Map;y&&y.length;){var ve=y.shift();if(!!e.addToSeen(oe,e.getNodeId(ve.node))){U=e.append(U,ve);var ce=p(D,l,_,ve.node,ve.node.pos);ce&&y.push.apply(y,ce)}}var m=D.getTypeChecker();return e.map(U,function(de){return Y(de,m)})}O.getImplementationsAtPosition=se;function p(D,l,_,J,w){if(J.kind!==303){var j=D.getTypeChecker();if(J.parent.kind===295){var U=[];return P.getReferenceEntriesForShorthandPropertyAssignment(J,j,function(y){return U.push(N(y))}),U}else if(J.kind===106||e.isSuperProperty(J.parent)){var z=j.getSymbolAtLocation(J);return z.valueDeclaration&&[N(z.valueDeclaration)]}else return G(w,J,D,_,l,{implementations:!0,use:1})}}function C(D,l,_,J,w,j,U){return e.map(E(P.getReferencedSymbolsForNode(w,J,D,_,l,j)),function(z){return U(z,J,D.getTypeChecker())})}O.findReferenceOrRenameEntries=C;function G(D,l,_,J,w,j,U){return j===void 0&&(j={}),U===void 0&&(U=new e.Set(J.map(function(z){return z.fileName}))),E(P.getReferencedSymbolsForNode(D,l,_,J,w,j,U))}O.getReferenceEntriesForNode=G;function E(D){return D&&e.flatMap(D,function(l){return l.references})}function ue(D,l,_){var J=function(){switch(D.type){case 0:{var ve=D.symbol,ce=re(ve,l,_),m=ce.displayParts,de=ce.kind,ae=m.map(function(He){return He.text}).join(""),V=ve.declarations&&e.firstOrUndefined(ve.declarations),le=V?e.getNameOfDeclaration(V)||V:_;return Ve(Ve({},B(le)),{name:ae,kind:de,displayParts:m,context:F(V)})}case 1:{var le=D.node;return Ve(Ve({},B(le)),{name:le.text,kind:"label",displayParts:[e.displayPart(le.text,e.SymbolDisplayPartKind.text)]})}case 2:{var le=D.node,ke=e.tokenToString(le.kind);return Ve(Ve({},B(le)),{name:ke,kind:"keyword",displayParts:[{text:ke,kind:"keyword"}]})}case 3:{var le=D.node,ve=l.getSymbolAtLocation(le),Ue=ve&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(l,ve,le.getSourceFile(),e.getContainerNode(le),le).displayParts||[e.textPart("this")];return Ve(Ve({},B(le)),{name:"this",kind:"var",displayParts:Ue})}case 4:{var le=D.node;return Ve(Ve({},B(le)),{name:le.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(le),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(D.reference),sourceFile:D.file,name:D.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(D.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(D)}}(),w=J.sourceFile,j=J.textSpan,U=J.name,z=J.kind,y=J.displayParts,oe=J.context;return Ve({containerKind:"",containerName:"",fileName:w.fileName,kind:z,name:U,textSpan:j,displayParts:y},g(j,w,oe))}function B(D){var l=D.getSourceFile();return{sourceFile:l,textSpan:I(e.isComputedPropertyName(D)?D.expression:D,l)}}function re(D,l,_){var J=P.getIntersectingMeaningFromDeclarations(_,D),w=D.declarations&&e.firstOrUndefined(D.declarations)||_,j=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(l,D,w.getSourceFile(),w,w,J),U=j.displayParts,z=j.symbolKind;return{displayParts:U,kind:z}}function M(D,l,_,J){return Ve(Ve({},ie(D)),J&&_e(D,l,_))}O.toRenameLocation=M;function x(D,l){var _=ie(D);if(D.kind===0)return Ve(Ve({},_),{isWriteAccess:!1,isDefinition:!1});var J=D.kind,w=D.node;return Ve(Ve({},_),{isWriteAccess:ee(w),isDefinition:A(w,l),isInString:J===2?!0:void 0})}O.toReferenceEntry=x;function ie(D){if(D.kind===0)return{textSpan:D.textSpan,fileName:D.fileName};var l=D.node.getSourceFile(),_=I(D.node,l);return Ve({textSpan:_,fileName:l.fileName},g(_,l,D.context))}function _e(D,l,_){if(D.kind!==0&&e.isIdentifier(l)){var J=D.node,w=D.kind,j=J.parent,U=l.text,z=e.isShorthandPropertyAssignment(j);if(z||e.isObjectBindingElementWithoutPropertyName(j)&&j.name===J&&j.dotDotDotToken===void 0){var y={prefixText:U+": "},oe={suffixText:": "+U};if(w===3)return y;if(w===4)return oe;if(z){var ve=j.parent;return e.isObjectLiteralExpression(ve)&&e.isBinaryExpression(ve.parent)&&e.isModuleExportsAccessExpression(ve.parent.left)?y:oe}else return y}else if(e.isImportSpecifier(j)&&!j.propertyName){var ce=e.isExportSpecifier(l.parent)?_.getExportSpecifierLocalTargetSymbol(l.parent):_.getSymbolAtLocation(l);return e.contains(ce.declarations,j)?{prefixText:U+" as "}:e.emptyOptions}else if(e.isExportSpecifier(j)&&!j.propertyName)return l===D.node||_.getSymbolAtLocation(l)===_.getSymbolAtLocation(D.node)?{prefixText:U+" as "}:{suffixText:" as "+U}}return e.emptyOptions}function Y(D,l){var _=ie(D);if(D.kind!==0){var J=D.node;return Ve(Ve({},_),Z(J,l))}else return Ve(Ve({},_),{kind:"",displayParts:[]})}function Z(D,l){var _=l.getSymbolAtLocation(e.isDeclaration(D)&&D.name?D.name:D);return _?re(_,l,D):D.kind===204?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:D.kind===225?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(D),displayParts:[]}}function k(D){var l=ie(D);if(D.kind===0)return{fileName:l.fileName,span:{textSpan:l.textSpan,kind:"reference"}};var _=ee(D.node),J=Ve({textSpan:l.textSpan,kind:_?"writtenReference":"reference",isInString:D.kind===2?!0:void 0},l.contextSpan&&{contextSpan:l.contextSpan});return{fileName:l.fileName,span:J}}O.toHighlightSpan=k;function I(D,l,_){var J=D.getStart(l),w=(_||D).getEnd();return e.isStringLiteralLike(D)&&w-J>2&&(e.Debug.assert(_===void 0),J+=1,w-=1),e.createTextSpanFromBounds(J,w)}function ne(D){return D.kind===0?D.textSpan:I(D.node,D.node.getSourceFile())}O.getTextSpanOfEntry=ne;function ee(D){var l=e.getDeclarationFromName(D);return!!l&&f(l)||D.kind===88||e.isWriteAccess(D)}function A(D,l){var _;if(!l)return!1;var J=e.getDeclarationFromName(D)||(D.kind===88?D.parent:e.isLiteralComputedPropertyDeclarationName(D)||D.kind===134&&e.isConstructorDeclaration(D.parent)?D.parent.parent:void 0),w=J&&e.isBinaryExpression(J)?J.left:void 0;return!!(J&&((_=l.declarations)===null||_===void 0?void 0:_.some(function(j){return j===J||j===w})))}function f(D){if(D.flags&8388608)return!0;switch(D.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!D.body;case 253:case 166:return!!D.initializer||e.isCatchClause(D.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(D)}}var P;(function(D){function l(v,xe,ze,Je,Oe,Fr,Xr){var Or,We;if(Fr===void 0&&(Fr={}),Xr===void 0&&(Xr=new e.Set(Je.map(function(Rt){return Rt.fileName}))),Fr.use===1?xe=e.getAdjustedReferenceLocation(xe):Fr.use===2&&(xe=e.getAdjustedRenameLocation(xe)),e.isSourceFile(xe)){var mr=e.GoToDefinition.getReferenceAtPosition(xe,v,ze);if(!(mr!=null&&mr.file))return;var Nr=ze.getTypeChecker().getMergedSymbol(mr.file.symbol);if(Nr)return y(ze,Nr,!1,Je,Xr);var Ur=ze.getFileIncludeReasons();return Ur?[{definition:{type:5,reference:mr.reference,file:xe},references:J(mr.file,Ur,ze)||e.emptyArray}]:void 0}if(!Fr.implementations){var si=ve(xe,Je,Oe);if(si)return si}var mi=ze.getTypeChecker(),Ti=mi.getSymbolAtLocation(e.isConstructorDeclaration(xe)&&xe.parent.name||xe);if(!Ti){if(!Fr.implementations&&e.isStringLiteralLike(xe)){if(e.isModuleSpecifierLike(xe)){var Ur=ze.getFileIncludeReasons(),hi=(We=(Or=xe.getSourceFile().resolvedModules)===null||Or===void 0?void 0:Or.get(xe.text,e.getModeForUsageLocation(xe.getSourceFile(),xe)))===null||We===void 0?void 0:We.resolvedFileName,ki=hi?ze.getSourceFile(hi):void 0;if(ki)return[{definition:{type:4,node:xe},references:J(ki,Ur,ze)||e.emptyArray}]}return bt(xe,Je,mi,Oe)}return}if(Ti.escapedName==="export=")return y(ze,Ti.parent,!1,Je,Xr);var Ui=j(Ti,ze,Je,Oe,Fr,Xr);if(Ui&&!(Ti.flags&33554432))return Ui;var zi=w(xe,Ti,mi),ri=zi&&j(zi,ze,Je,Oe,Fr,Xr),Gi=ce(Ti,xe,Je,Xr,mi,Oe,Fr);return U(ze,Ui,Gi,ri)}D.getReferencedSymbolsForNode=l;function _(v,xe,ze,Je){var Oe,Fr;Je===void 0&&(Je=new e.Set(ze.map(function(mr){return mr.fileName})));var Xr=(Oe=xe.getSourceFile(v))===null||Oe===void 0?void 0:Oe.symbol;if(Xr)return((Fr=y(xe,Xr,!1,ze,Je)[0])===null||Fr===void 0?void 0:Fr.references)||e.emptyArray;var Or=xe.getFileIncludeReasons(),We=xe.getSourceFile(v);return We&&Or&&J(We,Or,xe)||e.emptyArray}D.getReferencesForFileName=_;function J(v,xe,ze){for(var Je,Oe=xe.get(v.path)||e.emptyArray,Fr=0,Xr=Oe;Fr<Xr.length;Fr++){var Or=Xr[Fr];if(e.isReferencedFile(Or)){var We=ze.getSourceFileByPath(Or.file),mr=e.getReferencedFileLocation(ze.getSourceFileByPath,Or);e.isReferenceFileLocation(mr)&&(Je=e.append(Je,{kind:0,fileName:We.fileName,textSpan:e.createTextSpanFromRange(mr)}))}}return Je}function w(v,xe,ze){if(v.parent&&e.isNamespaceExportDeclaration(v.parent)){var Je=ze.getAliasedSymbol(xe),Oe=ze.getMergedSymbol(Je);if(Je!==Oe)return Oe}}function j(v,xe,ze,Je,Oe,Fr){var Xr=v.flags&1536&&v.declarations&&e.find(v.declarations,e.isSourceFile);if(!!Xr){var Or=v.exports.get("export="),We=y(xe,v,!!Or,ze,Fr);if(!Or||!Fr.has(Xr.fileName))return We;var mr=xe.getTypeChecker();return v=e.skipAlias(Or,mr),U(xe,We,ce(v,void 0,ze,Fr,mr,Je,Oe))}}function U(v){for(var xe=[],ze=1;ze<arguments.length;ze++)xe[ze-1]=arguments[ze];for(var Je,Oe=0,Fr=xe;Oe<Fr.length;Oe++){var Xr=Fr[Oe];if(!(!Xr||!Xr.length)){if(!Je){Je=Xr;continue}for(var Or=function(Ur){if(!Ur.definition||Ur.definition.type!==0)return Je.push(Ur),"continue";var si=Ur.definition.symbol,mi=e.findIndex(Je,function(hi){return!!hi.definition&&hi.definition.type===0&&hi.definition.symbol===si});if(mi===-1)return Je.push(Ur),"continue";var Ti=Je[mi];Je[mi]={definition:Ti.definition,references:Ti.references.concat(Ur.references).sort(function(hi,ki){var Ui=z(v,hi),zi=z(v,ki);if(Ui!==zi)return e.compareValues(Ui,zi);var ri=ne(hi),Gi=ne(ki);return ri.start!==Gi.start?e.compareValues(ri.start,Gi.start):e.compareValues(ri.length,Gi.length)})}},We=0,mr=Xr;We<mr.length;We++){var Nr=mr[We];Or(Nr)}}}return Je}function z(v,xe){var ze=xe.kind===0?v.getSourceFile(xe.fileName):xe.node.getSourceFile();return v.getSourceFiles().indexOf(ze)}function y(v,xe,ze,Je,Oe){e.Debug.assert(!!xe.valueDeclaration);var Fr=e.mapDefined(O.findModuleReferences(v,Je,xe),function(Ti){if(Ti.kind==="import"){var hi=Ti.literal.parent;if(e.isLiteralTypeNode(hi)){var ki=e.cast(hi.parent,e.isImportTypeNode);if(ze&&!ki.qualifier)return}return N(Ti.literal)}else return{kind:0,fileName:Ti.referencingFile.fileName,textSpan:e.createTextSpanFromRange(Ti.ref)}});if(xe.declarations)for(var Xr=0,Or=xe.declarations;Xr<Or.length;Xr++){var We=Or[Xr];switch(We.kind){case 303:break;case 260:Oe.has(We.getSourceFile().fileName)&&Fr.push(N(We.name));break;default:e.Debug.assert(!!(xe.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var mr=xe.exports.get("export=");if(mr!=null&&mr.declarations)for(var Nr=0,Ur=mr.declarations;Nr<Ur.length;Nr++){var We=Ur[Nr],si=We.getSourceFile();if(Oe.has(si.fileName)){var mi=e.isBinaryExpression(We)&&e.isPropertyAccessExpression(We.left)?We.left.expression:e.isExportAssignment(We)?e.Debug.checkDefined(e.findChildOfKind(We,93,si)):e.getNameOfDeclaration(We)||We;Fr.push(N(mi))}}return Fr.length?[{definition:{type:0,symbol:xe},references:Fr}]:e.emptyArray}function oe(v){return v.kind===144&&e.isTypeOperatorNode(v.parent)&&v.parent.operator===144}function ve(v,xe,ze){if(e.isTypeKeyword(v.kind))return v.kind===114&&e.isVoidExpression(v.parent)||v.kind===144&&!oe(v)?void 0:ur(xe,v.kind,ze,v.kind===144?oe:void 0);if(e.isStaticModifier(v)&&e.isClassStaticBlockDeclaration(v.parent))return[{definition:{type:2,node:v},references:[N(v)]}];if(e.isJumpStatementTarget(v)){var Je=e.getTargetLabel(v.parent,v.text);return Je&&Fe(Je.parent,Je)}else if(e.isLabelOfLabeledStatement(v))return Fe(v.parent,v);if(e.isThis(v))return ft(v,xe,ze);if(v.kind===106)return Si(v)}function ce(v,xe,ze,Je,Oe,Fr,Xr){var Or=xe&&ae(v,xe,Oe,!Me(Xr))||v,We=xe?Ye(xe,Or):7,mr=[],Nr=new ke(ze,Je,xe?de(xe):0,Oe,Fr,We,Xr,mr),Ur=!Me(Xr)||!Or.declarations?void 0:e.find(Or.declarations,e.isExportSpecifier);if(Ur)n(Ur.name,Or,Ur,Nr.createSearch(xe,v,void 0),Nr,!0,!0);else if(xe&&xe.kind===88&&Or.escapedName==="default"&&Or.parent)Le(xe,Or,Nr),Ue(xe,Or,{exportingModuleSymbol:Or.parent,exportKind:1},Nr);else{var si=Nr.createSearch(xe,Or,void 0,{allSearchSymbols:xe?aa(Or,xe,Oe,Xr.use===2,!!Xr.providePrefixAndSuffixTextForRename,!!Xr.implementations):[Or]});m(Or,Nr,si)}return mr}function m(v,xe,ze){var Je=er(v);if(Je)dr(Je,Je.getSourceFile(),ze,xe,!(e.isSourceFile(Je)&&!e.contains(xe.sourceFiles,Je)));else for(var Oe=0,Fr=xe.sourceFiles;Oe<Fr.length;Oe++){var Xr=Fr[Oe];xe.cancellationToken.throwIfCancellationRequested(),me(Xr,ze,xe)}}function de(v){switch(v.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(v.parent))return e.Debug.assert(v.parent.name===v),2;default:return 0}}function ae(v,xe,ze,Je){var Oe=xe.parent;return e.isExportSpecifier(Oe)&&Je?Er(xe,v,Oe,ze):e.firstDefined(v.declarations,function(Fr){if(!Fr.parent){if(v.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(xe.kind),": ").concat(e.Debug.formatSymbol(v)))}return e.isTypeLiteralNode(Fr.parent)&&e.isUnionTypeNode(Fr.parent.parent)?ze.getPropertyOfType(ze.getTypeFromTypeNode(Fr.parent.parent),v.name):void 0})}var V;(function(v){v[v.None=0]="None",v[v.Constructor=1]="Constructor",v[v.Class=2]="Class"})(V||(V={}));function le(v){if(!!(v.flags&33555968)){var xe=v.declarations&&e.find(v.declarations,function(ze){return!e.isSourceFile(ze)&&!e.isModuleDeclaration(ze)});return xe&&xe.symbol}}var ke=function(){function v(xe,ze,Je,Oe,Fr,Xr,Or,We){this.sourceFiles=xe,this.sourceFilesSet=ze,this.specialSearchKind=Je,this.checker=Oe,this.cancellationToken=Fr,this.searchMeaning=Xr,this.options=Or,this.result=We,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return v.prototype.includesSourceFile=function(xe){return this.sourceFilesSet.has(xe.fileName)},v.prototype.getImportSearches=function(xe,ze){return this.importTracker||(this.importTracker=O.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(xe,ze,this.options.use===2)},v.prototype.createSearch=function(xe,ze,Je,Oe){Oe===void 0&&(Oe={});var Fr=Oe.text,Xr=Fr===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(ze)||le(ze)||ze)):Fr,Or=Oe.allSearchSymbols,We=Or===void 0?[ze]:Or,mr=e.escapeLeadingUnderscores(Xr),Nr=this.options.implementations&&xe?Dr(xe,ze,this.checker):void 0;return{symbol:ze,comingFrom:Je,text:Xr,escapedText:mr,parents:Nr,allSearchSymbols:We,includes:function(Ur){return e.contains(We,Ur)}}},v.prototype.referenceAdder=function(xe){var ze=e.getSymbolId(xe),Je=this.symbolIdToReferences[ze];return Je||(Je=this.symbolIdToReferences[ze]=[],this.result.push({definition:{type:0,symbol:xe},references:Je})),function(Oe,Fr){return Je.push(N(Oe,Fr))}},v.prototype.addStringOrCommentReference=function(xe,ze){this.result.push({definition:void 0,references:[{kind:0,fileName:xe,textSpan:ze}]})},v.prototype.markSearchedSymbols=function(xe,ze){for(var Je=e.getNodeId(xe),Oe=this.sourceFileToSeenSymbols[Je]||(this.sourceFileToSeenSymbols[Je]=new e.Set),Fr=!1,Xr=0,Or=ze;Xr<Or.length;Xr++){var We=Or[Xr];Fr=e.tryAddToSet(Oe,e.getSymbolId(We))||Fr}return Fr},v}();function Ue(v,xe,ze,Je){var Oe=Je.getImportSearches(xe,ze),Fr=Oe.importSearches,Xr=Oe.singleReferences,Or=Oe.indirectUsers;if(Xr.length)for(var We=Je.referenceAdder(xe),mr=0,Nr=Xr;mr<Nr.length;mr++){var Ur=Nr[mr];ar(Ur,Je)&&We(Ur)}for(var si=0,mi=Fr;si<mi.length;si++){var Ti=mi[si],hi=Ti[0],ki=Ti[1];Ir(hi.getSourceFile(),Je.createSearch(hi,ki,1),Je)}if(Or.length){var Ui=void 0;switch(ze.exportKind){case 0:Ui=Je.createSearch(v,xe,1);break;case 1:Ui=Je.options.use===2?void 0:Je.createSearch(v,xe,1,{text:"default"});break;case 2:break}if(Ui)for(var zi=0,ri=Or;zi<ri.length;zi++){var Gi=ri[zi];me(Gi,Ui,Je)}}}function He(v,xe,ze,Je,Oe,Fr,Xr,Or){for(var We=O.createImportTracker(v,new e.Set(v.map(function(xt){return xt.fileName})),xe,ze),mr=We(Je,{exportKind:Xr?1:0,exportingModuleSymbol:Oe},!1),Nr=mr.importSearches,Ur=mr.indirectUsers,si=0,mi=Nr;si<mi.length;si++){var Ti=mi[si][0];Or(Ti)}for(var hi=0,ki=Ur;hi<ki.length;hi++)for(var Ui=ki[hi],zi=0,ri=Se(Ui,Xr?"default":Fr);zi<ri.length;zi++){var Gi=ri[zi],Rt=xe.getSymbolAtLocation(Gi),pa=e.some(Rt==null?void 0:Rt.declarations,function(xt){return!!e.tryCast(xt,e.isExportAssignment)});e.isIdentifier(Gi)&&!e.isImportOrExportSpecifier(Gi.parent)&&(Rt===Je||pa)&&Or(Gi)}}D.eachExportReference=He;function ar(v,xe){return Br(v,xe)?xe.options.use!==2?!0:e.isIdentifier(v)?!(e.isImportOrExportSpecifier(v.parent)&&v.escapedText==="default"):!1:!1}function gr(v,xe){if(!!v.declarations)for(var ze=0,Je=v.declarations;ze<Je.length;ze++){var Oe=Je[ze],Fr=Oe.getSourceFile();Ir(Fr,xe.createSearch(Oe,v,0),xe,xe.includesSourceFile(Fr))}}function me(v,xe,ze){e.getNameTable(v).get(xe.escapedText)!==void 0&&Ir(v,xe,ze)}function Ge(v,xe){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent.parent)?xe.getPropertySymbolOfDestructuringAssignment(v):void 0}function er(v){var xe=v.declarations,ze=v.flags,Je=v.parent,Oe=v.valueDeclaration;if(Oe&&(Oe.kind===212||Oe.kind===225))return Oe;if(!!xe){if(ze&8196){var Fr=e.find(xe,function(mi){return e.hasEffectiveModifier(mi,8)||e.isPrivateIdentifierClassElementDeclaration(mi)});return Fr?e.getAncestor(Fr,256):void 0}if(!xe.some(e.isObjectBindingElementWithoutPropertyName)){var Xr=Je&&!(v.flags&262144);if(!(Xr&&!(e.isExternalModuleSymbol(Je)&&!Je.globalExports))){for(var Or,We=0,mr=xe;We<mr.length;We++){var Nr=mr[We],Ur=e.getContainerNode(Nr);if(Or&&Or!==Ur||!Ur||Ur.kind===303&&!e.isExternalOrCommonJsModule(Ur))return;if(Or=Ur,e.isFunctionExpression(Or))for(var si=void 0;si=e.getNextJSDocCommentLocation(Or);)Or=si}return Xr?Or.getSourceFile():Or}}}}function he(v,xe,ze,Je){return Je===void 0&&(Je=ze),we(v,xe,ze,function(){return!0},Je)||!1}D.isSymbolReferencedInFile=he;function we(v,xe,ze,Je,Oe){Oe===void 0&&(Oe=ze);var Fr=e.isParameterPropertyDeclaration(v.parent,v.parent.parent)?e.first(xe.getSymbolsOfParameterPropertyDeclaration(v.parent,v.text)):xe.getSymbolAtLocation(v);if(!!Fr)for(var Xr=0,Or=Se(ze,Fr.name,Oe);Xr<Or.length;Xr++){var We=Or[Xr];if(!(!e.isIdentifier(We)||We===v||We.escapedText!==v.escapedText)){var mr=xe.getSymbolAtLocation(We);if(mr===Fr||xe.getShorthandAssignmentValueSymbol(We.parent)===Fr||e.isExportSpecifier(We.parent)&&Er(We,mr,We.parent,xe)===Fr){var Nr=Je(We);if(Nr)return Nr}}}}D.eachSymbolReferenceInFile=we;function ye(v,xe,ze,Je){if(!v.name||!e.isIdentifier(v.name))return!1;for(var Oe=e.Debug.checkDefined(ze.getSymbolAtLocation(v.name)),Fr=0,Xr=xe;Fr<Xr.length;Fr++)for(var Or=Xr[Fr],We=0,mr=Se(Or,Oe.name);We<mr.length;We++){var Nr=mr[We];if(!(!e.isIdentifier(Nr)||Nr===v.name||Nr.escapedText!==v.name.escapedText)){var Ur=e.climbPastPropertyAccess(Nr),si=e.isCallExpression(Ur.parent)&&Ur.parent.expression===Ur?Ur.parent:void 0,mi=ze.getSymbolAtLocation(Nr);if(mi&&ze.getRootSymbols(mi).some(function(Ti){return Ti===Oe})&&Je(Nr,si))return!0}}return!1}D.someSignatureUsage=ye;function Se(v,xe,ze){return ze===void 0&&(ze=v),ge(v,xe,ze).map(function(Je){return e.getTouchingPropertyName(v,Je)})}function ge(v,xe,ze){ze===void 0&&(ze=v);var Je=[];if(!xe||!xe.length)return Je;for(var Oe=v.text,Fr=Oe.length,Xr=xe.length,Or=Oe.indexOf(xe,ze.pos);Or>=0&&!(Or>ze.end);){var We=Or+Xr;(Or===0||!e.isIdentifierPart(Oe.charCodeAt(Or-1),99))&&(We===Fr||!e.isIdentifierPart(Oe.charCodeAt(We),99))&&Je.push(Or),Or=Oe.indexOf(xe,Or+Xr+1)}return Je}function Fe(v,xe){var ze=v.getSourceFile(),Je=xe.text,Oe=e.mapDefined(Se(ze,Je,v),function(Fr){return Fr===xe||e.isJumpStatementTarget(Fr)&&e.getTargetLabel(Fr,Je)===xe?N(Fr):void 0});return[{definition:{type:1,node:xe},references:Oe}]}function cr(v,xe){switch(v.kind){case 80:if(e.isJSDocMemberName(v.parent))return!0;case 79:return v.text.length===xe.length;case 14:case 10:{var ze=v;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(ze)||e.isNameOfModuleDeclaration(v)||e.isExpressionOfExternalModuleImportEqualsDeclaration(v)||e.isCallExpression(v.parent)&&e.isBindableObjectDefinePropertyCall(v.parent)&&v.parent.arguments[1]===v)&&ze.text.length===xe.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(v)&&v.text.length===xe.length;case 88:return xe.length===7;default:return!1}}function ur(v,xe,ze,Je){var Oe=e.flatMap(v,function(Fr){return ze.throwIfCancellationRequested(),e.mapDefined(Se(Fr,e.tokenToString(xe),Fr),function(Xr){if(Xr.kind===xe&&(!Je||Je(Xr)))return N(Xr)})});return Oe.length?[{definition:{type:2,node:Oe[0].node},references:Oe}]:void 0}function Ir(v,xe,ze,Je){return Je===void 0&&(Je=!0),ze.cancellationToken.throwIfCancellationRequested(),dr(v,v,xe,ze,Je)}function dr(v,xe,ze,Je,Oe){if(!!Je.markSearchedSymbols(xe,ze.allSearchSymbols))for(var Fr=0,Xr=ge(xe,ze.text,v);Fr<Xr.length;Fr++){var Or=Xr[Fr];Tr(xe,Or,ze,Je,Oe)}}function Br(v,xe){return!!(e.getMeaningFromLocation(v)&xe.searchMeaning)}function Tr(v,xe,ze,Je,Oe){var Fr=e.getTouchingPropertyName(v,xe);if(!cr(Fr,ze.text)){!Je.options.implementations&&(Je.options.findInStrings&&e.isInString(v,xe)||Je.options.findInComments&&e.isInNonReferenceComment(v,xe))&&Je.addStringOrCommentReference(v.fileName,e.createTextSpan(xe,ze.text.length));return}if(!!Br(Fr,Je)){var Xr=Je.checker.getSymbolAtLocation(Fr);if(!!Xr){var Or=Fr.parent;if(!(e.isImportSpecifier(Or)&&Or.propertyName===Fr)){if(e.isExportSpecifier(Or)){e.Debug.assert(Fr.kind===79),n(Fr,Xr,Or,ze,Je,Oe);return}var We=X(ze,Xr,Fr,Je);if(!We){Ce(Xr,ze,Je);return}switch(Je.specialSearchKind){case 0:Oe&&Le(Fr,We,Je);break;case 1:Xe(Fr,v,ze,Je);break;case 2:Cr(Fr,ze,Je);break;default:e.Debug.assertNever(Je.specialSearchKind)}e.isInJSFile(Fr)&&Fr.parent.kind===202&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Fr.parent)&&(Xr=Fr.parent.symbol,!Xr)||Pr(Fr,Xr,ze,Je)}}}}function n(v,xe,ze,Je,Oe,Fr,Xr){e.Debug.assert(!Xr||!!Oe.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Or=ze.parent,We=ze.propertyName,mr=ze.name,Nr=Or.parent,Ur=Er(v,xe,ze,Oe.checker);if(!Xr&&!Je.includes(Ur))return;if(We?v===We?(Nr.moduleSpecifier||Ui(),Fr&&Oe.options.use!==2&&Oe.markSeenReExportRHS(mr)&&Le(mr,e.Debug.checkDefined(ze.symbol),Oe)):Oe.markSeenReExportRHS(v)&&Ui():Oe.options.use===2&&mr.escapedText==="default"||Ui(),!Me(Oe.options)||Xr){var si=v.originalKeywordKind===88||ze.name.originalKeywordKind===88,mi=si?1:0,Ti=e.Debug.checkDefined(ze.symbol),hi=O.getExportInfo(Ti,mi,Oe.checker);hi&&Ue(v,Ti,hi,Oe)}if(Je.comingFrom!==1&&Nr.moduleSpecifier&&!We&&!Me(Oe.options)){var ki=Oe.checker.getExportSpecifierLocalTargetSymbol(ze);ki&&gr(ki,Oe)}function Ui(){Fr&&Le(v,Ur,Oe)}}function Er(v,xe,ze,Je){return br(v,ze)&&Je.getExportSpecifierLocalTargetSymbol(ze)||xe}function br(v,xe){var ze=xe.parent,Je=xe.propertyName,Oe=xe.name;return e.Debug.assert(Je===v||Oe===v),Je?Je===v:!ze.parent.moduleSpecifier}function Pr(v,xe,ze,Je){var Oe=O.getImportOrExportSymbol(v,xe,Je.checker,ze.comingFrom===1);if(!!Oe){var Fr=Oe.symbol;Oe.kind===0?Me(Je.options)||gr(Fr,Je):Ue(v,Fr,Oe.exportInfo,Je)}}function Ce(v,xe,ze){var Je=v.flags,Oe=v.valueDeclaration,Fr=ze.checker.getShorthandAssignmentValueSymbol(Oe),Xr=Oe&&e.getNameOfDeclaration(Oe);!(Je&33554432)&&Xr&&xe.includes(Fr)&&Le(Xr,Fr,ze)}function Le(v,xe,ze){var Je="kind"in xe?xe:{kind:void 0,symbol:xe},Oe=Je.kind,Fr=Je.symbol,Xr=ze.referenceAdder(Fr);ze.options.implementations?or(v,Xr,ze):Xr(v,Oe)}function Xe(v,xe,ze,Je){e.isNewExpressionTarget(v)&&Le(v,ze.symbol,Je);var Oe=function(){return Je.referenceAdder(ze.symbol)};if(e.isClassLike(v.parent))e.Debug.assert(v.kind===88||v.parent.name===v),Lr(ze.symbol,xe,Oe());else{var Fr=hr(v);Fr&&(Rr(Fr,Oe()),be(Fr,Je))}}function Cr(v,xe,ze){Le(v,xe.symbol,ze);var Je=v.parent;if(!(ze.options.use===2||!e.isClassLike(Je))){e.Debug.assert(Je.name===v);for(var Oe=ze.referenceAdder(xe.symbol),Fr=0,Xr=Je.members;Fr<Xr.length;Fr++){var Or=Xr[Fr];!(e.isMethodOrAccessor(Or)&&e.isStatic(Or))||Or.body&&Or.body.forEachChild(function We(mr){mr.kind===108?Oe(mr):!e.isFunctionLike(mr)&&!e.isClassLike(mr)&&mr.forEachChild(We)})}}}function Lr(v,xe,ze){var Je=Jr(v);if(Je&&Je.declarations)for(var Oe=0,Fr=Je.declarations;Oe<Fr.length;Oe++){var Xr=Fr[Oe],Or=e.findChildOfKind(Xr,134,xe);e.Debug.assert(Xr.kind===170&&!!Or),ze(Or)}v.exports&&v.exports.forEach(function(We){var mr=We.valueDeclaration;if(mr&&mr.kind===168){var Nr=mr.body;Nr&&_r(Nr,108,function(Ur){e.isNewExpressionTarget(Ur)&&ze(Ur)})}})}function Jr(v){return v.members&&v.members.get("__constructor")}function Rr(v,xe){var ze=Jr(v.symbol);if(!!(ze&&ze.declarations))for(var Je=0,Oe=ze.declarations;Je<Oe.length;Je++){var Fr=Oe[Je];e.Debug.assert(Fr.kind===170);var Xr=Fr.body;Xr&&_r(Xr,106,function(Or){e.isCallExpressionTarget(Or)&&xe(Or)})}}function ci(v){return!!Jr(v.symbol)}function be(v,xe){if(!ci(v)){var ze=v.symbol,Je=xe.createSearch(void 0,ze,void 0);m(ze,xe,Je)}}function or(v,xe,ze){if(e.isDeclarationName(v)&&Be(v.parent)){xe(v);return}if(v.kind!==79)return;v.parent.kind===295&&Qe(v,ze.checker,xe);var Je=Kr(v);if(Je){xe(Je);return}var Oe=e.findAncestor(v,function(We){return!e.isQualifiedName(We.parent)&&!e.isTypeNode(We.parent)&&!e.isTypeElement(We.parent)}),Fr=Oe.parent;if(e.hasType(Fr)&&Fr.type===Oe&&ze.markSeenContainingTypeReference(Fr))if(e.hasInitializer(Fr))Or(Fr.initializer);else if(e.isFunctionLike(Fr)&&Fr.body){var Xr=Fr.body;Xr.kind===234?e.forEachReturnStatement(Xr,function(We){We.expression&&Or(We.expression)}):Or(Xr)}else e.isAssertionExpression(Fr)&&Or(Fr.expression);function Or(We){ei(We)&&xe(We)}}function Kr(v){return e.isIdentifier(v)||e.isPropertyAccessExpression(v)?Kr(v.parent):e.isExpressionWithTypeArguments(v)?e.tryCast(v.parent.parent,e.isClassLike):void 0}function ei(v){switch(v.kind){case 211:return ei(v.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function li(v,xe,ze,Je){if(v===xe)return!0;var Oe=e.getSymbolId(v)+","+e.getSymbolId(xe),Fr=ze.get(Oe);if(Fr!==void 0)return Fr;ze.set(Oe,!1);var Xr=!!v.declarations&&v.declarations.some(function(Or){return e.getAllSuperTypeNodes(Or).some(function(We){var mr=Je.getTypeAtLocation(We);return!!mr&&!!mr.symbol&&li(mr.symbol,xe,ze,Je)})});return ze.set(Oe,Xr),Xr}function Si(v){var xe=e.getSuperContainer(v,!1);if(!!xe){var ze=32;switch(xe.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:ze&=e.getSyntacticModifierFlags(xe),xe=xe.parent;break;default:return}var Je=xe.getSourceFile(),Oe=e.mapDefined(Se(Je,"super",xe),function(Fr){if(Fr.kind===106){var Xr=e.getSuperContainer(Fr,!1);return Xr&&e.isStatic(Xr)===!!ze&&Xr.parent.symbol===xe.symbol?N(Fr):void 0}});return[{definition:{type:0,symbol:xe.symbol},references:Oe}]}}function qi(v){return v.kind===79&&v.parent.kind===163&&v.parent.name===v}function ft(v,xe,ze){var Je=e.getThisContainer(v,!1),Oe=32;switch(Je.kind){case 168:case 167:if(e.isObjectLiteralMethod(Je)){Oe&=e.getSyntacticModifierFlags(Je),Je=Je.parent;break}case 166:case 165:case 170:case 171:case 172:Oe&=e.getSyntacticModifierFlags(Je),Je=Je.parent;break;case 303:if(e.isExternalModule(Je)||qi(v))return;case 255:case 212:break;default:return}var Fr=e.flatMap(Je.kind===303?xe:[Je.getSourceFile()],function(Or){return ze.throwIfCancellationRequested(),Se(Or,"this",e.isSourceFile(Je)?Or:Je).filter(function(We){if(!e.isThis(We))return!1;var mr=e.getThisContainer(We,!1);switch(Je.kind){case 212:case 255:return Je.symbol===mr.symbol;case 168:case 167:return e.isObjectLiteralMethod(Je)&&Je.symbol===mr.symbol;case 225:case 256:case 204:return mr.parent&&Je.symbol===mr.parent.symbol&&e.isStatic(mr)===!!Oe;case 303:return mr.kind===303&&!e.isExternalModule(mr)&&!qi(We)}})}).map(function(Or){return N(Or)}),Xr=e.firstDefined(Fr,function(Or){return e.isParameter(Or.node.parent)?Or.node:void 0});return[{definition:{type:3,node:Xr||v},references:Fr}]}function bt(v,xe,ze,Je){var Oe=e.getContextualTypeFromParentOrAncestorTypeNode(v,ze),Fr=e.flatMap(xe,function(Xr){return Je.throwIfCancellationRequested(),e.mapDefined(Se(Xr,v.text),function(Or){if(e.isStringLiteralLike(Or)&&Or.text===v.text)if(Oe){var We=e.getContextualTypeFromParentOrAncestorTypeNode(Or,ze);if(Oe!==ze.getStringType()&&Oe===We)return N(Or,2)}else return e.isNoSubstitutionTemplateLiteral(Or)&&!e.rangeIsOnSingleLine(Or,Xr)?void 0:N(Or,2)})});return[{definition:{type:4,node:v},references:Fr}]}function aa(v,xe,ze,Je,Oe,Fr){var Xr=[];return sr(v,xe,ze,Je,!(Je&&Oe),function(Or,We,mr){mr&&di(v)!==di(mr)&&(mr=void 0),Xr.push(mr||We||Or)},function(){return!Fr}),Xr}function sr(v,xe,ze,Je,Oe,Fr,Xr){var Or=e.getContainingObjectLiteralElement(xe);if(Or){var We=ze.getShorthandAssignmentValueSymbol(xe.parent);if(We&&Je)return Fr(We,void 0,void 0,3);var mr=ze.getContextualType(Or.parent),Nr=mr&&e.firstDefined(e.getPropertySymbolsFromContextualType(Or,ze,mr,!0),function(Vt){return xt(Vt,4)});if(Nr)return Nr;var Ur=Ge(xe,ze),si=Ur&&Fr(Ur,void 0,void 0,4);if(si)return si;var mi=We&&Fr(We,void 0,void 0,3);if(mi)return mi}var Ti=w(xe,v,ze);if(Ti){var hi=Fr(Ti,void 0,void 0,1);if(hi)return hi}var ki=xt(v);if(ki)return ki;if(v.valueDeclaration&&e.isParameterPropertyDeclaration(v.valueDeclaration,v.valueDeclaration.parent)){var Ui=ze.getSymbolsOfParameterPropertyDeclaration(e.cast(v.valueDeclaration,e.isParameter),v.name);return e.Debug.assert(Ui.length===2&&!!(Ui[0].flags&1)&&!!(Ui[1].flags&4)),xt(v.flags&1?Ui[1]:Ui[0])}var zi=e.getDeclarationOfKind(v,274);if(!Je||zi&&!zi.propertyName){var ri=zi&&ze.getExportSpecifierLocalTargetSymbol(zi);if(ri){var Gi=Fr(ri,void 0,void 0,1);if(Gi)return Gi}}if(!Je){var Rt=void 0;return Oe?Rt=e.isObjectBindingElementWithoutPropertyName(xe.parent)?e.getPropertySymbolFromBindingElement(ze,xe.parent):void 0:Rt=ua(v,ze),Rt&&xt(Rt,4)}e.Debug.assert(Je);var pa=Oe;if(pa){var Rt=ua(v,ze);return Rt&&xt(Rt,4)}function xt(Vt,St){return e.firstDefined(ze.getRootSymbols(Vt),function(Ci){return Fr(Vt,Ci,void 0,St)||(Ci.parent&&Ci.parent.flags&96&&Xr(Ci)?Ji(Ci.parent,Ci.name,ze,function(Hi){return Fr(Vt,Ci,Hi,St)}):void 0)})}function ua(Vt,St){var Ci=e.getDeclarationOfKind(Vt,202);if(Ci&&e.isObjectBindingElementWithoutPropertyName(Ci))return e.getPropertySymbolFromBindingElement(St,Ci)}}function Ji(v,xe,ze,Je){var Oe=new e.Map;return Fr(v);function Fr(Xr){if(!(!(Xr.flags&96)||!e.addToSeen(Oe,e.getSymbolId(Xr))))return e.firstDefined(Xr.declarations,function(Or){return e.firstDefined(e.getAllSuperTypeNodes(Or),function(We){var mr=ze.getTypeAtLocation(We),Nr=mr&&mr.symbol&&ze.getPropertyOfType(mr,xe);return mr&&Nr&&(e.firstDefined(ze.getRootSymbols(Nr),Je)||Fr(mr.symbol))})})}}function di(v){if(!v.valueDeclaration)return!1;var xe=e.getEffectiveModifierFlags(v.valueDeclaration);return!!(xe&32)}function X(v,xe,ze,Je){var Oe=Je.checker;return sr(xe,ze,Oe,!1,Je.options.use!==2||!!Je.options.providePrefixAndSuffixTextForRename,function(Fr,Xr,Or,We){return Or&&di(xe)!==di(Or)&&(Or=void 0),v.includes(Or||Xr||Fr)?{symbol:Xr&&!(e.getCheckFlags(Fr)&6)?Xr:Fr,kind:We}:void 0},function(Fr){return!(v.parents&&!v.parents.some(function(Xr){return li(Fr.parent,Xr,Je.inheritsFromCache,Oe)}))})}function Ye(v,xe){var ze=e.getMeaningFromLocation(v),Je=xe.declarations;if(Je){var Oe=void 0;do{Oe=ze;for(var Fr=0,Xr=Je;Fr<Xr.length;Fr++){var Or=Xr[Fr],We=e.getMeaningFromDeclaration(Or);We&ze&&(ze|=We)}}while(ze!==Oe)}return ze}D.getIntersectingMeaningFromDeclarations=Ye;function Be(v){return v.flags&8388608?!(e.isInterfaceDeclaration(v)||e.isTypeAliasDeclaration(v)):e.isVariableLike(v)?e.hasInitializer(v):e.isFunctionLikeDeclaration(v)?!!v.body:e.isClassLike(v)||e.isModuleOrEnumDeclaration(v)}function Qe(v,xe,ze){var Je=xe.getSymbolAtLocation(v),Oe=xe.getShorthandAssignmentValueSymbol(Je.valueDeclaration);if(Oe)for(var Fr=0,Xr=Oe.getDeclarations();Fr<Xr.length;Fr++){var Or=Xr[Fr];e.getMeaningFromDeclaration(Or)&1&&ze(Or)}}D.getReferenceEntriesForShorthandPropertyAssignment=Qe;function _r(v,xe,ze){e.forEachChild(v,function(Je){Je.kind===xe&&ze(Je),_r(Je,xe,ze)})}function hr(v){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(v).parent)}function Dr(v,xe,ze){var Je=e.isRightSideOfPropertyAccess(v)?v.parent:void 0,Oe=Je&&ze.getTypeAtLocation(Je.expression),Fr=e.mapDefined(Oe&&(Oe.isUnionOrIntersection()?Oe.types:Oe.symbol===xe.parent?void 0:[Oe]),function(Xr){return Xr.symbol&&Xr.symbol.flags&96?Xr.symbol:void 0});return Fr.length===0?void 0:Fr}function Me(v){return v.use===2&&v.providePrefixAndSuffixTextForRename}})(P=O.Core||(O.Core={}))})(a=e.FindAllReferences||(e.FindAllReferences={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(D){return(e.isFunctionExpression(D)||e.isClassExpression(D))&&e.isNamedDeclaration(D)}function W(D){return(e.isFunctionExpression(D)||e.isArrowFunction(D)||e.isClassExpression(D))&&e.isVariableDeclaration(D.parent)&&D===D.parent.initializer&&e.isIdentifier(D.parent.name)&&!!(e.getCombinedNodeFlags(D.parent)&2)}function N(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)||e.isFunctionDeclaration(D)||e.isFunctionExpression(D)||e.isClassDeclaration(D)||e.isClassExpression(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)}function Q(D){return e.isSourceFile(D)||e.isModuleDeclaration(D)&&e.isIdentifier(D.name)||e.isFunctionDeclaration(D)||e.isClassDeclaration(D)||e.isClassStaticBlockDeclaration(D)||e.isMethodDeclaration(D)||e.isMethodSignature(D)||e.isGetAccessorDeclaration(D)||e.isSetAccessorDeclaration(D)||L(D)||W(D)}function pe(D){return e.isSourceFile(D)?D:e.isNamedDeclaration(D)?D.name:W(D)?D.parent.name:e.Debug.checkDefined(D.modifiers&&e.find(D.modifiers,F))}function F(D){return D.kind===88}function g(D,l){var _=pe(l);return _&&D.getSymbolAtLocation(_)}function S(D,l){if(e.isSourceFile(l))return{text:l.fileName,pos:0,end:0};if((e.isFunctionDeclaration(l)||e.isClassDeclaration(l))&&!e.isNamedDeclaration(l)){var _=l.modifiers&&e.find(l.modifiers,F);if(_)return{text:"default",pos:_.getStart(),end:_.getEnd()}}if(e.isClassStaticBlockDeclaration(l)){var J=l.getSourceFile(),w=e.skipTrivia(J.text,e.moveRangePastModifiers(l).pos),j=w+6,U=D.getTypeChecker(),z=U.getSymbolAtLocation(l.parent),y=z?"".concat(U.symbolToString(z,l.parent)," "):"";return{text:"".concat(y,"static {}"),pos:w,end:j}}var oe=W(l)?l.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(l),"Expected call hierarchy item to have a name"),ve=e.isIdentifier(oe)?e.idText(oe):e.isStringOrNumericLiteralLike(oe)?oe.text:e.isComputedPropertyName(oe)&&e.isStringOrNumericLiteralLike(oe.expression)?oe.expression.text:void 0;if(ve===void 0){var U=D.getTypeChecker(),z=U.getSymbolAtLocation(oe);z&&(ve=U.symbolToString(z,l))}if(ve===void 0){var ce=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});ve=e.usingSingleLineStringWriter(function(m){return ce.writeNode(4,l,l.getSourceFile(),m)})}return{text:ve,pos:oe.getStart(),end:oe.getEnd()}}function H(D){var l,_;if(W(D))return e.isModuleBlock(D.parent.parent.parent.parent)&&e.isIdentifier(D.parent.parent.parent.parent.parent.name)?D.parent.parent.parent.parent.parent.name.getText():void 0;switch(D.kind){case 171:case 172:case 168:return D.parent.kind===204?(l=e.getAssignedName(D.parent))===null||l===void 0?void 0:l.getText():(_=e.getNameOfDeclaration(D.parent))===null||_===void 0?void 0:_.getText();case 255:case 256:case 260:if(e.isModuleBlock(D.parent)&&e.isIdentifier(D.parent.parent.name))return D.parent.parent.name.getText()}}function se(D,l){if(l.body)return l;if(e.isConstructorDeclaration(l))return e.getFirstConstructorWithBody(l.parent);if(e.isFunctionDeclaration(l)||e.isMethodDeclaration(l)){var _=g(D,l);return _&&_.valueDeclaration&&e.isFunctionLikeDeclaration(_.valueDeclaration)&&_.valueDeclaration.body?_.valueDeclaration:void 0}return l}function p(D,l){var _=g(D,l),J;if(_&&_.declarations){var w=e.indicesOf(_.declarations),j=e.map(_.declarations,function(ce){return{file:ce.getSourceFile().fileName,pos:ce.pos}});w.sort(function(ce,m){return e.compareStringsCaseSensitive(j[ce].file,j[m].file)||j[ce].pos-j[m].pos});for(var U=e.map(w,function(ce){return _.declarations[ce]}),z=void 0,y=0,oe=U;y<oe.length;y++){var ve=oe[y];Q(ve)&&((!z||z.parent!==ve.parent||z.end!==ve.pos)&&(J=e.append(J,ve)),z=ve)}}return J}function C(D,l){var _,J,w;return e.isClassStaticBlockDeclaration(l)?l:e.isFunctionLikeDeclaration(l)?(J=(_=se(D,l))!==null&&_!==void 0?_:p(D,l))!==null&&J!==void 0?J:l:(w=p(D,l))!==null&&w!==void 0?w:l}function G(D,l){for(var _=D.getTypeChecker(),J=!1;;){if(Q(l))return C(_,l);if(N(l)){var w=e.findAncestor(l,Q);return w&&C(_,w)}if(e.isDeclarationName(l)){if(Q(l.parent))return C(_,l.parent);if(N(l.parent)){var w=e.findAncestor(l.parent,Q);return w&&C(_,w)}return e.isVariableDeclaration(l.parent)&&l.parent.initializer&&W(l.parent.initializer)?l.parent.initializer:void 0}if(e.isConstructorDeclaration(l))return Q(l.parent)?l.parent:void 0;if(l.kind===124&&e.isClassStaticBlockDeclaration(l.parent)){l=l.parent;continue}if(e.isVariableDeclaration(l)&&l.initializer&&W(l.initializer))return l.initializer;if(!J){var j=_.getSymbolAtLocation(l);if(j&&(j.flags&2097152&&(j=_.getAliasedSymbol(j)),j.valueDeclaration)){J=!0,l=j.valueDeclaration;continue}}return}}O.resolveCallHierarchyDeclaration=G;function E(D,l){var _=l.getSourceFile(),J=S(D,l),w=H(l),j=e.getNodeKind(l),U=e.getNodeModifiers(l),z=e.createTextSpanFromBounds(e.skipTrivia(_.text,l.getFullStart(),!1,!0),l.getEnd()),y=e.createTextSpanFromBounds(J.pos,J.end);return{file:_.fileName,kind:j,kindModifiers:U,name:J.text,containerName:w,span:z,selectionSpan:y}}O.createCallHierarchyItem=E;function ue(D){return D!==void 0}function B(D){if(D.kind===1){var l=D.node;if(e.isCallOrNewExpressionTarget(l,!0,!0)||e.isTaggedTemplateTag(l,!0,!0)||e.isDecoratorTarget(l,!0,!0)||e.isJsxOpeningLikeElementTagName(l,!0,!0)||e.isRightSideOfPropertyAccess(l)||e.isArgumentExpressionOfElementAccess(l)){var _=l.getSourceFile(),J=e.findAncestor(l,Q)||_;return{declaration:J,range:e.createTextRangeFromNode(l,_)}}}}function re(D){return e.getNodeId(D.declaration)}function M(D,l){return{from:D,fromSpans:l}}function x(D,l){return M(E(D,l[0].declaration),e.map(l,function(_){return e.createTextSpanFromRange(_.range)}))}function ie(D,l,_){if(e.isSourceFile(l)||e.isModuleDeclaration(l)||e.isClassStaticBlockDeclaration(l))return[];var J=pe(l),w=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(D,_,D.getSourceFiles(),J,0,{use:1},B),ue);return w?e.group(w,re,function(j){return x(D,j)}):[]}O.getIncomingCalls=ie;function _e(D,l){function _(w){var j=e.isTaggedTemplateExpression(w)?w.tag:e.isJsxOpeningLikeElement(w)?w.tagName:e.isAccessExpression(w)||e.isClassStaticBlockDeclaration(w)?w:w.expression,U=G(D,j);if(U){var z=e.createTextRangeFromNode(j,w.getSourceFile());if(e.isArray(U))for(var y=0,oe=U;y<oe.length;y++){var ve=oe[y];l.push({declaration:ve,range:z})}else l.push({declaration:U,range:z})}}function J(w){if(!!w&&!(w.flags&8388608)){if(Q(w)){if(e.isClassLike(w))for(var j=0,U=w.members;j<U.length;j++){var z=U[j];z.name&&e.isComputedPropertyName(z.name)&&J(z.name.expression)}return}switch(w.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:_(w);return;case 210:case 228:J(w.expression);return;case 253:case 163:J(w.name),J(w.initializer);return;case 207:_(w),J(w.expression),e.forEach(w.arguments,J);return;case 208:_(w),J(w.expression),e.forEach(w.arguments,J);return;case 209:_(w),J(w.tag),J(w.template);return;case 279:case 278:_(w),J(w.tagName),J(w.attributes);return;case 164:_(w),J(w.expression);return;case 205:case 206:_(w),e.forEachChild(w,J);break}e.isPartOfTypeNode(w)||e.forEachChild(w,J)}}return J}function Y(D,l){e.forEach(D.statements,l)}function Z(D,l){!e.hasSyntacticModifier(D,2)&&D.body&&e.isModuleBlock(D.body)&&e.forEach(D.body.statements,l)}function k(D,l,_){var J=se(D,l);J&&(e.forEach(J.parameters,_),_(J.body))}function I(D,l){l(D.body)}function ne(D,l){e.forEach(D.decorators,l);var _=e.getClassExtendsHeritageElement(D);_&&l(_.expression);for(var J=0,w=D.members;J<w.length;J++){var j=w[J];e.forEach(j.decorators,l),e.isPropertyDeclaration(j)?l(j.initializer):e.isConstructorDeclaration(j)&&j.body?(e.forEach(j.parameters,l),l(j.body)):e.isClassStaticBlockDeclaration(j)&&l(j)}}function ee(D,l){var _=[],J=_e(D,_);switch(l.kind){case 303:Y(l,J);break;case 260:Z(l,J);break;case 255:case 212:case 213:case 168:case 171:case 172:k(D.getTypeChecker(),l,J);break;case 256:case 225:ne(l,J);break;case 169:I(l,J);break;default:e.Debug.assertNever(l)}return _}function A(D,l){return{to:D,fromSpans:l}}function f(D,l){return A(E(D,l[0].declaration),e.map(l,function(_){return e.createTextSpanFromRange(_.range)}))}function P(D,l){return l.flags&8388608||e.isMethodSignature(l)?[]:e.group(ee(D,l),re,function(_){return f(D,_)})}O.getOutgoingCalls=P})(a=e.CallHierarchy||(e.CallHierarchy={}))})(Pe||(Pe={}));var Pe;(function(e){function a(p,C,G,E,ue,B,re){var M=e.hostUsesCaseSensitiveFileNames(E),x=e.createGetCanonicalFileName(M),ie=O(C,G,x,re),_e=O(G,C,x,re);return e.textChanges.ChangeTracker.with({host:E,formatContext:ue,preferences:B},function(Y){W(p,Y,ie,C,G,E.getCurrentDirectory(),M),N(p,Y,ie,_e,E,x)})}e.getEditsForFileRename=a;function O(p,C,G,E){var ue=G(p);return function(re){var M=E&&E.tryGetSourcePosition({fileName:re,pos:0}),x=B(M?M.fileName:re);return M?x===void 0?void 0:L(M.fileName,x,re,G):x};function B(re){if(G(re)===ue)return C;var M=e.tryRemoveDirectoryPrefix(re,ue,G);return M===void 0?void 0:C+"/"+M}}e.getPathUpdater=O;function L(p,C,G,E){var ue=e.getRelativePathFromFile(p,C,E);return pe(e.getDirectoryPath(G),ue)}function W(p,C,G,E,ue,B,re){var M=p.getCompilerOptions().configFile;if(!M)return;var x=e.getDirectoryPath(M.fileName),ie=e.getTsConfigObjectLiteralExpression(M);if(!ie)return;se(ie,function(k,I){switch(I){case"files":case"include":case"exclude":{var ne=_e(k);if(ne||I!=="include"||!e.isArrayLiteralExpression(k.initializer))return;var ee=e.mapDefined(k.initializer.elements,function(f){return e.isStringLiteral(f)?f.text:void 0});if(ee.length===0)return;var A=e.getFileMatcherPatterns(x,[],ee,re,B);e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),re).test(E)&&!e.getRegexFromPattern(e.Debug.checkDefined(A.includeFilePattern),re).test(ue)&&C.insertNodeAfter(M,e.last(k.initializer.elements),e.factory.createStringLiteral(Z(ue)));return}case"compilerOptions":se(k.initializer,function(f,P){var D=e.getOptionFromName(P);D&&(D.isFilePath||D.type==="list"&&D.element.isFilePath)?_e(f):P==="paths"&&se(f.initializer,function(l){if(!!e.isArrayLiteralExpression(l.initializer))for(var _=0,J=l.initializer.elements;_<J.length;_++){var w=J[_];Y(w)}})});return}});function _e(k){for(var I=e.isArrayLiteralExpression(k.initializer)?k.initializer.elements:[k.initializer],ne=!1,ee=0,A=I;ee<A.length;ee++){var f=A[ee];ne=Y(f)||ne}return ne}function Y(k){if(!e.isStringLiteral(k))return!1;var I=pe(x,k.text),ne=G(I);return ne!==void 0?(C.replaceRangeWithText(M,H(k,M),Z(ne)),!0):!1}function Z(k){return e.getRelativePathFromDirectory(x,k,!re)}}function N(p,C,G,E,ue,B){for(var re=p.getSourceFiles(),M=function(Y){var Z=G(Y.fileName),k=Z!=null?Z:Y.fileName,I=e.getDirectoryPath(k),ne=E(Y.fileName),ee=ne||Y.fileName,A=e.getDirectoryPath(ee),f=Z!==void 0||ne!==void 0;S(Y,C,function(P){if(!!e.pathIsRelative(P)){var D=pe(A,P),l=G(D);return l===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(I,l,B))}},function(P){var D=p.getTypeChecker().getSymbolAtLocation(P);if(!((D==null?void 0:D.declarations)&&D.declarations.some(function(_){return e.isAmbientModule(_)}))){var l=ne!==void 0?g(P,e.resolveModuleName(P.text,ee,p.getCompilerOptions(),ue),G,re):F(D,P,Y,p,ue,G);return l!==void 0&&(l.updated||f&&e.pathIsRelative(P.text))?e.moduleSpecifiers.updateModuleSpecifier(p.getCompilerOptions(),Y,B(k),l.newFileName,e.createModuleSpecifierResolutionHost(p,ue),P.text):void 0}})},x=0,ie=re;x<ie.length;x++){var _e=ie[x];M(_e)}}function Q(p,C){return e.normalizePath(e.combinePaths(p,C))}function pe(p,C){return e.ensurePathIsNonModuleName(Q(p,C))}function F(p,C,G,E,ue,B){if(p){var re=e.find(p.declarations,e.isSourceFile).fileName,M=B(re);return M===void 0?{newFileName:re,updated:!1}:{newFileName:M,updated:!0}}else{var x=e.getModeForUsageLocation(G,C),ie=ue.resolveModuleNames?ue.getResolvedModuleWithFailedLookupLocationsFromCache&&ue.getResolvedModuleWithFailedLookupLocationsFromCache(C.text,G.fileName,x):E.getResolvedModuleWithFailedLookupLocationsFromCache(C.text,G.fileName,x);return g(C,ie,B,E.getSourceFiles())}}function g(p,C,G,E){if(!C)return;if(C.resolvedModule){var ue=x(C.resolvedModule.resolvedFileName);if(ue)return ue}var B=e.forEach(C.failedLookupLocations,re)||e.pathIsRelative(p.text)&&e.forEach(C.failedLookupLocations,M);if(B)return B;return C.resolvedModule&&{newFileName:C.resolvedModule.resolvedFileName,updated:!1};function re(ie){var _e=G(ie);return _e&&e.find(E,function(Y){return Y.fileName===_e})?M(ie):void 0}function M(ie){return e.endsWith(ie,"/package.json")?void 0:x(ie)}function x(ie){var _e=G(ie);return _e&&{newFileName:_e,updated:!0}}}function S(p,C,G,E){for(var ue=0,B=p.referencedFiles||e.emptyArray;ue<B.length;ue++){var re=B[ue],M=G(re.fileName);M!==void 0&&M!==p.text.slice(re.pos,re.end)&&C.replaceRangeWithText(p,re,M)}for(var x=0,ie=p.imports;x<ie.length;x++){var _e=ie[x],M=E(_e);M!==void 0&&M!==_e.text&&C.replaceRangeWithText(p,H(_e,p),M)}}function H(p,C){return e.createRange(p.getStart(C)+1,p.end-1)}function se(p,C){if(!!e.isObjectLiteralExpression(p))for(var G=0,E=p.properties;G<E.length;G++){var ue=E[G];e.isPropertyAssignment(ue)&&e.isStringLiteral(ue.name)&&C(ue,ue.name.text)}}})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Z,k,I){var ne=pe(k,I,Z),ee=ne&&[x(ne.reference.fileName,ne.fileName,ne.unverified)]||e.emptyArray;if(ne!=null&&ne.file)return ee;var A=e.getTouchingPropertyName(k,I);if(A!==k){var f=A.parent,P=Z.getTypeChecker();if(A.kind===158||e.isJSDocOverrideTag(A)&&e.rangeContainsPosition(A.tagName,I))return Q(P,A)||e.emptyArray;if(e.isJumpStatementTarget(A)){var D=e.getTargetLabel(A.parent,A.text);return D?[ue(P,D,"label",A.text,void 0)]:void 0}if(e.isStaticModifier(A)&&e.isClassStaticBlockDeclaration(A.parent)){var l=A.parent.parent,_=p(l,P),J=e.filter(l.members,e.isClassStaticBlockDeclaration),w=_?P.symbolToString(_,l):"",j=A.getSourceFile();return e.map(J,function(ae){var V=e.moveRangePastModifiers(ae).pos;return V=e.skipTrivia(j.text,V),ue(P,ae,"constructor","static {}",w,{start:V,length:6})})}var U=p(A,P);if(!U)return e.concatenate(ee,se(A,P));var z=_e(P,A);if(z&&!(e.isJsxOpeningLikeElement(A.parent)&&Y(z))){var y=re(P,z);if(P.getRootSymbols(U).some(function(ae){return W(ae,z)}))return[y];var oe=G(P,U,A,z)||e.emptyArray;return A.kind===106?qe([y],oe,!0):qe(qe([],oe,!0),[y],!1)}if(A.parent.kind===295){var ve=P.getShorthandAssignmentValueSymbol(U.valueDeclaration),ce=ve!=null&&ve.declarations?ve.declarations.map(function(ae){return E(ae,P,ve,A)}):e.emptyArray;return e.concatenate(ce,N(P,A)||e.emptyArray)}if(e.isPropertyName(A)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&A===(f.propertyName||f.name)){var m=e.getNameFromPropertyName(A),de=P.getTypeAtLocation(f.parent);return m===void 0?e.emptyArray:e.flatMap(de.isUnion()?de.types:[de],function(ae){var V=ae.getProperty(m);return V&&G(P,V,A)})}return e.concatenate(ee,N(P,A)||G(P,U,A))}}O.getDefinitionAtPosition=L;function W(Z,k){return Z===k.symbol||Z===k.symbol.parent||e.isAssignmentExpression(k.parent)||!e.isCallLikeExpression(k.parent)&&Z===k.parent.symbol}function N(Z,k){var I=e.getContainingObjectLiteralElement(k);if(I){var ne=I&&Z.getContextualType(I.parent);if(ne)return e.flatMap(e.getPropertySymbolsFromContextualType(I,Z,ne,!1),function(ee){return G(Z,ee,k)})}}function Q(Z,k){var I=e.findAncestor(k,e.isClassElement);if(!!(I&&I.name)){var ne=e.findAncestor(I,e.isClassLike);if(!!ne){var ee=e.getEffectiveBaseTypeNode(ne),A=ee?Z.getTypeAtLocation(ee):void 0;if(!!A){var f=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(I.name)),P=e.hasStaticModifier(I)?Z.getPropertyOfType(Z.getTypeOfSymbolAtLocation(A.symbol,ne),f):Z.getPropertyOfType(A,f);if(!!P)return G(Z,P,k)}}}}function pe(Z,k,I){var ne,ee,A=M(Z.referencedFiles,k);if(A){var f=I.getSourceFileFromReference(Z,A);return f&&{reference:A,fileName:f.fileName,file:f,unverified:!1}}var P=M(Z.typeReferenceDirectives,k);if(P){var D=I.getResolvedTypeReferenceDirectives().get(P.fileName),f=D&&I.getSourceFile(D.resolvedFileName);return f&&{reference:P,fileName:f.fileName,file:f,unverified:!1}}var l=M(Z.libReferenceDirectives,k);if(l){var f=I.getLibFileFromReference(l);return f&&{reference:l,fileName:f.fileName,file:f,unverified:!1}}if(!((ne=Z.resolvedModules)===null||ne===void 0)&&ne.size()){var _=e.getTouchingToken(Z,k);if(e.isModuleSpecifierLike(_)&&e.isExternalModuleNameRelative(_.text)&&Z.resolvedModules.has(_.text,e.getModeForUsageLocation(Z,_))){var J=(ee=Z.resolvedModules.get(_.text,e.getModeForUsageLocation(Z,_)))===null||ee===void 0?void 0:ee.resolvedFileName,w=J||e.resolvePath(e.getDirectoryPath(Z.fileName),_.text);return{file:I.getSourceFile(w),fileName:w,reference:{pos:_.getStart(),end:_.getEnd(),fileName:_.text},unverified:!J}}}}O.getReferenceAtPosition=pe;function F(Z,k,I){var ne=e.getTouchingPropertyName(k,I);if(ne!==k){var ee=p(ne,Z);if(!!ee){var A=Z.getTypeOfSymbolAtLocation(ee,ne),f=S(ee,A,Z),P=f&&g(f,Z,ne),D=P&&P.length!==0?P:g(A,Z,ne);return D.length?D:!(ee.flags&111551)&&ee.flags&788968?G(Z,e.skipAlias(ee,Z),ne):void 0}}}O.getTypeDefinitionAtPosition=F;function g(Z,k,I){return e.flatMap(Z.isUnion()&&!(Z.flags&32)?Z.types:[Z],function(ne){return ne.symbol&&G(k,ne.symbol,I)})}function S(Z,k,I){if(k.symbol===Z||Z.valueDeclaration&&k.symbol&&e.isVariableDeclaration(Z.valueDeclaration)&&Z.valueDeclaration.initializer===k.symbol.valueDeclaration){var ne=k.getCallSignatures();if(ne.length===1)return I.getReturnTypeOfSignature(e.first(ne))}}function H(Z,k,I){var ne=L(Z,k,I);if(!(!ne||ne.length===0)){var ee=M(k.referencedFiles,I)||M(k.typeReferenceDirectives,I)||M(k.libReferenceDirectives,I);if(ee)return{definitions:ne,textSpan:e.createTextSpanFromRange(ee)};var A=e.getTouchingPropertyName(k,I),f=e.createTextSpan(A.getStart(),A.getWidth());return{definitions:ne,textSpan:f}}}O.getDefinitionAndBoundSpan=H;function se(Z,k){return e.mapDefined(k.getIndexInfosAtLocation(Z),function(I){return I.declaration&&re(k,I.declaration)})}function p(Z,k){var I=k.getSymbolAtLocation(Z);if((I==null?void 0:I.declarations)&&I.flags&2097152&&C(Z,I.declarations[0])){var ne=k.getAliasedSymbol(I);if(ne.declarations)return ne}return I}function C(Z,k){if(Z.kind!==79)return!1;if(Z.parent===k)return!0;switch(k.kind){case 266:case 264:return!0;case 269:return k.parent.kind===268;case 202:case 253:return e.isInJSFile(k)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(k);default:return!1}}function G(Z,k,I,ne){var ee=e.filter(k.declarations,function(D){return D!==ne&&(!e.isAssignmentDeclaration(D)||D===k.valueDeclaration)})||void 0;return A()||f()||e.map(ee,function(D){return E(D,Z,k,I)});function A(){if(k.flags&32&&!(k.flags&19)&&(e.isNewExpressionTarget(I)||I.kind===134)){var D=e.find(ee,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return P(D.members,!0)}}function f(){return e.isCallOrNewExpressionTarget(I)||e.isNameOfFunctionDeclaration(I)?P(ee,!1):void 0}function P(D,l){if(!!D){var _=D.filter(l?e.isConstructorDeclaration:e.isFunctionLike),J=_.filter(function(w){return!!w.body});return _.length?J.length!==0?J.map(function(w){return E(w,Z,k,I)}):[E(e.last(_),Z,k,I)]:void 0}}}function E(Z,k,I,ne){var ee=k.symbolToString(I),A=e.SymbolDisplay.getSymbolKind(k,I,ne),f=I.parent?k.symbolToString(I.parent,ne):"";return ue(k,Z,A,ee,f)}function ue(Z,k,I,ne,ee,A){var f=k.getSourceFile();if(!A){var P=e.getNameOfDeclaration(k)||k;A=e.createTextSpanFromNode(P,f)}return Ve(Ve({fileName:f.fileName,textSpan:A,kind:I,name:ne,containerKind:void 0,containerName:ee},e.FindAllReferences.toContextSpan(A,f,e.FindAllReferences.getContextNode(k))),{isLocal:!B(Z,k)})}function B(Z,k){if(Z.isDeclarationVisible(k))return!0;if(!k.parent)return!1;if(e.hasInitializer(k.parent)&&k.parent.initializer===k)return B(Z,k.parent);switch(k.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(k,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return B(Z,k.parent);default:return!1}}function re(Z,k){return E(k,Z,k.symbol,k)}function M(Z,k){return e.find(Z,function(I){return e.textRangeContainsPositionInclusive(I,k)})}O.findReferenceInPosition=M;function x(Z,k,I){return{fileName:k,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:Z,containerName:void 0,containerKind:void 0,unverified:I}}function ie(Z){var k=e.findAncestor(Z,function(ne){return!e.isRightSideOfPropertyAccess(ne)}),I=k==null?void 0:k.parent;return I&&e.isCallLikeExpression(I)&&e.getInvokedExpression(I)===k?I:void 0}function _e(Z,k){var I=ie(k),ne=I&&Z.getResolvedSignature(I);return e.tryCast(ne&&ne.declaration,function(ee){return e.isFunctionLike(ee)&&!e.isFunctionTypeNode(ee)})}function Y(Z){switch(Z.kind){case 170:case 179:case 174:return!0;default:return!1}}})(a=e.GoToDefinition||(e.GoToDefinition={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],W,N;function Q(k,I){var ne=[];return e.forEachUnique(k,function(ee){for(var A=0,f=F(ee);A<f.length;A++){var P=f[A];if(!(P.comment===void 0||e.isJSDoc(P)&&ee.kind!==343&&ee.kind!==336&&P.tags&&P.tags.some(function(l){return l.kind===343||l.kind===336})&&!P.tags.some(function(l){return l.kind===338||l.kind===339}))){var D=S(P.comment,I);e.contains(ne,D,pe)||ne.push(D)}}}),e.flatten(e.intersperse(ne,[e.lineBreakPart()]))}O.getJsDocCommentsFromDeclarations=Q;function pe(k,I){return e.arraysEqual(k,I,function(ne,ee){return ne.kind===ee.kind&&ne.text===ee.text})}function F(k){switch(k.kind){case 338:case 345:return[k];case 336:case 343:return[k,k.parent];default:return e.getJSDocCommentsAndTags(k)}}function g(k,I){var ne=[];return e.forEachUnique(k,function(ee){var A=e.getJSDocTags(ee);if(!(A.some(function(l){return l.kind===343||l.kind===336})&&!A.some(function(l){return l.kind===338||l.kind===339})))for(var f=0,P=A;f<P.length;f++){var D=P[f];ne.push({name:D.tagName.text,text:H(D,I)})}}),ne}O.getJsDocTagsFromDeclarations=g;function S(k,I){return typeof k=="string"?[e.textPart(k)]:e.flatMap(k,function(ne){return ne.kind===319?[e.textPart(ne.text)]:e.buildLinkParts(ne,I)})}function H(k,I){var ne=k.comment,ee=k.kind,A=se(ee);switch(ee){case 327:return _(k.class);case 326:return _(k.class);case 342:var f=k,P=[];if(f.constraint&&P.push(e.textPart(f.constraint.getText())),e.length(f.typeParameters)){e.length(P)&&P.push(e.spacePart());var D=f.typeParameters[f.typeParameters.length-1];e.forEach(f.typeParameters,function(w){P.push(A(w.getText())),D!==w&&P.push.apply(P,[e.punctuationPart(27),e.spacePart()])})}return ne&&P.push.apply(P,qe([e.spacePart()],S(ne,I),!0)),P;case 341:return _(k.typeExpression);case 343:case 336:case 345:case 338:case 344:var l=k.name;return l?_(l):ne===void 0?void 0:S(ne,I);default:return ne===void 0?void 0:S(ne,I)}function _(w){return J(w.getText())}function J(w){return ne?w.match(/^https?$/)?qe([e.textPart(w)],S(ne,I),!0):qe([A(w),e.spacePart()],S(ne,I),!0):[e.textPart(w)]}}function se(k){switch(k){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}function p(){return W||(W=e.map(L,function(k){return{name:k,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}O.getJSDocTagNameCompletions=p,O.getJSDocTagNameCompletionDetails=G;function C(){return N||(N=e.map(L,function(k){return{name:"@".concat(k),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}O.getJSDocTagCompletions=C;function G(k){return{name:k,kind:"",kindModifiers:"",displayParts:[e.textPart(k)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}O.getJSDocTagCompletionDetails=G;function E(k){if(!e.isIdentifier(k.name))return e.emptyArray;var I=k.name.text,ne=k.parent,ee=ne.parent;return e.isFunctionLike(ee)?e.mapDefined(ee.parameters,function(A){if(!!e.isIdentifier(A.name)){var f=A.name.text;if(!(ne.tags.some(function(P){return P!==k&&e.isJSDocParameterTag(P)&&e.isIdentifier(P.name)&&P.name.escapedText===f})||I!==void 0&&!e.startsWith(f,I)))return{name:f,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}O.getJSDocParameterNameCompletions=E;function ue(k){return{name:k,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(k)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}O.getJSDocParameterNameCompletionDetails=ue;function B(k,I,ne,ee){var A=e.getTokenAtPosition(I,ne),f=e.findAncestor(A,e.isJSDoc);if(!(f&&(f.comment!==void 0||e.length(f.tags)))){var P=A.getStart(I);if(!(!f&&P<ne)){var D=ie(A,ee);if(!!D){var l=D.commentOwner,_=D.parameters,J=D.hasReturn;if(!(l.getStart(I)<ne)){var w=re(I,ne),j=e.hasJSFileExtension(I.fileName),U=(_?M(_||[],j,w,k):"")+(J?x(w,k):""),z="/**",y=" */";if(U){var oe=z+k+w+" * ",ve=P===ne?k+w:"",ce=oe+k+U+w+y+ve;return{newText:ce,caretOffset:oe.length}}return{newText:z+y,caretOffset:3}}}}}}O.getDocCommentTemplateAtPosition=B;function re(k,I){for(var ne=k.text,ee=e.getLineStartPositionForPosition(I,k),A=ee;A<=I&&e.isWhiteSpaceSingleLine(ne.charCodeAt(A));A++);return ne.slice(ee,A)}function M(k,I,ne,ee){return k.map(function(A,f){var P=A.name,D=A.dotDotDotToken,l=P.kind===79?P.text:"param"+f,_=I?D?"{...any} ":"{any} ":"";return"".concat(ne," * @param ").concat(_).concat(l).concat(ee)}).join("")}function x(k,I){return"".concat(k," * @returns").concat(I)}function ie(k,I){return e.forEachAncestor(k,function(ne){return _e(ne,I)})}function _e(k,I){switch(k.kind){case 255:case 212:case 168:case 170:case 167:case 213:var ne=k;return{commentOwner:k,parameters:ne.parameters,hasReturn:Y(ne,I)};case 294:return _e(k.initializer,I);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:k};case 236:{var ee=k,A=ee.declarationList.declarations,f=A.length===1&&A[0].initializer?Z(A[0].initializer):void 0;return f?{commentOwner:k,parameters:f.parameters,hasReturn:Y(f,I)}:{commentOwner:k}}case 303:return"quit";case 260:return k.parent.kind===260?void 0:{commentOwner:k};case 237:return _e(k.expression,I);case 220:{var P=k;return e.getAssignmentDeclarationKind(P)===0?"quit":e.isFunctionLike(P.right)?{commentOwner:k,parameters:P.right.parameters,hasReturn:Y(P.right,I)}:{commentOwner:k}}case 166:var D=k.initializer;if(D&&(e.isFunctionExpression(D)||e.isArrowFunction(D)))return{commentOwner:k,parameters:D.parameters,hasReturn:Y(D,I)}}}function Y(k,I){return!!(I!=null&&I.generateReturnInDocTemplate)&&(e.isArrowFunction(k)&&e.isExpression(k.body)||e.isFunctionLikeDeclaration(k)&&k.body&&e.isBlock(k.body)&&!!e.forEachReturnStatement(k.body,function(ne){return ne}))}function Z(k){for(;k.kind===211;)k=k.expression;switch(k.kind){case 212:case 213:return k;case 225:return e.find(k.members,e.isConstructorDeclaration)}}})(a=e.JsDoc||(e.JsDoc={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(se,p,C,G,E,ue){var B=e.createPatternMatcher(G);if(!B)return e.emptyArray;for(var re=[],M=function(Y){if(C.throwIfCancellationRequested(),ue&&Y.isDeclarationFile)return"continue";Y.getNamedDeclarations().forEach(function(Z,k){W(B,k,Z,p,Y.fileName,re)})},x=0,ie=se;x<ie.length;x++){var _e=ie[x];M(_e)}return re.sort(S),(E===void 0?re:re.slice(0,E)).map(H)}O.getNavigateToItems=L;function W(se,p,C,G,E,ue){var B=se.getMatchForLastSegmentOfPattern(p);if(!!B)for(var re=0,M=C;re<M.length;re++){var x=M[re];if(!!N(x,G))if(se.patternContainsDots){var ie=se.getFullMatch(g(x),p);ie&&ue.push({name:p,fileName:E,matchKind:ie.kind,isCaseSensitive:ie.isCaseSensitive,declaration:x})}else ue.push({name:p,fileName:E,matchKind:B.kind,isCaseSensitive:B.isCaseSensitive,declaration:x})}}function N(se,p){switch(se.kind){case 266:case 269:case 264:var C=p.getSymbolAtLocation(se.name),G=p.getAliasedSymbol(C);return C.escapedName!==G.escapedName;default:return!0}}function Q(se,p){var C=e.getNameOfDeclaration(se);return!!C&&(F(C,p)||C.kind===161&&pe(C.expression,p))}function pe(se,p){return F(se,p)||e.isPropertyAccessExpression(se)&&(p.push(se.name.text),!0)&&pe(se.expression,p)}function F(se,p){return e.isPropertyNameLiteral(se)&&(p.push(e.getTextOfIdentifierOrLiteral(se)),!0)}function g(se){var p=[],C=e.getNameOfDeclaration(se);if(C&&C.kind===161&&!pe(C.expression,p))return e.emptyArray;p.shift();for(var G=e.getContainerNode(se);G;){if(!Q(G,p))return e.emptyArray;G=e.getContainerNode(G)}return p.reverse()}function S(se,p){return e.compareValues(se.matchKind,p.matchKind)||e.compareStringsCaseSensitiveUI(se.name,p.name)}function H(se){var p=se.declaration,C=e.getContainerNode(p),G=C&&e.getNameOfDeclaration(C);return{name:se.name,kind:e.getNodeKind(p),kindModifiers:e.getNodeModifiers(p),matchKind:e.PatternMatchKind[se.matchKind],isCaseSensitive:se.isCaseSensitive,fileName:se.fileName,textSpan:e.createTextSpanFromNode(p),containerName:G?G.text:"",containerKind:G?e.getNodeKind(C):""}}})(a=e.NavigateTo||(e.NavigateTo={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W=/\s+/g,N=150,Q,pe,F=[],g,S=[],H,se=[];function p(he,we){Q=we,pe=he;try{return e.map(ce(re(he)),de)}finally{G()}}O.getNavigationBarItems=p;function C(he,we){Q=we,pe=he;try{return m(re(he))}finally{G()}}O.getNavigationTree=C;function G(){pe=void 0,Q=void 0,F=[],g=void 0,se=[]}function E(he){return er(he.getText(pe))}function ue(he){return he.node.kind}function B(he,we){he.children?he.children.push(we):he.children=[we]}function re(he){e.Debug.assert(!F.length);var we={node:he,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};g=we;for(var ye=0,Se=he.statements;ye<Se.length;ye++){var ge=Se[ye];A(ge)}return k(),e.Debug.assert(!g&&!F.length),we}function M(he,we){B(g,x(he,we))}function x(he,we){return{node:he,name:we||(e.isDeclaration(he)||e.isExpression(he)?e.getNameOfDeclaration(he):void 0),additionalNodes:void 0,parent:g,children:void 0,indent:g.indent+1}}function ie(he){H||(H=new e.Map),H.set(he,!0)}function _e(he){for(var we=0;we<he;we++)k()}function Y(he,we){for(var ye=[];!e.isPropertyNameLiteral(we);){var Se=e.getNameOrArgument(we),ge=e.getElementOrPropertyAccessName(we);we=we.expression,!(ge==="prototype"||e.isPrivateIdentifier(Se))&&ye.push(Se)}ye.push(we);for(var Fe=ye.length-1;Fe>0;Fe--){var Se=ye[Fe];Z(he,Se)}return[ye.length-1,ye[0]]}function Z(he,we){var ye=x(he,we);B(g,ye),F.push(g),S.push(H),H=void 0,g=ye}function k(){g.children&&(f(g.children,g),z(g.children)),g=F.pop(),H=S.pop()}function I(he,we,ye){Z(he,ye),A(we),k()}function ne(he){he.initializer&&Ge(he.initializer)?(Z(he),e.forEachChild(he.initializer,A),k()):I(he,he.initializer)}function ee(he){return!e.hasDynamicName(he)||he.kind!==220&&e.isPropertyAccessExpression(he.name.expression)&&e.isIdentifier(he.name.expression.expression)&&e.idText(he.name.expression.expression)==="Symbol"}function A(he){var we;if(Q.throwIfCancellationRequested(),!(!he||e.isToken(he)))switch(he.kind){case 170:var ye=he;I(ye,ye.body);for(var Se=0,ge=ye.parameters;Se<ge.length;Se++){var Fe=ge[Se];e.isParameterPropertyDeclaration(Fe,ye)&&M(Fe)}break;case 168:case 171:case 172:case 167:ee(he)&&I(he,he.body);break;case 166:ee(he)&&ne(he);break;case 165:ee(he)&&M(he);break;case 266:var cr=he;cr.name&&M(cr.name);var ur=cr.namedBindings;if(ur)if(ur.kind===267)M(ur);else for(var Ir=0,dr=ur.elements;Ir<dr.length;Ir++){var Br=dr[Ir];M(Br)}break;case 295:I(he,he.name);break;case 296:var Tr=he.expression;e.isIdentifier(Tr)?M(he,Tr):M(he);break;case 202:case 294:case 253:{var n=he;e.isBindingPattern(n.name)?A(n.name):ne(n);break}case 255:var Er=he.name;Er&&e.isIdentifier(Er)&&ie(Er.text),I(he,he.body);break;case 213:case 212:I(he,he.body);break;case 259:Z(he);for(var br=0,Pr=he.members;br<Pr.length;br++){var Ce=Pr[br];Ue(Ce)||M(Ce)}k();break;case 256:case 225:case 257:Z(he);for(var Le=0,Xe=he.members;Le<Xe.length;Le++){var Ce=Xe[Le];A(Ce)}k();break;case 260:I(he,ke(he).body);break;case 270:{var Cr=he.expression,n=e.isObjectLiteralExpression(Cr)||e.isCallExpression(Cr)?Cr:e.isArrowFunction(Cr)||e.isFunctionExpression(Cr)?Cr.body:void 0;n?(Z(he),A(n),k()):M(he);break}case 274:case 264:case 175:case 173:case 174:case 258:M(he);break;case 207:case 220:{var Lr=e.getAssignmentDeclarationKind(he);switch(Lr){case 1:case 2:I(he,he.right);return;case 6:case 3:{var Jr=he,Rr=Jr.left,ci=Lr===3?Rr.expression:Rr,be=0,or=void 0;e.isIdentifier(ci.expression)?(ie(ci.expression.text),or=ci.expression):(we=Y(Jr,ci.expression),be=we[0],or=we[1]),Lr===6?e.isObjectLiteralExpression(Jr.right)&&Jr.right.properties.length>0&&(Z(Jr,or),e.forEachChild(Jr.right,A),k()):e.isFunctionExpression(Jr.right)||e.isArrowFunction(Jr.right)?I(he,Jr.right,or):(Z(Jr,or),I(he,Jr.right,Rr.name),k()),_e(be);return}case 7:case 9:{var Kr=he,or=Lr===7?Kr.arguments[0]:Kr.arguments[0].expression,ei=Kr.arguments[1],li=Y(he,or),be=li[0],Si=li[1];Z(he,Si),Z(he,e.setTextRange(e.factory.createIdentifier(ei.text),ei)),A(he.arguments[2]),k(),k(),_e(be);return}case 5:{var Jr=he,Rr=Jr.left,qi=Rr.expression;if(e.isIdentifier(qi)&&e.getElementOrPropertyAccessName(Rr)!=="prototype"&&H&&H.has(qi.text)){e.isFunctionExpression(Jr.right)||e.isArrowFunction(Jr.right)?I(he,Jr.right,qi):e.isBindableStaticAccessExpression(Rr)&&(Z(Jr,qi),I(Jr.left,Jr.right,e.getNameOrArgument(Rr)),k());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(Lr)}}default:e.hasJSDocNodes(he)&&e.forEach(he.jsDoc,function(ft){e.forEach(ft.tags,function(bt){e.isJSDocTypeAlias(bt)&&M(bt)})}),e.forEachChild(he,A)}}function f(he,we){var ye=new e.Map;e.filterMutate(he,function(Se,ge){var Fe=Se.name||e.getNameOfDeclaration(Se.node),cr=Fe&&E(Fe);if(!cr)return!0;var ur=ye.get(cr);if(!ur)return ye.set(cr,Se),!0;if(ur instanceof Array){for(var Ir=0,dr=ur;Ir<dr.length;Ir++){var Br=dr[Ir];if(l(Br,Se,ge,we))return!1}return ur.push(Se),!0}else{var Br=ur;return l(Br,Se,ge,we)?!1:(ye.set(cr,[Br,Se]),!0)}})}var P=(L={},L[5]=!0,L[3]=!0,L[7]=!0,L[9]=!0,L[0]=!1,L[1]=!1,L[2]=!1,L[8]=!1,L[6]=!0,L[4]=!1,L);function D(he,we,ye,Se){function ge(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)||e.isVariableDeclaration(n)}var Fe=e.isBinaryExpression(we.node)||e.isCallExpression(we.node)?e.getAssignmentDeclarationKind(we.node):0,cr=e.isBinaryExpression(he.node)||e.isCallExpression(he.node)?e.getAssignmentDeclarationKind(he.node):0;if(P[Fe]&&P[cr]||ge(he.node)&&P[Fe]||ge(we.node)&&P[cr]||e.isClassDeclaration(he.node)&&J(he.node)&&P[Fe]||e.isClassDeclaration(we.node)&&P[cr]||e.isClassDeclaration(he.node)&&J(he.node)&&ge(we.node)||e.isClassDeclaration(we.node)&&ge(he.node)&&J(he.node)){var ur=he.additionalNodes&&e.lastOrUndefined(he.additionalNodes)||he.node;if(!e.isClassDeclaration(he.node)&&!e.isClassDeclaration(we.node)||ge(he.node)||ge(we.node)){var Ir=ge(he.node)?he.node:ge(we.node)?we.node:void 0;if(Ir!==void 0){var dr=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),Ir),Br=x(dr);Br.indent=he.indent+1,Br.children=he.node===Ir?he.children:we.children,he.children=he.node===Ir?e.concatenate([Br],we.children||[we]):e.concatenate(he.children||[Ve({},he)],[Br])}else(he.children||we.children)&&(he.children=e.concatenate(he.children||[Ve({},he)],we.children||[we]),he.children&&(f(he.children,he),z(he.children)));ur=he.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,he.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),he.node)}else he.children=e.concatenate(he.children,we.children),he.children&&f(he.children,he);var Tr=we.node;return Se.children[ye-1].node.end===ur.end?e.setTextRange(ur,{pos:ur.pos,end:Tr.end}):(he.additionalNodes||(he.additionalNodes=[]),he.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,he.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),we.node))),!0}return Fe!==0}function l(he,we,ye,Se){return D(he,we,ye,Se)?!0:_(he.node,we.node,Se)?(U(he,we),!0):!1}function _(he,we,ye){if(he.kind!==we.kind||he.parent!==we.parent&&!(w(he,ye)&&w(we,ye)))return!1;switch(he.kind){case 166:case 168:case 171:case 172:return e.isStatic(he)===e.isStatic(we);case 260:return j(he,we)&&le(he)===le(we);default:return!0}}function J(he){return!!(he.flags&8)}function w(he,we){var ye=e.isModuleBlock(he.parent)?he.parent.parent:he.parent;return ye===we.node||e.contains(we.additionalNodes,ye)}function j(he,we){return!he.body||!we.body?he.body===we.body:he.body.kind===we.body.kind&&(he.body.kind!==260||j(he.body,we.body))}function U(he,we){var ye;he.additionalNodes=he.additionalNodes||[],he.additionalNodes.push(we.node),we.additionalNodes&&(ye=he.additionalNodes).push.apply(ye,we.additionalNodes),he.children=e.concatenate(he.children,we.children),he.children&&(f(he.children,he),z(he.children))}function z(he){he.sort(y)}function y(he,we){return e.compareStringsCaseSensitiveUI(oe(he.node),oe(we.node))||e.compareValues(ue(he),ue(we))}function oe(he){if(he.kind===260)return V(he);var we=e.getNameOfDeclaration(he);if(we&&e.isPropertyName(we)){var ye=e.getPropertyNameForPropertyNameNode(we);return ye&&e.unescapeLeadingUnderscores(ye)}switch(he.kind){case 212:case 213:case 225:return gr(he);default:return}}function ve(he,we){if(he.kind===260)return er(V(he));if(we){var ye=e.isIdentifier(we)?we.text:e.isElementAccessExpression(we)?"[".concat(E(we.argumentExpression),"]"):E(we);if(ye.length>0)return er(ye)}switch(he.kind){case 303:var Se=he;return e.isExternalModule(Se)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Se.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(he)&&he.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return e.getSyntacticModifierFlags(he)&512?"default":gr(he);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function ce(he){var we=[];function ye(ge){if(Se(ge)&&(we.push(ge),ge.children))for(var Fe=0,cr=ge.children;Fe<cr.length;Fe++){var ur=cr[Fe];ye(ur)}}return ye(he),we;function Se(ge){if(ge.children)return!0;switch(ue(ge)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return Fe(ge);default:return!1}function Fe(cr){if(!cr.node.body)return!1;switch(ue(cr.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}function m(he){return{text:ve(he.node,he.name),kind:e.getNodeKind(he.node),kindModifiers:ar(he.node),spans:ae(he),nameSpan:he.name&&He(he.name),childItems:e.map(he.children,m)}}function de(he){return{text:ve(he.node,he.name),kind:e.getNodeKind(he.node),kindModifiers:ar(he.node),spans:ae(he),childItems:e.map(he.children,we)||se,indent:he.indent,bolded:!1,grayed:!1};function we(ye){return{text:ve(ye.node,ye.name),kind:e.getNodeKind(ye.node),kindModifiers:e.getNodeModifiers(ye.node),spans:ae(ye),childItems:se,indent:0,bolded:!1,grayed:!1}}}function ae(he){var we=[He(he.node)];if(he.additionalNodes)for(var ye=0,Se=he.additionalNodes;ye<Se.length;ye++){var ge=Se[ye];we.push(He(ge))}return we}function V(he){return e.isAmbientModule(he)?e.getTextOfNode(he.name):le(he)}function le(he){for(var we=[e.getTextOfIdentifierOrLiteral(he.name)];he.body&&he.body.kind===260;)he=he.body,we.push(e.getTextOfIdentifierOrLiteral(he.name));return we.join(".")}function ke(he){return he.body&&e.isModuleDeclaration(he.body)?ke(he.body):he}function Ue(he){return!he.name||he.name.kind===161}function He(he){return he.kind===303?e.createTextSpanFromRange(he):e.createTextSpanFromNode(he,pe)}function ar(he){return he.parent&&he.parent.kind===253&&(he=he.parent),e.getNodeModifiers(he)}function gr(he){var we=he.parent;if(he.name&&e.getFullWidth(he.name)>0)return er(e.declarationNameToString(he.name));if(e.isVariableDeclaration(we))return er(e.declarationNameToString(we.name));if(e.isBinaryExpression(we)&&we.operatorToken.kind===63)return E(we.left).replace(W,"");if(e.isPropertyAssignment(we))return E(we.name);if(e.getSyntacticModifierFlags(he)&512)return"default";if(e.isClassLike(he))return"<class>";if(e.isCallExpression(we)){var ye=me(we.expression);if(ye!==void 0){if(ye=er(ye),ye.length>N)return"".concat(ye," callback");var Se=er(e.mapDefined(we.arguments,function(ge){return e.isStringLiteralLike(ge)?ge.getText(pe):void 0}).join(", "));return"".concat(ye,"(").concat(Se,") callback")}}return"<function>"}function me(he){if(e.isIdentifier(he))return he.text;if(e.isPropertyAccessExpression(he)){var we=me(he.expression),ye=he.name.text;return we===void 0?ye:"".concat(we,".").concat(ye)}else return}function Ge(he){switch(he.kind){case 213:case 212:case 225:return!0;default:return!1}}function er(he){return he=he.length>N?he.substring(0,N)+"...":he,he.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(a=e.NavigationBar||(e.NavigationBar={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Z,k,I,ne,ee,A){var f=e.textChanges.ChangeTracker.fromContext({host:I,formatContext:k,preferences:ee}),P=function(y){return e.stableSort(pe(W(y,Z,ne,A)),function(oe,ve){return M(oe,ve)})},D=Z.statements.filter(e.isImportDeclaration);z(D,P);var l=Z.statements.filter(e.isExportDeclaration);z(l,g);for(var _=0,J=Z.statements.filter(e.isAmbientModule);_<J.length;_++){var w=J[_];if(!!w.body){var j=w.body.statements.filter(e.isImportDeclaration);z(j,P);var U=w.body.statements.filter(e.isExportDeclaration);z(U,g)}}return f.getChanges();function z(y,oe){if(e.length(y)!==0){e.suppressLeadingTrivia(y[0]);var ve=e.group(y,function(V){return Q(V.moduleSpecifier)}),ce=e.stableSort(ve,function(V,le){return p(V[0].moduleSpecifier,le[0].moduleSpecifier)}),m=e.flatMap(ce,function(V){return Q(V[0].moduleSpecifier)?oe(V):V});if(m.length===0)f.deleteNodes(Z,y,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var de={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(I,k.options)};f.replaceNodeWithNodes(Z,y[0],m,de);var ae=f.nodeHasTrailingComment(Z,y[0],de);f.deleteNodes(Z,y.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},ae)}}}}O.organizeImports=L;function W(Z,k,I,ne){if(ne)return Z;for(var ee=I.getTypeChecker(),A=ee.getJsxNamespace(k),f=ee.getJsxFragmentFactory(k),P=!!(k.transformFlags&2),D=[],l=0,_=Z;l<_.length;l++){var J=_[l],w=J.importClause,j=J.moduleSpecifier;if(!w){D.push(J);continue}var U=w.name,z=w.namedBindings;if(U&&!oe(U)&&(U=void 0),z)if(e.isNamespaceImport(z))oe(z.name)||(z=void 0);else{var y=z.elements.filter(function(ve){return oe(ve.name)});y.length<z.elements.length&&(z=y.length?e.factory.updateNamedImports(z,y):void 0)}U||z?D.push(S(J,U,z)):N(k,j)&&(k.isDeclarationFile?D.push(e.factory.createImportDeclaration(J.decorators,J.modifiers,void 0,j,void 0)):D.push(J))}return D;function oe(ve){return P&&(ve.text===A||f&&ve.text===f)||e.FindAllReferences.Core.isSymbolReferencedInFile(ve,ee,k)}}function N(Z,k){var I=e.isStringLiteral(k)&&k.text;return e.isString(I)&&e.some(Z.moduleAugmentations,function(ne){return e.isStringLiteral(ne)&&ne.text===I})}function Q(Z){return Z!==void 0&&e.isStringLiteralLike(Z)?Z.text:void 0}function pe(Z){var k;if(Z.length===0)return Z;var I=F(Z),ne=I.importWithoutClause,ee=I.typeOnlyImports,A=I.regularImports,f=[];ne&&f.push(ne);for(var P=0,D=[A,ee];P<D.length;P++){var l=D[P],_=l===ee,J=l.defaultImports,w=l.namespaceImports,j=l.namedImports;if(!_&&J.length===1&&w.length===1&&j.length===0){var U=J[0];f.push(S(U,U.importClause.name,w[0].importClause.namedBindings));continue}for(var z=e.stableSort(w,function(Ue,He){return C(Ue.importClause.namedBindings.name,He.importClause.namedBindings.name)}),y=0,oe=z;y<oe.length;y++){var ve=oe[y];f.push(S(ve,void 0,ve.importClause.namedBindings))}if(!(J.length===0&&j.length===0)){var ce=void 0,m=[];if(J.length===1)ce=J[0].importClause.name;else for(var de=0,ae=J;de<ae.length;de++){var U=ae[de];m.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),U.importClause.name))}m.push.apply(m,_e(j));var V=H(m),le=J.length>0?J[0]:j[0],ke=V.length===0?ce?void 0:e.factory.createNamedImports(e.emptyArray):j.length===0?e.factory.createNamedImports(V):e.factory.updateNamedImports(j[0].importClause.namedBindings,V);_&&ce&&ke?(f.push(S(le,ce,void 0)),f.push(S((k=j[0])!==null&&k!==void 0?k:le,void 0,ke))):f.push(S(le,ce,ke))}}return f}O.coalesceImports=pe;function F(Z){for(var k,I={defaultImports:[],namespaceImports:[],namedImports:[]},ne={defaultImports:[],namespaceImports:[],namedImports:[]},ee=0,A=Z;ee<A.length;ee++){var f=A[ee];if(f.importClause===void 0){k=k||f;continue}var P=f.importClause.isTypeOnly?I:ne,D=f.importClause,l=D.name,_=D.namedBindings;l&&P.defaultImports.push(f),_&&(e.isNamespaceImport(_)?P.namespaceImports.push(f):P.namedImports.push(f))}return{importWithoutClause:k,typeOnlyImports:I,regularImports:ne}}function g(Z){if(Z.length===0)return Z;var k=w(Z),I=k.exportWithoutClause,ne=k.namedExports,ee=k.typeOnlyExports,A=[];I&&A.push(I);for(var f=0,P=[ne,ee];f<P.length;f++){var D=P[f];if(D.length!==0){var l=[];l.push.apply(l,e.flatMap(D,function(j){return j.exportClause&&e.isNamedExports(j.exportClause)?j.exportClause.elements:e.emptyArray}));var _=H(l),J=D[0];A.push(e.factory.updateExportDeclaration(J,J.decorators,J.modifiers,J.isTypeOnly,J.exportClause&&(e.isNamedExports(J.exportClause)?e.factory.updateNamedExports(J.exportClause,_):e.factory.updateNamespaceExport(J.exportClause,J.exportClause.name)),J.moduleSpecifier,J.assertClause))}}return A;function w(j){for(var U,z=[],y=[],oe=0,ve=j;oe<ve.length;oe++){var ce=ve[oe];ce.exportClause===void 0?U=U||ce:ce.isTypeOnly?y.push(ce):z.push(ce)}return{exportWithoutClause:U,namedExports:z,typeOnlyExports:y}}}O.coalesceExports=g;function S(Z,k,I){return e.factory.updateImportDeclaration(Z,Z.decorators,Z.modifiers,e.factory.updateImportClause(Z.importClause,Z.importClause.isTypeOnly,k,I),Z.moduleSpecifier,Z.assertClause)}function H(Z){return e.stableSort(Z,se)}function se(Z,k){return e.compareBooleans(Z.isTypeOnly,k.isTypeOnly)||C(Z.propertyName||Z.name,k.propertyName||k.name)||C(Z.name,k.name)}O.compareImportOrExportSpecifiers=se;function p(Z,k){var I=Z===void 0?void 0:Q(Z),ne=k===void 0?void 0:Q(k);return e.compareBooleans(I===void 0,ne===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(I),e.isExternalModuleNameRelative(ne))||e.compareStringsCaseInsensitive(I,ne)}O.compareModuleSpecifiers=p;function C(Z,k){return e.compareStringsCaseInsensitive(Z.text,k.text)}function G(Z){var k;switch(Z.kind){case 264:return(k=e.tryCast(Z.moduleReference,e.isExternalModuleReference))===null||k===void 0?void 0:k.expression;case 265:return Z.moduleSpecifier;case 236:return Z.declarationList.declarations[0].initializer.arguments[0]}}function E(Z){return e.arrayIsSorted(Z,M)}O.importsAreSorted=E;function ue(Z){return e.arrayIsSorted(Z,se)}O.importSpecifiersAreSorted=ue;function B(Z,k){var I=e.binarySearch(Z,k,e.identity,M);return I<0?~I:I}O.getImportDeclarationInsertionIndex=B;function re(Z,k){var I=e.binarySearch(Z,k,e.identity,se);return I<0?~I:I}O.getImportSpecifierInsertionIndex=re;function M(Z,k){return p(G(Z),G(k))||x(Z,k)}O.compareImportsOrRequireStatements=M;function x(Z,k){return e.compareValues(ie(Z),ie(k))}function ie(Z){var k;switch(Z.kind){case 265:return Z.importClause?Z.importClause.isTypeOnly?1:((k=Z.importClause.namedBindings)===null||k===void 0?void 0:k.kind)===267?2:Z.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}function _e(Z){return e.flatMap(Z,function(k){return e.map(Y(k),function(I){return I.name&&I.propertyName&&I.name.escapedText===I.propertyName.escapedText?e.factory.updateImportSpecifier(I,I.isTypeOnly,void 0,I.name):I})})}function Y(Z){var k;return((k=Z.importClause)===null||k===void 0?void 0:k.namedBindings)&&e.isNamedImports(Z.importClause.namedBindings)?Z.importClause.namedBindings.elements:void 0}})(a=e.OrganizeImports||(e.OrganizeImports={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(E,ue){var B=[];return W(E,ue,B),N(E,B),B.sort(function(re,M){return re.textSpan.start-M.textSpan.start})}O.collectElements=L;function W(E,ue,B){for(var re=40,M=0,x=qe(qe([],E.statements,!0),[E.endOfFileToken],!1),ie=x.length;M<ie;){for(;M<ie&&!e.isAnyImportSyntax(x[M]);)Z(x[M]),M++;if(M===ie)break;for(var _e=M;M<ie&&e.isAnyImportSyntax(x[M]);)g(x[M],E,ue,B),M++;var Y=M-1;Y!==_e&&B.push(S(e.findChildOfKind(x[_e],100,E).getStart(E),x[Y].getEnd(),"imports"))}function Z(k){var I;if(re!==0){ue.throwIfCancellationRequested(),(e.isDeclaration(k)||e.isVariableStatement(k)||e.isReturnStatement(k)||e.isCallOrNewExpression(k)||k.kind===1)&&g(k,E,ue,B),e.isFunctionLike(k)&&e.isBinaryExpression(k.parent)&&e.isPropertyAccessExpression(k.parent.left)&&g(k.parent.left,E,ue,B),(e.isBlock(k)||e.isModuleBlock(k))&&F(k.statements.end,E,ue,B),(e.isClassLike(k)||e.isInterfaceDeclaration(k))&&F(k.members.end,E,ue,B);var ne=H(k,E);ne&&B.push(ne),re--,e.isCallExpression(k)?(re++,Z(k.expression),re--,k.arguments.forEach(Z),(I=k.typeArguments)===null||I===void 0||I.forEach(Z)):e.isIfStatement(k)&&k.elseStatement&&e.isIfStatement(k.elseStatement)?(Z(k.expression),Z(k.thenStatement),re++,Z(k.elseStatement),re--):k.forEachChild(Z),re++}}}function N(E,ue){for(var B=[],re=E.getLineStarts(),M=0,x=re;M<x.length;M++){var ie=x[M],_e=E.getLineEndOfPosition(ie),Y=E.text.substring(ie,_e),Z=pe(Y);if(!(!Z||e.isInComment(E,ie)))if(Z[1]){var I=B.pop();I&&(I.textSpan.length=_e-I.textSpan.start,I.hintSpan.length=_e-I.textSpan.start,ue.push(I))}else{var k=e.createTextSpanFromBounds(E.text.indexOf("//",ie),_e);B.push(C(k,"region",k,!1,Z[2]||"#region"))}}}var Q=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function pe(E){return E=e.trimStringStart(E),e.startsWith(E,"//")?(E=e.trimString(E.slice(2)),Q.exec(E)):null}function F(E,ue,B,re){var M=e.getLeadingCommentRanges(ue.text,E);if(!M)return;for(var x=-1,ie=-1,_e=0,Y=ue.getFullText(),Z=0,k=M;Z<k.length;Z++){var I=k[Z],ne=I.kind,ee=I.pos,A=I.end;switch(B.throwIfCancellationRequested(),ne){case 2:var f=Y.slice(ee,A);if(pe(f)){P(),_e=0;break}_e===0&&(x=ee),ie=A,_e++;break;case 3:P(),re.push(S(ee,A,"comment")),_e=0;break;default:e.Debug.assertNever(ne)}}P();function P(){_e>1&&re.push(S(x,ie,"comment"))}}function g(E,ue,B,re){e.isJsxText(E)||F(E.pos,ue,B,re)}function S(E,ue,B){return C(e.createTextSpanFromBounds(E,ue),B)}function H(E,ue){switch(E.kind){case 234:if(e.isFunctionLike(E.parent))return se(E.parent,E,ue);switch(E.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return I(E.parent);case 251:var B=E.parent;if(B.tryBlock===E)return I(E.parent);if(B.finallyBlock===E){var re=e.findChildOfKind(B,96,ue);if(re)return I(re)}default:return C(e.createTextSpanFromNode(E,ue),"code")}case 261:return I(E.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return I(E);case 183:return I(E,!1,!e.isTupleTypeNode(E.parent),22);case 288:case 289:return ne(E.statements);case 204:return k(E);case 203:return k(E,22);case 277:return ie(E);case 281:return _e(E);case 278:case 279:return Y(E.attributes);case 222:case 14:return Z(E);case 201:return I(E,!1,!e.isBindingElement(E.parent),22);case 213:return x(E);case 207:return M(E)}function M(ee){if(!!ee.arguments.length){var A=e.findChildOfKind(ee,20,ue),f=e.findChildOfKind(ee,21,ue);if(!(!A||!f||e.positionsAreOnSameLine(A.pos,f.pos,ue)))return p(A,f,ee,ue,!1,!0)}}function x(ee){if(!(e.isBlock(ee.body)||e.positionsAreOnSameLine(ee.body.getFullStart(),ee.body.getEnd(),ue))){var A=e.createTextSpanFromBounds(ee.body.getFullStart(),ee.body.getEnd());return C(A,"code",e.createTextSpanFromNode(ee))}}function ie(ee){var A=e.createTextSpanFromBounds(ee.openingElement.getStart(ue),ee.closingElement.getEnd()),f=ee.openingElement.tagName.getText(ue),P="<"+f+">...</"+f+">";return C(A,"code",A,!1,P)}function _e(ee){var A=e.createTextSpanFromBounds(ee.openingFragment.getStart(ue),ee.closingFragment.getEnd()),f="<>...</>";return C(A,"code",A,!1,f)}function Y(ee){if(ee.properties.length!==0)return S(ee.getStart(ue),ee.getEnd(),"code")}function Z(ee){if(!(ee.kind===14&&ee.text.length===0))return S(ee.getStart(ue),ee.getEnd(),"code")}function k(ee,A){return A===void 0&&(A=18),I(ee,!1,!e.isArrayLiteralExpression(ee.parent)&&!e.isCallExpression(ee.parent),A)}function I(ee,A,f,P,D){A===void 0&&(A=!1),f===void 0&&(f=!0),P===void 0&&(P=18),D===void 0&&(D=P===18?19:23);var l=e.findChildOfKind(E,P,ue),_=e.findChildOfKind(E,D,ue);return l&&_&&p(l,_,ee,ue,A,f)}function ne(ee){return ee.length?C(e.createTextSpanFromRange(ee),"code"):void 0}}function se(E,ue,B){var re=G(E,ue,B),M=e.findChildOfKind(ue,19,B);return re&&M&&p(re,M,E,B,E.kind!==213)}function p(E,ue,B,re,M,x){M===void 0&&(M=!1),x===void 0&&(x=!0);var ie=e.createTextSpanFromBounds(x?E.getFullStart():E.getStart(re),ue.getEnd());return C(ie,"code",e.createTextSpanFromNode(B,re),M)}function C(E,ue,B,re,M){return B===void 0&&(B=E),re===void 0&&(re=!1),M===void 0&&(M="..."),{textSpan:E,kind:ue,hintSpan:B,bannerText:M,autoCollapse:re}}function G(E,ue,B){if(e.isNodeArrayMultiLine(E.parameters,B)){var re=e.findChildOfKind(E,20,B);if(re)return re}return e.findChildOfKind(ue,18,B)}})(a=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(f){f[f.exact=0]="exact",f[f.prefix=1]="prefix",f[f.substring=2]="substring",f[f.camelCase=3]="camelCase"})(a=e.PatternMatchKind||(e.PatternMatchKind={}));function O(f,P){return{kind:f,isCaseSensitive:P}}function L(f){var P=new e.Map,D=f.trim().split(".").map(function(l){return p(l.trim())});if(!D.some(function(l){return!l.subWordTextChunks.length}))return{getFullMatch:function(l,_){return W(l,_,D,P)},getMatchForLastSegmentOfPattern:function(l){return pe(l,e.last(D),P)},patternContainsDots:D.length>1}}e.createPatternMatcher=L;function W(f,P,D,l){var _=pe(P,e.last(D),l);if(!!_&&!(D.length-1>f.length)){for(var J,w=D.length-2,j=f.length-1;w>=0;w-=1,j-=1)J=F(J,pe(f[j],D[w],l));return J}}function N(f,P){var D=P.get(f);return D||P.set(f,D=_e(f)),D}function Q(f,P,D){var l=E(f,P.textLowerCase);if(l===0)return O(P.text.length===f.length?a.exact:a.prefix,e.startsWith(f,P.text));if(P.isLowerCase){if(l===-1)return;for(var _=N(f,D),J=0,w=_;J<w.length;J++){var j=w[J];if(S(f,j,P.text,!0))return O(a.substring,S(f,j,P.text,!1))}if(P.text.length<f.length&&C(f.charCodeAt(l)))return O(a.substring,!1)}else{if(f.indexOf(P.text)>0)return O(a.substring,!0);if(P.characterSpans.length>0){var U=N(f,D),z=se(f,U,P,!1)?!0:se(f,U,P,!0)?!1:void 0;if(z!==void 0)return O(a.camelCase,z)}}}function pe(f,P,D){if(A(P.totalTextChunk.text,function(z){return z!==32&&z!==42})){var l=Q(f,P.totalTextChunk,D);if(l)return l}for(var _=P.subWordTextChunks,J,w=0,j=_;w<j.length;w++){var U=j[w];J=F(J,Q(f,U,D))}return J}function F(f,P){return e.min(f,P,g)}function g(f,P){return f===void 0?1:P===void 0?-1:e.compareValues(f.kind,P.kind)||e.compareBooleans(!f.isCaseSensitive,!P.isCaseSensitive)}function S(f,P,D,l,_){return _===void 0&&(_={start:0,length:D.length}),_.length<=P.length&&ee(0,_.length,function(J){return H(D.charCodeAt(_.start+J),f.charCodeAt(P.start+J),l)})}function H(f,P,D){return D?ue(f)===ue(P):f===P}function se(f,P,D,l){for(var _=D.characterSpans,J=0,w=0,j,U;;){if(w===_.length)return!0;if(J===P.length)return!1;for(var z=P[J],y=!1;w<_.length;w++){var oe=_[w];if(y&&(!C(D.text.charCodeAt(_[w-1].start))||!C(D.text.charCodeAt(_[w].start)))||!S(f,z,D.text,l,oe))break;y=!0,j=j===void 0?J:j,U=U===void 0?!0:U,z=e.createTextSpan(z.start+oe.length,z.length-oe.length)}!y&&U!==void 0&&(U=!1),J++}}function p(f){return{totalTextChunk:x(f),subWordTextChunks:M(f)}}function C(f){if(f>=65&&f<=90)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var P=String.fromCharCode(f);return P===P.toUpperCase()}function G(f){if(f>=97&&f<=122)return!0;if(f<127||!e.isUnicodeIdentifierStart(f,99))return!1;var P=String.fromCharCode(f);return P===P.toLowerCase()}function E(f,P){for(var D=f.length-P.length,l=function(w){if(A(P,function(j,U){return ue(f.charCodeAt(U+w))===j}))return{value:w}},_=0;_<=D;_++){var J=l(_);if(typeof J=="object")return J.value}return-1}function ue(f){return f>=65&&f<=90?97+(f-65):f<127?f:String.fromCharCode(f).toLowerCase().charCodeAt(0)}function B(f){return f>=48&&f<=57}function re(f){return C(f)||G(f)||B(f)||f===95||f===36}function M(f){for(var P=[],D=0,l=0,_=0;_<f.length;_++){var J=f.charCodeAt(_);re(J)?(l===0&&(D=_),l++):l>0&&(P.push(x(f.substr(D,l))),l=0)}return l>0&&P.push(x(f.substr(D,l))),P}function x(f){var P=f.toLowerCase();return{text:f,textLowerCase:P,isLowerCase:f===P,characterSpans:ie(f)}}function ie(f){return Y(f,!1)}e.breakIntoCharacterSpans=ie;function _e(f){return Y(f,!0)}e.breakIntoWordSpans=_e;function Y(f,P){for(var D=[],l=0,_=1;_<f.length;_++){var J=B(f.charCodeAt(_-1)),w=B(f.charCodeAt(_)),j=ne(f,P,_),U=P&&I(f,_,l);(Z(f.charCodeAt(_-1))||Z(f.charCodeAt(_))||J!==w||j||U)&&(k(f,l,_)||D.push(e.createTextSpan(l,_-l)),l=_)}return k(f,l,f.length)||D.push(e.createTextSpan(l,f.length-l)),D}function Z(f){switch(f){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function k(f,P,D){return A(f,function(l){return Z(l)&&l!==95},P,D)}function I(f,P,D){return P!==D&&P+1<f.length&&C(f.charCodeAt(P))&&G(f.charCodeAt(P+1))&&A(f,C,D,P)}function ne(f,P,D){var l=C(f.charCodeAt(D-1)),_=C(f.charCodeAt(D));return _&&(!P||!l)}function ee(f,P,D){for(var l=f;l<P;l++)if(!D(l))return!1;return!0}function A(f,P,D,l){return D===void 0&&(D=0),l===void 0&&(l=f.length),ee(D,l,function(_){return P(f.charCodeAt(_),_)})}})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W){L===void 0&&(L=!0),W===void 0&&(W=!1);var N={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},Q=[],pe,F,g,S=0,H=!1;function se(){return F=g,g=e.scanner.scan(),g===18?S++:g===19&&S--,g}function p(){var ee=e.scanner.getTokenValue(),A=e.scanner.getTokenPos();return{fileName:ee,pos:A,end:A+ee.length}}function C(){pe||(pe=[]),pe.push({ref:p(),depth:S})}function G(){Q.push(p()),E()}function E(){S===0&&(H=!0)}function ue(){var ee=e.scanner.getToken();return ee===135?(ee=se(),ee===141&&(ee=se(),ee===10&&C()),!0):!1}function B(){if(F===24)return!1;var ee=e.scanner.getToken();if(ee===100){if(ee=se(),ee===20){if(ee=se(),ee===10||ee===14)return G(),!0}else{if(ee===10)return G(),!0;if(ee===151){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f!==155&&(f===41||f===18||f===79||e.isKeyword(f))});A&&(ee=se())}if(ee===79||e.isKeyword(ee))if(ee=se(),ee===155){if(ee=se(),ee===10)return G(),!0}else if(ee===63){if(M(!0))return!0}else if(ee===27)ee=se();else return!0;if(ee===18){for(ee=se();ee!==19&&ee!==1;)ee=se();ee===19&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))}else ee===41&&(ee=se(),ee===127&&(ee=se(),(ee===79||e.isKeyword(ee))&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))))}return!0}return!1}function re(){var ee=e.scanner.getToken();if(ee===93){if(E(),ee=se(),ee===151){var A=e.scanner.lookAhead(function(){var f=e.scanner.scan();return f===41||f===18});A&&(ee=se())}if(ee===18){for(ee=se();ee!==19&&ee!==1;)ee=se();ee===19&&(ee=se(),ee===155&&(ee=se(),ee===10&&G()))}else if(ee===41)ee=se(),ee===155&&(ee=se(),ee===10&&G());else if(ee===100){if(ee=se(),ee===151){var A=e.scanner.lookAhead(function(){var P=e.scanner.scan();return P===79||e.isKeyword(P)});A&&(ee=se())}if((ee===79||e.isKeyword(ee))&&(ee=se(),ee===63&&M(!0)))return!0}return!0}return!1}function M(ee,A){A===void 0&&(A=!1);var f=ee?se():e.scanner.getToken();return f===145?(f=se(),f===20&&(f=se(),(f===10||A&&f===14)&&G()),!0):!1}function x(){var ee=e.scanner.getToken();if(ee===79&&e.scanner.getTokenValue()==="define"){if(ee=se(),ee!==20)return!0;if(ee=se(),ee===10||ee===14)if(ee=se(),ee===27)ee=se();else return!0;if(ee!==22)return!0;for(ee=se();ee!==23&&ee!==1;)(ee===10||ee===14)&&G(),ee=se();return!0}return!1}function ie(){for(e.scanner.setText(O),se();e.scanner.getToken()!==1;){if(e.scanner.getToken()===15){var ee=[e.scanner.getToken()],A=e.scanner.scan();e:for(;e.length(ee);){switch(A){case 1:break e;case 100:B();break;case 15:ee.push(A);break;case 18:e.length(ee)&&ee.push(A);break;case 19:e.length(ee)&&(e.lastOrUndefined(ee)===15?e.scanner.reScanTemplateToken(!1)===17&&ee.pop():ee.pop());break}A=e.scanner.scan()}se()}ue()||B()||re()||W&&(M(!1,!0)||x())||se()}e.scanner.setText(void 0)}if(L&&ie(),e.processCommentPragmas(N,O),e.processPragmasIntoFields(N,e.noop),H){if(pe)for(var _e=0,Y=pe;_e<Y.length;_e++){var Z=Y[_e];Q.push(Z.ref)}return{referencedFiles:N.referencedFiles,typeReferenceDirectives:N.typeReferenceDirectives,libReferenceDirectives:N.libReferenceDirectives,importedFiles:Q,isLibFile:!!N.hasNoDefaultLib,ambientExternalModules:void 0}}else{var k=void 0;if(pe)for(var I=0,ne=pe;I<ne.length;I++){var Z=ne[I];Z.depth===0?(k||(k=[]),k.push(Z.ref.fileName)):Q.push(Z.ref)}return{referencedFiles:N.referencedFiles,typeReferenceDirectives:N.typeReferenceDirectives,libReferenceDirectives:N.libReferenceDirectives,importedFiles:Q,isLibFile:!!N.hasNoDefaultLib,ambientExternalModules:k}}}e.preProcessFile=a})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(H,se,p,C){var G=e.getAdjustedRenameLocation(e.getTouchingPropertyName(se,p));if(S(G)){var E=W(G,H.getTypeChecker(),se,H,C);if(E)return E}return F(e.Diagnostics.You_cannot_rename_this_element)}O.getRenameInfo=L;function W(H,se,p,C,G){var E=se.getSymbolAtLocation(H);if(!E){if(e.isStringLiteralLike(H)){var ue=e.getContextualTypeFromParentOrAncestorTypeNode(H,se);if(ue&&(ue.flags&128||ue.flags&1048576&&e.every(ue.types,function(Y){return!!(Y.flags&128)})))return pe(H.text,H.text,"string","",H,p)}else if(e.isLabelName(H)){var B=e.getTextOfNode(H);return pe(B,B,"label","",H,p)}return}var re=E.declarations;if(!(!re||re.length===0)){if(re.some(function(Y){return N(C,Y)}))return F(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(H)&&H.originalKeywordKind===88&&E.parent&&E.parent.flags&1536)){if(e.isStringLiteralLike(H)&&e.tryGetImportFromModuleSpecifier(H))return G&&G.allowRenameOfImportPath?Q(H,p,E):void 0;var M=e.SymbolDisplay.getSymbolKind(se,E,H),x=e.isImportOrExportSpecifierName(H)||e.isStringOrNumericLiteralLike(H)&&H.parent.kind===161?e.stripQuotes(e.getTextOfIdentifierOrLiteral(H)):void 0,ie=x||se.symbolToString(E),_e=x||se.getFullyQualifiedName(E);return pe(ie,_e,M,e.SymbolDisplay.getSymbolModifiers(se,E),H,p)}}}function N(H,se){var p=se.getSourceFile();return H.isSourceFileDefaultLibrary(p)&&e.fileExtensionIs(p.fileName,".d.ts")}function Q(H,se,p){if(!e.isExternalModuleNameRelative(H.text))return F(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var C=p.declarations&&e.find(p.declarations,e.isSourceFile);if(!!C){var G=e.endsWith(H.text,"/index")||e.endsWith(H.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(C.fileName),"/index"),E=G===void 0?C.fileName:G,ue=G===void 0?"module":"directory",B=H.text.lastIndexOf("/")+1,re=e.createTextSpan(H.getStart(se)+1+B,H.text.length-B);return{canRename:!0,fileToRename:E,kind:ue,displayName:E,fullDisplayName:E,kindModifiers:"",triggerSpan:re}}}function pe(H,se,p,C,G,E){return{canRename:!0,fileToRename:void 0,kind:p,displayName:H,fullDisplayName:se,kindModifiers:C,triggerSpan:g(G,E)}}function F(H){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(H)}}function g(H,se){var p=H.getStart(se),C=H.getWidth(se);return e.isStringLiteralLike(H)&&(p+=1,C-=2),e.createTextSpan(p,C)}function S(H){switch(H.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(H);default:return!1}}O.nodeIsEligibleForRename=S})(a=e.Rename||(e.Rename={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(p,C){var G,E={textSpan:e.createTextSpanFromBounds(C.getFullStart(),C.getEnd())},ue=C;e:for(;;){var B=Q(ue);if(!B.length)break;for(var re=0;re<B.length;re++){var M=B[re-1],x=B[re],ie=B[re+1];if(e.getTokenPosOfNode(x,C,!0)>p)break e;var _e=e.singleOrUndefined(e.getTrailingCommentRanges(C.text,x.end));if(_e&&_e.kind===2&&A(_e.pos,_e.end),W(C,p,x)){if(e.isBlock(x)||e.isTemplateSpan(x)||e.isTemplateHead(x)||e.isTemplateTail(x)||M&&e.isTemplateHead(M)||e.isVariableDeclarationList(x)&&e.isVariableStatement(ue)||e.isSyntaxList(x)&&e.isVariableDeclarationList(ue)||e.isVariableDeclaration(x)&&e.isSyntaxList(ue)&&B.length===1||e.isJSDocTypeExpression(x)||e.isJSDocSignature(x)||e.isJSDocTypeLiteral(x)){ue=x;break}if(e.isTemplateSpan(ue)&&ie&&e.isTemplateMiddleOrTemplateTail(ie)){var Y=x.getFullStart()-2,Z=ie.getStart()+1;ee(Y,Z)}var k=e.isSyntaxList(x)&&S(M)&&H(ie)&&!e.positionsAreOnSameLine(M.getStart(),ie.getStart(),C),I=k?M.getEnd():x.getStart(),ne=k?ie.getStart():se(C,x);e.hasJSDocNodes(x)&&((G=x.jsDoc)===null||G===void 0?void 0:G.length)&&ee(e.first(x.jsDoc).getStart(),ne),ee(I,ne),(e.isStringLiteral(x)||e.isTemplateLiteral(x))&&ee(I+1,ne-1),ue=x;break}if(re===B.length-1)break e}}return E;function ee(f,P){if(f!==P){var D=e.createTextSpanFromBounds(f,P);(!E||!e.textSpansEqual(D,E.textSpan)&&e.textSpanIntersectsWithPosition(D,p))&&(E=Ve({textSpan:D},E&&{parent:E}))}}function A(f,P){ee(f,P);for(var D=f;C.text.charCodeAt(D)===47;)D++;ee(D,P)}}O.getSmartSelectionRange=L;function W(p,C,G){if(e.Debug.assert(G.pos<=C),C<G.end)return!0;var E=G.getEnd();return E===C?e.getTouchingPropertyName(p,C).pos<G.end:!1}var N=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function Q(p){if(e.isSourceFile(p))return pe(p.getChildAt(0).getChildren(),N);if(e.isMappedTypeNode(p)){var C=p.getChildren(),G=C[0],E=C.slice(1),ue=e.Debug.checkDefined(E.pop());e.Debug.assertEqual(G.kind,18),e.Debug.assertEqual(ue.kind,19);var B=pe(E,function(ie){return ie===p.readonlyToken||ie.kind===144||ie===p.questionToken||ie.kind===57}),re=pe(B,function(ie){var _e=ie.kind;return _e===22||_e===162||_e===23});return[G,g(F(re,function(ie){var _e=ie.kind;return _e===58})),ue]}if(e.isPropertySignature(p)){var E=pe(p.getChildren(),function(_e){return _e===p.name||e.contains(p.modifiers,_e)});return F(E,function(_e){var Y=_e.kind;return Y===58})}if(e.isParameter(p)){var M=pe(p.getChildren(),function(ie){return ie===p.dotDotDotToken||ie===p.name}),x=pe(M,function(ie){return ie===M[0]||ie===p.questionToken});return F(x,function(ie){var _e=ie.kind;return _e===63})}return e.isBindingElement(p)?F(p.getChildren(),function(ie){var _e=ie.kind;return _e===63}):p.getChildren()}function pe(p,C){for(var G=[],E,ue=0,B=p;ue<B.length;ue++){var re=B[ue];C(re)?(E=E||[],E.push(re)):(E&&(G.push(g(E)),E=void 0),G.push(re))}return E&&G.push(g(E)),G}function F(p,C,G){if(G===void 0&&(G=!0),p.length<2)return p;var E=e.findIndex(p,C);if(E===-1)return p;var ue=p.slice(0,E),B=p[E],re=e.last(p),M=G&&re.kind===26,x=p.slice(E+1,M?p.length-1:void 0),ie=e.compact([ue.length?g(ue):void 0,B,x.length?g(x):void 0]);return M?ie.concat(re):ie}function g(p){return e.Debug.assertGreaterThanOrEqual(p.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(p),p[0].pos,e.last(p).end)}function S(p){var C=p&&p.kind;return C===18||C===22||C===20||C===279}function H(p){var C=p&&p.kind;return C===19||C===23||C===21||C===280}function se(p,C){switch(C.kind){case 338:case 336:case 345:case 343:case 340:return p.getLineEndOfPosition(C.getStart());default:return C.getEnd()}}})(a=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(y){y[y.Call=0]="Call",y[y.TypeArgs=1]="TypeArgs",y[y.Contextual=2]="Contextual"})(L||(L={}));function W(y,oe,ve,ce,m){var de=y.getTypeChecker(),ae=e.findTokenOnLeftOfPosition(oe,ve);if(!!ae){var V=!!ce&&ce.kind==="characterTyped";if(!(V&&(e.isInString(oe,ve,ae)||e.isInComment(oe,ve)))){var le=!!ce&&ce.kind==="invoked",ke=k(ae,ve,oe,de,le);if(!!ke){m.throwIfCancellationRequested();var Ue=Q(ke,de,oe,ae,V);return m.throwIfCancellationRequested(),Ue?de.runWithCancellationToken(m,function(He){return Ue.kind===0?f(Ue.candidates,Ue.resolvedSignature,ke,oe,He):P(Ue.symbol,ke,oe,He)}):e.isSourceFileJS(oe)?F(ke,y,m):void 0}}}}O.getSignatureHelpItems=W;var N;(function(y){y[y.Candidate=0]="Candidate",y[y.Type=1]="Type"})(N||(N={}));function Q(y,oe,ve,ce,m){var de=y.invocation,ae=y.argumentCount;switch(de.kind){case 0:{if(m&&!pe(ce,de.node,ve))return;var V=[],le=oe.getResolvedSignatureForSignatureHelp(de.node,V,ae);return V.length===0?void 0:{kind:0,candidates:V,resolvedSignature:le}}case 1:{var ke=de.called;if(m&&!g(ce,ve,e.isIdentifier(ke)?ke.parent:ke))return;var V=e.getPossibleGenericSignatures(ke,ae,oe);if(V.length!==0)return{kind:0,candidates:V,resolvedSignature:e.first(V)};var Ue=oe.getSymbolAtLocation(ke);return Ue&&{kind:1,symbol:Ue}}case 2:return{kind:0,candidates:[de.signature],resolvedSignature:de.signature};default:return e.Debug.assertNever(de)}}function pe(y,oe,ve){if(!e.isCallOrNewExpression(oe))return!1;var ce=oe.getChildren(ve);switch(y.kind){case 20:return e.contains(ce,y);case 27:{var m=e.findContainingList(y);return!!m&&e.contains(ce,m)}case 29:return g(y,ve,oe.expression);default:return!1}}function F(y,oe,ve){if(y.invocation.kind!==2){var ce=ne(y.invocation),m=e.isPropertyAccessExpression(ce)?ce.name.text:void 0,de=oe.getTypeChecker();return m===void 0?void 0:e.firstDefined(oe.getSourceFiles(),function(ae){return e.firstDefined(ae.getNamedDeclarations().get(m),function(V){var le=V.symbol&&de.getTypeOfSymbolAtLocation(V.symbol,V),ke=le&&le.getCallSignatures();if(ke&&ke.length)return de.runWithCancellationToken(ve,function(Ue){return f(ke,ke[0],y,ae,Ue,!0)})})})}}function g(y,oe,ve){for(var ce=y.getFullStart(),m=y.parent;m;){var de=e.findPrecedingToken(ce,oe,m,!0);if(de)return e.rangeContainsRange(ve,de);m=m.parent}return e.Debug.fail("Could not find preceding token")}function S(y,oe,ve){var ce=p(y,oe,ve);return!ce||ce.isTypeParameterList||ce.invocation.kind!==0?void 0:{invocation:ce.invocation.node,argumentCount:ce.argumentCount,argumentIndex:ce.argumentIndex}}O.getArgumentInfoForCompletions=S;function H(y,oe,ve){var ce=se(y,ve);if(!!ce){var m=ce.list,de=ce.argumentIndex,ae=x(m,e.isInString(ve,oe,y));de!==0&&e.Debug.assertLessThan(de,ae);var V=Y(m,ve);return{list:m,argumentIndex:de,argumentCount:ae,argumentsSpan:V}}}function se(y,oe){if(y.kind===29||y.kind===20)return{list:I(y.parent,y,oe),argumentIndex:0};var ve=e.findContainingList(y);return ve&&{list:ve,argumentIndex:M(ve,y)}}function p(y,oe,ve){var ce=y.parent;if(e.isCallOrNewExpression(ce)){var m=ce,de=H(y,oe,ve);if(!de)return;var ae=de.list,V=de.argumentIndex,le=de.argumentCount,ke=de.argumentsSpan,Ue=!!ce.typeArguments&&ce.typeArguments.pos===ae.pos;return{isTypeParameterList:Ue,invocation:{kind:0,node:m},argumentsSpan:ke,argumentIndex:V,argumentCount:le}}else{if(e.isNoSubstitutionTemplateLiteral(y)&&e.isTaggedTemplateExpression(ce))return e.isInsideTemplateLiteral(y,oe,ve)?_e(ce,0,ve):void 0;if(e.isTemplateHead(y)&&ce.parent.kind===209){var He=ce,ar=He.parent;e.Debug.assert(He.kind===222);var V=e.isInsideTemplateLiteral(y,oe,ve)?0:1;return _e(ar,V,ve)}else if(e.isTemplateSpan(ce)&&e.isTaggedTemplateExpression(ce.parent.parent)){var gr=ce,ar=ce.parent.parent;if(e.isTemplateTail(y)&&!e.isInsideTemplateLiteral(y,oe,ve))return;var me=gr.parent.templateSpans.indexOf(gr),V=ie(me,y,oe,ve);return _e(ar,V,ve)}else if(e.isJsxOpeningLikeElement(ce)){var Ge=ce.attributes.pos,er=e.skipTrivia(ve.text,ce.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:ce},argumentsSpan:e.createTextSpan(Ge,er-Ge),argumentIndex:0,argumentCount:1}}else{var he=e.getPossibleTypeArgumentsInfo(y,ve);if(he){var we=he.called,ye=he.nTypeArguments,m={kind:1,called:we},ke=e.createTextSpanFromBounds(we.getStart(ve),y.end);return{isTypeParameterList:!0,invocation:m,argumentsSpan:ke,argumentIndex:ye,argumentCount:ye+1}}return}}}function C(y,oe,ve,ce){return ue(y,oe,ve,ce)||p(y,oe,ve)}function G(y){return e.isBinaryExpression(y.parent)?G(y.parent):y}function E(y){return e.isBinaryExpression(y.left)?E(y.left)+1:2}function ue(y,oe,ve,ce){var m=B(y,ve,oe,ce);if(!!m){var de=m.contextualType,ae=m.argumentIndex,V=m.argumentCount,le=m.argumentsSpan,ke=de.getNonNullableType(),Ue=ke.getCallSignatures();if(Ue.length===1){var He={kind:2,signature:e.first(Ue),node:y,symbol:re(ke.symbol)};return{isTypeParameterList:!1,invocation:He,argumentsSpan:le,argumentIndex:ae,argumentCount:V}}}}function B(y,oe,ve,ce){if(!(y.kind!==20&&y.kind!==27)){var m=y.parent;switch(m.kind){case 211:case 168:case 212:case 213:var de=H(y,ve,oe);if(!de)return;var ae=de.argumentIndex,V=de.argumentCount,le=de.argumentsSpan,ke=e.isMethodDeclaration(m)?ce.getContextualTypeForObjectLiteralElement(m):ce.getContextualType(m);return ke&&{contextualType:ke,argumentIndex:ae,argumentCount:V,argumentsSpan:le};case 220:{var Ue=G(m),He=ce.getContextualType(Ue),ar=y.kind===20?0:E(m)-1,gr=E(Ue);return He&&{contextualType:He,argumentIndex:ar,argumentCount:gr,argumentsSpan:e.createTextSpanFromNode(m)}}default:return}}}function re(y){return y.name==="__type"&&e.firstDefined(y.declarations,function(oe){return e.isFunctionTypeNode(oe)?oe.parent.symbol:void 0})||y}function M(y,oe){for(var ve=0,ce=0,m=y.getChildren();ce<m.length;ce++){var de=m[ce];if(de===oe)break;de.kind!==27&&ve++}return ve}function x(y,oe){var ve=y.getChildren(),ce=e.countWhere(ve,function(m){return m.kind!==27});return!oe&&ve.length>0&&e.last(ve).kind===27&&ce++,ce}function ie(y,oe,ve,ce){return e.Debug.assert(ve>=oe.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(oe)?e.isInsideTemplateLiteral(oe,ve,ce)?0:y+2:y+1}function _e(y,oe,ve){var ce=e.isNoSubstitutionTemplateLiteral(y.template)?1:y.template.templateSpans.length+1;return oe!==0&&e.Debug.assertLessThan(oe,ce),{isTypeParameterList:!1,invocation:{kind:0,node:y},argumentsSpan:Z(y,ve),argumentIndex:oe,argumentCount:ce}}function Y(y,oe){var ve=y.getFullStart(),ce=e.skipTrivia(oe.text,y.getEnd(),!1);return e.createTextSpan(ve,ce-ve)}function Z(y,oe){var ve=y.template,ce=ve.getStart(),m=ve.getEnd();if(ve.kind===222){var de=e.last(ve.templateSpans);de.literal.getFullWidth()===0&&(m=e.skipTrivia(oe.text,m,!1))}return e.createTextSpan(ce,m-ce)}function k(y,oe,ve,ce,m){for(var de=function(le){e.Debug.assert(e.rangeContainsRange(le.parent,le),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(le.kind),", parent: ").concat(e.Debug.formatSyntaxKind(le.parent.kind))});var ke=C(le,oe,ve,ce);if(ke)return{value:ke}},ae=y;!e.isSourceFile(ae)&&(m||!e.isBlock(ae));ae=ae.parent){var V=de(ae);if(typeof V=="object")return V.value}}function I(y,oe,ve){var ce=y.getChildren(ve),m=ce.indexOf(oe);return e.Debug.assert(m>=0&&ce.length>m+1),ce[m+1]}function ne(y){return y.kind===0?e.getInvokedExpression(y.node):y.called}function ee(y){return y.kind===0?y.node:y.kind===1?y.called:y.node}var A=70246400;function f(y,oe,ve,ce,m,de){var ae,V=ve.isTypeParameterList,le=ve.argumentCount,ke=ve.argumentsSpan,Ue=ve.invocation,He=ve.argumentIndex,ar=ee(Ue),gr=Ue.kind===2?Ue.symbol:m.getSymbolAtLocation(ne(Ue))||de&&((ae=oe.declaration)===null||ae===void 0?void 0:ae.symbol),me=gr?e.symbolToDisplayParts(m,gr,de?ce:void 0,void 0):e.emptyArray,Ge=e.map(y,function(Br){return _(Br,me,V,m,ar,ce)});He!==0&&e.Debug.assertLessThan(He,le);for(var er=0,he=0,we=0;we<Ge.length;we++){var ye=Ge[we];if(y[we]===oe&&(er=he,ye.length>1))for(var Se=0,ge=0,Fe=ye;ge<Fe.length;ge++){var cr=Fe[ge];if(cr.isVariadic||cr.parameters.length>=le){er=he+Se;break}Se++}he+=ye.length}e.Debug.assert(er!==-1);var ur={items:e.flatMapToMutable(Ge,e.identity),applicableSpan:ke,selectedItemIndex:er,argumentIndex:He,argumentCount:le},Ir=ur.items[er];if(Ir.isVariadic){var dr=e.findIndex(Ir.parameters,function(Br){return!!Br.isRest});-1<dr&&dr<Ir.parameters.length-1?ur.argumentIndex=Ir.parameters.length:ur.argumentIndex=Math.min(ur.argumentIndex,Ir.parameters.length-1)}return ur}function P(y,oe,ve,ce){var m=oe.argumentCount,de=oe.argumentsSpan,ae=oe.invocation,V=oe.argumentIndex,le=ce.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(y);if(!!le){var ke=[D(y,le,ce,ee(ae),ve)];return{items:ke,applicableSpan:de,selectedItemIndex:0,argumentIndex:V,argumentCount:m}}}function D(y,oe,ve,ce,m){var de=e.symbolToDisplayParts(ve,y),ae=e.createPrinter({removeComments:!0}),V=oe.map(function(He){return z(He,ve,ce,m,ae)}),le=y.getDocumentationComment(ve),ke=y.getJsDocTags(ve),Ue=qe(qe([],de,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Ue,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:l,parameters:V,documentation:le,tags:ke}}var l=[e.punctuationPart(27),e.spacePart()];function _(y,oe,ve,ce,m,de){var ae=(ve?w:j)(y,ce,m,de);return e.map(ae,function(V){var le=V.isVariadic,ke=V.parameters,Ue=V.prefix,He=V.suffix,ar=qe(qe([],oe,!0),Ue,!0),gr=qe(qe([],He,!0),J(y,m,ce),!0),me=y.getDocumentationComment(ce),Ge=y.getJsDocTags();return{isVariadic:le,prefixDisplayParts:ar,suffixDisplayParts:gr,separatorDisplayParts:l,parameters:ke,documentation:me,tags:Ge}})}function J(y,oe,ve){return e.mapToDisplayParts(function(ce){ce.writePunctuation(":"),ce.writeSpace(" ");var m=ve.getTypePredicateOfSignature(y);m?ve.writeTypePredicate(m,oe,void 0,ce):ve.writeType(ve.getReturnTypeOfSignature(y),oe,void 0,ce)})}function w(y,oe,ve,ce){var m=(y.target||y).typeParameters,de=e.createPrinter({removeComments:!0}),ae=(m||e.emptyArray).map(function(le){return z(le,oe,ve,ce,de)}),V=y.thisParameter?[oe.symbolToParameterDeclaration(y.thisParameter,ve,A)]:[];return oe.getExpandedParameters(y).map(function(le){var ke=e.factory.createNodeArray(qe(qe([],V,!0),e.map(le,function(He){return oe.symbolToParameterDeclaration(He,ve,A)}),!0)),Ue=e.mapToDisplayParts(function(He){de.writeList(2576,ke,ce,He)});return{isVariadic:!1,parameters:ae,prefix:[e.punctuationPart(29)],suffix:qe([e.punctuationPart(31)],Ue,!0)}})}function j(y,oe,ve,ce){var m=e.createPrinter({removeComments:!0}),de=e.mapToDisplayParts(function(le){if(y.typeParameters&&y.typeParameters.length){var ke=e.factory.createNodeArray(y.typeParameters.map(function(Ue){return oe.typeParameterToDeclaration(Ue,ve,A)}));m.writeList(53776,ke,ce,le)}}),ae=oe.getExpandedParameters(y),V=oe.hasEffectiveRestParameter(y)?ae.length===1?function(le){return!0}:function(le){return!!(le.length&&le[le.length-1].checkFlags&32768)}:function(le){return!1};return ae.map(function(le){return{isVariadic:V(le),parameters:le.map(function(ke){return U(ke,oe,ve,ce,m)}),prefix:qe(qe([],de,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function U(y,oe,ve,ce,m){var de=e.mapToDisplayParts(function(le){var ke=oe.symbolToParameterDeclaration(y,ve,A);m.writeNode(4,ke,ce,le)}),ae=oe.isOptionalParameter(y.valueDeclaration),V=!!(y.checkFlags&32768);return{name:y.name,documentation:y.getDocumentationComment(oe),displayParts:de,isOptional:ae,isRest:V}}function z(y,oe,ve,ce,m){var de=e.mapToDisplayParts(function(ae){var V=oe.typeParameterToDeclaration(y,ve,A);m.writeNode(4,V,ce,ae)});return{name:y.symbol.name,documentation:y.symbol.getDocumentationComment(oe),displayParts:de,isOptional:!1,isRest:!1}}})(a=e.SignatureHelp||(e.SignatureHelp={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=30,W=function(F){return new RegExp("^\\s?/\\*\\*?\\s?".concat(F,"\\s?\\*\\/\\s?$"))};function N(F){return F.includeInlayParameterNameHints==="literals"||F.includeInlayParameterNameHints==="all"}function Q(F){return F.includeInlayParameterNameHints==="literals"}function pe(F){var g=F.file,S=F.program,H=F.span,se=F.cancellationToken,p=F.preferences,C=g.text,G=S.getCompilerOptions(),E=S.getTypeChecker(),ue=[];return B(g),ue;function B(w){if(!(!w||w.getFullWidth()===0)){switch(w.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:se.throwIfCancellationRequested()}if(!!e.textSpanIntersectsWith(H,w.pos,w.getFullWidth())&&!e.isTypeNode(w))return p.includeInlayVariableTypeHints&&e.isVariableDeclaration(w)||p.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(w)?Z(w):p.includeInlayEnumMemberValueHints&&e.isEnumMember(w)?_e(w):N(p)&&(e.isCallExpression(w)||e.isNewExpression(w))?k(w):(p.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(w)&&e.hasContextSensitiveParameters(w)&&P(w),p.includeInlayFunctionLikeReturnTypeHints&&re(w)&&A(w)),e.forEachChild(w,B)}}function re(w){return e.isArrowFunction(w)||e.isFunctionExpression(w)||e.isFunctionDeclaration(w)||e.isMethodDeclaration(w)||e.isGetAccessorDeclaration(w)}function M(w,j,U){ue.push({text:"".concat(U?"...":"").concat(l(w,L),":"),position:j,kind:"Parameter",whitespaceAfter:!0})}function x(w,j){ue.push({text:": ".concat(l(w,L)),position:j,kind:"Type",whitespaceBefore:!0})}function ie(w,j){ue.push({text:"= ".concat(l(w,L)),position:j,kind:"Enum",whitespaceBefore:!0})}function _e(w){if(!w.initializer){var j=E.getConstantValue(w);j!==void 0&&ie(j.toString(),w.end)}}function Y(w){return w.symbol&&w.symbol.flags&1536}function Z(w){if(!(!w.initializer||e.isBindingPattern(w.name))){var j=e.getEffectiveTypeAnnotationNode(w);if(!j){var U=E.getTypeAtLocation(w);if(!Y(U)){var z=_(U);z&&x(z,w.name.end)}}}}function k(w){var j=w.arguments;if(!(!j||!j.length)){var U=[],z=E.getResolvedSignatureForSignatureHelp(w,U);if(!(!z||!U.length))for(var y=0;y<j.length;++y){var oe=j[y],ve=e.skipParentheses(oe);if(!(Q(p)&&!ee(ve))){var ce=E.getParameterIdentifierNameAtPosition(z,y);if(ce){var m=ce[0],de=ce[1],ae=p.includeInlayParameterNameHintsWhenArgumentMatchesName||!I(ve,m);if(!ae&&!de)continue;var V=e.unescapeLeadingUnderscores(m);if(ne(ve,V))continue;M(V,oe.getStart(),de)}}}}}function I(w,j){return e.isIdentifier(w)?w.text===j:e.isPropertyAccessExpression(w)?w.name.text===j:!1}function ne(w,j){if(!e.isIdentifierText(j,G.target,e.getLanguageVariant(g.scriptKind)))return!1;var U=e.getLeadingCommentRanges(C,w.pos);if(!(U!=null&&U.length))return!1;var z=W(j);return e.some(U,function(y){return z.test(C.substring(y.pos,y.end))})}function ee(w){switch(w.kind){case 218:{var j=w.operand;return e.isLiteralExpression(j)||e.isIdentifier(j)&&e.isInfinityOrNaNString(j.escapedText)}case 110:case 95:case 104:case 14:case 222:return!0;case 79:{var U=w.escapedText;return J(U)||e.isInfinityOrNaNString(U)}}return e.isLiteralExpression(w)}function A(w){if(!(e.isArrowFunction(w)&&!e.findChildOfKind(w,20,g))){var j=e.getEffectiveReturnTypeNode(w);if(!(j||!w.body)){var U=E.getSignatureFromDeclaration(w);if(!!U){var z=E.getReturnTypeOfSignature(U);if(!Y(z)){var y=_(z);!y||x(y,f(w))}}}}}function f(w){var j=e.findChildOfKind(w,21,g);return j?j.end:w.parameters.end}function P(w){var j=E.getSignatureFromDeclaration(w);if(!!j)for(var U=0;U<w.parameters.length&&U<j.parameters.length;++U){var z=w.parameters[U],y=e.getEffectiveTypeAnnotationNode(z);if(!y){var oe=D(j.parameters[U]);!oe||x(oe,z.name.end)}}}function D(w){var j=w.valueDeclaration;if(!(!j||!e.isParameter(j))){var U=E.getTypeOfSymbolAtLocation(w,j);if(!Y(U))return _(U)}}function l(w,j){return w.length>j?w.substr(0,j-3)+"...":w}function _(w){var j=71286784,U={removeComments:!0},z=e.createPrinter(U);return e.usingSingleLineStringWriter(function(y){var oe=E.typeToTypeNode(w,void 0,j,y);e.Debug.assertIsDefined(oe,"should always get typenode"),z.writeNode(4,oe,g,y)})}function J(w){return w==="undefined"}}O.provideInlayHints=pe})(a=e.InlayHints||(e.InlayHints={}))})(Pe||(Pe={}));var Pe;(function(e){var a=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function O(Q){var pe=e.createGetCanonicalFileName(Q.useCaseSensitiveFileNames()),F=Q.getCurrentDirectory(),g=new e.Map,S=new e.Map;return{tryGetSourcePosition:p,tryGetGeneratedPosition:C,toLineColumnOffset:B,clearCache:re};function H(M){return e.toPath(M,F,pe)}function se(M,x){var ie=H(M),_e=S.get(ie);if(_e)return _e;var Y;if(Q.getDocumentPositionMapper)Y=Q.getDocumentPositionMapper(M,x);else if(Q.readFile){var Z=ue(M);Y=Z&&e.getDocumentPositionMapper({getSourceFileLike:ue,getCanonicalFileName:pe,log:function(k){return Q.log(k)}},M,e.getLineInfo(Z.text,e.getLineStarts(Z)),function(k){return!Q.fileExists||Q.fileExists(k)?Q.readFile(k):void 0})}return S.set(ie,Y||e.identitySourceMapConsumer),Y||e.identitySourceMapConsumer}function p(M){if(!!e.isDeclarationFileName(M.fileName)){var x=G(M.fileName);if(!!x){var ie=se(M.fileName).getSourcePosition(M);return!ie||ie===M?void 0:p(ie)||ie}}}function C(M){if(!e.isDeclarationFileName(M.fileName)){var x=G(M.fileName);if(!!x){var ie=Q.getProgram();if(!ie.isSourceOfProjectReferenceRedirect(x.fileName)){var _e=ie.getCompilerOptions(),Y=e.outFile(_e),Z=Y?e.removeFileExtension(Y)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(M.fileName,ie.getCompilerOptions(),F,ie.getCommonSourceDirectory(),pe);if(Z!==void 0){var k=se(Z,M.fileName).getGeneratedPosition(M);return k===M?void 0:k}}}}}function G(M){var x=Q.getProgram();if(!!x){var ie=H(M),_e=x.getSourceFileByPath(ie);return _e&&_e.resolvedPath===ie?_e:void 0}}function E(M){var x=H(M),ie=g.get(x);if(ie!==void 0)return ie||void 0;if(!Q.readFile||Q.fileExists&&!Q.fileExists(x)){g.set(x,!1);return}var _e=Q.readFile(x),Y=_e?N(_e):!1;return g.set(x,Y),Y||void 0}function ue(M){return Q.getSourceFileLike?Q.getSourceFileLike(M):G(M)||E(M)}function B(M,x){var ie=ue(M);return ie.getLineAndCharacterOfPosition(x)}function re(){g.clear(),S.clear()}}e.getSourceMapper=O;function L(Q,pe,F,g){var S=e.tryGetSourceMappingURL(F);if(S){var H=a.exec(S);if(H){if(H[1]){var se=H[1];return W(Q,e.base64decode(e.sys,se),pe)}S=void 0}}var p=[];S&&p.push(S),p.push(pe+".map");for(var C=S&&e.getNormalizedAbsolutePath(S,e.getDirectoryPath(pe)),G=0,E=p;G<E.length;G++){var ue=E[G],B=e.getNormalizedAbsolutePath(ue,e.getDirectoryPath(pe)),re=g(B,C);if(e.isString(re))return W(Q,re,B);if(re!==void 0)return re||void 0}}e.getDocumentPositionMapper=L;function W(Q,pe,F){var g=e.tryParseRawSourceMap(pe);if(!(!g||!g.sources||!g.file||!g.mappings)&&!(g.sourcesContent&&g.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(Q,g,F)}function N(Q,pe){return{text:Q,lineMap:pe,getLineAndCharacterOfPosition:function(F){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),F)}}}})(Pe||(Pe={}));var Pe;(function(e){var a=new e.Map;function O(re,M,x){M.getSemanticDiagnostics(re,x);var ie=[],_e=M.getTypeChecker(),Y=re.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(re.fileName,[".cts",".cjs"]);!Y&&re.commonJsModuleIndicator&&(e.programContainsEsModules(M)||e.compilerOptionsIndicateEsModules(M.getCompilerOptions()))&&L(re)&&ie.push(e.createDiagnosticForNode(g(re.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var Z=e.isSourceFileJS(re);if(a.clear(),D(re),e.getAllowSyntheticDefaultImports(M.getCompilerOptions()))for(var k=0,I=re.imports;k<I.length;k++){var ne=I[k],ee=e.importFromModuleSpecifier(ne),A=N(ee);if(!!A){var f=e.getResolvedModule(re,ne.text,e.getModeForUsageLocation(re,ne)),P=f&&M.getSourceFile(f.resolvedFileName);P&&P.externalModuleIndicator&&e.isExportAssignment(P.externalModuleIndicator)&&P.externalModuleIndicator.isExportEquals&&ie.push(e.createDiagnosticForNode(A,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(ie,re.bindSuggestionDiagnostics),e.addRange(ie,M.getSuggestionDiagnostics(re,x)),ie.sort(function(l,_){return l.start-_.start});function D(l){if(Z)ue(l,_e)&&ie.push(e.createDiagnosticForNode(e.isVariableDeclaration(l.parent)?l.parent.name:l,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(l)&&l.parent===re&&l.declarationList.flags&2&&l.declarationList.declarations.length===1){var _=l.declarationList.declarations[0].initializer;_&&e.isRequireCall(_,!0)&&ie.push(e.createDiagnosticForNode(_,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(l)&&ie.push(e.createDiagnosticForNode(l.name||l,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}B(l)&&Q(l,_e,ie),l.forEachChild(D)}}e.computeSuggestionDiagnostics=O;function L(re){return re.statements.some(function(M){switch(M.kind){case 236:return M.declarationList.declarations.some(function(_e){return!!_e.initializer&&e.isRequireCall(W(_e.initializer),!0)});case 237:{var x=M.expression;if(!e.isBinaryExpression(x))return e.isRequireCall(x,!0);var ie=e.getAssignmentDeclarationKind(x);return ie===1||ie===2}default:return!1}})}function W(re){return e.isPropertyAccessExpression(re)?W(re.expression):re}function N(re){switch(re.kind){case 265:var M=re.importClause,x=re.moduleSpecifier;return M&&!M.name&&M.namedBindings&&M.namedBindings.kind===267&&e.isStringLiteral(x)?M.namedBindings.name:void 0;case 264:return re.name;default:return}}function Q(re,M,x){pe(re,M)&&!a.has(E(re))&&x.push(e.createDiagnosticForNode(!re.name&&e.isVariableDeclaration(re.parent)&&e.isIdentifier(re.parent.name)?re.parent.name:re,e.Diagnostics.This_may_be_converted_to_an_async_function))}function pe(re,M){return!e.isAsyncFunction(re)&&re.body&&e.isBlock(re.body)&&S(re.body,M)&&F(re,M)}function F(re,M){var x=M.getSignatureFromDeclaration(re),ie=x?M.getReturnTypeOfSignature(x):void 0;return!!ie&&!!M.getPromisedTypeOfPromise(ie)}e.returnsPromise=F;function g(re){return e.isBinaryExpression(re)?re.left:re}function S(re,M){return!!e.forEachReturnStatement(re,function(x){return H(x,M)})}function H(re,M){return e.isReturnStatement(re)&&!!re.expression&&se(re.expression,M)}e.isReturnStatementWithFixablePromiseHandler=H;function se(re,M){if(!p(re)||!C(re)||!re.arguments.every(function(ie){return G(ie,M)}))return!1;for(var x=re.expression.expression;p(x)||e.isPropertyAccessExpression(x);)if(e.isCallExpression(x)){if(!C(x)||!x.arguments.every(function(ie){return G(ie,M)}))return!1;x=x.expression.expression}else x=x.expression;return!0}e.isFixablePromiseHandler=se;function p(re){return e.isCallExpression(re)&&(e.hasPropertyAccessExpressionWithName(re,"then")||e.hasPropertyAccessExpressionWithName(re,"catch")||e.hasPropertyAccessExpressionWithName(re,"finally"))}function C(re){var M=re.expression.name.text,x=M==="then"?2:M==="catch"||M==="finally"?1:0;return re.arguments.length>x?!1:re.arguments.length<x?!0:x===1||e.some(re.arguments,function(ie){return ie.kind===104||e.isIdentifier(ie)&&ie.text==="undefined"})}function G(re,M){switch(re.kind){case 255:case 212:var x=e.getFunctionFlags(re);if(x&1)return!1;case 213:a.set(E(re),!0);case 104:return!0;case 79:case 205:{var ie=M.getSymbolAtLocation(re);return ie?M.isUndefinedSymbol(ie)||e.some(e.skipAlias(ie,M).declarations,function(_e){return e.isFunctionLike(_e)||e.hasInitializer(_e)&&!!_e.initializer&&e.isFunctionLike(_e.initializer)}):!1}default:return!1}}function E(re){return"".concat(re.pos.toString(),":").concat(re.end.toString())}function ue(re,M){var x,ie,_e,Y;if(re.kind===212){if(e.isVariableDeclaration(re.parent)&&((x=re.symbol.members)===null||x===void 0?void 0:x.size))return!0;var Z=M.getSymbolOfExpando(re,!1);return!!(Z&&(((ie=Z.exports)===null||ie===void 0?void 0:ie.size)||((_e=Z.members)===null||_e===void 0?void 0:_e.size)))}return re.kind===255?!!(!((Y=re.symbol.members)===null||Y===void 0)&&Y.size):!1}function B(re){switch(re.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.canBeConvertedToAsync=B})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=70246400;function W(S,H,se){var p=N(S,H,se);if(p!=="")return p;var C=e.getCombinedLocalAndExportSymbolFlags(H);return C&32?e.getDeclarationOfKind(H,225)?"local class":"class":C&384?"enum":C&524288?"type":C&64?"interface":C&262144?"type parameter":C&8?"enum member":C&2097152?"alias":C&1536?"module":p}O.getSymbolKind=W;function N(S,H,se){var p=S.getRootSymbols(H);if(p.length===1&&e.first(p).flags&8192&&S.getTypeOfSymbolAtLocation(H,se).getNonNullableType().getCallSignatures().length!==0)return"method";if(S.isUndefinedSymbol(H))return"var";if(S.isArgumentsSymbol(H))return"local var";if(se.kind===108&&e.isExpression(se)||e.isThisInTypeQuery(se))return"parameter";var C=e.getCombinedLocalAndExportSymbolFlags(H);if(C&3)return e.isFirstDeclarationOfSymbolParameter(H)?"parameter":H.valueDeclaration&&e.isVarConst(H.valueDeclaration)?"const":e.forEach(H.declarations,e.isLet)?"let":g(H)?"local var":"var";if(C&16)return g(H)?"local function":"function";if(C&32768)return"getter";if(C&65536)return"setter";if(C&8192)return"method";if(C&16384)return"constructor";if(C&4){if(C&33554432&&H.checkFlags&6){var G=e.forEach(S.getRootSymbols(H),function(ue){var B=ue.getFlags();if(B&98311)return"property"});if(!G){var E=S.getTypeOfSymbolAtLocation(H,se);return E.getCallSignatures().length?"method":"property"}return G}return"property"}return""}function Q(S){if(S.declarations&&S.declarations.length){var H=S.declarations,se=H[0],p=H.slice(1),C=e.length(p)&&e.isDeprecatedDeclaration(se)&&e.some(p,function(E){return!e.isDeprecatedDeclaration(E)})?8192:0,G=e.getNodeModifiers(se,C);if(G)return G.split(",")}return[]}function pe(S,H){if(!H)return"";var se=new e.Set(Q(H));if(H.flags&2097152){var p=S.getAliasedSymbol(H);p!==H&&e.forEach(Q(p),function(C){se.add(C)})}return H.flags&16777216&&se.add("optional"),se.size>0?e.arrayFrom(se.values()).join(","):""}O.getSymbolModifiers=pe;function F(S,H,se,p,C,G,E){var ue;G===void 0&&(G=e.getMeaningFromLocation(C));var B=[],re=[],M=[],x=e.getCombinedLocalAndExportSymbolFlags(H),ie=G&1?N(S,H,C):"",_e=!1,Y=C.kind===108&&e.isInExpressionContext(C)||e.isThisInTypeQuery(C),Z,k,I,ne,ee=!1;if(C.kind===108&&!Y)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(ie!==""||x&32||x&2097152){if(ie==="getter"||ie==="setter"){var A=e.find(H.declarations,function(cr){return cr.name===C});if(A)switch(A.kind){case 171:ie="getter";break;case 172:ie="setter";break;default:e.Debug.assertNever(A)}else ie="property"}var f=void 0;if(Z=Y?S.getTypeAtLocation(C):S.getTypeOfSymbolAtLocation(H,C),C.parent&&C.parent.kind===205){var P=C.parent.name;(P===C||P&&P.getFullWidth()===0)&&(C=C.parent)}var D=void 0;if(e.isCallOrNewExpression(C)?D=C:(e.isCallExpressionTarget(C)||e.isNewExpressionTarget(C)||C.parent&&(e.isJsxOpeningLikeElement(C.parent)||e.isTaggedTemplateExpression(C.parent))&&e.isFunctionLike(H.valueDeclaration))&&(D=C.parent),D){f=S.getResolvedSignature(D);var l=D.kind===208||e.isCallExpression(D)&&D.expression.kind===106,_=l?Z.getConstructSignatures():Z.getCallSignatures();if(f&&!e.contains(_,f.target)&&!e.contains(_,f)&&(f=_.length?_[0]:void 0),f){switch(l&&x&32?(ie="constructor",ye(Z.symbol,ie)):x&2097152?(ie="alias",Se(ie),B.push(e.spacePart()),l&&(f.flags&4&&(B.push(e.keywordPart(126)),B.push(e.spacePart())),B.push(e.keywordPart(103)),B.push(e.spacePart())),we(H)):ye(H,ie),ie){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(e.punctuationPart(58)),B.push(e.spacePart()),!(e.getObjectFlags(Z)&16)&&Z.symbol&&(e.addRange(B,e.symbolToDisplayParts(S,Z.symbol,p,void 0,5)),B.push(e.lineBreakPart())),l&&(f.flags&4&&(B.push(e.keywordPart(126)),B.push(e.spacePart())),B.push(e.keywordPart(103)),B.push(e.spacePart())),ge(f,_,262144);break;default:ge(f,_)}_e=!0,ee=_.length>1}}else if(e.isNameOfFunctionDeclaration(C)&&!(x&98304)||C.kind===134&&C.parent.kind===170){var J=C.parent,w=H.declarations&&e.find(H.declarations,function(cr){return cr===(C.kind===134?J.parent:J)});if(w){var _=J.kind===170?Z.getNonNullableType().getConstructSignatures():Z.getNonNullableType().getCallSignatures();S.isImplementationOfOverload(J)?f=_[0]:f=S.getSignatureFromDeclaration(J),J.kind===170?(ie="constructor",ye(Z.symbol,ie)):ye(J.kind===173&&!(Z.symbol.flags&2048||Z.symbol.flags&4096)?Z.symbol:H,ie),f&&ge(f,_),_e=!0,ee=_.length>1}}}if(x&32&&!_e&&!Y&&(er(),e.getDeclarationOfKind(H,225)?Se("local class"):B.push(e.keywordPart(84)),B.push(e.spacePart()),we(H),Fe(H,se)),x&64&&G&2&&(Ge(),B.push(e.keywordPart(118)),B.push(e.spacePart()),we(H),Fe(H,se)),x&524288&&G&2&&(Ge(),B.push(e.keywordPart(151)),B.push(e.spacePart()),we(H),Fe(H,se),B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),e.addRange(B,e.typeToDisplayParts(S,e.isConstTypeReference(C.parent)?S.getTypeAtLocation(C.parent):S.getDeclaredTypeOfSymbol(H),p,8388608))),x&384&&(Ge(),e.some(H.declarations,function(cr){return e.isEnumDeclaration(cr)&&e.isEnumConst(cr)})&&(B.push(e.keywordPart(85)),B.push(e.spacePart())),B.push(e.keywordPart(92)),B.push(e.spacePart()),we(H)),x&1536&&!Y){Ge();var A=e.getDeclarationOfKind(H,260),j=A&&A.name&&A.name.kind===79;B.push(e.keywordPart(j?142:141)),B.push(e.spacePart()),we(H)}if(x&262144&&G&2)if(Ge(),B.push(e.punctuationPart(20)),B.push(e.textPart("type parameter")),B.push(e.punctuationPart(21)),B.push(e.spacePart()),we(H),H.parent)he(),we(H.parent,p),Fe(H.parent,p);else{var U=e.getDeclarationOfKind(H,162);if(U===void 0)return e.Debug.fail();var A=U.parent;if(A)if(e.isFunctionLikeKind(A.kind)){he();var f=S.getSignatureFromDeclaration(A);A.kind===174?(B.push(e.keywordPart(103)),B.push(e.spacePart())):A.kind!==173&&A.name&&we(A.symbol),e.addRange(B,e.signatureToDisplayParts(S,f,se,32))}else A.kind===258&&(he(),B.push(e.keywordPart(151)),B.push(e.spacePart()),we(A.symbol),Fe(A.symbol,se))}if(x&8){ie="enum member",ye(H,"enum member");var A=(ue=H.declarations)===null||ue===void 0?void 0:ue[0];if((A==null?void 0:A.kind)===297){var z=S.getConstantValue(A);z!==void 0&&(B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),B.push(e.displayPart(e.getTextOfConstantValue(z),typeof z=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(H.flags&2097152){if(Ge(),!_e){var y=S.getAliasedSymbol(H);if(y!==H&&y.declarations&&y.declarations.length>0){var oe=y.declarations[0],ve=e.getNameOfDeclaration(oe);if(ve){var ce=e.isModuleWithStringLiteralName(oe)&&e.hasSyntacticModifier(oe,2),m=H.name!=="default"&&!ce,de=F(S,y,e.getSourceFileOfNode(oe),oe,ve,G,m?H:y);B.push.apply(B,de.displayParts),B.push(e.lineBreakPart()),I=de.documentation,ne=de.tags}else I=y.getContextualDocumentationComment(oe,S),ne=y.getJsDocTags(S)}}if(H.declarations)switch(H.declarations[0].kind){case 263:B.push(e.keywordPart(93)),B.push(e.spacePart()),B.push(e.keywordPart(142));break;case 270:B.push(e.keywordPart(93)),B.push(e.spacePart()),B.push(e.keywordPart(H.declarations[0].isExportEquals?63:88));break;case 274:B.push(e.keywordPart(93));break;default:B.push(e.keywordPart(100))}B.push(e.spacePart()),we(H),e.forEach(H.declarations,function(cr){if(cr.kind===264){var ur=cr;if(e.isExternalModuleImportEqualsDeclaration(ur))B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),B.push(e.keywordPart(145)),B.push(e.punctuationPart(20)),B.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(ur)),e.SymbolDisplayPartKind.stringLiteral)),B.push(e.punctuationPart(21));else{var Ir=S.getSymbolAtLocation(ur.moduleReference);Ir&&(B.push(e.spacePart()),B.push(e.operatorPart(63)),B.push(e.spacePart()),we(Ir,p))}return!0}})}if(!_e)if(ie!==""){if(Z){if(Y?(Ge(),B.push(e.keywordPart(108))):ye(H,ie),ie==="property"||ie==="getter"||ie==="setter"||ie==="JSX attribute"||x&3||ie==="local var"||Y){if(B.push(e.punctuationPart(58)),B.push(e.spacePart()),Z.symbol&&Z.symbol.flags&262144){var ae=e.mapToDisplayParts(function(cr){var ur=S.typeParameterToDeclaration(Z,p,L);me().writeNode(4,ur,e.getSourceFileOfNode(e.getParseTreeNode(p)),cr)});e.addRange(B,ae)}else e.addRange(B,e.typeToDisplayParts(S,Z,p));if(H.target&&H.target.tupleLabelDeclaration){var V=H.target.tupleLabelDeclaration;e.Debug.assertNode(V.name,e.isIdentifier),B.push(e.spacePart()),B.push(e.punctuationPart(20)),B.push(e.textPart(e.idText(V.name))),B.push(e.punctuationPart(21))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||ie==="method"){var _=Z.getNonNullableType().getCallSignatures();_.length&&(ge(_[0],_),ee=_.length>1)}}}else ie=W(S,H,C);if(re.length===0&&!ee&&(re=H.getContextualDocumentationComment(p,S)),re.length===0&&x&4&&H.parent&&H.declarations&&e.forEach(H.parent.declarations,function(cr){return cr.kind===303}))for(var le=0,ke=H.declarations;le<ke.length;le++){var A=ke[le];if(!(!A.parent||A.parent.kind!==220)){var Ue=S.getSymbolAtLocation(A.parent.right);if(!!Ue&&(re=Ue.getDocumentationComment(S),M=Ue.getJsDocTags(S),re.length>0))break}}if(re.length===0&&e.isIdentifier(C)&&H.valueDeclaration&&e.isBindingElement(H.valueDeclaration)){var A=H.valueDeclaration,He=A.parent;if(e.isIdentifier(A.name)&&e.isObjectBindingPattern(He)){var ar=e.getTextOfIdentifierOrLiteral(A.name),gr=S.getTypeAtLocation(He);re=e.firstDefined(gr.isUnion()?gr.types:[gr],function(ur){var Ir=ur.getProperty(ar);return Ir?Ir.getDocumentationComment(S):void 0})||e.emptyArray}}return M.length===0&&!ee&&(M=H.getContextualJsDocTags(p,S)),re.length===0&&I&&(re=I),M.length===0&&ne&&(M=ne),{displayParts:B,documentation:re,symbolKind:ie,tags:M.length===0?void 0:M};function me(){return k||(k=e.createPrinter({removeComments:!0})),k}function Ge(){B.length&&B.push(e.lineBreakPart()),er()}function er(){E&&(Se("alias"),B.push(e.spacePart()))}function he(){B.push(e.spacePart()),B.push(e.keywordPart(101)),B.push(e.spacePart())}function we(cr,ur){E&&cr===H&&(cr=E);var Ir=e.symbolToDisplayParts(S,cr,ur||se,void 0,7);e.addRange(B,Ir),H.flags&16777216&&B.push(e.punctuationPart(57))}function ye(cr,ur){Ge(),ur&&(Se(ur),cr&&!e.some(cr.declarations,function(Ir){return e.isArrowFunction(Ir)||(e.isFunctionExpression(Ir)||e.isClassExpression(Ir))&&!Ir.name})&&(B.push(e.spacePart()),we(cr)))}function Se(cr){switch(cr){case"var":case"function":case"let":case"const":case"constructor":B.push(e.textOrKeywordPart(cr));return;default:B.push(e.punctuationPart(20)),B.push(e.textOrKeywordPart(cr)),B.push(e.punctuationPart(21));return}}function ge(cr,ur,Ir){Ir===void 0&&(Ir=0),e.addRange(B,e.signatureToDisplayParts(S,cr,p,Ir|32)),ur.length>1&&(B.push(e.spacePart()),B.push(e.punctuationPart(20)),B.push(e.operatorPart(39)),B.push(e.displayPart((ur.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),B.push(e.spacePart()),B.push(e.textPart(ur.length===2?"overload":"overloads")),B.push(e.punctuationPart(21))),re=cr.getDocumentationComment(S),M=cr.getJsDocTags(),ur.length>1&&re.length===0&&M.length===0&&(re=ur[0].getDocumentationComment(S),M=ur[0].getJsDocTags())}function Fe(cr,ur){var Ir=e.mapToDisplayParts(function(dr){var Br=S.symbolToTypeParameterDeclarations(cr,ur,L);me().writeList(53776,Br,e.getSourceFileOfNode(e.getParseTreeNode(ur)),dr)});e.addRange(B,Ir)}}O.getSymbolDisplayPartsDocumentationAndSymbolKind=F;function g(S){return S.parent?!1:e.forEach(S.declarations,function(H){if(H.kind===212)return!0;if(H.kind!==253&&H.kind!==255)return!1;for(var se=H.parent;!e.isFunctionBlock(se);se=se.parent)if(se.kind===303||se.kind===261)return!1;return!0})}})(a=e.SymbolDisplay||(e.SymbolDisplay={}))})(Pe||(Pe={}));var Pe;(function(e){function a(N,Q){var pe=[],F=Q.compilerOptions?W(Q.compilerOptions,pe):{},g=e.getDefaultCompilerOptions();for(var S in g)e.hasProperty(g,S)&&F[S]===void 0&&(F[S]=g[S]);for(var H=0,se=e.transpileOptionValueCompilerOptions;H<se.length;H++){var p=se[H];F[p.name]=p.transpileOptionValue}F.suppressOutputPathCheck=!0,F.allowNonTsExtensions=!0;var C=Q.fileName||(Q.compilerOptions&&Q.compilerOptions.jsx?"module.tsx":"module.ts"),G=e.createSourceFile(C,N,e.getEmitScriptTarget(F));Q.moduleName&&(G.moduleName=Q.moduleName),Q.renamedDependencies&&(G.renamedDependencies=new e.Map(e.getEntries(Q.renamedDependencies)));var E=e.getNewLineCharacter(F),ue,B,re={getSourceFile:function(x){return x===e.normalizePath(C)?G:void 0},writeFile:function(x,ie){e.fileExtensionIs(x,".map")?(e.Debug.assertEqual(B,void 0,"Unexpected multiple source map outputs, file:",x),B=ie):(e.Debug.assertEqual(ue,void 0,"Unexpected multiple outputs, file:",x),ue=ie)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(x){return x},getCurrentDirectory:function(){return""},getNewLine:function(){return E},fileExists:function(x){return x===C},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},M=e.createProgram([C],F,re);return Q.reportDiagnostics&&(e.addRange(pe,M.getSyntacticDiagnostics(G)),e.addRange(pe,M.getOptionsDiagnostics())),M.emit(void 0,void 0,void 0,void 0,Q.transformers),ue===void 0?e.Debug.fail("Output generation failed"):{outputText:ue,diagnostics:pe,sourceMapText:B}}e.transpileModule=a;function O(N,Q,pe,F,g){var S=a(N,{compilerOptions:Q,fileName:pe,reportDiagnostics:!!F,moduleName:g});return e.addRange(F,S.diagnostics),S.outputText}e.transpile=O;var L;function W(N,Q){L=L||e.filter(e.optionDeclarations,function(H){return typeof H.type=="object"&&!e.forEachEntry(H.type,function(se){return typeof se!="number"})}),N=e.cloneCompilerOptions(N);for(var pe=function(H){if(!e.hasProperty(N,H.name))return"continue";var se=N[H.name];e.isString(se)?N[H.name]=e.parseCustomTypeOption(H,se,Q):e.forEachEntry(H.type,function(p){return p===se})||Q.push(e.createCompilerDiagnosticForInvalidCustomType(H))},F=0,g=L;F<g.length;F++){var S=g[F];pe(S)}return N}e.fixupCompilerOptions=W})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(N){N[N.FormatDocument=0]="FormatDocument",N[N.FormatSelection=1]="FormatSelection",N[N.FormatOnEnter=2]="FormatOnEnter",N[N.FormatOnSemicolon=3]="FormatOnSemicolon",N[N.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",N[N.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(L=O.FormattingRequestKind||(O.FormattingRequestKind={}));var W=function(){function N(Q,pe,F){this.sourceFile=Q,this.formattingRequestKind=pe,this.options=F}return N.prototype.updateContext=function(Q,pe,F,g,S){this.currentTokenSpan=e.Debug.checkDefined(Q),this.currentTokenParent=e.Debug.checkDefined(pe),this.nextTokenSpan=e.Debug.checkDefined(F),this.nextTokenParent=e.Debug.checkDefined(g),this.contextNode=e.Debug.checkDefined(S),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},N.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},N.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},N.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var Q=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,pe=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=Q===pe}return this.tokensAreOnSameLine},N.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},N.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},N.prototype.NodeIsOnOneLine=function(Q){var pe=this.sourceFile.getLineAndCharacterOfPosition(Q.getStart(this.sourceFile)).line,F=this.sourceFile.getLineAndCharacterOfPosition(Q.getEnd()).line;return pe===F},N.prototype.BlockIsOnOneLine=function(Q){var pe=e.findChildOfKind(Q,18,this.sourceFile),F=e.findChildOfKind(Q,19,this.sourceFile);if(pe&&F){var g=this.sourceFile.getLineAndCharacterOfPosition(pe.getEnd()).line,S=this.sourceFile.getLineAndCharacterOfPosition(F.getStart(this.sourceFile)).line;return g===S}return!1},N}();O.FormattingContext=W})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=e.createScanner(99,!1,0),W=e.createScanner(99,!1,1),N;(function(pe){pe[pe.Scan=0]="Scan",pe[pe.RescanGreaterThanToken=1]="RescanGreaterThanToken",pe[pe.RescanSlashToken=2]="RescanSlashToken",pe[pe.RescanTemplateToken=3]="RescanTemplateToken",pe[pe.RescanJsxIdentifier=4]="RescanJsxIdentifier",pe[pe.RescanJsxText=5]="RescanJsxText",pe[pe.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(N||(N={}));function Q(pe,F,g,S,H){var se=F===1?W:L;se.setText(pe),se.setTextPos(g);var p=!0,C,G,E,ue,B,re=H({advance:M,readTokenInfo:ne,readEOFTokenRange:A,isOnToken:f,isOnEOF:P,getCurrentLeadingTrivia:function(){return C},lastTrailingTriviaWasNewLine:function(){return p},skipToEndOf:l,skipToStartOf:_,getStartPos:function(){var J;return(J=B==null?void 0:B.token.pos)!==null&&J!==void 0?J:se.getTokenPos()}});return B=void 0,se.setText(void 0),re;function M(){B=void 0;var J=se.getStartPos()!==g;J?p=!!G&&e.last(G).kind===4:se.scan(),C=void 0,G=void 0;for(var w=se.getStartPos();w<S;){var j=se.getToken();if(!e.isTrivia(j))break;se.scan();var U={pos:w,end:se.getStartPos(),kind:j};w=se.getStartPos(),C=e.append(C,U)}E=se.getStartPos()}function x(J){switch(J.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function ie(J){if(J.parent)switch(J.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(J.kind)||J.kind===79}return!1}function _e(J){return e.isJsxText(J)}function Y(J){return J.kind===13}function Z(J){return J.kind===16||J.kind===17}function k(J){return J.parent&&e.isJsxAttribute(J.parent)&&J.parent.initializer===J}function I(J){return J===43||J===68}function ne(J){e.Debug.assert(f());var w=x(J)?1:Y(J)?2:Z(J)?3:ie(J)?4:_e(J)?5:k(J)?6:0;if(B&&w===ue)return D(B,J);se.getStartPos()!==E&&(e.Debug.assert(B!==void 0),se.setTextPos(E),se.scan());var j=ee(J,w),U=O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),j);for(G&&(G=void 0);se.getStartPos()<S&&(j=se.scan(),!!e.isTrivia(j));){var z=O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),j);if(G||(G=[]),G.push(z),j===4){se.scan();break}}return B={leadingTrivia:C,trailingTrivia:G,token:U},D(B,J)}function ee(J,w){var j=se.getToken();switch(ue=0,w){case 1:if(j===31){ue=1;var U=se.reScanGreaterToken();return e.Debug.assert(J.kind===U),U}break;case 2:if(I(j)){ue=2;var U=se.reScanSlashToken();return e.Debug.assert(J.kind===U),U}break;case 3:if(j===19)return ue=3,se.reScanTemplateToken(!1);break;case 4:return ue=4,se.scanJsxIdentifier();case 5:return ue=5,se.reScanJsxToken(!1);case 6:return ue=6,se.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(w)}return j}function A(){return e.Debug.assert(P()),O.createTextRangeWithKind(se.getStartPos(),se.getTextPos(),1)}function f(){var J=B?B.token.kind:se.getToken();return J!==1&&!e.isTrivia(J)}function P(){var J=B?B.token.kind:se.getToken();return J===1}function D(J,w){return e.isToken(w)&&J.token.kind!==w.kind&&(J.token.kind=w.kind),J}function l(J){se.setTextPos(J.end),E=se.getStartPos(),ue=void 0,B=void 0,p=!1,C=void 0,G=void 0}function _(J){se.setTextPos(J.pos),E=se.getStartPos(),ue=void 0,B=void 0,p=!1,C=void 0,G=void 0}}O.getFormattingScanner=Q})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.anyContext=e.emptyArray;var L;(function(N){N[N.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",N[N.StopProcessingTokenActions=2]="StopProcessingTokenActions",N[N.InsertSpace=4]="InsertSpace",N[N.InsertNewLine=8]="InsertNewLine",N[N.DeleteSpace=16]="DeleteSpace",N[N.DeleteToken=32]="DeleteToken",N[N.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",N[N.StopAction=3]="StopAction",N[N.ModifySpaceAction=28]="ModifySpaceAction",N[N.ModifyTokenAction=96]="ModifyTokenAction"})(L=O.RuleAction||(O.RuleAction={}));var W;(function(N){N[N.None=0]="None",N[N.CanDeleteNewLines=1]="CanDeleteNewLines"})(W=O.RuleFlags||(O.RuleFlags={}))})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(){for(var n=[],Er=0;Er<=159;Er++)Er!==1&&n.push(Er);function br(){for(var Ji=[],di=0;di<arguments.length;di++)Ji[di]=arguments[di];return{tokens:n.filter(function(X){return!Ji.some(function(Ye){return Ye===X})}),isSpecific:!1}}var Pr={tokens:n,isSpecific:!1},Ce=N(qe(qe([],n,!0),[3],!1)),Le=N(qe(qe([],n,!0),[1],!1)),Xe=pe(81,159),Cr=pe(29,78),Lr=[101,102,159,127,139],Jr=[45,46,54,53],Rr=[8,9,79,20,22,18,108,103],ci=[79,20,108,103],be=[79,21,23,103],or=[79,20,108,103],Kr=[79,21,23,103],ei=[2,3],li=qe([79],e.typeKeywords,!0),Si=Ce,qi=N([79,3,84,93,100]),ft=N([21,3,90,111,96,91]),bt=[W("IgnoreBeforeComment",Pr,ei,O.anyContext,1),W("IgnoreAfterLineComment",2,Pr,O.anyContext,1),W("NotSpaceBeforeColon",Pr,58,[m,ue,B],16),W("SpaceAfterColon",58,Pr,[m,ue],4),W("NoSpaceBeforeQuestionMark",Pr,57,[m,ue,B],16),W("SpaceAfterQuestionMarkInConditionalOperator",57,Pr,[m,M],4),W("NoSpaceAfterQuestionMark",57,Pr,[m],16),W("NoSpaceBeforeDot",Pr,[24,28],[m],16),W("NoSpaceAfterDot",[24,28],Pr,[m],16),W("NoSpaceBetweenImportParenInImportType",100,20,[m,ce],16),W("NoSpaceAfterUnaryPrefixOperator",Jr,Rr,[m,ue],16),W("NoSpaceAfterUnaryPreincrementOperator",45,ci,[m],16),W("NoSpaceAfterUnaryPredecrementOperator",46,or,[m],16),W("NoSpaceBeforeUnaryPostincrementOperator",be,45,[m,Ir],16),W("NoSpaceBeforeUnaryPostdecrementOperator",Kr,46,[m,Ir],16),W("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[m,E],4),W("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[m,E],4),W("SpaceAfterAddWhenFollowedByPreincrement",39,45,[m,E],4),W("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[m,E],4),W("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[m,E],4),W("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[m,E],4),W("NoSpaceAfterCloseBrace",19,[27,26],[m],16),W("NewLineBeforeCloseBraceInBlockContext",Ce,19,[Y],8),W("SpaceAfterCloseBrace",19,br(21),[m,l],4),W("SpaceBetweenCloseBraceAndElse",19,91,[m],4),W("SpaceBetweenCloseBraceAndWhile",19,115,[m],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[m,J],16),W("SpaceAfterConditionalClosingParen",21,22,[_],4),W("NoSpaceBetweenFunctionKeywordAndStar",98,41,[f],16),W("SpaceAfterStarInGeneratorDeclaration",41,79,[f],4),W("SpaceAfterFunctionInFuncDecl",98,Pr,[ee],4),W("NewLineAfterOpenBraceInBlockContext",18,Pr,[Y],8),W("SpaceAfterGetSetInMember",[136,148],79,[ee],4),W("NoSpaceBetweenYieldKeywordAndStar",125,41,[m,cr],16),W("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],Pr,[m,cr],4),W("NoSpaceBetweenReturnAndSemicolon",105,26,[m],16),W("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],Pr,[m],4),W("SpaceAfterLetConstInVariableDeclaration",[119,85],Pr,[m,me],4),W("NoSpaceBeforeOpenParenInFuncCall",Pr,20,[m,U,z],16),W("SpaceBeforeBinaryKeywordOperator",Pr,Lr,[m,E],4),W("SpaceAfterBinaryKeywordOperator",Lr,Pr,[m,E],4),W("SpaceAfterVoidOperator",114,Pr,[m,Fe],4),W("SpaceBetweenAsyncAndOpenParen",131,20,[ve,m],4),W("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[m],4),W("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[m],16),W("SpaceBeforeJsxAttribute",Pr,79,[le,m],4),W("SpaceBeforeSlashInJsxOpeningElement",Pr,43,[Ue,m],4),W("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Ue,m],16),W("NoSpaceBeforeEqualInJsxAttribute",Pr,63,[ke,m],16),W("NoSpaceAfterEqualInJsxAttribute",63,Pr,[ke,m],16),W("NoSpaceAfterModuleImport",[141,145],20,[m],16),W("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],Pr,[m],4),W("SpaceBeforeCertainTypeScriptKeywords",Pr,[94,117,155],[m],4),W("SpaceAfterModuleName",10,18,[er],4),W("SpaceBeforeArrow",Pr,38,[m],4),W("SpaceAfterArrow",38,Pr,[m],4),W("NoSpaceAfterEllipsis",25,79,[m],16),W("NoSpaceAfterOptionalParameters",57,[21,27],[m,ue],16),W("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[m,he],16),W("NoSpaceBeforeOpenAngularBracket",li,29,[m,Se],16),W("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[m,Se],16),W("NoSpaceAfterOpenAngularBracket",29,Pr,[m,Se],16),W("NoSpaceBeforeCloseAngularBracket",Pr,31,[m,Se],16),W("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[m,Se,A],16),W("SpaceBeforeAt",[21,79],59,[m],4),W("NoSpaceAfterAt",59,Pr,[m],16),W("SpaceAfterDecorator",Pr,[126,79,93,88,84,124,123,121,122,136,148,22,41],[ar],4),W("NoSpaceBeforeNonNullAssertionOperator",Pr,53,[m,ur],16),W("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[m,we],16),W("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[m],4)],aa=[W("SpaceAfterConstructor",134,20,[g("insertSpaceAfterConstructor"),m],4),W("NoSpaceAfterConstructor",134,20,[H("insertSpaceAfterConstructor"),m],16),W("SpaceAfterComma",27,Pr,[g("insertSpaceAfterCommaDelimiter"),m,ae,y,oe],4),W("NoSpaceAfterComma",27,Pr,[H("insertSpaceAfterCommaDelimiter"),m,ae],16),W("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[g("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ee],4),W("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[H("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ee],16),W("SpaceAfterKeywordInControl",Xe,20,[g("insertSpaceAfterKeywordsInControlFlowStatements"),_],4),W("NoSpaceAfterKeywordInControl",Xe,20,[H("insertSpaceAfterKeywordsInControlFlowStatements"),_],16),W("SpaceAfterOpenParen",20,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("SpaceBeforeCloseParen",Pr,21,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("SpaceBetweenOpenParens",20,20,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],4),W("NoSpaceBetweenParens",20,21,[m],16),W("NoSpaceAfterOpenParen",20,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],16),W("NoSpaceBeforeCloseParen",Pr,21,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),m],16),W("SpaceAfterOpenBracket",22,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],4),W("SpaceBeforeCloseBracket",Pr,23,[g("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],4),W("NoSpaceBetweenBrackets",22,23,[m],16),W("NoSpaceAfterOpenBracket",22,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],16),W("NoSpaceBeforeCloseBracket",Pr,23,[H("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),m],16),W("SpaceAfterOpenBrace",18,Pr,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),W("SpaceBeforeCloseBrace",Pr,19,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[m,J],16),W("NoSpaceAfterOpenBrace",18,Pr,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),m],16),W("NoSpaceBeforeCloseBrace",Pr,19,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),m],16),W("SpaceBetweenEmptyBraceBrackets",18,19,[g("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),W("NoSpaceBetweenEmptyBraceBrackets",18,19,[S("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),m],16),W("SpaceAfterTemplateHeadAndMiddle",[15,16],Pr,[g("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),de],4,1),W("SpaceBeforeTemplateMiddleAndTail",Pr,[16,17],[g("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),m],4),W("NoSpaceAfterTemplateHeadAndMiddle",[15,16],Pr,[H("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),de],16,1),W("NoSpaceBeforeTemplateMiddleAndTail",Pr,[16,17],[H("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),m],16),W("SpaceAfterOpenBraceInJsxExpression",18,Pr,[g("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],4),W("SpaceBeforeCloseBraceInJsxExpression",Pr,19,[g("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],4),W("NoSpaceAfterOpenBraceInJsxExpression",18,Pr,[H("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],16),W("NoSpaceBeforeCloseBraceInJsxExpression",Pr,19,[H("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),m,V],16),W("SpaceAfterSemicolonInFor",26,Pr,[g("insertSpaceAfterSemicolonInForStatements"),m,C],4),W("NoSpaceAfterSemicolonInFor",26,Pr,[H("insertSpaceAfterSemicolonInForStatements"),m,C],16),W("SpaceBeforeBinaryOperator",Pr,Cr,[g("insertSpaceBeforeAndAfterBinaryOperators"),m,E],4),W("SpaceAfterBinaryOperator",Cr,Pr,[g("insertSpaceBeforeAndAfterBinaryOperators"),m,E],4),W("NoSpaceBeforeBinaryOperator",Pr,Cr,[H("insertSpaceBeforeAndAfterBinaryOperators"),m,E],16),W("NoSpaceAfterBinaryOperator",Cr,Pr,[H("insertSpaceBeforeAndAfterBinaryOperators"),m,E],16),W("SpaceBeforeOpenParenInFuncDecl",Pr,20,[g("insertSpaceBeforeFunctionParenthesis"),m,ee],4),W("NoSpaceBeforeOpenParenInFuncDecl",Pr,20,[H("insertSpaceBeforeFunctionParenthesis"),m,ee],16),W("NewLineBeforeOpenBraceInControl",ft,18,[g("placeOpenBraceOnNewLineForControlBlocks"),_,_e],8,1),W("NewLineBeforeOpenBraceInFunction",Si,18,[g("placeOpenBraceOnNewLineForFunctions"),ee,_e],8,1),W("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",qi,18,[g("placeOpenBraceOnNewLineForFunctions"),P,_e],8,1),W("SpaceAfterTypeAssertion",31,Pr,[g("insertSpaceAfterTypeAssertion"),m,ge],4),W("NoSpaceAfterTypeAssertion",31,Pr,[H("insertSpaceAfterTypeAssertion"),m,ge],16),W("SpaceBeforeTypeAnnotation",Pr,[57,58],[g("insertSpaceBeforeTypeAnnotation"),m,re],4),W("NoSpaceBeforeTypeAnnotation",Pr,[57,58],[H("insertSpaceBeforeTypeAnnotation"),m,re],16),W("NoOptionalSemicolon",26,Le,[F("semicolons",e.SemicolonPreference.Remove),Br],32),W("OptionalSemicolon",Pr,Le,[F("semicolons",e.SemicolonPreference.Insert),Tr],64)],sr=[W("NoSpaceBeforeSemicolon",Pr,26,[m],16),W("SpaceBeforeOpenBraceInControl",ft,18,[se("placeOpenBraceOnNewLineForControlBlocks"),_,Ge,x],4,1),W("SpaceBeforeOpenBraceInFunction",Si,18,[se("placeOpenBraceOnNewLineForFunctions"),ee,I,Ge,x],4,1),W("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",qi,18,[se("placeOpenBraceOnNewLineForFunctions"),P,Ge,x],4,1),W("NoSpaceBeforeComma",Pr,27,[m],16),W("NoSpaceBeforeOpenBracket",br(131,82),22,[m],16),W("NoSpaceAfterCloseBracket",23,Pr,[m,He],16),W("SpaceAfterSemicolon",26,Pr,[m],4),W("SpaceBetweenForAndAwaitKeyword",97,132,[m],4),W("SpaceBetweenStatements",[21,90,91,82],Pr,[m,ae,G],4),W("SpaceAfterTryCatchFinally",[111,83,96],18,[m],4)];return qe(qe(qe([],bt,!0),aa,!0),sr,!0)}O.getAllRules=L;function W(n,Er,br,Pr,Ce,Le){return Le===void 0&&(Le=0),{leftTokenRange:Q(Er),rightTokenRange:Q(br),rule:{debugName:n,context:Pr,action:Ce,flags:Le}}}function N(n){return{tokens:n,isSpecific:!0}}function Q(n){return typeof n=="number"?N([n]):e.isArray(n)?N(n):n}function pe(n,Er,br){br===void 0&&(br=[]);for(var Pr=[],Ce=n;Ce<=Er;Ce++)e.contains(br,Ce)||Pr.push(Ce);return N(Pr)}function F(n,Er){return function(br){return br.options&&br.options[n]===Er}}function g(n){return function(Er){return Er.options&&Er.options.hasOwnProperty(n)&&!!Er.options[n]}}function S(n){return function(Er){return Er.options&&Er.options.hasOwnProperty(n)&&!Er.options[n]}}function H(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!Er.options[n]}}function se(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!Er.options[n]||Er.TokensAreOnSameLine()}}function p(n){return function(Er){return!Er.options||!Er.options.hasOwnProperty(n)||!!Er.options[n]}}function C(n){return n.contextNode.kind===241}function G(n){return!C(n)}function E(n){switch(n.contextNode.kind){case 220:return n.contextNode.operatorToken.kind!==27;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return n.currentTokenSpan.kind===63||n.nextTokenSpan.kind===63;case 242:case 162:return n.currentTokenSpan.kind===101||n.nextTokenSpan.kind===101||n.currentTokenSpan.kind===63||n.nextTokenSpan.kind===63;case 243:return n.currentTokenSpan.kind===159||n.nextTokenSpan.kind===159}return!1}function ue(n){return!E(n)}function B(n){return!re(n)}function re(n){var Er=n.contextNode.kind;return Er===166||Er===165||Er===163||Er===253||e.isFunctionLikeKind(Er)}function M(n){return n.contextNode.kind===221||n.contextNode.kind===188}function x(n){return n.TokensAreOnSameLine()||I(n)}function ie(n){return n.contextNode.kind===200||n.contextNode.kind===194||Z(n)}function _e(n){return I(n)&&!(n.NextNodeAllOnSameLine()||n.NextNodeBlockIsOnOneLine())}function Y(n){return k(n)&&!(n.ContextNodeAllOnSameLine()||n.ContextNodeBlockIsOnOneLine())}function Z(n){return k(n)&&(n.ContextNodeAllOnSameLine()||n.ContextNodeBlockIsOnOneLine())}function k(n){return ne(n.contextNode)}function I(n){return ne(n.nextTokenParent)}function ne(n){if(D(n))return!0;switch(n.kind){case 234:case 262:case 204:case 261:return!0}return!1}function ee(n){switch(n.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function A(n){return!ee(n)}function f(n){return n.contextNode.kind===255||n.contextNode.kind===212}function P(n){return D(n.contextNode)}function D(n){switch(n.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function l(n){switch(n.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:{var Er=n.currentTokenParent.parent;if(!Er||Er.kind!==213&&Er.kind!==212)return!0}}return!1}function _(n){switch(n.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function J(n){return n.contextNode.kind===204}function w(n){return n.contextNode.kind===207}function j(n){return n.contextNode.kind===208}function U(n){return w(n)||j(n)}function z(n){return n.currentTokenSpan.kind!==27}function y(n){return n.nextTokenSpan.kind!==23}function oe(n){return n.nextTokenSpan.kind!==21}function ve(n){return n.contextNode.kind===213}function ce(n){return n.contextNode.kind===199}function m(n){return n.TokensAreOnSameLine()&&n.contextNode.kind!==11}function de(n){return n.contextNode.kind!==11}function ae(n){return n.contextNode.kind!==277&&n.contextNode.kind!==281}function V(n){return n.contextNode.kind===287||n.contextNode.kind===286}function le(n){return n.nextTokenParent.kind===284}function ke(n){return n.contextNode.kind===284}function Ue(n){return n.contextNode.kind===278}function He(n){return!ee(n)&&!I(n)}function ar(n){return n.TokensAreOnSameLine()&&!!n.contextNode.decorators&&gr(n.currentTokenParent)&&!gr(n.nextTokenParent)}function gr(n){for(;e.isExpressionNode(n);)n=n.parent;return n.kind===164}function me(n){return n.currentTokenParent.kind===254&&n.currentTokenParent.getStart(n.sourceFile)===n.currentTokenSpan.pos}function Ge(n){return n.formattingRequestKind!==2}function er(n){return n.contextNode.kind===260}function he(n){return n.contextNode.kind===181}function we(n){return n.contextNode.kind===174}function ye(n,Er){if(n.kind!==29&&n.kind!==31)return!1;switch(Er.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function Se(n){return ye(n.currentTokenSpan,n.currentTokenParent)||ye(n.nextTokenSpan,n.nextTokenParent)}function ge(n){return n.contextNode.kind===210}function Fe(n){return n.currentTokenSpan.kind===114&&n.currentTokenParent.kind===216}function cr(n){return n.contextNode.kind===223&&n.contextNode.expression!==void 0}function ur(n){return n.contextNode.kind===229}function Ir(n){return!dr(n)}function dr(n){switch(n.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}function Br(n){var Er=n.nextTokenSpan.kind,br=n.nextTokenSpan.pos;if(e.isTrivia(Er)){var Pr=n.nextTokenParent===n.currentTokenParent?e.findNextToken(n.currentTokenParent,e.findAncestor(n.currentTokenParent,function(Xe){return!Xe.parent}),n.sourceFile):n.nextTokenParent.getFirstToken(n.sourceFile);if(!Pr)return!0;Er=Pr.kind,br=Pr.getStart(n.sourceFile)}var Ce=n.sourceFile.getLineAndCharacterOfPosition(n.currentTokenSpan.pos).line,Le=n.sourceFile.getLineAndCharacterOfPosition(br).line;return Ce===Le?Er===19||Er===1:Er===233||Er===26?!1:n.contextNode.kind===257||n.contextNode.kind===258?!e.isPropertySignature(n.currentTokenParent)||!!n.currentTokenParent.type||Er!==20:e.isPropertyDeclaration(n.currentTokenParent)?!n.currentTokenParent.initializer:n.currentTokenParent.kind!==241&&n.currentTokenParent.kind!==235&&n.currentTokenParent.kind!==233&&Er!==22&&Er!==20&&Er!==39&&Er!==40&&Er!==43&&Er!==13&&Er!==27&&Er!==222&&Er!==15&&Er!==14&&Er!==24}function Tr(n){return e.positionIsASICandidate(n.currentTokenSpan.end,n.currentTokenParent,n.sourceFile)}})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(ue,B){return{options:ue,getRules:N(),host:B}}O.getFormatContext=L;var W;function N(){return W===void 0&&(W=pe(O.getAllRules())),W}function Q(ue){var B=0;return ue&1&&(B|=28),ue&2&&(B|=96),ue&28&&(B|=28),ue&96&&(B|=96),B}function pe(ue){var B=F(ue);return function(re){var M=B[g(re.currentTokenSpan.kind,re.nextTokenSpan.kind)];if(M){for(var x=[],ie=0,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e],k=~Q(ie);Z.action&k&&e.every(Z.context,function(I){return I(re)})&&(x.push(Z),ie|=Z.action)}if(x.length)return x}}}function F(ue){for(var B=new Array(se*se),re=new Array(B.length),M=0,x=ue;M<x.length;M++)for(var ie=x[M],_e=ie.leftTokenRange.isSpecific&&ie.rightTokenRange.isSpecific,Y=0,Z=ie.leftTokenRange.tokens;Y<Z.length;Y++)for(var k=Z[Y],I=0,ne=ie.rightTokenRange.tokens;I<ne.length;I++){var ee=ne[I],A=g(k,ee),f=B[A];f===void 0&&(f=B[A]=[]),C(f,ie.rule,_e,re,A)}return B}function g(ue,B){return e.Debug.assert(ue<=159&&B<=159,"Must compute formatting context from tokens"),ue*se+B}var S=5,H=31,se=159+1,p;(function(ue){ue[ue.StopRulesSpecific=0]="StopRulesSpecific",ue[ue.StopRulesAny=S*1]="StopRulesAny",ue[ue.ContextRulesSpecific=S*2]="ContextRulesSpecific",ue[ue.ContextRulesAny=S*3]="ContextRulesAny",ue[ue.NoContextRulesSpecific=S*4]="NoContextRulesSpecific",ue[ue.NoContextRulesAny=S*5]="NoContextRulesAny"})(p||(p={}));function C(ue,B,re,M,x){var ie=B.action&3?re?p.StopRulesSpecific:p.StopRulesAny:B.context!==O.anyContext?re?p.ContextRulesSpecific:p.ContextRulesAny:re?p.NoContextRulesSpecific:p.NoContextRulesAny,_e=M[x]||0;ue.splice(G(_e,ie),0,B),M[x]=E(_e,ie)}function G(ue,B){for(var re=0,M=0;M<=B;M+=S)re+=ue&H,ue>>=S;return re}function E(ue,B){var re=(ue>>B&H)+1;return e.Debug.assert((re&H)===re,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),ue&~(H<<B)|re<<B}})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(A,f,P){var D={pos:A,end:f,kind:P};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(P)}}),D}O.createTextRangeWithKind=L;var W;(function(A){A[A.Unknown=-1]="Unknown"})(W||(W={}));function N(A,f,P){var D=f.getLineAndCharacterOfPosition(A).line;if(D===0)return[];for(var l=e.getEndLinePosition(D,f);e.isWhiteSpaceSingleLine(f.text.charCodeAt(l));)l--;e.isLineBreak(f.text.charCodeAt(l))&&l--;var _={pos:e.getStartPositionOfLine(D-1,f),end:l+1};return M(_,f,P,2)}O.formatOnEnter=N;function Q(A,f,P){var D=H(A,26,f);return re(se(D),f,P,3)}O.formatOnSemicolon=Q;function pe(A,f,P){var D=H(A,18,f);if(!D)return[];var l=D.parent,_=se(l),J={pos:e.getLineStartPositionForPosition(_.getStart(f),f),end:A};return M(J,f,P,4)}O.formatOnOpeningCurly=pe;function F(A,f,P){var D=H(A,19,f);return re(se(D),f,P,5)}O.formatOnClosingCurly=F;function g(A,f){var P={pos:0,end:A.text.length};return M(P,A,f,0)}O.formatDocument=g;function S(A,f,P,D){var l={pos:e.getLineStartPositionForPosition(A,P),end:f};return M(l,P,D,1)}O.formatSelection=S;function H(A,f,P){var D=e.findPrecedingToken(A,P);return D&&D.kind===f&&A===D.getEnd()?D:void 0}function se(A){for(var f=A;f&&f.parent&&f.parent.end===A.end&&!p(f.parent,f);)f=f.parent;return f}function p(A,f){switch(A.kind){case 256:case 257:return e.rangeContainsRange(A.members,f);case 260:var P=A.body;return!!P&&P.kind===261&&e.rangeContainsRange(P.statements,f);case 303:case 234:case 261:return e.rangeContainsRange(A.statements,f);case 291:return e.rangeContainsRange(A.block.statements,f)}return!1}function C(A,f){return P(f);function P(D){var l=e.forEachChild(D,function(J){return e.startEndContainsRange(J.getStart(f),J.end,A)&&J});if(l){var _=P(l);if(_)return _}return D}}function G(A,f){if(!A.length)return l;var P=A.filter(function(_){return e.rangeOverlapsWithStartEnd(f,_.start,_.start+_.length)}).sort(function(_,J){return _.start-J.start});if(!P.length)return l;var D=0;return function(_){for(;;){if(D>=P.length)return!1;var J=P[D];if(_.end<=J.start)return!1;if(e.startEndOverlapsWithStartEnd(_.pos,_.end,J.start,J.start+J.length))return!0;D++}};function l(){return!1}}function E(A,f,P){var D=A.getStart(P);if(D===f.pos&&A.end===f.end)return D;var l=e.findPrecedingToken(f.pos,P);return!l||l.end>=f.pos?A.pos:l.end}function ue(A,f,P){for(var D=-1,l;A;){var _=P.getLineAndCharacterOfPosition(A.getStart(P)).line;if(D!==-1&&_!==D)break;if(O.SmartIndenter.shouldIndentChildNode(f,A,l,P))return f.indentSize;D=_,l=A,A=A.parent}return 0}function B(A,f,P,D,l,_){var J={pos:A.pos,end:A.end};return O.getFormattingScanner(f.text,P,J.pos,J.end,function(w){return x(J,A,D,l,w,_,1,function(j){return!1},f)})}O.formatNodeGivenIndentation=B;function re(A,f,P,D){if(!A)return[];var l={pos:e.getLineStartPositionForPosition(A.getStart(f),f),end:A.end};return M(l,f,P,D)}function M(A,f,P,D){var l=C(A,f);return O.getFormattingScanner(f.text,f.languageVariant,E(l,A,f),A.end,function(_){return x(A,l,O.SmartIndenter.getIndentationForNode(l,A,f,P.options),ue(l,P.options,f),_,P,D,G(f.parseDiagnostics,A),f)})}function x(A,f,P,D,l,_,J,w,j){var U=_.options,z=_.getRules,y=_.host,oe=new O.FormattingContext(j,J,U),ve,ce,m,de,ae=-1,V=[];if(l.advance(),l.isOnToken()){var le=j.getLineAndCharacterOfPosition(f.getStart(j)).line,ke=le;f.decorators&&(ke=j.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(f,j)).line),he(f,f,le,ke,P,D)}if(!l.isOnToken()){var Ue=O.SmartIndenter.nodeWillIndentChild(U,f,void 0,j,!1)?P+U.indentSize:P,He=l.getCurrentLeadingTrivia();He&&(we(He,Ue,!1,function(Le){return Se(Le,j.getLineAndCharacterOfPosition(Le.pos),f,f,void 0)}),U.trimTrailingWhitespace!==!1&&Tr(He))}if(ve&&l.getStartPos()>=A.end){var ar=l.isOnEOF()?l.readEOFTokenRange():l.isOnToken()?l.readTokenInfo(f).token:void 0;ar&&ge(ar,j.getLineAndCharacterOfPosition(ar.pos).line,f,ve,m,ce,f,void 0)}return V;function gr(Le,Xe,Cr,Lr,Jr){if(e.rangeOverlapsWithStartEnd(Lr,Le,Xe)||e.rangeContainsStartEnd(Lr,Le,Xe)){if(Jr!==-1)return Jr}else{var Rr=j.getLineAndCharacterOfPosition(Le).line,ci=e.getLineStartPositionForPosition(Le,j),be=O.SmartIndenter.findFirstNonWhitespaceColumn(ci,Le,j,U);if(Rr!==Cr||Le===be){var or=O.SmartIndenter.getBaseIndentation(U);return or>be?or:be}}return-1}function me(Le,Xe,Cr,Lr,Jr,Rr){var ci=O.SmartIndenter.shouldIndentChildNode(U,Le)?U.indentSize:0;return Rr===Xe?{indentation:Xe===de?ae:Jr.getIndentation(),delta:Math.min(U.indentSize,Jr.getDelta(Le)+ci)}:Cr===-1?Le.kind===20&&Xe===de?{indentation:ae,delta:Jr.getDelta(Le)}:O.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(Lr,Le,Xe,j)||O.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(Lr,Le,Xe,j)||O.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(Lr,Le,Xe,j)?{indentation:Jr.getIndentation(),delta:ci}:{indentation:Jr.getIndentation()+Jr.getDelta(Le),delta:ci}:{indentation:Cr,delta:ci}}function Ge(Le){if(Le.modifiers&&Le.modifiers.length)return Le.modifiers[0].kind;switch(Le.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(Le.asteriskToken)return 41;case 166:case 163:var Xe=e.getNameOfDeclaration(Le);if(Xe)return Xe.kind}}function er(Le,Xe,Cr,Lr){return{getIndentationForComment:function(ci,be,or){switch(ci){case 19:case 23:case 21:return Cr+Rr(or)}return be!==-1?be:Cr},getIndentationForToken:function(ci,be,or,Kr){return!Kr&&Jr(ci,be,or)?Cr+Rr(or):Cr},getIndentation:function(){return Cr},getDelta:Rr,recomputeIndentation:function(ci,be){O.SmartIndenter.shouldIndentChildNode(U,be,Le,j)&&(Cr+=ci?U.indentSize:-U.indentSize,Lr=O.SmartIndenter.shouldIndentChildNode(U,Le)?U.indentSize:0)}};function Jr(ci,be,or){switch(be){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(or.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(or.kind!==194)return!1;break}return Xe!==ci&&!(Le.decorators&&be===Ge(Le))}function Rr(ci){return O.SmartIndenter.nodeWillIndentChild(U,Le,ci,j,!0)?Lr:0}}function he(Le,Xe,Cr,Lr,Jr,Rr){if(!e.rangeOverlapsWithStartEnd(A,Le.getStart(j),Le.getEnd()))return;var ci=er(Le,Cr,Jr,Rr),be=Xe;for(e.forEachChild(Le,function(Si){Kr(Si,-1,Le,ci,Cr,Lr,!1)},function(Si){ei(Si,Le,Cr,ci)});l.isOnToken()&&l.getStartPos()<A.end;){var or=l.readTokenInfo(Le);if(or.token.end>Math.min(Le.end,A.end))break;li(or,Le,ci,Le)}function Kr(Si,qi,ft,bt,aa,sr,Ji,di){var X=Si.getStart(j),Ye=j.getLineAndCharacterOfPosition(X).line,Be=Ye;Si.decorators&&(Be=j.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(Si,j)).line);var Qe=-1;if(Ji&&e.rangeContainsRange(A,ft)&&(Qe=gr(X,Si.end,aa,A,qi),Qe!==-1&&(qi=Qe)),!e.rangeOverlapsWithStartEnd(A,Si.pos,Si.end))return Si.end<A.pos&&l.skipToEndOf(Si),qi;if(Si.getFullWidth()===0)return qi;for(;l.isOnToken()&&l.getStartPos()<A.end;){var _r=l.readTokenInfo(Le);if(_r.token.end>A.end)return qi;if(_r.token.end>X){_r.token.pos>X&&l.skipToStartOf(Si);break}li(_r,Le,bt,Le)}if(!l.isOnToken()||l.getStartPos()>=A.end)return qi;if(e.isToken(Si)){var _r=l.readTokenInfo(Si);if(Si.kind!==11)return e.Debug.assert(_r.token.end===Si.end,"Token end is child end"),li(_r,Le,bt,Si),qi}var hr=Si.kind===164?Ye:sr,Dr=me(Si,Ye,Qe,Le,bt,hr);return he(Si,be,Ye,Be,Dr.indentation,Dr.delta),be=Le,di&&ft.kind===203&&qi===-1&&(qi=Dr.indentation),qi}function ei(Si,qi,ft,bt){e.Debug.assert(e.isNodeArray(Si));var aa=Y(qi,Si),sr=bt,Ji=ft;if(aa!==0)for(;l.isOnToken()&&l.getStartPos()<A.end;){var di=l.readTokenInfo(qi);if(di.token.end>Si.pos)break;if(di.token.kind===aa){Ji=j.getLineAndCharacterOfPosition(di.token.pos).line,li(di,qi,bt,qi);var X=void 0;if(ae!==-1)X=ae;else{var Ye=e.getLineStartPositionForPosition(di.token.pos,j);X=O.SmartIndenter.findFirstNonWhitespaceColumn(Ye,di.token.pos,j,U)}sr=er(qi,ft,X,U.indentSize)}else li(di,qi,bt,qi)}for(var Be=-1,Qe=0;Qe<Si.length;Qe++){var _r=Si[Qe];Be=Kr(_r,Be,Le,sr,Ji,Ji,!0,Qe===0)}var hr=Z(aa);if(hr!==0&&l.isOnToken()&&l.getStartPos()<A.end){var di=l.readTokenInfo(qi);if(di.token.kind===27&&e.isCallLikeExpression(qi)){var Dr=j.getLineAndCharacterOfPosition(di.token.pos).line;Ji!==Dr&&(l.advance(),di=l.isOnToken()?l.readTokenInfo(qi):void 0)}di&&di.token.kind===hr&&e.rangeContainsRange(qi,di.token)&&li(di,qi,sr,qi,!0)}}function li(Si,qi,ft,bt,aa){e.Debug.assert(e.rangeContainsRange(qi,Si.token));var sr=l.lastTrailingTriviaWasNewLine(),Ji=!1;Si.leadingTrivia&&ye(Si.leadingTrivia,qi,be,ft);var di=0,X=e.rangeContainsRange(A,Si.token),Ye=j.getLineAndCharacterOfPosition(Si.token.pos);if(X){var Be=w(Si.token),Qe=ve;if(di=Se(Si.token,Ye,qi,be,ft),!Be)if(di===0){var _r=Qe&&j.getLineAndCharacterOfPosition(Qe.end).line;Ji=sr&&Ye.line!==_r}else Ji=di===1}if(Si.trailingTrivia&&ye(Si.trailingTrivia,qi,be,ft),Ji){var hr=X&&!w(Si.token)?ft.getIndentationForToken(Ye.line,Si.token.kind,bt,!!aa):-1,Dr=!0;if(Si.leadingTrivia){var Me=ft.getIndentationForComment(Si.token.kind,hr,bt);Dr=we(Si.leadingTrivia,Me,Dr,function(v){return Fe(v.pos,Me,!1)})}hr!==-1&&Dr&&(Fe(Si.token.pos,hr,di===1),de=Ye.line,ae=hr)}l.advance(),be=qi}}function we(Le,Xe,Cr,Lr){for(var Jr=0,Rr=Le;Jr<Rr.length;Jr++){var ci=Rr[Jr],be=e.rangeContainsRange(A,ci);switch(ci.kind){case 3:be&&Ir(ci,Xe,!Cr),Cr=!1;break;case 2:Cr&&be&&Lr(ci),Cr=!1;break;case 4:Cr=!0;break}}return Cr}function ye(Le,Xe,Cr,Lr){for(var Jr=0,Rr=Le;Jr<Rr.length;Jr++){var ci=Rr[Jr];if(e.isComment(ci.kind)&&e.rangeContainsRange(A,ci)){var be=j.getLineAndCharacterOfPosition(ci.pos);Se(ci,be,Xe,Cr,Lr)}}}function Se(Le,Xe,Cr,Lr,Jr){var Rr=w(Le),ci=0;if(!Rr)if(ve)ci=ge(Le,Xe.line,Cr,ve,m,ce,Lr,Jr);else{var be=j.getLineAndCharacterOfPosition(A.pos);dr(be.line,Xe.line)}return ve=Le,ce=Cr,m=Xe.line,ci}function ge(Le,Xe,Cr,Lr,Jr,Rr,ci,be){oe.updateContext(Lr,Rr,Le,Cr,ci);var or=z(oe),Kr=oe.options.trimTrailingWhitespace!==!1,ei=0;return or?e.forEachRight(or,function(li){if(ei=Ce(li,Lr,Jr,Le,Xe),be)switch(ei){case 2:Cr.getStart(j)===Le.pos&&be.recomputeIndentation(!1,ci);break;case 1:Cr.getStart(j)===Le.pos&&be.recomputeIndentation(!0,ci);break;default:e.Debug.assert(ei===0)}Kr=Kr&&!(li.action&16)&&li.flags!==1}):Kr=Kr&&Le.kind!==1,Xe!==Jr&&Kr&&dr(Jr,Xe,Lr),ei}function Fe(Le,Xe,Cr){var Lr=ee(Xe,U);if(Cr)br(Le,0,Lr);else{var Jr=j.getLineAndCharacterOfPosition(Le),Rr=e.getStartPositionOfLine(Jr.line,j);(Xe!==cr(Rr,Jr.character)||ur(Lr,Rr))&&br(Rr,Jr.character,Lr)}}function cr(Le,Xe){for(var Cr=0,Lr=0;Lr<Xe;Lr++)j.text.charCodeAt(Le+Lr)===9?Cr+=U.tabSize-Cr%U.tabSize:Cr++;return Cr}function ur(Le,Xe){return Le!==j.text.substr(Xe,Le.length)}function Ir(Le,Xe,Cr,Lr){Lr===void 0&&(Lr=!0);var Jr=j.getLineAndCharacterOfPosition(Le.pos).line,Rr=j.getLineAndCharacterOfPosition(Le.end).line;if(Jr===Rr){Cr||Fe(Le.pos,Xe,!1);return}for(var ci=[],be=Le.pos,or=Jr;or<Rr;or++){var Kr=e.getEndLinePosition(or,j);ci.push({pos:be,end:Kr}),be=e.getStartPositionOfLine(or+1,j)}if(Lr&&ci.push({pos:be,end:Le.end}),ci.length!==0){var ei=e.getStartPositionOfLine(Jr,j),li=O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(ei,ci[0].pos,j,U),Si=0;Cr&&(Si=1,Jr++);for(var qi=Xe-li.column,ft=Si;ft<ci.length;ft++,Jr++){var bt=e.getStartPositionOfLine(Jr,j),aa=ft===0?li:O.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(ci[ft].pos,ci[ft].end,j,U),sr=aa.column+qi;if(sr>0){var Ji=ee(sr,U);br(bt,aa.character,Ji)}else Er(bt,aa.character)}}}function dr(Le,Xe,Cr){for(var Lr=Le;Lr<Xe;Lr++){var Jr=e.getStartPositionOfLine(Lr,j),Rr=e.getEndLinePosition(Lr,j);if(!(Cr&&(e.isComment(Cr.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(Cr.kind))&&Cr.pos<=Rr&&Cr.end>Rr)){var ci=Br(Jr,Rr);ci!==-1&&(e.Debug.assert(ci===Jr||!e.isWhiteSpaceSingleLine(j.text.charCodeAt(ci-1))),Er(ci,Rr+1-ci))}}}function Br(Le,Xe){for(var Cr=Xe;Cr>=Le&&e.isWhiteSpaceSingleLine(j.text.charCodeAt(Cr));)Cr--;return Cr!==Xe?Cr+1:-1}function Tr(Le){for(var Xe=ve?ve.end:A.pos,Cr=0,Lr=Le;Cr<Lr.length;Cr++){var Jr=Lr[Cr];e.isComment(Jr.kind)&&(Xe<Jr.pos&&n(Xe,Jr.pos-1,ve),Xe=Jr.end+1)}Xe<A.end&&n(Xe,A.end,ve)}function n(Le,Xe,Cr){var Lr=j.getLineAndCharacterOfPosition(Le).line,Jr=j.getLineAndCharacterOfPosition(Xe).line;dr(Lr,Jr+1,Cr)}function Er(Le,Xe){Xe&&V.push(e.createTextChangeFromStartLength(Le,Xe,""))}function br(Le,Xe,Cr){(Xe||Cr)&&V.push(e.createTextChangeFromStartLength(Le,Xe,Cr))}function Pr(Le,Xe){Xe&&V.push(e.createTextChangeFromStartLength(Le,0,Xe))}function Ce(Le,Xe,Cr,Lr,Jr){var Rr=Jr!==Cr;switch(Le.action){case 1:return 0;case 16:if(Xe.end!==Lr.pos)return Er(Xe.end,Lr.pos-Xe.end),Rr?2:0;break;case 32:Er(Xe.pos,Xe.end-Xe.pos);break;case 8:if(Le.flags!==1&&Cr!==Jr)return 0;var ci=Jr-Cr;if(ci!==1)return br(Xe.end,Lr.pos-Xe.end,e.getNewLineOrDefaultFromHost(y,U)),Rr?0:1;break;case 4:if(Le.flags!==1&&Cr!==Jr)return 0;var be=Lr.pos-Xe.end;if(be!==1||j.text.charCodeAt(Xe.end)!==32)return br(Xe.end,Lr.pos-Xe.end," "),Rr?2:0;break;case 64:Pr(Xe.end,";")}return 0}}var ie;(function(A){A[A.None=0]="None",A[A.LineAdded=1]="LineAdded",A[A.LineRemoved=2]="LineRemoved"})(ie||(ie={}));function _e(A,f,P,D){D===void 0&&(D=e.getTokenAtPosition(A,f));var l=e.findAncestor(D,e.isJSDoc);l&&(D=l.parent);var _=D.getStart(A);if(!(_<=f&&f<D.getEnd())){P=P===null?void 0:P===void 0?e.findPrecedingToken(f,A):P;var J=P&&e.getTrailingCommentRanges(A.text,P.end),w=e.getLeadingCommentRangesOfNode(D,A),j=e.concatenate(J,w);return j&&e.find(j,function(U){return e.rangeContainsPositionExclusive(U,f)||f===U.end&&(U.kind===2||f===A.getFullWidth())})}}O.getRangeOfEnclosingComment=_e;function Y(A,f){switch(A.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(A.typeParameters===f)return 29;if(A.parameters===f)return 20;break;case 207:case 208:if(A.typeArguments===f)return 29;if(A.arguments===f)return 20;break;case 177:if(A.typeArguments===f)return 29;break;case 181:return 18}return 0}function Z(A){switch(A){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var k,I,ne;function ee(A,f){var P=!k||k.tabSize!==f.tabSize||k.indentSize!==f.indentSize;if(P&&(k={tabSize:f.tabSize,indentSize:f.indentSize},I=ne=void 0),f.convertTabsToSpaces){var J=void 0,w=Math.floor(A/f.indentSize),j=A%f.indentSize;return ne||(ne=[]),ne[w]===void 0?(J=e.repeatString(" ",f.indentSize*w),ne[w]=J):J=ne[w],j?J+e.repeatString(" ",j):J}else{var D=Math.floor(A/f.tabSize),l=A-D*f.tabSize,_=void 0;return I||(I=[]),I[D]===void 0?I[D]=_=e.repeatString(" ",D):_=I[D],l?_+e.repeatString(" ",l):_}}O.getIndentationString=ee})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N;(function(w){w[w.Unknown=-1]="Unknown"})(N||(N={}));function Q(w,j,U,z){if(z===void 0&&(z=!1),w>j.text.length)return H(U);if(U.indentStyle===e.IndentStyle.None)return 0;var y=e.findPrecedingToken(w,j,void 0,!0),oe=O.getRangeOfEnclosingComment(j,w,y||null);if(oe&&oe.kind===3)return pe(j,w,U,oe);if(!y)return H(U);var ve=e.isStringOrRegularExpressionOrTemplateLiteral(y.kind);if(ve&&y.getStart(j)<=w&&w<y.end)return 0;var ce=j.getLineAndCharacterOfPosition(w).line;if(U.indentStyle===e.IndentStyle.Block)return F(j,w,U);if(y.kind===27&&y.parent.kind!==220){var m=C(y,j,U);if(m!==-1)return m}var de=Y(w,y.parent,j);return de&&!e.rangeContainsRange(de,y)?I(de,j,U)+U.indentSize:g(j,w,y,ce,z,U)}W.getIndentation=Q;function pe(w,j,U,z){var y=e.getLineAndCharacterOfPosition(w,j).line-1,oe=e.getLineAndCharacterOfPosition(w,z.pos).line;if(e.Debug.assert(oe>=0),y<=oe)return P(e.getStartPositionOfLine(oe,w),j,w,U);var ve=e.getStartPositionOfLine(y,w),ce=f(ve,j,w,U),m=ce.column,de=ce.character;if(m===0)return m;var ae=w.text.charCodeAt(ve+de);return ae===42?m-1:m}function F(w,j,U){for(var z=j;z>0;){var y=w.text.charCodeAt(z);if(!e.isWhiteSpaceLike(y))break;z--}var oe=e.getLineStartPositionForPosition(z,w);return P(oe,z,w,U)}function g(w,j,U,z,y,oe){for(var ve,ce=U;ce;){if(e.positionBelongsToNode(ce,j,w)&&_(oe,ce,ve,w,!0)){var m=B(ce,w),de=ue(U,ce,z,w),ae=de!==0?y&&de===2?oe.indentSize:0:z!==m.line?oe.indentSize:0;return se(ce,m,void 0,ae,w,!0,oe)}var V=ne(ce,w,oe,!0);if(V!==-1)return V;ve=ce,ce=ce.parent}return H(oe)}function S(w,j,U,z){var y=U.getLineAndCharacterOfPosition(w.getStart(U));return se(w,y,j,0,U,!1,z)}W.getIndentationForNode=S;function H(w){return w.baseIndentSize||0}W.getBaseIndentation=H;function se(w,j,U,z,y,oe,ve){for(var ce,m=w.parent;m;){var de=!0;if(U){var ae=w.getStart(y);de=ae<U.pos||ae>U.end}var V=p(m,w,y),le=V.line===j.line||M(m,w,j.line,y);if(de){var ke=(ce=_e(w,y))===null||ce===void 0?void 0:ce[0],Ue=!!ke&&B(ke,y).line>V.line,He=ne(w,y,ve,Ue);if(He!==-1||(He=G(w,m,j,le,y,ve),He!==-1))return He+z}_(ve,m,w,y,oe)&&!le&&(z+=ve.indentSize);var ar=re(m,w,j.line,y);w=m,m=w.parent,j=ar?y.getLineAndCharacterOfPosition(w.getStart(y)):V}return z+H(ve)}function p(w,j,U){var z=_e(j,U),y=z?z.pos:w.getStart(U);return U.getLineAndCharacterOfPosition(y)}function C(w,j,U){var z=e.findListItemInfo(w);return z&&z.listItemIndex>0?ee(z.list.getChildren(),z.listItemIndex-1,j,U):-1}function G(w,j,U,z,y,oe){var ve=(e.isDeclaration(w)||e.isStatementButNotDeclaration(w))&&(j.kind===303||!z);return ve?A(U,y,oe):-1}var E;(function(w){w[w.Unknown=0]="Unknown",w[w.OpenBrace=1]="OpenBrace",w[w.CloseBrace=2]="CloseBrace"})(E||(E={}));function ue(w,j,U,z){var y=e.findNextToken(w,j,z);if(!y)return 0;if(y.kind===18)return 1;if(y.kind===19){var oe=B(y,z).line;return U===oe?2:0}return 0}function B(w,j){return j.getLineAndCharacterOfPosition(w.getStart(j))}function re(w,j,U,z){if(!(e.isCallExpression(w)&&e.contains(w.arguments,j)))return!1;var y=w.expression.getEnd(),oe=e.getLineAndCharacterOfPosition(z,y).line;return oe===U}W.isArgumentAndStartLineOverlapsExpressionBeingCalled=re;function M(w,j,U,z){if(w.kind===238&&w.elseStatement===j){var y=e.findChildOfKind(w,91,z);e.Debug.assert(y!==void 0);var oe=B(y,z).line;return oe===U}return!1}W.childStartsOnTheSameLineWithElseInIfStatement=M;function x(w,j,U,z){if(e.isConditionalExpression(w)&&(j===w.whenTrue||j===w.whenFalse)){var y=e.getLineAndCharacterOfPosition(z,w.condition.end).line;if(j===w.whenTrue)return U===y;var oe=B(w.whenTrue,z).line,ve=e.getLineAndCharacterOfPosition(z,w.whenTrue.end).line;return y===oe&&ve===U}return!1}W.childIsUnindentedBranchOfConditionalExpression=x;function ie(w,j,U,z){if(e.isCallOrNewExpression(w)){if(!w.arguments)return!1;var y=e.find(w.arguments,function(m){return m.pos===j.pos});if(!y)return!1;var oe=w.arguments.indexOf(y);if(oe===0)return!1;var ve=w.arguments[oe-1],ce=e.getLineAndCharacterOfPosition(z,ve.getEnd()).line;if(U===ce)return!0}return!1}W.argumentStartsOnSameLineAsPreviousArgument=ie;function _e(w,j){return w.parent&&Z(w.getStart(j),w.getEnd(),w.parent,j)}W.getContainingList=_e;function Y(w,j,U){return j&&Z(w,w,j,U)}function Z(w,j,U,z){switch(U.kind){case 177:return y(U.typeArguments);case 204:return y(U.properties);case 203:return y(U.elements);case 181:return y(U.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return y(U.typeParameters)||y(U.parameters);case 171:return y(U.parameters);case 256:case 225:case 257:case 258:case 342:return y(U.typeParameters);case 208:case 207:return y(U.typeArguments)||y(U.arguments);case 254:return y(U.declarations);case 268:case 272:return y(U.elements);case 200:case 201:return y(U.elements)}function y(oe){return oe&&e.rangeContainsStartEnd(k(U,oe,z),w,j)?oe:void 0}}function k(w,j,U){for(var z=w.getChildren(U),y=1;y<z.length-1;y++)if(z[y].pos===j.pos&&z[y].end===j.end)return{pos:z[y-1].end,end:z[y+1].getStart(U)};return j}function I(w,j,U){return w?A(j.getLineAndCharacterOfPosition(w.pos),j,U):-1}function ne(w,j,U,z){if(w.parent&&w.parent.kind===254)return-1;var y=_e(w,j);if(y){var oe=y.indexOf(w);if(oe!==-1){var ve=ee(y,oe,j,U);if(ve!==-1)return ve}return I(y,j,U)+(z?U.indentSize:0)}return-1}function ee(w,j,U,z){e.Debug.assert(j>=0&&j<w.length);for(var y=w[j],oe=B(y,U),ve=j-1;ve>=0;ve--)if(w[ve].kind!==27){var ce=U.getLineAndCharacterOfPosition(w[ve].end).line;if(ce!==oe.line)return A(oe,U,z);oe=B(w[ve],U)}return-1}function A(w,j,U){var z=j.getPositionOfLineAndCharacter(w.line,0);return P(z,z+w.character,j,U)}function f(w,j,U,z){for(var y=0,oe=0,ve=w;ve<j;ve++){var ce=U.text.charCodeAt(ve);if(!e.isWhiteSpaceSingleLine(ce))break;ce===9?oe+=z.tabSize+oe%z.tabSize:oe++,y++}return{column:oe,character:y}}W.findFirstNonWhitespaceCharacterAndColumn=f;function P(w,j,U,z){return f(w,j,U,z).column}W.findFirstNonWhitespaceColumn=P;function D(w,j,U,z,y){var oe=U?U.kind:0;switch(j.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!w.indentMultiLineObjectLiteralBeginningOnBlankLine&&z&&oe===204)return J(z,U);if(j.kind===220&&z&&U&&oe===277){var ve=z.getLineAndCharacterOfPosition(e.skipTrivia(z.text,j.pos)).line,ce=z.getLineAndCharacterOfPosition(e.skipTrivia(z.text,U.pos)).line;return ve!==ce}if(j.kind!==220)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return oe!==234;case 213:return z&&oe===211?J(z,U):oe!==234;case 271:return oe!==272;case 265:return oe!==266||!!U.namedBindings&&U.namedBindings.kind!==268;case 277:return oe!==280;case 281:return oe!==283;case 187:case 186:if(oe===181||oe===183)return!1;break}return y}W.nodeWillIndentChild=D;function l(w,j){switch(w){case 246:case 250:case 244:case 245:return j.kind!==234;default:return!1}}function _(w,j,U,z,y){return y===void 0&&(y=!1),D(w,j,U,z,!1)&&!(y&&U&&l(U.kind,j))}W.shouldIndentChildNode=_;function J(w,j){var U=e.skipTrivia(w.text,j.pos),z=w.getLineAndCharacterOfPosition(U).line,y=w.getLineAndCharacterOfPosition(j.end).line;return z===y}})(L=O.SmartIndenter||(O.SmartIndenter={}))})(a=e.formatting||(e.formatting={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(j){var U=j.__pos;return e.Debug.assert(typeof U=="number"),U}function W(j,U){e.Debug.assert(typeof U=="number"),j.__pos=U}function N(j){var U=j.__end;return e.Debug.assert(typeof U=="number"),U}function Q(j,U){e.Debug.assert(typeof U=="number"),j.__end=U}var pe;(function(j){j[j.Exclude=0]="Exclude",j[j.IncludeAll=1]="IncludeAll",j[j.JSDoc=2]="JSDoc",j[j.StartLine=3]="StartLine"})(pe=O.LeadingTriviaOption||(O.LeadingTriviaOption={}));var F;(function(j){j[j.Exclude=0]="Exclude",j[j.ExcludeWhitespace=1]="ExcludeWhitespace",j[j.Include=2]="Include"})(F=O.TrailingTriviaOption||(O.TrailingTriviaOption={}));function g(j,U){return e.skipTrivia(j,U,!1,!0)}function S(j,U){for(var z=U;z<j.length;){var y=j.charCodeAt(z);if(e.isWhiteSpaceSingleLine(y)){z++;continue}return y===47}return!1}var H={leadingTriviaOption:pe.Exclude,trailingTriviaOption:F.Exclude},se;(function(j){j[j.Remove=0]="Remove",j[j.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",j[j.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",j[j.Text=3]="Text"})(se||(se={}));function p(j,U,z,y){return{pos:C(j,U,y),end:E(j,z,y)}}function C(j,U,z,y){var oe,ve;y===void 0&&(y=!1);var ce=z.leadingTriviaOption;if(ce===pe.Exclude)return U.getStart(j);if(ce===pe.StartLine){var m=U.getStart(j),de=e.getLineStartPositionForPosition(m,j);return e.rangeContainsPosition(U,de)?de:m}if(ce===pe.JSDoc){var ae=e.getJSDocCommentRanges(U,j.text);if(ae!=null&&ae.length)return e.getLineStartPositionForPosition(ae[0].pos,j)}var V=U.getFullStart(),le=U.getStart(j);if(V===le)return le;var ke=e.getLineStartPositionForPosition(V,j),Ue=e.getLineStartPositionForPosition(le,j);if(Ue===ke)return ce===pe.IncludeAll?V:le;if(y){var He=((oe=e.getLeadingCommentRanges(j.text,V))===null||oe===void 0?void 0:oe[0])||((ve=e.getTrailingCommentRanges(j.text,V))===null||ve===void 0?void 0:ve[0]);if(He)return e.skipTrivia(j.text,He.end,!0,!0)}var ar=V>0?1:0,gr=e.getStartPositionOfLine(e.getLineOfLocalPosition(j,ke)+ar,j);return gr=g(j.text,gr),e.getStartPositionOfLine(e.getLineOfLocalPosition(j,gr),j)}function G(j,U,z){var y=U.end,oe=z.trailingTriviaOption;if(oe===F.Include){var ve=e.getTrailingCommentRanges(j.text,y);if(ve)for(var ce=e.getLineOfLocalPosition(j,U.end),m=0,de=ve;m<de.length;m++){var ae=de[m];if(ae.kind===2||e.getLineOfLocalPosition(j,ae.pos)>ce)break;var V=e.getLineOfLocalPosition(j,ae.end);if(V>ce)return e.skipTrivia(j.text,ae.end,!0,!0)}}}function E(j,U,z){var y,oe=U.end,ve=z.trailingTriviaOption;if(ve===F.Exclude)return oe;if(ve===F.ExcludeWhitespace){var ce=e.concatenate(e.getTrailingCommentRanges(j.text,oe),e.getLeadingCommentRanges(j.text,oe)),m=(y=ce==null?void 0:ce[ce.length-1])===null||y===void 0?void 0:y.end;return m||oe}var de=G(j,U,z);if(de)return de;var ae=e.skipTrivia(j.text,oe,!0);return ae!==oe&&(ve===F.Include||e.isLineBreak(j.text.charCodeAt(ae-1)))?ae:oe}function ue(j,U){return!!U&&!!j.parent&&(U.kind===27||U.kind===26&&j.parent.kind===204)}function B(j){return e.isFunctionExpression(j)||e.isFunctionDeclaration(j)}O.isThisTypeAnnotatable=B;var re=function(){function j(U,z){this.newLineCharacter=U,this.formatContext=z,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return j.fromContext=function(U){return new j(e.getNewLineOrDefaultFromHost(U.host,U.formatContext.options),U.formatContext)},j.with=function(U,z){var y=j.fromContext(U);return z(y),y.getChanges()},j.prototype.pushRaw=function(U,z){e.Debug.assertEqual(U.fileName,z.fileName);for(var y=0,oe=z.textChanges;y<oe.length;y++){var ve=oe[y];this.changes.push({kind:se.Text,sourceFile:U,text:ve.newText,range:e.createTextRangeFromSpan(ve.span)})}},j.prototype.deleteRange=function(U,z){this.changes.push({kind:se.Remove,sourceFile:U,range:z})},j.prototype.delete=function(U,z){this.deletedNodes.push({sourceFile:U,node:z})},j.prototype.deleteNode=function(U,z,y){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll}),this.deleteRange(U,p(U,z,z,y))},j.prototype.deleteNodes=function(U,z,y,oe){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll});for(var ve=0,ce=z;ve<ce.length;ve++){var m=ce[ve],de=C(U,m,y,oe),ae=E(U,m,y);this.deleteRange(U,{pos:de,end:ae}),oe=!!G(U,m,y)}},j.prototype.deleteModifier=function(U,z){this.deleteRange(U,{pos:z.getStart(U),end:e.skipTrivia(U.text,z.end,!0)})},j.prototype.deleteNodeRange=function(U,z,y,oe){oe===void 0&&(oe={leadingTriviaOption:pe.IncludeAll});var ve=C(U,z,oe),ce=E(U,y,oe);this.deleteRange(U,{pos:ve,end:ce})},j.prototype.deleteNodeRangeExcludingEnd=function(U,z,y,oe){oe===void 0&&(oe={leadingTriviaOption:pe.IncludeAll});var ve=C(U,z,oe),ce=y===void 0?U.text.length:C(U,y,oe);this.deleteRange(U,{pos:ve,end:ce})},j.prototype.replaceRange=function(U,z,y,oe){oe===void 0&&(oe={}),this.changes.push({kind:se.ReplaceWithSingleNode,sourceFile:U,range:z,options:oe,node:y})},j.prototype.replaceNode=function(U,z,y,oe){oe===void 0&&(oe=H),this.replaceRange(U,p(U,z,z,oe),y,oe)},j.prototype.replaceNodeRange=function(U,z,y,oe,ve){ve===void 0&&(ve=H),this.replaceRange(U,p(U,z,y,ve),oe,ve)},j.prototype.replaceRangeWithNodes=function(U,z,y,oe){oe===void 0&&(oe={}),this.changes.push({kind:se.ReplaceWithMultipleNodes,sourceFile:U,range:z,options:oe,nodes:y})},j.prototype.replaceNodeWithNodes=function(U,z,y,oe){oe===void 0&&(oe=H),this.replaceRangeWithNodes(U,p(U,z,z,oe),y,oe)},j.prototype.replaceNodeWithText=function(U,z,y){this.replaceRangeWithText(U,p(U,z,z,H),y)},j.prototype.replaceNodeRangeWithNodes=function(U,z,y,oe,ve){ve===void 0&&(ve=H),this.replaceRangeWithNodes(U,p(U,z,y,ve),oe,ve)},j.prototype.nodeHasTrailingComment=function(U,z,y){return y===void 0&&(y=H),!!G(U,z,y)},j.prototype.nextCommaToken=function(U,z){var y=e.findNextToken(z,z.parent,U);return y&&y.kind===27?y:void 0},j.prototype.replacePropertyAssignment=function(U,z,y){var oe=this.nextCommaToken(U,z)?"":","+this.newLineCharacter;this.replaceNode(U,z,y,{suffix:oe})},j.prototype.insertNodeAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.replaceRange(U,e.createRange(z),y,oe)},j.prototype.insertNodesAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.replaceRangeWithNodes(U,e.createRange(z),y,oe)},j.prototype.insertNodeAtTopOfFile=function(U,z,y){this.insertAtTopOfFile(U,z,y)},j.prototype.insertNodesAtTopOfFile=function(U,z,y){this.insertAtTopOfFile(U,z,y)},j.prototype.insertAtTopOfFile=function(U,z,y){var oe=P(U),ve={prefix:oe===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(U.text.charCodeAt(oe))?"":this.newLineCharacter)+(y?this.newLineCharacter:"")};e.isArray(z)?this.insertNodesAt(U,oe,z,ve):this.insertNodeAt(U,oe,z,ve)},j.prototype.insertFirstParameter=function(U,z,y){var oe=e.firstOrUndefined(z);oe?this.insertNodeBefore(U,oe,y):this.insertNodeAt(U,z.pos,y)},j.prototype.insertNodeBefore=function(U,z,y,oe,ve){oe===void 0&&(oe=!1),ve===void 0&&(ve={}),this.insertNodeAt(U,C(U,z,ve),y,this.getOptionsForInsertNodeBefore(z,y,oe))},j.prototype.insertModifierAt=function(U,z,y,oe){oe===void 0&&(oe={}),this.insertNodeAt(U,z,e.factory.createToken(y),oe)},j.prototype.insertModifierBefore=function(U,z,y){return this.insertModifierAt(U,y.getStart(U),z,{suffix:" "})},j.prototype.insertCommentBeforeLine=function(U,z,y,oe){var ve=e.getStartPositionOfLine(z,U),ce=e.getFirstNonSpaceCharacterPosition(U.text,ve),m=D(U,ce),de=e.getTouchingToken(U,m?ce:y),ae=U.text.slice(ve,ce),V="".concat(m?"":this.newLineCharacter,"//").concat(oe).concat(this.newLineCharacter).concat(ae);this.insertText(U,de.getStart(U),V)},j.prototype.insertJsdocCommentBefore=function(U,z,y){var oe=z.getStart(U);if(z.jsDoc)for(var ve=0,ce=z.jsDoc;ve<ce.length;ve++){var m=ce[ve];this.deleteRange(U,{pos:e.getLineStartPositionForPosition(m.getStart(U),U),end:E(U,m,{})})}var de=e.getPrecedingNonSpaceCharacterPosition(U.text,oe-1),ae=U.text.slice(de,oe);this.insertNodeAt(U,oe,y,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+ae})},j.prototype.createJSDocText=function(U,z){var y=e.flatMap(z.jsDoc,function(ve){return e.isString(ve.comment)?e.factory.createJSDocText(ve.comment):ve.comment}),oe=e.singleOrUndefined(z.jsDoc);return oe&&e.positionsAreOnSameLine(oe.pos,oe.end,U)&&e.length(y)===0?void 0:e.factory.createNodeArray(e.intersperse(y,e.factory.createJSDocText(`
|
|
`)))},j.prototype.replaceJSDocComment=function(U,z,y){this.insertJsdocCommentBefore(U,M(z),e.factory.createJSDocComment(this.createJSDocText(U,z),e.factory.createNodeArray(y)))},j.prototype.addJSDocTags=function(U,z,y){var oe=e.flatMapToMutable(z.jsDoc,function(ce){return ce.tags}),ve=y.filter(function(ce){return!oe.some(function(m,de){var ae=x(m,ce);return ae&&(oe[de]=ae),!!ae})});this.replaceJSDocComment(U,z,qe(qe([],oe,!0),ve,!0))},j.prototype.filterJSDocTags=function(U,z,y){this.replaceJSDocComment(U,z,e.filter(e.flatMapToMutable(z.jsDoc,function(oe){return oe.tags}),y))},j.prototype.replaceRangeWithText=function(U,z,y){this.changes.push({kind:se.Text,sourceFile:U,range:z,text:y})},j.prototype.insertText=function(U,z,y){this.replaceRangeWithText(U,e.createRange(z),y)},j.prototype.tryInsertTypeAnnotation=function(U,z,y){var oe,ve;if(e.isFunctionLike(z)){if(ve=e.findChildOfKind(z,21,U),!ve){if(!e.isArrowFunction(z))return!1;ve=e.first(z.parameters)}}else ve=(oe=z.kind===253?z.exclamationToken:z.questionToken)!==null&&oe!==void 0?oe:z.name;return this.insertNodeAt(U,ve.end,y,{prefix:": "}),!0},j.prototype.tryInsertThisTypeAnnotation=function(U,z,y){var oe=e.findChildOfKind(z,20,U).getStart(U)+1,ve=z.parameters.length?", ":"";this.insertNodeAt(U,oe,y,{prefix:"this: ",suffix:ve})},j.prototype.insertTypeParameters=function(U,z,y){var oe=(e.findChildOfKind(z,20,U)||e.first(z.parameters)).getStart(U);this.insertNodesAt(U,oe,y,{prefix:"<",suffix:">",joiner:", "})},j.prototype.getOptionsForInsertNodeBefore=function(U,z,y){return e.isStatement(U)||e.isClassElement(U)?{suffix:y?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(U)?{suffix:", "}:e.isParameter(U)?e.isParameter(z)?{suffix:", "}:{}:e.isStringLiteral(U)&&e.isImportDeclaration(U.parent)||e.isNamedImports(U)?{suffix:", "}:e.isImportSpecifier(U)?{suffix:","+(y?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(U)},j.prototype.insertNodeAtConstructorStart=function(U,z,y){var oe=e.firstOrUndefined(z.body.statements);!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe([y],z.body.statements,!0)):this.insertNodeBefore(U,oe,y)},j.prototype.insertNodeAtConstructorStartAfterSuperCall=function(U,z,y){var oe=e.find(z.body.statements,function(ve){return e.isExpressionStatement(ve)&&e.isSuperCall(ve.expression)});!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe(qe([],z.body.statements,!0),[y],!1)):this.insertNodeAfter(U,oe,y)},j.prototype.insertNodeAtConstructorEnd=function(U,z,y){var oe=e.lastOrUndefined(z.body.statements);!oe||!z.body.multiLine?this.replaceConstructorBody(U,z,qe(qe([],z.body.statements,!0),[y],!1)):this.insertNodeAfter(U,oe,y)},j.prototype.replaceConstructorBody=function(U,z,y){this.replaceNode(U,z.body,e.factory.createBlock(y,!0))},j.prototype.insertNodeAtEndOfScope=function(U,z,y){var oe=C(U,z.getLastToken(),{});this.insertNodeAt(U,oe,y,{prefix:e.isLineBreak(U.text.charCodeAt(z.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},j.prototype.insertNodeAtClassStart=function(U,z,y){this.insertNodeAtStartWorker(U,z,y)},j.prototype.insertNodeAtObjectStart=function(U,z,y){this.insertNodeAtStartWorker(U,z,y)},j.prototype.insertNodeAtStartWorker=function(U,z,y){var oe,ve=(oe=this.guessIndentationFromExistingMembers(U,z))!==null&&oe!==void 0?oe:this.computeIndentationForNewMember(U,z);this.insertNodeAt(U,Y(z).pos,y,this.getInsertNodeAtStartInsertOptions(U,z,ve))},j.prototype.guessIndentationFromExistingMembers=function(U,z){for(var y,oe=z,ve=0,ce=Y(z);ve<ce.length;ve++){var m=ce[ve];if(e.rangeStartPositionsAreOnSameLine(oe,m,U))return;var de=m.getStart(U),ae=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(de,U),de,U,this.formatContext.options);if(y===void 0)y=ae;else if(ae!==y)return;oe=m}return y},j.prototype.computeIndentationForNewMember=function(U,z){var y,oe=z.getStart(U);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(oe,U),oe,U,this.formatContext.options)+((y=this.formatContext.options.indentSize)!==null&&y!==void 0?y:4)},j.prototype.getInsertNodeAtStartInsertOptions=function(U,z,y){var oe=Y(z),ve=oe.length===0,ce=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(z),{node:z,sourceFile:U}),m=e.isObjectLiteralExpression(z)&&(!e.isJsonSourceFile(U)||!ve),de=e.isObjectLiteralExpression(z)&&e.isJsonSourceFile(U)&&ve&&!ce;return{indentation:y,prefix:(de?",":"")+this.newLineCharacter,suffix:m?",":""}},j.prototype.insertNodeAfterComma=function(U,z,y){var oe=this.insertNodeAfterWorker(U,this.nextCommaToken(U,z)||z,y);this.insertNodeAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAfter=function(U,z,y){var oe=this.insertNodeAfterWorker(U,z,y);this.insertNodeAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAtEndOfList=function(U,z,y){this.insertNodeAt(U,z.end,y,{prefix:", "})},j.prototype.insertNodesAfter=function(U,z,y){var oe=this.insertNodeAfterWorker(U,z,e.first(y));this.insertNodesAt(U,oe,y,this.getInsertNodeAfterOptions(U,z))},j.prototype.insertNodeAfterWorker=function(U,z,y){l(z,y)&&U.text.charCodeAt(z.end-1)!==59&&this.replaceRange(U,e.createRange(z.end),e.factory.createToken(26));var oe=E(U,z,{});return oe},j.prototype.getInsertNodeAfterOptions=function(U,z){var y=this.getInsertNodeAfterOptionsWorker(z);return Ve(Ve({},y),{prefix:z.end===U.end&&e.isStatement(z)?y.prefix?`
|
|
`.concat(y.prefix):`
|
|
`:y.prefix})},j.prototype.getInsertNodeAfterOptionsWorker=function(U){switch(U.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(U)||e.isClassOrTypeElement(U)),{suffix:this.newLineCharacter}}},j.prototype.insertName=function(U,z,y){if(e.Debug.assert(!z.name),z.kind===213){var oe=e.findChildOfKind(z,38,U),ve=e.findChildOfKind(z,20,U);ve?(this.insertNodesAt(U,ve.getStart(U),[e.factory.createToken(98),e.factory.createIdentifier(y)],{joiner:" "}),J(this,U,oe)):(this.insertText(U,e.first(z.parameters).getStart(U),"function ".concat(y,"(")),this.replaceRange(U,oe,e.factory.createToken(21))),z.body.kind!==234&&(this.insertNodesAt(U,z.body.getStart(U),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(U,z.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var ce=e.findChildOfKind(z,z.kind===212?98:84,U).end;this.insertNodeAt(U,ce,e.factory.createIdentifier(y),{prefix:" "})}},j.prototype.insertExportModifier=function(U,z){this.insertText(U,z.getStart(U),"export ")},j.prototype.insertImportSpecifierAtIndex=function(U,z,y,oe){var ve=y.elements[oe-1];ve?this.insertNodeInListAfter(U,ve,z):this.insertNodeBefore(U,y.elements[0],z,!e.positionsAreOnSameLine(y.elements[0].getStart(),y.parent.parent.getStart(),U))},j.prototype.insertNodeInListAfter=function(U,z,y,oe){if(oe===void 0&&(oe=e.formatting.SmartIndenter.getContainingList(z,U)),!oe){e.Debug.fail("node is not a list element");return}var ve=e.indexOfNode(oe,z);if(!(ve<0)){var ce=z.getEnd();if(ve!==oe.length-1){var m=e.getTokenAtPosition(U,z.end);if(m&&ue(z,m)){var de=oe[ve+1],ae=g(U.text,de.getFullStart()),V="".concat(e.tokenToString(m.kind)).concat(U.text.substring(m.end,ae));this.insertNodesAt(U,ae,[y],{suffix:V})}}else{var le=z.getStart(U),ke=e.getLineStartPositionForPosition(le,U),Ue=void 0,He=!1;if(oe.length===1)Ue=27;else{var ar=e.findPrecedingToken(z.pos,U);Ue=ue(z,ar)?ar.kind:27;var gr=e.getLineStartPositionForPosition(oe[ve-1].getStart(U),U);He=gr!==ke}if(S(U.text,z.end)&&(He=!0),He){this.replaceRange(U,e.createRange(ce),e.factory.createToken(Ue));for(var me=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(ke,le,U,this.formatContext.options),Ge=e.skipTrivia(U.text,ce,!0,!1);Ge!==ce&&e.isLineBreak(U.text.charCodeAt(Ge-1));)Ge--;this.replaceRange(U,e.createRange(Ge),y,{indentation:me,prefix:this.newLineCharacter})}else this.replaceRange(U,e.createRange(ce),y,{prefix:"".concat(e.tokenToString(Ue)," ")})}}},j.prototype.parenthesizeExpression=function(U,z){this.replaceRange(U,e.rangeOfNode(z),e.factory.createParenthesizedExpression(z))},j.prototype.finishClassesWithNodesInsertedAtStart=function(){var U=this;this.classesWithNodesInsertedAtStart.forEach(function(z){var y=z.node,oe=z.sourceFile,ve=_e(y,oe),ce=ve[0],m=ve[1];if(ce!==void 0&&m!==void 0){var de=Y(y).length===0,ae=e.positionsAreOnSameLine(ce,m,oe);de&&ae&&ce!==m-1&&U.deleteRange(oe,e.createRange(ce,m-1)),ae&&U.insertText(oe,m-1,U.newLineCharacter)}})},j.prototype.finishDeleteDeclarations=function(){for(var U=this,z=new e.Set,y=function(V,le){oe.deletedNodes.some(function(ke){return ke.sourceFile===V&&e.rangeContainsRangeExclusive(ke.node,le)})||(e.isArray(le)?oe.deleteRange(V,e.rangeOfTypeParameters(V,le)):_.deleteDeclaration(oe,z,V,le))},oe=this,ve=0,ce=this.deletedNodes;ve<ce.length;ve++){var m=ce[ve],de=m.sourceFile,ae=m.node;y(de,ae)}z.forEach(function(V){var le=V.getSourceFile(),ke=e.formatting.SmartIndenter.getContainingList(V,le);if(V===e.last(ke)){var Ue=e.findLastIndex(ke,function(He){return!z.has(He)},ke.length-2);Ue!==-1&&U.deleteRange(le,{pos:ke[Ue].end,end:ie(le,ke[Ue+1])})}})},j.prototype.getChanges=function(U){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var z=k.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,U),y=0,oe=this.newFiles;y<oe.length;y++){var ve=oe[y],ce=ve.oldFile,m=ve.fileName,de=ve.statements;z.push(k.newFileChanges(ce,m,de,this.newLineCharacter,this.formatContext))}return z},j.prototype.createNewFile=function(U,z,y){this.newFiles.push({oldFile:U,fileName:z,statements:y})},j}();O.ChangeTracker=re;function M(j){if(j.kind!==213)return j;var U=j.parent.kind===166?j.parent:j.parent.parent;return U.jsDoc=j.jsDoc,U.jsDocCache=j.jsDocCache,U}function x(j,U){if(j.kind===U.kind)switch(j.kind){case 338:{var z=j,y=U;return e.isIdentifier(z.name)&&e.isIdentifier(y.name)&&z.name.escapedText===y.name.escapedText?e.factory.createJSDocParameterTag(void 0,y.name,!1,y.typeExpression,y.isNameFirst,z.comment):void 0}case 339:return e.factory.createJSDocReturnTag(void 0,U.typeExpression,j.comment);case 341:return e.factory.createJSDocTypeTag(void 0,U.typeExpression,j.comment)}}function ie(j,U){return e.skipTrivia(j.text,C(j,U,{leadingTriviaOption:pe.IncludeAll}),!1,!0)}function _e(j,U){var z=e.findChildOfKind(j,18,U),y=e.findChildOfKind(j,19,U);return[z==null?void 0:z.end,y==null?void 0:y.end]}function Y(j){return e.isObjectLiteralExpression(j)?j.properties:j.members}function Z(j,U,z,y){return k.newFileChangesWorker(void 0,U,j,z,y)}O.getNewFileText=Z;var k;(function(j){function U(m,de,ae,V){return e.mapDefined(e.group(m,function(le){return le.sourceFile.path}),function(le){for(var ke=le[0].sourceFile,Ue=e.stableSort(le,function(me,Ge){return me.range.pos-Ge.range.pos||me.range.end-Ge.range.end}),He=function(me){e.Debug.assert(Ue[me].range.end<=Ue[me+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(Ue[me].range)," and ").concat(JSON.stringify(Ue[me+1].range))})},ar=0;ar<Ue.length-1;ar++)He(ar);var gr=e.mapDefined(Ue,function(me){var Ge=e.createTextSpanFromRange(me.range),er=oe(me,ke,de,ae,V);if(!(Ge.length===er.length&&e.stringContainsAt(ke.text,er,Ge.start)))return e.createTextChange(Ge,er)});return gr.length>0?{fileName:ke.fileName,textChanges:gr}:void 0})}j.getTextChangesFromChanges=U;function z(m,de,ae,V,le){var ke=y(m,e.getScriptKindFromFileName(de),ae,V,le);return{fileName:de,textChanges:[e.createTextChange(e.createTextSpan(0,0),ke)],isNewFile:!0}}j.newFileChanges=z;function y(m,de,ae,V,le){var ke=ae.map(function(ar){return ar===4?"":ce(ar,m,V).text}).join(V),Ue=e.createSourceFile("any file name",ke,99,!0,de),He=e.formatting.formatDocument(Ue,le);return I(ke,He)+V}j.newFileChangesWorker=y;function oe(m,de,ae,V,le){var ke;if(m.kind===se.Remove)return"";if(m.kind===se.Text)return m.text;var Ue=m.options,He=Ue===void 0?{}:Ue,ar=m.range.pos,gr=function(er){return ve(er,de,ar,He,ae,V,le)},me=m.kind===se.ReplaceWithMultipleNodes?m.nodes.map(function(er){return e.removeSuffix(gr(er),ae)}).join(((ke=m.options)===null||ke===void 0?void 0:ke.joiner)||ae):gr(m.node),Ge=He.preserveLeadingWhitespace||He.indentation!==void 0||e.getLineStartPositionForPosition(ar,de)===ar?me:me.replace(/^\s+/,"");return(He.prefix||"")+Ge+(!He.suffix||e.endsWith(Ge,He.suffix)?"":He.suffix)}function ve(m,de,ae,V,le,ke,Ue){var He=V.indentation,ar=V.prefix,gr=V.delta,me=ce(m,de,le),Ge=me.node,er=me.text;Ue&&Ue(Ge,er);var he=e.getFormatCodeSettingsForWriting(ke,de),we=He!==void 0?He:e.formatting.SmartIndenter.getIndentation(ae,de,he,ar===le||e.getLineStartPositionForPosition(ae,de)===ae);gr===void 0&&(gr=e.formatting.SmartIndenter.shouldIndentChildNode(he,m)&&he.indentSize||0);var ye={text:er,getLineAndCharacterOfPosition:function(ge){return e.getLineAndCharacterOfPosition(this,ge)}},Se=e.formatting.formatNodeGivenIndentation(Ge,ye,de.languageVariant,we,gr,Ve(Ve({},ke),{options:he}));return I(er,Se)}function ce(m,de,ae){var V=f(ae),le=e.getNewLineKind(ae);return e.createPrinter({newLine:le,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},V).writeNode(4,m,de,V),{text:V.getText(),node:ee(m)}}j.getNonformattedText=ce})(k||(k={}));function I(j,U){for(var z=U.length-1;z>=0;z--){var y=U[z],oe=y.span,ve=y.newText;j="".concat(j.substring(0,oe.start)).concat(ve).concat(j.substring(e.textSpanEnd(oe)))}return j}O.applyChanges=I;function ne(j){return e.skipTrivia(j,0)===j.length}function ee(j){var U=e.visitEachChild(j,ee,e.nullTransformationContext,A,ee),z=e.nodeIsSynthesized(U)?U:Object.create(U);return e.setTextRangePosEnd(z,L(j),N(j)),z}O.assignPositionsToNode=ee;function A(j,U,z,y,oe){var ve=e.visitNodes(j,U,z,y,oe);if(!ve)return ve;var ce=ve===j?e.factory.createNodeArray(ve.slice(0)):ve;return e.setTextRangePosEnd(ce,L(j),N(j)),ce}function f(j){var U=0,z=e.createTextWriter(j),y=function(Er){Er&&W(Er,U)},oe=function(Er){Er&&Q(Er,U)},ve=function(Er){Er&&W(Er,U)},ce=function(Er){Er&&Q(Er,U)},m=function(Er){Er&&W(Er,U)},de=function(Er){Er&&Q(Er,U)};function ae(Er,br){if(br||!ne(Er)){U=z.getTextPos();for(var Pr=0;e.isWhiteSpaceLike(Er.charCodeAt(Er.length-Pr-1));)Pr++;U-=Pr}}function V(Er){z.write(Er),ae(Er,!1)}function le(Er){z.writeComment(Er)}function ke(Er){z.writeKeyword(Er),ae(Er,!1)}function Ue(Er){z.writeOperator(Er),ae(Er,!1)}function He(Er){z.writePunctuation(Er),ae(Er,!1)}function ar(Er){z.writeTrailingSemicolon(Er),ae(Er,!1)}function gr(Er){z.writeParameter(Er),ae(Er,!1)}function me(Er){z.writeProperty(Er),ae(Er,!1)}function Ge(Er){z.writeSpace(Er),ae(Er,!1)}function er(Er){z.writeStringLiteral(Er),ae(Er,!1)}function he(Er,br){z.writeSymbol(Er,br),ae(Er,!1)}function we(Er){z.writeLine(Er)}function ye(){z.increaseIndent()}function Se(){z.decreaseIndent()}function ge(){return z.getText()}function Fe(Er){z.rawWrite(Er),ae(Er,!1)}function cr(Er){z.writeLiteral(Er),ae(Er,!0)}function ur(){return z.getTextPos()}function Ir(){return z.getLine()}function dr(){return z.getColumn()}function Br(){return z.getIndent()}function Tr(){return z.isAtStartOfLine()}function n(){z.clear(),U=0}return{onBeforeEmitNode:y,onAfterEmitNode:oe,onBeforeEmitNodeArray:ve,onAfterEmitNodeArray:ce,onBeforeEmitToken:m,onAfterEmitToken:de,write:V,writeComment:le,writeKeyword:ke,writeOperator:Ue,writePunctuation:He,writeTrailingSemicolon:ar,writeParameter:gr,writeProperty:me,writeSpace:Ge,writeStringLiteral:er,writeSymbol:he,writeLine:we,increaseIndent:ye,decreaseIndent:Se,getText:ge,rawWrite:Fe,writeLiteral:cr,getTextPos:ur,getLine:Ir,getColumn:dr,getIndent:Br,isAtStartOfLine:Tr,hasTrailingComment:function(){return z.hasTrailingComment()},hasTrailingWhitespace:function(){return z.hasTrailingWhitespace()},clear:n}}O.createWriter=f;function P(j){for(var U,z=0,y=j.statements;z<y.length;z++){var oe=y[z];if(e.isPrologueDirective(oe))U=oe;else break}var ve=0,ce=j.text;if(U)return ve=U.end,me(),ve;var m=e.getShebang(ce);m!==void 0&&(ve=m.length,me());var de=e.getLeadingCommentRanges(ce,ve);if(!de)return ve;for(var ae,V,le=0,ke=de;le<ke.length;le++){var Ue=ke[le];if(Ue.kind===3){if(e.isPinnedComment(ce,Ue.pos)){ae={range:Ue,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(ce,Ue.pos,Ue.end)){ae={range:Ue,pinnedOrTripleSlash:!0};continue}if(ae){if(ae.pinnedOrTripleSlash)break;var He=j.getLineAndCharacterOfPosition(Ue.pos).line,ar=j.getLineAndCharacterOfPosition(ae.range.end).line;if(He>=ar+2)break}if(j.statements.length){V===void 0&&(V=j.getLineAndCharacterOfPosition(j.statements[0].getStart()).line);var gr=j.getLineAndCharacterOfPosition(Ue.end).line;if(V<gr+2)break}ae={range:Ue,pinnedOrTripleSlash:!1}}return ae&&(ve=ae.range.end,me()),ve;function me(){if(ve<ce.length){var Ge=ce.charCodeAt(ve);e.isLineBreak(Ge)&&(ve++,ve<ce.length&&Ge===13&&ce.charCodeAt(ve)===10&&ve++)}}}function D(j,U){return!e.isInComment(j,U)&&!e.isInString(j,U)&&!e.isInTemplateString(j,U)&&!e.isInJSXText(j,U)}O.isValidLocationToAddComment=D;function l(j,U){return(e.isPropertySignature(j)||e.isPropertyDeclaration(j))&&e.isClassOrTypeElement(U)&&U.name.kind===161||e.isStatementButNotDeclaration(j)&&e.isStatementButNotDeclaration(U)}var _;(function(j){function U(ve,ce,m,de){switch(de.kind){case 163:{var ae=de.parent;e.isArrowFunction(ae)&&ae.parameters.length===1&&!e.findChildOfKind(ae,20,m)?ve.replaceNodeWithText(m,de,"()"):w(ve,ce,m,de);break}case 265:case 264:var V=m.imports.length&&de===e.first(m.imports).parent||de===e.find(m.statements,e.isAnyImportSyntax);J(ve,m,de,{leadingTriviaOption:V?pe.Exclude:e.hasJSDocNodes(de)?pe.JSDoc:pe.StartLine});break;case 202:var le=de.parent,ke=le.kind===201&&de!==e.last(le.elements);ke?J(ve,m,de):w(ve,ce,m,de);break;case 253:oe(ve,ce,m,de);break;case 162:w(ve,ce,m,de);break;case 269:var Ue=de.parent;Ue.elements.length===1?y(ve,m,Ue):w(ve,ce,m,de);break;case 267:y(ve,m,de);break;case 26:J(ve,m,de,{trailingTriviaOption:F.Exclude});break;case 98:J(ve,m,de,{leadingTriviaOption:pe.Exclude});break;case 256:case 255:J(ve,m,de,{leadingTriviaOption:e.hasJSDocNodes(de)?pe.JSDoc:pe.StartLine});break;default:de.parent?e.isImportClause(de.parent)&&de.parent.name===de?z(ve,m,de.parent):e.isCallExpression(de.parent)&&e.contains(de.parent.arguments,de)?w(ve,ce,m,de):J(ve,m,de):J(ve,m,de)}}j.deleteDeclaration=U;function z(ve,ce,m){if(!m.namedBindings)J(ve,ce,m.parent);else{var de=m.name.getStart(ce),ae=e.getTokenAtPosition(ce,m.name.end);if(ae&&ae.kind===27){var V=e.skipTrivia(ce.text,ae.end,!1,!0);ve.deleteRange(ce,{pos:de,end:V})}else J(ve,ce,m.name)}}function y(ve,ce,m){if(m.parent.name){var de=e.Debug.checkDefined(e.getTokenAtPosition(ce,m.pos-1));ve.deleteRange(ce,{pos:de.getStart(ce),end:m.end})}else{var ae=e.getAncestor(m,265);J(ve,ce,ae)}}function oe(ve,ce,m,de){var ae=de.parent;if(ae.kind===291){ve.deleteNodeRange(m,e.findChildOfKind(ae,20,m),e.findChildOfKind(ae,21,m));return}if(ae.declarations.length!==1){w(ve,ce,m,de);return}var V=ae.parent;switch(V.kind){case 243:case 242:ve.replaceNode(m,de,e.factory.createObjectLiteralExpression());break;case 241:J(ve,m,ae);break;case 236:J(ve,m,V,{leadingTriviaOption:e.hasJSDocNodes(V)?pe.JSDoc:pe.StartLine});break;default:e.Debug.assertNever(V)}}})(_||(_={}));function J(j,U,z,y){y===void 0&&(y={leadingTriviaOption:pe.IncludeAll});var oe=C(U,z,y),ve=E(U,z,y);j.deleteRange(U,{pos:oe,end:ve})}O.deleteNode=J;function w(j,U,z,y){var oe=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(y,z)),ve=e.indexOfNode(oe,y);if(e.Debug.assert(ve!==-1),oe.length===1){J(j,z,y);return}e.Debug.assert(!U.has(y),"Deleting a node twice"),U.add(y),j.deleteRange(z,{pos:ie(z,y),end:ve===oe.length-1?E(z,y,{}):ie(z,oe[ve+1])})}})(a=e.textChanges||(e.textChanges={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=e.createMultiMap(),W=new e.Map;function N(re,M,x){return F(re,e.diagnosticToString(x),M,void 0,void 0)}O.createCodeFixActionWithoutFixAll=N;function Q(re,M,x,ie,_e,Y){return F(re,e.diagnosticToString(x),M,ie,e.diagnosticToString(_e),Y)}O.createCodeFixAction=Q;function pe(re,M,x,ie,_e,Y){return F(re,e.diagnosticToString(x),M,ie,_e&&e.diagnosticToString(_e),Y)}O.createCodeFixActionMaybeFixAll=pe;function F(re,M,x,ie,_e,Y){return{fixName:re,description:M,changes:x,fixId:ie,fixAllDescription:_e,commands:Y?[Y]:void 0}}function g(re){for(var M=0,x=re.errorCodes;M<x.length;M++){var ie=x[M];L.add(String(ie),re)}if(re.fixIds)for(var _e=0,Y=re.fixIds;_e<Y.length;_e++){var Z=Y[_e];e.Debug.assert(!W.has(Z)),W.set(Z,re)}}O.registerCodeFix=g;function S(){return e.arrayFrom(L.keys())}O.getSupportedErrorCodes=S;function H(re,M){for(var x=re.errorCodes,ie=0,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e];if(e.contains(x,Z.code)&&ie++,ie>1)break}var k=ie<2;return function(I){var ne=I.fixId,ee=I.fixAllDescription,A=fr(I,["fixId","fixAllDescription"]);return k?A:Ve(Ve({},A),{fixId:ne,fixAllDescription:ee})}}function se(re){var M=B(re),x=L.get(String(re.errorCode));return e.flatMap(x,function(ie){return e.map(ie.getCodeActions(re),H(ie,M))})}O.getFixes=se;function p(re){return W.get(e.cast(re.fixId,e.isString)).getAllCodeActions(re)}O.getAllFixes=p;function C(re,M){return{changes:re,commands:M}}O.createCombinedCodeActions=C;function G(re,M){return{fileName:re,textChanges:M}}O.createFileTextChanges=G;function E(re,M,x){var ie=[],_e=e.textChanges.ChangeTracker.with(re,function(Y){return ue(re,M,function(Z){return x(Y,Z,ie)})});return C(_e,ie.length===0?void 0:ie)}O.codeFixAll=E;function ue(re,M,x){for(var ie=0,_e=B(re);ie<_e.length;ie++){var Y=_e[ie];e.contains(M,Y.code)&&x(Y)}}O.eachDiagnostic=ue;function B(re){var M=re.program,x=re.sourceFile,ie=re.cancellationToken;return qe(qe(qe([],M.getSemanticDiagnostics(x,ie),!0),M.getSyntacticDiagnostics(x,ie),!0),e.computeSuggestionDiagnostics(x,M,ie),!0)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=new e.Map;function W(pe,F){L.set(pe,F)}O.registerRefactor=W;function N(pe){return e.arrayFrom(e.flatMapIterator(L.values(),function(F){var g;return pe.cancellationToken&&pe.cancellationToken.isCancellationRequested()||!(!((g=F.kinds)===null||g===void 0)&&g.some(function(S){return O.refactorKindBeginsWith(S,pe.kind)}))?void 0:F.getAvailableActions(pe)}))}O.getApplicableRefactors=N;function Q(pe,F,g){var S=L.get(F);return S&&S.getEditsForAction(pe,g)}O.getEditsForRefactor=Q})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addConvertToUnknownForNonOverlappingTypes",W=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=Q(F.sourceFile,F.span.start);if(g!==void 0){var S=e.textChanges.ChangeTracker.with(F,function(H){return N(H,F.sourceFile,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,L,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=Q(g.file,g.start);S&&N(F,g.file,S)})}});function N(pe,F,g){var S=e.isAsExpression(g)?e.factory.createAsExpression(g.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),g.expression);pe.replaceNode(F,g.expression,S)}function Q(pe,F){if(!e.isInJSFile(pe))return e.findAncestor(e.getTokenAtPosition(pe,F),function(g){return e.isAsExpression(g)||e.isTypeAssertionExpression(g)})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(W){var N=W.sourceFile,Q=e.textChanges.ChangeTracker.with(W,function(pe){var F=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);pe.insertNodeAtEndOfScope(N,N,F)});return[O.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",Q,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingAsync",W=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];O.registerCodeFix({fixIds:[L],errorCodes:W,getCodeActions:function(S){var H=S.sourceFile,se=S.errorCode,p=S.cancellationToken,C=S.program,G=S.span,E=e.find(C.getDiagnosticsProducingTypeChecker().getDiagnostics(H,p),F(G,se)),ue=E&&E.relatedInformation&&e.find(E.relatedInformation,function(M){return M.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),B=pe(H,ue);if(!!B){var re=function(M){return e.textChanges.ChangeTracker.with(S,M)};return[N(S,B,re)]}},getAllCodeActions:function(g){var S=g.sourceFile,H=new e.Set;return O.codeFixAll(g,W,function(se,p){var C=p.relatedInformation&&e.find(p.relatedInformation,function(ue){return ue.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),G=pe(S,C);if(!!G){var E=function(ue){return ue(se),[]};return N(g,G,E,H)}})}});function N(g,S,H,se){var p=H(function(C){return Q(C,g.sourceFile,S,se)});return O.createCodeFixAction(L,p,e.Diagnostics.Add_async_modifier_to_containing_function,L,e.Diagnostics.Add_all_missing_async_modifiers)}function Q(g,S,H,se){if(!(se&&se.has(e.getNodeId(H)))){se==null||se.add(e.getNodeId(H));var p=e.factory.updateModifiers(e.getSynthesizedDeepClone(H,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(H)|256)));g.replaceNode(S,H,p)}}function pe(g,S){if(!!S){var H=e.getTokenAtPosition(g,S.start),se=e.findAncestor(H,function(p){return p.getStart(g)<S.start||p.getEnd()>e.textSpanEnd(S)?"quit":(e.isArrowFunction(p)||e.isMethodDeclaration(p)||e.isFunctionExpression(p)||e.isFunctionDeclaration(p))&&e.textSpansEqual(S,e.createTextSpanFromNode(p,g))});return se}}function F(g,S){return function(H){var se=H.start,p=H.length,C=H.relatedInformation,G=H.code;return e.isNumber(se)&&e.isNumber(p)&&e.textSpansEqual({start:se,length:p},g)&&G===S&&!!C&&e.some(C,function(E){return E.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingAwait",W=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,N=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],Q=qe([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,W],N,!0);O.registerCodeFix({fixIds:[L],errorCodes:Q,getCodeActions:function(B){var re=B.sourceFile,M=B.errorCode,x=B.span,ie=B.cancellationToken,_e=B.program,Y=pe(re,M,x,ie,_e);if(!!Y){var Z=B.program.getTypeChecker(),k=function(I){return e.textChanges.ChangeTracker.with(B,I)};return e.compact([F(B,Y,M,Z,k),g(B,Y,M,Z,k)])}},getAllCodeActions:function(ue){var B=ue.sourceFile,re=ue.program,M=ue.cancellationToken,x=ue.program.getTypeChecker(),ie=new e.Set;return O.codeFixAll(ue,Q,function(_e,Y){var Z=pe(B,Y.code,Y,M,re);if(!!Z){var k=function(I){return I(_e),[]};return F(ue,Z,Y.code,x,k,ie)||g(ue,Z,Y.code,x,k,ie)}})}});function pe(ue,B,re,M,x){var ie=e.getFixableErrorSpanExpression(ue,re);return ie&&S(ue,B,re,M,x)&&C(ie)?ie:void 0}function F(ue,B,re,M,x,ie){var _e=ue.sourceFile,Y=ue.program,Z=ue.cancellationToken,k=H(B,_e,Z,Y,M);if(k){var I=x(function(ne){e.forEach(k.initializers,function(ee){var A=ee.expression;return G(ne,re,_e,M,A,ie)}),ie&&k.needsSecondPassForFixAll&&G(ne,re,_e,M,B,ie)});return O.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",I,k.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,k.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function g(ue,B,re,M,x,ie){var _e=x(function(Y){return G(Y,re,ue.sourceFile,M,B,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Add_await,L,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function S(ue,B,re,M,x){var ie=x.getDiagnosticsProducingTypeChecker(),_e=ie.getDiagnostics(ue,M);return e.some(_e,function(Y){var Z=Y.start,k=Y.length,I=Y.relatedInformation,ne=Y.code;return e.isNumber(Z)&&e.isNumber(k)&&e.textSpansEqual({start:Z,length:k},re)&&ne===B&&!!I&&e.some(I,function(ee){return ee.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function H(ue,B,re,M,x){var ie=se(ue,x);if(!!ie){for(var _e=ie.isCompleteFix,Y,Z=function(ee){var A=x.getSymbolAtLocation(ee);if(!A)return"continue";var f=e.tryCast(A.valueDeclaration,e.isVariableDeclaration),P=f&&e.tryCast(f.name,e.isIdentifier),D=e.getAncestor(f,236);if(!f||!D||f.type||!f.initializer||D.getSourceFile()!==B||e.hasSyntacticModifier(D,1)||!P||!C(f.initializer))return _e=!1,"continue";var l=M.getSemanticDiagnostics(B,re),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(P,x,B,function(J){return ee!==J&&!p(J,l,B,x)});if(_)return _e=!1,"continue";(Y||(Y=[])).push({expression:f.initializer,declarationSymbol:A})},k=0,I=ie.identifiers;k<I.length;k++){var ne=I[k];Z(ne)}return Y&&{initializers:Y,needsSecondPassForFixAll:!_e}}}function se(ue,B){if(e.isPropertyAccessExpression(ue.parent)&&e.isIdentifier(ue.parent.expression))return{identifiers:[ue.parent.expression],isCompleteFix:!0};if(e.isIdentifier(ue))return{identifiers:[ue],isCompleteFix:!0};if(e.isBinaryExpression(ue)){for(var re=void 0,M=!0,x=0,ie=[ue.left,ue.right];x<ie.length;x++){var _e=ie[x],Y=B.getTypeAtLocation(_e);if(B.getPromisedTypeOfPromise(Y)){if(!e.isIdentifier(_e)){M=!1;continue}(re||(re=[])).push(_e)}}return re&&{identifiers:re,isCompleteFix:M}}}function p(ue,B,re,M){var x=e.isPropertyAccessExpression(ue.parent)?ue.parent.name:e.isBinaryExpression(ue.parent)?ue.parent:ue,ie=e.find(B,function(_e){return _e.start===x.getStart(re)&&_e.start+_e.length===x.getEnd()});return ie&&e.contains(Q,ie.code)||M.getTypeAtLocation(x).flags&1}function C(ue){return ue.kind&32768||!!e.findAncestor(ue,function(B){return B.parent&&e.isArrowFunction(B.parent)&&B.parent.body===B||e.isBlock(B)&&(B.parent.kind===255||B.parent.kind===212||B.parent.kind===213||B.parent.kind===168)})}function G(ue,B,re,M,x,ie){if(e.isBinaryExpression(x))for(var _e=0,Y=[x.left,x.right];_e<Y.length;_e++){var Z=Y[_e];if(ie&&e.isIdentifier(Z)){var k=M.getSymbolAtLocation(Z);if(k&&ie.has(e.getSymbolId(k)))continue}var I=M.getTypeAtLocation(Z),ne=M.getPromisedTypeOfPromise(I)?e.factory.createAwaitExpression(Z):Z;ue.replaceNode(re,Z,ne)}else if(B===W&&e.isPropertyAccessExpression(x.parent)){if(ie&&e.isIdentifier(x.parent.expression)){var k=M.getSymbolAtLocation(x.parent.expression);if(k&&ie.has(e.getSymbolId(k)))return}ue.replaceNode(re,x.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x.parent.expression))),E(ue,x.parent.expression,re)}else if(e.contains(N,B)&&e.isCallOrNewExpression(x.parent)){if(ie&&e.isIdentifier(x)){var k=M.getSymbolAtLocation(x);if(k&&ie.has(e.getSymbolId(k)))return}ue.replaceNode(re,x,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x))),E(ue,x,re)}else{if(ie&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)){var k=M.getSymbolAtLocation(x.parent.name);if(k&&!e.tryAddToSet(ie,e.getSymbolId(k)))return}ue.replaceNode(re,x,e.factory.createAwaitExpression(x))}}function E(ue,B,re){var M=e.findPrecedingToken(B.pos,re);M&&e.positionIsASICandidate(M.end,M.parent,re)&&ue.insertText(re,B.getStart(re),";")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingConst",W=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(se){var p=e.textChanges.ChangeTracker.with(se,function(C){return N(C,se.sourceFile,se.span.start,se.program)});if(p.length>0)return[O.createCodeFixAction(L,p,e.Diagnostics.Add_const_to_unresolved_variable,L,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[L],getAllCodeActions:function(H){var se=new e.Set;return O.codeFixAll(H,W,function(p,C){return N(p,C.file,C.start,H.program,se)})}});function N(H,se,p,C,G){var E=e.getTokenAtPosition(se,p),ue=e.findAncestor(E,function(ie){return e.isForInOrOfStatement(ie.parent)?ie.parent.initializer===ie:pe(ie)?!1:"quit"});if(ue)return Q(H,ue,se,G);var B=E.parent;if(e.isBinaryExpression(B)&&B.operatorToken.kind===63&&e.isExpressionStatement(B.parent))return Q(H,E,se,G);if(e.isArrayLiteralExpression(B)){var re=C.getTypeChecker();return e.every(B.elements,function(ie){return F(ie,re)})?Q(H,B,se,G):void 0}var M=e.findAncestor(E,function(ie){return e.isExpressionStatement(ie.parent)?!0:g(ie)?!1:"quit"});if(M){var x=C.getTypeChecker();return S(M,x)?Q(H,M,se,G):void 0}}function Q(H,se,p,C){(!C||e.tryAddToSet(C,se))&&H.insertModifierBefore(p,85,se)}function pe(H){switch(H.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}function F(H,se){var p=e.isIdentifier(H)?H:e.isAssignmentExpression(H,!0)&&e.isIdentifier(H.left)?H.left:void 0;return!!p&&!se.getSymbolAtLocation(p)}function g(H){switch(H.kind){case 79:case 220:case 27:return!0;default:return!1}}function S(H,se){return e.isBinaryExpression(H)?H.operatorToken.kind===27?e.every([H.left,H.right],function(p){return S(p,se)}):H.operatorToken.kind===63&&e.isIdentifier(H.left)&&!se.getSymbolAtLocation(H.left):!1}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingDeclareProperty",W=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Prefix_with_declare,L,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[L],getAllCodeActions:function(Q){var pe=new e.Set;return O.codeFixAll(Q,W,function(F,g){return N(F,g.file,g.start,pe)})}});function N(Q,pe,F,g){var S=e.getTokenAtPosition(pe,F);if(!!e.isIdentifier(S)){var H=S.parent;H.kind===166&&(!g||e.tryAddToSet(g,H))&&Q.insertModifierBefore(pe,135,H)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingInvocationForDecorator",W=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});return[O.createCodeFixAction(L,F,e.Diagnostics.Call_decorator_expression,L,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=e.findAncestor(g,e.isDecorator);e.Debug.assert(!!S,"Expected position to be owned by a decorator.");var H=e.factory.createCallExpression(S.expression,void 0,void 0);Q.replaceNode(pe,S.expression,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addNameToNamelessParameter",W=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span.start)});return[O.createCodeFixAction(L,F,e.Diagnostics.Add_parameter_name,L,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=g.parent;if(!e.isParameter(S))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(g.kind));var H=S.parent.parameters.indexOf(S);e.Debug.assert(!S.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(H>-1,"Parameter not found in parent parameter list.");var se=e.factory.createTypeReferenceNode(S.name,void 0),p=e.factory.createParameterDeclaration(void 0,S.modifiers,S.dotDotDotToken,"arg"+H,S.questionToken,S.dotDotDotToken?e.factory.createArrayTypeNode(se):se,S.initializer);Q.replaceNode(pe,S,p)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addOptionalPropertyUndefined",W=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.program.getTypeChecker(),H=N(g.sourceFile,g.span,S);if(!!H.length){var se=e.textChanges.ChangeTracker.with(g,function(p){return F(p,H)});return[O.createCodeFixActionWithoutFixAll(L,se,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[L]});function N(g,S,H){var se,p,C=pe(e.getFixableErrorSpanExpression(g,S),H);if(!C)return e.emptyArray;var G=C.source,E=C.target,ue=Q(G,E,H)?H.getTypeAtLocation(E.expression):H.getTypeAtLocation(E);return!((p=(se=ue.symbol)===null||se===void 0?void 0:se.declarations)===null||p===void 0)&&p.some(function(B){return e.getSourceFileOfNode(B).fileName.match(/\.d\.ts$/)})?e.emptyArray:H.getExactOptionalProperties(ue)}function Q(g,S,H){return e.isPropertyAccessExpression(S)&&!!H.getExactOptionalProperties(H.getTypeAtLocation(S.expression)).length&&H.getTypeAtLocation(g)===H.getUndefinedType()}function pe(g,S){var H;if(g){if(e.isBinaryExpression(g.parent)&&g.parent.operatorToken.kind===63)return{source:g.parent.right,target:g.parent.left};if(e.isVariableDeclaration(g.parent)&&g.parent.initializer)return{source:g.parent.initializer,target:g.parent.name};if(e.isCallExpression(g.parent)){var se=S.getSymbolAtLocation(g.parent.expression);if(!(se!=null&&se.valueDeclaration)||!e.isFunctionLikeKind(se.valueDeclaration.kind)||!e.isExpression(g))return;var p=g.parent.arguments.indexOf(g);if(p===-1)return;var C=se.valueDeclaration.parameters[p].name;if(e.isIdentifier(C))return{source:g,target:C}}else if(e.isPropertyAssignment(g.parent)&&e.isIdentifier(g.parent.name)||e.isShorthandPropertyAssignment(g.parent)){var G=pe(g.parent.parent,S);if(!G)return;var E=S.getPropertyOfType(S.getTypeAtLocation(G.target),g.parent.name.text),ue=(H=E==null?void 0:E.declarations)===null||H===void 0?void 0:H[0];return ue?{source:e.isPropertyAssignment(g.parent)?g.parent.initializer:g.parent.name,target:ue}:void 0}}else return}function F(g,S){for(var H=0,se=S;H<se.length;H++){var p=se[H],C=p.valueDeclaration;if(C&&(e.isPropertySignature(C)||e.isPropertyDeclaration(C))&&C.type){var G=e.factory.createUnionTypeNode(qe(qe([],C.type.kind===186?C.type.types:[C.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));g.replaceNode(C.getSourceFile(),C.type,G)}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="annotateWithTypeFromJSDoc",W=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(B){var re=N(B.sourceFile,B.span.start);if(!!re){var M=e.textChanges.ChangeTracker.with(B,function(x){return F(x,B.sourceFile,re)});return[O.createCodeFixAction(L,M,e.Diagnostics.Annotate_with_type_from_JSDoc,L,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[L],getAllCodeActions:function(B){return O.codeFixAll(B,W,function(re,M){var x=N(M.file,M.start);x&&F(re,M.file,x)})}});function N(B,re){var M=e.getTokenAtPosition(B,re);return e.tryCast(e.isParameter(M.parent)?M.parent.parent:M.parent,Q)}function Q(B){return g(B)&&pe(B)}O.parameterShouldGetTypeFromJSDoc=Q;function pe(B){return e.isFunctionLikeDeclaration(B)?B.parameters.some(pe)||!B.type&&!!e.getJSDocReturnType(B):!B.type&&!!e.getJSDocType(B)}function F(B,re,M){if(e.isFunctionLikeDeclaration(M)&&(e.getJSDocReturnType(M)||M.parameters.some(function(ee){return!!e.getJSDocType(ee)}))){if(!M.typeParameters){var x=e.getJSDocTypeParameterDeclarations(M);x.length&&B.insertTypeParameters(re,M,x)}var ie=e.isArrowFunction(M)&&!e.findChildOfKind(M,20,re);ie&&B.insertNodeBefore(re,e.first(M.parameters),e.factory.createToken(20));for(var _e=0,Y=M.parameters;_e<Y.length;_e++){var Z=Y[_e];if(!Z.type){var k=e.getJSDocType(Z);k&&B.tryInsertTypeAnnotation(re,Z,S(k))}}if(ie&&B.insertNodeAfter(re,e.last(M.parameters),e.factory.createToken(21)),!M.type){var I=e.getJSDocReturnType(M);I&&B.tryInsertTypeAnnotation(re,M,S(I))}}else{var ne=e.Debug.checkDefined(e.getJSDocType(M),"A JSDocType for this declaration should exist");e.Debug.assert(!M.type,"The JSDocType decl should have a type"),B.tryInsertTypeAnnotation(re,M,S(ne))}}function g(B){return e.isFunctionLikeDeclaration(B)||B.kind===253||B.kind===165||B.kind===166}function S(B){switch(B.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return H(B);case 313:return S(B.type);case 312:return se(B);case 316:return p(B);case 315:return C(B);case 177:return E(B);default:var re=e.visitEachChild(B,S,e.nullTransformationContext);return e.setEmitFlags(re,1),re}}function H(B){return e.factory.createUnionTypeNode([e.visitNode(B.type,S),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function se(B){return e.factory.createUnionTypeNode([e.visitNode(B.type,S),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function p(B){return e.factory.createArrayTypeNode(e.visitNode(B.type,S))}function C(B){var re;return e.factory.createFunctionTypeNode(e.emptyArray,B.parameters.map(G),(re=B.type)!==null&&re!==void 0?re:e.factory.createKeywordTypeNode(130))}function G(B){var re=B.parent.parameters.indexOf(B),M=B.type.kind===316&&re===B.parent.parameters.length-1,x=B.name||(M?"rest":"arg"+re),ie=M?e.factory.createToken(25):B.dotDotDotToken;return e.factory.createParameterDeclaration(B.decorators,B.modifiers,ie,x,B.questionToken,e.visitNode(B.type,S),B.initializer)}function E(B){var re=B.typeName,M=B.typeArguments;if(e.isIdentifier(B.typeName)){if(e.isJSDocIndexSignature(B))return ue(B);var x=B.typeName.text;switch(B.typeName.text){case"String":case"Boolean":case"Object":case"Number":x=x.toLowerCase();break;case"array":case"date":case"promise":x=x[0].toUpperCase()+x.slice(1);break}re=e.factory.createIdentifier(x),(x==="Array"||x==="Promise")&&!B.typeArguments?M=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):M=e.visitNodes(B.typeArguments,S)}return e.factory.createTypeReferenceNode(re,M)}function ue(B){var re=e.factory.createParameterDeclaration(void 0,void 0,void 0,B.typeArguments[0].kind===146?"n":"s",void 0,e.factory.createTypeReferenceNode(B.typeArguments[0].kind===146?"number":"string",[]),void 0),M=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[re],B.typeArguments[1])]);return e.setEmitFlags(M,1),M}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertFunctionToEs6Class",W=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=e.textChanges.ChangeTracker.with(g,function(H){return N(H,g.sourceFile,g.span.start,g.program.getTypeChecker(),g.preferences,g.program.getCompilerOptions())});return[O.createCodeFixAction(L,S,e.Diagnostics.Convert_function_to_an_ES2015_class,L,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[L],getAllCodeActions:function(g){return O.codeFixAll(g,W,function(S,H){return N(S,H.file,H.start,g.program.getTypeChecker(),g.preferences,g.program.getCompilerOptions())})}});function N(g,S,H,se,p,C){var G=se.getSymbolAtLocation(e.getTokenAtPosition(S,H));if(!G||!G.valueDeclaration||!(G.flags&19))return;var E=G.valueDeclaration;if(e.isFunctionDeclaration(E))g.replaceNode(S,E,x(E));else if(e.isVariableDeclaration(E)){var ue=M(E);if(!ue)return;var B=E.parent.parent;e.isVariableDeclarationList(E.parent)&&E.parent.declarations.length>1?(g.delete(S,E),g.insertNodeAfter(S,B,ue)):g.replaceNode(S,B,ue)}function re(ie){var _e=[];return ie.members&&ie.members.forEach(function(k,I){if(I==="constructor"&&k.valueDeclaration){g.delete(S,k.valueDeclaration.parent);return}var ne=Z(k,void 0);ne&&_e.push.apply(_e,ne)}),ie.exports&&ie.exports.forEach(function(k){if(k.name==="prototype"&&k.declarations){var I=k.declarations[0];if(k.declarations.length===1&&e.isPropertyAccessExpression(I)&&e.isBinaryExpression(I.parent)&&I.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(I.parent.right)){var ne=I.parent.right,ee=Z(ne.symbol,void 0);ee&&_e.push.apply(_e,ee)}}else{var ee=Z(k,[e.factory.createToken(124)]);ee&&_e.push.apply(_e,ee)}}),_e;function Y(k,I){return e.isAccessExpression(k)?e.isPropertyAccessExpression(k)&&pe(k)?!0:e.isFunctionLike(I):e.every(k.properties,function(ne){return!!(e.isMethodDeclaration(ne)||e.isGetOrSetAccessorDeclaration(ne)||e.isPropertyAssignment(ne)&&e.isFunctionExpression(ne.initializer)&&!!ne.name||pe(ne))})}function Z(k,I){var ne=[];if(!(k.flags&8192)&&!(k.flags&4096))return ne;var ee=k.valueDeclaration,A=ee.parent,f=A.right;if(!Y(ee,f))return ne;var P=A.parent&&A.parent.kind===237?A.parent:A;if(g.delete(S,P),!f)return ne.push(e.factory.createPropertyDeclaration([],I,k.name,void 0,void 0,void 0)),ne;if(e.isAccessExpression(ee)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var D=e.getQuotePreference(S,p),l=F(ee,C,D);return l?J(ne,f,l):ne}else{if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,function(U){return e.isMethodDeclaration(U)||e.isGetOrSetAccessorDeclaration(U)?ne.concat(U):e.isPropertyAssignment(U)&&e.isFunctionExpression(U.initializer)?J(ne,U.initializer,U.name):pe(U)?ne:[]});if(e.isSourceFileJS(S)||!e.isPropertyAccessExpression(ee))return ne;var _=e.factory.createPropertyDeclaration(void 0,I,ee.name,void 0,void 0,f);return e.copyLeadingComments(A.parent,_,S),ne.push(_),ne}function J(U,z,y){return e.isFunctionExpression(z)?w(U,z,y):j(U,z,y)}function w(U,z,y){var oe=e.concatenate(I,Q(z,131)),ve=e.factory.createMethodDeclaration(void 0,oe,void 0,y,void 0,void 0,z.parameters,void 0,z.body);return e.copyLeadingComments(A,ve,S),U.concat(ve)}function j(U,z,y){var oe=z.body,ve;oe.kind===234?ve=oe:ve=e.factory.createBlock([e.factory.createReturnStatement(oe)]);var ce=e.concatenate(I,Q(z,131)),m=e.factory.createMethodDeclaration(void 0,ce,void 0,y,void 0,void 0,z.parameters,void 0,ve);return e.copyLeadingComments(A,m,S),U.concat(m)}}}function M(ie){var _e=ie.initializer;if(!(!_e||!e.isFunctionExpression(_e)||!e.isIdentifier(ie.name))){var Y=re(ie.symbol);_e.body&&Y.unshift(e.factory.createConstructorDeclaration(void 0,void 0,_e.parameters,_e.body));var Z=Q(ie.parent.parent,93),k=e.factory.createClassDeclaration(void 0,Z,ie.name,void 0,void 0,Y);return k}}function x(ie){var _e=re(G);ie.body&&_e.unshift(e.factory.createConstructorDeclaration(void 0,void 0,ie.parameters,ie.body));var Y=Q(ie,93),Z=e.factory.createClassDeclaration(void 0,Y,ie.name,void 0,void 0,_e);return Z}}function Q(g,S){return e.filter(g.modifiers,function(H){return H.kind===S})}function pe(g){return g.name?!!(e.isIdentifier(g.name)&&g.name.text==="constructor"):!1}function F(g,S,H){if(e.isPropertyAccessExpression(g))return g.name;var se=g.argumentExpression;if(e.isNumericLiteral(se))return se;if(e.isStringLiteralLike(se))return e.isIdentifierText(se.text,e.getEmitScriptTarget(S))?e.factory.createIdentifier(se.text):e.isNoSubstitutionTemplateLiteral(se)?e.factory.createStringLiteral(se.text,H===0):se}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertToAsyncFunction",W=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],N=!0;O.registerCodeFix({errorCodes:W,getCodeActions:function(m){N=!0;var de=e.textChanges.ChangeTracker.with(m,function(ae){return pe(ae,m.sourceFile,m.span.start,m.program.getTypeChecker())});return N?[O.createCodeFixAction(L,de,e.Diagnostics.Convert_to_async_function,L,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[L],getAllCodeActions:function(m){return O.codeFixAll(m,W,function(de,ae){return pe(de,ae.file,ae.start,m.program.getTypeChecker())})}});var Q;(function(m){m[m.Identifier=0]="Identifier",m[m.BindingPattern=1]="BindingPattern"})(Q||(Q={}));function pe(m,de,ae,V){var le=e.getTokenAtPosition(de,ae),ke;if(e.isIdentifier(le)&&e.isVariableDeclaration(le.parent)&&le.parent.initializer&&e.isFunctionLikeDeclaration(le.parent.initializer)?ke=le.parent.initializer:ke=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(de,ae)),e.canBeConvertedToAsync),!!ke){var Ue=new e.Map,He=e.isInJSFile(ke),ar=g(ke,V),gr=C(ke,V,Ue);if(!!e.returnsPromise(gr,V)){var me=gr.body&&e.isBlock(gr.body)?F(gr.body,V):e.emptyArray,Ge={checker:V,synthNamesMap:Ue,setOfExpressionsToReturn:ar,isInJSFile:He};if(!!me.length){var er=ke.modifiers?ke.modifiers.end:ke.decorators?e.skipTrivia(de.text,ke.decorators.end):ke.getStart(de),he=ke.modifiers?{prefix:" "}:{suffix:" "};m.insertModifierAt(de,er,131,he);for(var we=function(cr){if(e.forEachChild(cr,function ur(Ir){if(e.isCallExpression(Ir)){var dr=B(Ir,Ir,Ge,!1);if(E())return!0;m.replaceNodeWithNodes(de,cr,dr)}else if(!e.isFunctionLike(Ir)&&(e.forEachChild(Ir,ur),E()))return!0}),E())return{value:void 0}},ye=0,Se=me;ye<Se.length;ye++){var ge=Se[ye],Fe=we(ge);if(typeof Fe=="object")return Fe.value}}}}}function F(m,de){var ae=[];return e.forEachReturnStatement(m,function(V){e.isReturnStatementWithFixablePromiseHandler(V,de)&&ae.push(V)}),ae}function g(m,de){if(!m.body)return new e.Set;var ae=new e.Set;return e.forEachChild(m.body,function V(le){S(le,de,"then")?(ae.add(e.getNodeId(le)),e.forEach(le.arguments,V)):S(le,de,"catch")||S(le,de,"finally")?(ae.add(e.getNodeId(le)),e.forEachChild(le,V)):p(le,de)?ae.add(e.getNodeId(le)):e.forEachChild(le,V)}),ae}function S(m,de,ae){if(!e.isCallExpression(m))return!1;var V=e.hasPropertyAccessExpressionWithName(m,ae),le=V&&de.getTypeAtLocation(m);return!!(le&&de.getPromisedTypeOfPromise(le))}function H(m,de){return(e.getObjectFlags(m)&4)!==0&&m.target===de}function se(m,de,ae){if(m.expression.name.escapedText!=="finally"){var V=ae.getTypeAtLocation(m.expression.expression);if(H(V,ae.getPromiseType())||H(V,ae.getPromiseLikeType()))if(m.expression.name.escapedText==="then"){if(de===e.elementAt(m.arguments,0))return e.elementAt(m.typeArguments,0);if(de===e.elementAt(m.arguments,1))return e.elementAt(m.typeArguments,1)}else return e.elementAt(m.typeArguments,0)}}function p(m,de){return e.isExpression(m)?!!de.getPromisedTypeOfPromise(de.getTypeAtLocation(m)):!1}function C(m,de,ae){var V=new e.Map,le=e.createMultiMap();return e.forEachChild(m,function ke(Ue){if(!e.isIdentifier(Ue)){e.forEachChild(Ue,ke);return}var He=de.getSymbolAtLocation(Ue);if(He){var ar=de.getTypeAtLocation(Ue),gr=f(ar,de),me=e.getSymbolId(He).toString();if(gr&&!e.isParameter(Ue.parent)&&!e.isFunctionLikeDeclaration(Ue.parent)&&!ae.has(me)){var Ge=e.firstOrUndefined(gr.parameters),er=(Ge==null?void 0:Ge.valueDeclaration)&&e.isParameter(Ge.valueDeclaration)&&e.tryCast(Ge.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),he=G(er,le);ae.set(me,he),le.add(er.text,He)}else if(Ue.parent&&(e.isParameter(Ue.parent)||e.isVariableDeclaration(Ue.parent)||e.isBindingElement(Ue.parent))){var we=Ue.text,ye=le.get(we);if(ye&&ye.some(function(Fe){return Fe!==He})){var Se=G(Ue,le);V.set(me,Se.identifier),ae.set(me,Se),le.add(we,He)}else{var ge=e.getSynthesizedDeepClone(Ue);ae.set(me,J(ge)),le.add(we,He)}}}}),e.getSynthesizedDeepCloneWithReplacements(m,!0,function(ke){if(e.isBindingElement(ke)&&e.isIdentifier(ke.name)&&e.isObjectBindingPattern(ke.parent)){var Ue=de.getSymbolAtLocation(ke.name),He=Ue&&V.get(String(e.getSymbolId(Ue)));if(He&&He.text!==(ke.name||ke.propertyName).getText())return e.factory.createBindingElement(ke.dotDotDotToken,ke.propertyName||ke.name,He,ke.initializer)}else if(e.isIdentifier(ke)){var Ue=de.getSymbolAtLocation(ke),He=Ue&&V.get(String(e.getSymbolId(Ue)));if(He)return e.factory.createIdentifier(He.text)}})}function G(m,de){var ae=(de.get(m.text)||e.emptyArray).length,V=ae===0?m:e.factory.createIdentifier(m.text+"_"+ae);return J(V)}function E(){return!N}function ue(){return N=!1,e.emptyArray}function B(m,de,ae,V,le){if(S(de,ae.checker,"then"))return Z(de,e.elementAt(de.arguments,0),e.elementAt(de.arguments,1),ae,V,le);if(S(de,ae.checker,"catch"))return Y(de,e.elementAt(de.arguments,0),ae,V,le);if(S(de,ae.checker,"finally"))return _e(de,e.elementAt(de.arguments,0),ae,V,le);if(e.isPropertyAccessExpression(de))return B(m,de.expression,ae,V,le);var ke=ae.checker.getTypeAtLocation(de);return ke&&ae.checker.getPromisedTypeOfPromise(ke)?(e.Debug.assertNode(e.getOriginalNode(de).parent,e.isPropertyAccessExpression),k(m,de,ae,V,le)):ue()}function re(m,de){var ae=m.checker;if(de.kind===104)return!0;if(e.isIdentifier(de)&&!e.isGeneratedIdentifier(de)&&e.idText(de)==="undefined"){var V=ae.getSymbolAtLocation(de);return!V||ae.isUndefinedSymbol(V)}return!1}function M(m){var de=e.factory.createUniqueName(m.identifier.text,16);return J(de)}function x(m,de,ae){var V;return ae&&!ce(m,de)&&(oe(ae)?(V=ae,de.synthNamesMap.forEach(function(le,ke){if(le.identifier.text===ae.identifier.text){var Ue=M(ae);de.synthNamesMap.set(ke,Ue)}})):V=J(e.factory.createUniqueName("result",16),ae.types),y(V)),V}function ie(m,de,ae,V,le){var ke=[],Ue;if(V&&!ce(m,de)){Ue=e.getSynthesizedDeepClone(y(V));var He=V.types,ar=de.checker.getUnionType(He,2),gr=de.isInJSFile?void 0:de.checker.typeToTypeNode(ar,void 0,void 0),me=[e.factory.createVariableDeclaration(Ue,void 0,gr)],Ge=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(me,1));ke.push(Ge)}return ke.push(ae),le&&Ue&&ve(le)&&ke.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z(le)),void 0,void 0,Ue)],2))),ke}function _e(m,de,ae,V,le){if(!de||re(ae,de))return B(m,m.expression.expression,ae,V,le);var ke=x(m,ae,le),Ue=B(m,m.expression.expression,ae,!0,ke);if(E())return ue();var He=ee(de,V,void 0,void 0,m,ae);if(E())return ue();var ar=e.factory.createBlock(Ue),gr=e.factory.createBlock(He),me=e.factory.createTryStatement(ar,void 0,gr);return ie(m,ae,me,ke,le)}function Y(m,de,ae,V,le){if(!de||re(ae,de))return B(m,m.expression.expression,ae,V,le);var ke=l(de,ae),Ue=x(m,ae,le),He=B(m,m.expression.expression,ae,!0,Ue);if(E())return ue();var ar=ee(de,V,Ue,ke,m,ae);if(E())return ue();var gr=e.factory.createBlock(He),me=e.factory.createCatchClause(ke&&e.getSynthesizedDeepClone(U(ke)),e.factory.createBlock(ar)),Ge=e.factory.createTryStatement(gr,me,void 0);return ie(m,ae,Ge,Ue,le)}function Z(m,de,ae,V,le,ke){if(!de||re(V,de))return Y(m,ae,V,le,ke);if(ae&&!re(V,ae))return ue();var Ue=l(de,V),He=B(m.expression.expression,m.expression.expression,V,!0,Ue);if(E())return ue();var ar=ee(de,le,ke,Ue,m,V);return E()?ue():e.concatenate(He,ar)}function k(m,de,ae,V,le){if(ce(m,ae)){var ke=e.getSynthesizedDeepClone(de);return V&&(ke=e.factory.createAwaitExpression(ke)),[e.factory.createReturnStatement(ke)]}return I(le,e.factory.createAwaitExpression(de),void 0)}function I(m,de,ae){return!m||_(m)?[e.factory.createExpressionStatement(de)]:oe(m)&&m.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(j(m)),de))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(U(m)),void 0,ae,de)],2))]}function ne(m,de){if(de&&m){var ae=e.factory.createUniqueName("result",16);return qe(qe([],I(J(ae),m,de),!0),[e.factory.createReturnStatement(ae)],!1)}return[e.factory.createReturnStatement(m)]}function ee(m,de,ae,V,le,ke){var Ue;switch(m.kind){case 104:break;case 205:case 79:if(!V)break;var He=e.factory.createCallExpression(e.getSynthesizedDeepClone(m),void 0,oe(V)?[j(V)]:[]);if(ce(le,ke))return ne(He,se(le,m,ke.checker));var ar=ke.checker.getTypeAtLocation(m),gr=ke.checker.getSignaturesOfType(ar,0);if(!gr.length)return ue();var me=gr[0].getReturnType(),Ge=I(ae,e.factory.createAwaitExpression(He),se(le,m,ke.checker));return ae&&ae.types.push(ke.checker.getAwaitedType(me)||me),Ge;case 212:case 213:{var er=m.body,he=(Ue=f(ke.checker.getTypeAtLocation(m),ke.checker))===null||Ue===void 0?void 0:Ue.getReturnType();if(e.isBlock(er)){for(var we=[],ye=!1,Se=0,ge=er.statements;Se<ge.length;Se++){var Fe=ge[Se];if(e.isReturnStatement(Fe))if(ye=!0,e.isReturnStatementWithFixablePromiseHandler(Fe,ke.checker))we=we.concat(D(ke,Fe,de,ae));else{var cr=he&&Fe.expression?A(ke.checker,he,Fe.expression):Fe.expression;we.push.apply(we,ne(cr,se(le,m,ke.checker)))}else{if(de&&e.forEachReturnStatement(Fe,e.returnTrue))return ue();we.push(Fe)}}return ce(le,ke)?we.map(function(dr){return e.getSynthesizedDeepClone(dr)}):P(we,ae,ke,ye)}else{var ur=e.isFixablePromiseHandler(er,ke.checker)?D(ke,e.factory.createReturnStatement(er),de,ae):e.emptyArray;if(ur.length>0)return ur;if(he){var cr=A(ke.checker,he,er);if(ce(le,ke))return ne(cr,se(le,m,ke.checker));var Ir=I(ae,cr,void 0);return ae&&ae.types.push(ke.checker.getAwaitedType(he)||he),Ir}else return ue()}}default:return ue()}return e.emptyArray}function A(m,de,ae){var V=e.getSynthesizedDeepClone(ae);return m.getPromisedTypeOfPromise(de)?e.factory.createAwaitExpression(V):V}function f(m,de){var ae=de.getSignaturesOfType(m,0);return e.lastOrUndefined(ae)}function P(m,de,ae,V){for(var le=[],ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];if(e.isReturnStatement(He)){if(He.expression){var ar=p(He.expression,ae.checker)?e.factory.createAwaitExpression(He.expression):He.expression;de===void 0?le.push(e.factory.createExpressionStatement(ar)):oe(de)&&de.hasBeenDeclared?le.push(e.factory.createExpressionStatement(e.factory.createAssignment(j(de),ar))):le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(de),void 0,void 0,ar)],2)))}}else le.push(e.getSynthesizedDeepClone(He))}return!V&&de!==void 0&&le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(U(de),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),le}function D(m,de,ae,V){var le=[];return e.forEachChild(de,function ke(Ue){if(e.isCallExpression(Ue)){var He=B(Ue,Ue,m,ae,V);if(le=le.concat(He),le.length>0)return}else e.isFunctionLike(Ue)||e.forEachChild(Ue,ke)}),le}function l(m,de){var ae=[],V;if(e.isFunctionLikeDeclaration(m)){if(m.parameters.length>0){var le=m.parameters[0].name;V=ke(le)}}else e.isIdentifier(m)?V=Ue(m):e.isPropertyAccessExpression(m)&&e.isIdentifier(m.name)&&(V=Ue(m.name));if(!V||"identifier"in V&&V.identifier.text==="undefined")return;return V;function ke(gr){if(e.isIdentifier(gr))return Ue(gr);var me=e.flatMap(gr.elements,function(Ge){return e.isOmittedExpression(Ge)?[]:[ke(Ge.name)]});return w(gr,me)}function Ue(gr){var me=ar(gr),Ge=He(me);if(!Ge)return J(gr,ae);var er=de.synthNamesMap.get(e.getSymbolId(Ge).toString());return er||J(gr,ae)}function He(gr){return gr.symbol?gr.symbol:de.checker.getSymbolAtLocation(gr)}function ar(gr){return gr.original?gr.original:gr}}function _(m){return m?oe(m)?!m.identifier.text:e.every(m.elements,_):!0}function J(m,de){return de===void 0&&(de=[]),{kind:0,identifier:m,types:de,hasBeenDeclared:!1,hasBeenReferenced:!1}}function w(m,de,ae){return de===void 0&&(de=e.emptyArray),ae===void 0&&(ae=[]),{kind:1,bindingPattern:m,elements:de,types:ae}}function j(m){return m.hasBeenReferenced=!0,m.identifier}function U(m){return oe(m)?y(m):z(m)}function z(m){for(var de=0,ae=m.elements;de<ae.length;de++){var V=ae[de];U(V)}return m.bindingPattern}function y(m){return m.hasBeenDeclared=!0,m.identifier}function oe(m){return m.kind===0}function ve(m){return m.kind===1}function ce(m,de){return!!m.original&&de.setOfExpressionsToReturn.has(e.getNodeId(m.original))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(D){var l=D.sourceFile,_=D.program,J=D.preferences,w=e.textChanges.ChangeTracker.with(D,function(j){var U=W(l,_.getTypeChecker(),j,e.getEmitScriptTarget(_.getCompilerOptions()),e.getQuotePreference(l,J));if(U)for(var z=0,y=_.getSourceFiles();z<y.length;z++){var oe=y[z];L(oe,l,j,e.getQuotePreference(oe,J))}});return[O.createCodeFixActionWithoutFixAll("convertToEsModule",w,e.Diagnostics.Convert_to_ES_module)]}});function L(D,l,_,J){for(var w=0,j=D.imports;w<j.length;w++){var U=j[w],z=e.getResolvedModule(D,U.text,e.getModeForUsageLocation(D,U));if(!(!z||z.resolvedFileName!==l.fileName)){var y=e.importFromModuleSpecifier(U);switch(y.kind){case 264:_.replaceNode(D,y,e.makeImport(y.name,void 0,U,J));break;case 207:e.isRequireCall(y,!1)&&_.replaceNode(D,y,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(y),"default"));break}}}}function W(D,l,_,J,w){var j={original:_e(D),additional:new e.Set},U=N(D,l,j);Q(D,U,_);for(var z=!1,y,oe=0,ve=e.filter(D.statements,e.isVariableStatement);oe<ve.length;oe++){var ce=ve[oe],m=g(D,ce,_,l,j,J,w);m&&e.copyEntries(m,y!=null?y:y=new e.Map)}for(var de=0,ae=e.filter(D.statements,function(le){return!e.isVariableStatement(le)});de<ae.length;de++){var ce=ae[de],V=F(D,ce,l,_,j,J,U,y,w);z=z||V}return y==null||y.forEach(function(le,ke){_.replaceNode(D,ke,le)}),z}function N(D,l,_){var J=new e.Map;return pe(D,function(w){var j=w.name,U=j.text,z=j.originalKeywordKind;!J.has(U)&&(z!==void 0&&e.isNonContextualKeyword(z)||l.resolveName(U,w,111551,!0))&&J.set(U,ie("_".concat(U),_))}),J}function Q(D,l,_){pe(D,function(J,w){if(!w){var j=J.name.text;_.replaceNode(D,J,e.factory.createIdentifier(l.get(j)||j))}})}function pe(D,l){D.forEachChild(function _(J){if(e.isPropertyAccessExpression(J)&&e.isExportsOrModuleExportsOrAlias(D,J.expression)&&e.isIdentifier(J.name)){var w=J.parent;l(J,e.isBinaryExpression(w)&&w.left===J&&w.operatorToken.kind===63)}J.forEachChild(_)})}function F(D,l,_,J,w,j,U,z,y){switch(l.kind){case 236:return g(D,l,J,_,w,j,y),!1;case 237:{var oe=l.expression;switch(oe.kind){case 207:return e.isRequireCall(oe,!0)&&J.replaceNode(D,l,e.makeImport(void 0,void 0,oe.arguments[0],y)),!1;case 220:{var ve=oe.operatorToken;return ve.kind===63&&H(D,_,oe,J,U,z)}}}default:return!1}}function g(D,l,_,J,w,j,U){var z=l.declarationList,y=!1,oe=e.map(z.declarations,function(ce){var m=ce.name,de=ce.initializer;if(de){if(e.isExportsOrModuleExportsOrAlias(D,de))return y=!0,P([]);if(e.isRequireCall(de,!0))return y=!0,M(m,de.arguments[0],J,w,j,U);if(e.isPropertyAccessExpression(de)&&e.isRequireCall(de.expression,!0))return y=!0,S(m,de.name.text,de.expression.arguments[0],w,U)}return P([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([ce],z.flags))])});if(y){_.replaceNodeWithNodes(D,l,e.flatMap(oe,function(ce){return ce.newImports}));var ve;return e.forEach(oe,function(ce){ce.useSitesToUnqualify&&e.copyEntries(ce.useSitesToUnqualify,ve!=null?ve:ve=new e.Map)}),ve}}function S(D,l,_,J,w){switch(D.kind){case 200:case 201:{var j=ie(l,J);return P([ne(j,l,_,w),A(void 0,D,e.factory.createIdentifier(j))])}case 79:return P([ne(D.text,l,_,w)]);default:return e.Debug.assertNever(D,"Convert to ES module got invalid syntax form ".concat(D.kind))}}function H(D,l,_,J,w,j){var U=_.left,z=_.right;if(!e.isPropertyAccessExpression(U))return!1;if(e.isExportsOrModuleExportsOrAlias(D,U))if(e.isExportsOrModuleExportsOrAlias(D,z))J.delete(D,_.parent);else{var y=e.isObjectLiteralExpression(z)?se(z,j):e.isRequireCall(z,!0)?C(z.arguments[0],l):void 0;return y?(J.replaceNodeWithNodes(D,_.parent,y[0]),y[1]):(J.replaceRangeWithText(D,e.createRange(U.getStart(D),z.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(D,U.expression)&&p(D,_,J,w);return!1}function se(D,l){var _=e.mapAllOrFail(D.properties,function(J){switch(J.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(J.name)?B(J.name.text,J.initializer,l):void 0;case 168:return e.isIdentifier(J.name)?k(J.name.text,[e.factory.createToken(93)],J,l):void 0;default:e.Debug.assertNever(J,"Convert to ES6 got invalid prop kind ".concat(J.kind))}});return _&&[_,!1]}function p(D,l,_,J){var w=l.left.name.text,j=J.get(w);if(j!==void 0){var U=[A(void 0,j,l.right),f([e.factory.createExportSpecifier(!1,j,w)])];_.replaceNodeWithNodes(D,l.parent,U)}else ue(l,D,_)}function C(D,l){var _=D.text,J=l.getSymbolAtLocation(D),w=J?J.exports:e.emptyMap;return w.has("export=")?[[E(_)],!0]:w.has("default")?w.size>1?[[G(_),E(_)],!0]:[[E(_)],!0]:[[G(_)],!1]}function G(D){return f(void 0,D)}function E(D){return f([e.factory.createExportSpecifier(!1,void 0,"default")],D)}function ue(D,l,_){var J=D.left,w=D.right,j=D.parent,U=J.name.text;if((e.isFunctionExpression(w)||e.isArrowFunction(w)||e.isClassExpression(w))&&(!w.name||w.name.text===U)){_.replaceRange(l,{pos:J.getStart(l),end:w.getStart(l)},e.factory.createToken(93),{suffix:" "}),w.name||_.insertName(l,w,U);var z=e.findChildOfKind(j,26,l);z&&_.delete(l,z)}else _.replaceNodeRangeWithNodes(l,J.expression,e.findChildOfKind(J,24,l),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function B(D,l,_){var J=[e.factory.createToken(93)];switch(l.kind){case 212:{var w=l.name;if(w&&w.text!==D)return j()}case 213:return k(D,J,l,_);case 225:return I(D,J,l,_);default:return j()}function j(){return A(J,e.factory.createIdentifier(D),re(l,_))}}function re(D,l){if(!l||!e.some(e.arrayFrom(l.keys()),function(J){return e.rangeContainsRange(D,J)}))return D;return e.isArray(D)?e.getSynthesizedDeepClonesWithReplacements(D,!0,_):e.getSynthesizedDeepCloneWithReplacements(D,!0,_);function _(J){if(J.kind===205){var w=l.get(J);return l.delete(J),w}}}function M(D,l,_,J,w,j){switch(D.kind){case 200:{var U=e.mapAllOrFail(D.elements,function(y){return y.dotDotDotToken||y.initializer||y.propertyName&&!e.isIdentifier(y.propertyName)||!e.isIdentifier(y.name)?void 0:ee(y.propertyName&&y.propertyName.text,y.name.text)});if(U)return P([e.makeImport(void 0,U,l,j)])}case 201:{var z=ie(O.moduleSpecifierToValidIdentifier(l.text,w),J);return P([e.makeImport(e.factory.createIdentifier(z),void 0,l,j),A(void 0,e.getSynthesizedDeepClone(D),e.factory.createIdentifier(z))])}case 79:return x(D,l,_,J,j);default:return e.Debug.assertNever(D,"Convert to ES module got invalid name kind ".concat(D.kind))}}function x(D,l,_,J,w){for(var j=_.getSymbolAtLocation(D),U=new e.Map,z=!1,y,oe=0,ve=J.original.get(D.text);oe<ve.length;oe++){var ce=ve[oe];if(!(_.getSymbolAtLocation(ce)!==j||ce===D)){var m=ce.parent;if(e.isPropertyAccessExpression(m)){var de=m.name.text;if(de==="default"){z=!0;var ae=ce.getText();(y!=null?y:y=new e.Map).set(m,e.factory.createIdentifier(ae))}else{e.Debug.assert(m.expression===ce,"Didn't expect expression === use");var V=U.get(de);V===void 0&&(V=ie(de,J),U.set(de,V)),(y!=null?y:y=new e.Map).set(m,e.factory.createIdentifier(V))}}else z=!0}}var le=U.size===0?void 0:e.arrayFrom(e.mapIterator(U.entries(),function(ke){var Ue=ke[0],He=ke[1];return e.factory.createImportSpecifier(!1,Ue===He?void 0:e.factory.createIdentifier(Ue),e.factory.createIdentifier(He))}));return le||(z=!0),P([e.makeImport(z?e.getSynthesizedDeepClone(D):void 0,le,l,w)],y)}function ie(D,l){for(;l.original.has(D)||l.additional.has(D);)D="_".concat(D);return l.additional.add(D),D}function _e(D){var l=e.createMultiMap();return Y(D,function(_){return l.add(_.text,_)}),l}function Y(D,l){e.isIdentifier(D)&&Z(D)&&l(D),D.forEachChild(function(_){return Y(_,l)})}function Z(D){var l=D.parent;switch(l.kind){case 205:return l.name!==D;case 202:return l.propertyName!==D;case 269:return l.propertyName!==D;default:return!0}}function k(D,l,_,J){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(_.decorators),e.concatenate(l,e.getSynthesizedDeepClones(_.modifiers)),e.getSynthesizedDeepClone(_.asteriskToken),D,e.getSynthesizedDeepClones(_.typeParameters),e.getSynthesizedDeepClones(_.parameters),e.getSynthesizedDeepClone(_.type),e.factory.converters.convertToFunctionBlock(re(_.body,J)))}function I(D,l,_,J){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(_.decorators),e.concatenate(l,e.getSynthesizedDeepClones(_.modifiers)),D,e.getSynthesizedDeepClones(_.typeParameters),e.getSynthesizedDeepClones(_.heritageClauses),re(_.members,J))}function ne(D,l,_,J){return l==="default"?e.makeImport(e.factory.createIdentifier(D),void 0,_,J):e.makeImport(void 0,[ee(l,D)],_,J)}function ee(D,l){return e.factory.createImportSpecifier(!1,D!==void 0&&D!==l?e.factory.createIdentifier(D):void 0,e.factory.createIdentifier(l))}function A(D,l,_){return e.factory.createVariableStatement(D,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(l,void 0,void 0,_)],2))}function f(D,l){return e.factory.createExportDeclaration(void 0,void 0,!1,D&&e.factory.createNamedExports(D),l===void 0?void 0:e.factory.createStringLiteral(l))}function P(D,l){return{newImports:D,useSitesToUnqualify:l}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="correctQualifiedNameToIndexedAccessType",W=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=N(pe.sourceFile,pe.span.start);if(!!F){var g=e.textChanges.ChangeTracker.with(pe,function(H){return Q(H,pe.sourceFile,F)}),S="".concat(F.left.text,'["').concat(F.right.text,'"]');return[O.createCodeFixAction(L,g,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,S],L,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S)})}});function N(pe,F){var g=e.findAncestor(e.getTokenAtPosition(pe,F),e.isQualifiedName);return e.Debug.assert(!!g,"Expected position to be owned by a qualified name."),e.isIdentifier(g.left)?g:void 0}function Q(pe,F,g){var S=g.right.text,H=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(g.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(S)));pe.replaceNode(F,g,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],W="convertToTypeOnlyExport";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=e.textChanges.ChangeTracker.with(g,function(H){return Q(H,N(g.span,g.sourceFile),g)});if(S.length)return[O.createCodeFixAction(W,S,e.Diagnostics.Convert_to_type_only_export,W,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se,g.sourceFile);p&&e.addToSeen(S,e.getNodeId(p.parent.parent))&&Q(H,p,g)})}});function N(F,g){return e.tryCast(e.getTokenAtPosition(g,F.start).parent,e.isExportSpecifier)}function Q(F,g,S){if(!!g){var H=g.parent,se=H.parent,p=pe(g,S);if(p.length===H.elements.length)F.insertModifierBefore(S.sourceFile,151,H);else{var C=e.factory.updateExportDeclaration(se,se.decorators,se.modifiers,!1,e.factory.updateNamedExports(H,e.filter(H.elements,function(E){return!e.contains(p,E)})),se.moduleSpecifier,void 0),G=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(p),se.moduleSpecifier,void 0);F.replaceNode(S.sourceFile,se,C,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),F.insertNodeAfter(S.sourceFile,se,G)}}}function pe(F,g){var S=F.parent;if(S.elements.length===1)return S.elements;var H=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(S),g.program.getSemanticDiagnostics(g.sourceFile,g.cancellationToken));return e.filter(S.elements,function(se){var p;return se===F||((p=e.findDiagnosticForNode(se,H))===null||p===void 0?void 0:p.code)===L[0]})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],W="convertToTypeOnlyImport";O.registerCodeFix({errorCodes:L,getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){var H=N(F.span,F.sourceFile);Q(S,H,F)});if(g.length)return[O.createCodeFixAction(W,g,e.Diagnostics.Convert_to_type_only_import,W,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[W],getAllCodeActions:function(F){return O.codeFixAll(F,L,function(g,S){var H=N(S,F.sourceFile);Q(g,H,F)})}});function N(pe,F){return e.tryCast(e.getTokenAtPosition(F,pe.start).parent,e.isImportDeclaration)}function Q(pe,F,g){if(!!(F!=null&&F.importClause)){var S=F.importClause;pe.insertText(g.sourceFile,F.getStart()+6," type"),S.name&&S.namedBindings&&(pe.deleteNodeRangeExcludingEnd(g.sourceFile,S.name,F.importClause.namedBindings),pe.insertNodeBefore(g.sourceFile,F,e.factory.updateImportDeclaration(F,void 0,void 0,e.factory.createImportClause(!0,S.name,void 0),F.moduleSpecifier,void 0)))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="convertLiteralTypeToMappedType",W=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=N(g,S.start);if(!!H){var se=H.name,p=H.constraint,C=e.textChanges.ChangeTracker.with(F,function(G){return Q(G,g,H)});return[O.createCodeFixAction(L,C,[e.Diagnostics.Convert_0_to_1_in_0,p,se],L,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);if(e.isIdentifier(g)){var S=e.cast(g.parent.parent,e.isPropertySignature),H=g.getText(pe);return{container:e.cast(S.parent,e.isTypeLiteralNode),typeNode:S.type,constraint:H,name:H==="K"?"P":"K"}}}function Q(pe,F,g){var S=g.container,H=g.typeNode,se=g.constraint,p=g.name;pe.replaceNode(F,S,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(p,e.factory.createTypeReferenceNode(se)),void 0,void 0,H,void 0))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],W="fixClassIncorrectlyImplementsInterface";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(se),function(p){var C=e.textChanges.ChangeTracker.with(g,function(G){return pe(g,p,S,se,G,g.preferences)});return C.length===0?void 0:O.createCodeFixAction(W,C,[e.Diagnostics.Implement_interface_0,p.getText(S)],W,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se.file,se.start);if(e.addToSeen(S,e.getNodeId(p)))for(var C=0,G=e.getEffectiveImplementsTypeNodes(p);C<G.length;C++){var E=G[C];pe(g,E,se.file,p,H,g.preferences)}})}});function N(g,S){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(g,S)),"There should be a containing class")}function Q(g){return!g.valueDeclaration||!(e.getEffectiveModifierFlags(g.valueDeclaration)&8)}function pe(g,S,H,se,p,C){var G=g.program.getTypeChecker(),E=F(se,G),ue=G.getTypeAtLocation(S),B=G.getPropertiesOfType(ue),re=B.filter(e.and(Q,function(Z){return!E.has(Z.escapedName)})),M=G.getTypeAtLocation(se),x=e.find(se.members,function(Z){return e.isConstructorDeclaration(Z)});M.getNumberIndexType()||_e(ue,1),M.getStringIndexType()||_e(ue,0);var ie=O.createImportAdder(H,g.program,C,g.host);O.createMissingMemberNodes(se,re,H,g,C,ie,function(Z){return Y(H,se,Z)}),ie.writeFixes(p);function _e(Z,k){var I=G.getIndexInfoOfType(Z,k);I&&Y(H,se,G.indexInfoToIndexSignatureDeclaration(I,se,void 0,O.getNoopSymbolTrackerWithResolver(g)))}function Y(Z,k,I){x?p.insertNodeAfter(Z,x,I):p.insertNodeAtClassStart(Z,k,I)}}function F(g,S){var H=e.getEffectiveBaseTypeNode(g);if(!H)return e.createSymbolTable();var se=S.getTypeAtLocation(H),p=S.getPropertiesOfType(se);return e.createSymbolTable(p.filter(Q))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.importFixName="import";var L="fixMissingImport",W=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(ye){var Se=ye.errorCode,ge=ye.preferences,Fe=ye.sourceFile,cr=ye.span,ur=ye.program,Ir=I(ye,Se,cr.start,!0);if(!!Ir){var dr=Ir.fixes,Br=Ir.symbolName,Tr=Ir.errorIdentifierText,n=e.getQuotePreference(Fe,ge);return dr.map(function(Er){return m(ye,Fe,Br,Er,Br!==Tr,n,ur.getCompilerOptions())})}},fixIds:[L],getAllCodeActions:function(ye){var Se=ye.sourceFile,ge=ye.program,Fe=ye.preferences,cr=ye.host,ur=Q(Se,ge,!0,Fe,cr);return O.eachDiagnostic(ye,W,function(Ir){return ur.addImportFromDiagnostic(Ir,ye)}),O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(ye,ur.writeFixes))}});function N(ye,Se,ge,Fe){return Q(ye,Se,!1,ge,Fe)}O.createImportAdder=N;function Q(ye,Se,ge,Fe,cr){var ur=Se.getCompilerOptions(),Ir=[],dr=[],Br=new e.Map,Tr=new e.Map;return{addImportFromDiagnostic:n,addImportFromExportedSymbol:Er,writeFixes:Pr,hasFixes:Ce};function n(Le,Xe){var Cr=I(Xe,Le.code,Le.start,ge);!Cr||!Cr.fixes.length||br(Cr)}function Er(Le,Xe){var Cr=e.Debug.checkDefined(Le.parent),Lr=e.getNameForExportedSymbol(Le,e.getEmitScriptTarget(ur)),Jr=Se.getTypeChecker(),Rr=Jr.getMergedSymbol(e.skipAlias(Le,Jr)),ci=C(ye,Rr,Cr,Lr,!1,cr,Se,Fe,ge),be=_e(ye,Se),or=H(ye,ci,Cr,Lr,Se,void 0,!!Xe,be,cr,Fe);or&&br({fixes:[or],symbolName:Lr,errorIdentifierText:void 0})}function br(Le){var Xe,Cr,Lr=Le.fixes,Jr=Le.symbolName,Rr=e.first(Lr);switch(Rr.kind){case 0:Ir.push(Rr);break;case 1:dr.push(Rr);break;case 2:{var ci=Rr.importClauseOrBindingPattern,be=Rr.importKind,or=Rr.addAsTypeOnly,Kr=String(e.getNodeId(ci)),ei=Br.get(Kr);if(ei||Br.set(Kr,ei={importClauseOrBindingPattern:ci,defaultImport:void 0,namedImports:new e.Map}),be===0){var li=ei==null?void 0:ei.namedImports.get(Jr);ei.namedImports.set(Jr,ft(li,or))}else e.Debug.assert(ei.defaultImport===void 0||ei.defaultImport.name===Jr,"(Add to Existing) Default import should be missing or match symbolName"),ei.defaultImport={name:Jr,addAsTypeOnly:ft((Xe=ei.defaultImport)===null||Xe===void 0?void 0:Xe.addAsTypeOnly,or)};break}case 3:{var Si=Rr.moduleSpecifier,be=Rr.importKind,qi=Rr.useRequire,or=Rr.addAsTypeOnly,ei=bt(Si,be,qi,or);switch(e.Debug.assert(ei.useRequire===qi,"(Add new) Tried to add an `import` and a `require` for the same module"),be){case 1:e.Debug.assert(ei.defaultImport===void 0||ei.defaultImport.name===Jr,"(Add new) Default import should be missing or match symbolName"),ei.defaultImport={name:Jr,addAsTypeOnly:ft((Cr=ei.defaultImport)===null||Cr===void 0?void 0:Cr.addAsTypeOnly,or)};break;case 0:var li=(ei.namedImports||(ei.namedImports=new e.Map)).get(Jr);ei.namedImports.set(Jr,ft(li,or));break;case 3:case 2:e.Debug.assert(ei.namespaceLikeImport===void 0||ei.namespaceLikeImport.name===Jr,"Namespacelike import shoudl be missing or match symbolName"),ei.namespaceLikeImport={importKind:be,name:Jr,addAsTypeOnly:or};break}break}case 4:break;default:e.Debug.assertNever(Rr,"fix wasn't never - got kind ".concat(Rr.kind))}function ft(sr,Ji){return Math.max(sr!=null?sr:0,Ji)}function bt(sr,Ji,di,X){var Ye=aa(sr,!0),Be=aa(sr,!1),Qe=Tr.get(Ye),_r=Tr.get(Be),hr={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:di};return Ji===1&&X===2?Qe||(Tr.set(Ye,hr),hr):X===1&&(Qe||_r)?Qe||_r:_r||(Tr.set(Be,hr),hr)}function aa(sr,Ji){return"".concat(Ji?1:0,"|").concat(sr)}}function Pr(Le){for(var Xe=e.getQuotePreference(ye,Fe),Cr=0,Lr=Ir;Cr<Lr.length;Cr++){var Jr=Lr[Cr];ke(Le,ye,Jr)}for(var Rr=0,ci=dr;Rr<ci.length;Rr++){var Jr=ci[Rr];Ue(Le,ye,Jr,Xe)}Br.forEach(function(or){var Kr=or.importClauseOrBindingPattern,ei=or.defaultImport,li=or.namedImports;le(Le,ye,Kr,ei,e.arrayFrom(li.entries(),function(Si){var qi=Si[0],ft=Si[1];return{addAsTypeOnly:ft,name:qi}}),ur)});var be;Tr.forEach(function(or,Kr){var ei=or.useRequire,li=or.defaultImport,Si=or.namedImports,qi=or.namespaceLikeImport,ft=Kr.slice(2),bt=ei?me:gr,aa=bt(ft,Xe,li,Si&&e.arrayFrom(Si.entries(),function(sr){var Ji=sr[0],di=sr[1];return{addAsTypeOnly:di,name:Ji}}),qi);be=e.combine(be,aa)}),be&&e.insertImports(Le,ye,be,!0)}function Ce(){return Ir.length>0||dr.length>0||Br.size>0||Tr.size>0}}var pe;(function(ye){ye[ye.UseNamespace=0]="UseNamespace",ye[ye.JsdocTypeImport=1]="JsdocTypeImport",ye[ye.AddToExisting=2]="AddToExisting",ye[ye.AddNew=3]="AddNew",ye[ye.PromoteTypeOnly=4]="PromoteTypeOnly"})(pe||(pe={}));var F;(function(ye){ye[ye.Allowed=1]="Allowed",ye[ye.Required=2]="Required",ye[ye.NotAllowed=4]="NotAllowed"})(F||(F={}));function g(ye,Se,ge,Fe,cr,ur,Ir,dr,Br,Tr){var n=Ir.getCompilerOptions(),Er=e.pathIsBareSpecifier(e.stripQuotes(Se.name))?[p(ye,Se,Ir,ur)]:C(ge,ye,Se,Fe,cr,ur,Ir,Tr,!0),br=_e(ge,Ir),Pr=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(ge,Br)),Ce=e.Debug.checkDefined(H(ge,Er,Se,Fe,Ir,Br,Pr,br,ur,Tr));return{moduleSpecifier:Ce.moduleSpecifier,codeAction:se(m({host:ur,formatContext:dr,preferences:Tr},ge,Fe,Ce,!1,e.getQuotePreference(ge,Tr),n))}}O.getImportCompletionAction=g;function S(ye,Se,ge,Fe,cr,ur){var Ir=ge.getCompilerOptions(),dr=y(ye,ge.getTypeChecker(),Se,Ir),Br=U(ye,Se,dr,ge),Tr=dr!==Se.text;return Br&&se(m({host:Fe,formatContext:cr,preferences:ur},ye,dr,Br,Tr,1,Ir))}O.getPromoteTypeOnlyCompletionAction=S;function H(ye,Se,ge,Fe,cr,ur,Ir,dr,Br,Tr){e.Debug.assert(Se.some(function(Er){return Er.moduleSymbol===ge||Er.symbol.parent===ge}),"Some exportInfo should match the specified moduleSymbol");var n=e.createPackageJsonImportFilter(ye,Tr,Br);return ee(E(Se,Fe,ur,Ir,dr,cr,ye,Br,Tr),ye,cr,n,Br)}function se(ye){var Se=ye.description,ge=ye.changes,Fe=ye.commands;return{description:Se,changes:ge,commands:Fe}}function p(ye,Se,ge,Fe){var cr,ur,Ir=ge.getCompilerOptions(),dr=Tr(ge.getTypeChecker(),!1);if(dr)return dr;var Br=(ur=(cr=Fe.getPackageJsonAutoImportProvider)===null||cr===void 0?void 0:cr.call(Fe))===null||ur===void 0?void 0:ur.getTypeChecker();return e.Debug.checkDefined(Br&&Tr(Br,!0),"Could not find symbol in specified module for code actions");function Tr(n,Er){var br=e.getDefaultLikeExportInfo(Se,n,Ir);if(br&&e.skipAlias(br.symbol,n)===ye)return{symbol:br.symbol,moduleSymbol:Se,moduleFileName:void 0,exportKind:br.exportKind,targetFlags:e.skipAlias(ye,n).flags,isFromPackageJson:Er};var Pr=n.tryGetMemberInModuleExportsAndProperties(ye.name,Se);if(Pr&&e.skipAlias(Pr,n)===ye)return{symbol:Pr,moduleSymbol:Se,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(ye,n).flags,isFromPackageJson:Er}}}function C(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=[],n=Ir.getCompilerOptions(),Er=e.memoizeOne(function(Pr){return e.createModuleSpecifierResolutionHost(Pr?ur.getPackageJsonAutoImportProvider():Ir,ur)});return e.forEachExternalModuleToImportFrom(Ir,ur,Br,function(Pr,Ce,Le,Xe){var Cr=Le.getTypeChecker();if(!(Ce&&Pr!==ge&&e.startsWith(ye.fileName,e.getDirectoryPath(Ce.fileName)))){var Lr=e.getDefaultLikeExportInfo(Pr,Cr,n);Lr&&(Lr.name===Fe||he(Pr,e.getEmitScriptTarget(n),cr)===Fe)&&e.skipAlias(Lr.symbol,Cr)===Se&&br(Le,Ce,Xe)&&Tr.push({symbol:Lr.symbol,moduleSymbol:Pr,moduleFileName:Ce==null?void 0:Ce.fileName,exportKind:Lr.exportKind,targetFlags:e.skipAlias(Lr.symbol,Cr).flags,isFromPackageJson:Xe});for(var Jr=0,Rr=Cr.getExportsAndPropertiesOfModule(Pr);Jr<Rr.length;Jr++){var ci=Rr[Jr];ci.name===Fe&&Cr.getMergedSymbol(e.skipAlias(ci,Cr))===Se&&br(Le,Ce,Xe)&&Tr.push({symbol:ci,moduleSymbol:Pr,moduleFileName:Ce==null?void 0:Ce.fileName,exportKind:0,targetFlags:e.skipAlias(ci,Cr).flags,isFromPackageJson:Xe})}}}),Tr;function br(Pr,Ce,Le){var Xe;return!Ce||e.isImportableFile(Pr,ye,Ce,dr,void 0,Er(Le),(Xe=ur.getModuleSpecifierCache)===null||Xe===void 0?void 0:Xe.call(ur))}}function G(ye,Se,ge,Fe,cr,ur,Ir){var dr=Y(ge,Se,void 0,!1,!1,ye,Fe,cr,Ir),Br=dr.fixes,Tr=dr.computedWithoutCacheCount,n=ee(Br,Se,ge,ur||e.createPackageJsonImportFilter(Se,cr,Fe),Fe);return n&&Ve(Ve({},n),{computedWithoutCacheCount:Tr})}O.getModuleSpecifierForBestExportInfo=G;function E(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=ur.getTypeChecker(),n=e.flatMap(ye,function(Ce){return ie(Ce,Tr,Ir,ur.getCompilerOptions())}),Er=ge===void 0?void 0:ue(n,Se,ge,Tr),br=x(n,Fe,Tr,ur.getCompilerOptions()),Pr=br?[br]:Z(ye,n,ur,Ir,ge,Fe,cr,dr,Br);return qe(qe([],Er?[Er]:e.emptyArray,!0),Pr,!0)}function ue(ye,Se,ge,Fe){return e.firstDefined(ye,function(cr){var ur=cr.declaration,Ir=re(ur),dr=e.tryGetModuleSpecifierFromDeclaration(ur);if(Ir&&dr){var Br=B(ur,Fe);if(Br&&Br.exports.has(e.escapeLeadingUnderscores(Se)))return{kind:0,namespacePrefix:Ir,position:ge,moduleSpecifier:dr}}})}function B(ye,Se){var ge;switch(ye.kind){case 253:return Se.resolveExternalModuleName(ye.initializer.arguments[0]);case 264:return Se.getAliasedSymbol(ye.symbol);case 265:var Fe=e.tryCast((ge=ye.importClause)===null||ge===void 0?void 0:ge.namedBindings,e.isNamespaceImport);return Fe&&Se.getAliasedSymbol(Fe.symbol);default:return e.Debug.assertNever(ye)}}function re(ye){var Se,ge,Fe;switch(ye.kind){case 253:return(Se=e.tryCast(ye.name,e.isIdentifier))===null||Se===void 0?void 0:Se.text;case 264:return ye.name.text;case 265:return(Fe=e.tryCast((ge=ye.importClause)===null||ge===void 0?void 0:ge.namedBindings,e.isNamespaceImport))===null||Fe===void 0?void 0:Fe.name.text;default:return e.Debug.assertNever(ye)}}function M(ye,Se,ge,Fe,cr,ur){return ye?Se&&ur.importsNotUsedAsValues===2||ur.isolatedModules&&ur.preserveValueImports&&(!(Fe&111551)||!!cr.getTypeOnlyAliasDeclaration(ge))?2:1:4}function x(ye,Se,ge,Fe){return e.firstDefined(ye,function(cr){var ur=cr.declaration,Ir=cr.importKind,dr=cr.symbol,Br=cr.targetFlags;if(!(Ir===3||Ir===2||ur.kind===264)){if(ur.kind===253)return(Ir===0||Ir===1)&&ur.name.kind===200?{kind:2,importClauseOrBindingPattern:ur.name,importKind:Ir,moduleSpecifier:ur.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var Tr=ur.importClause;if(!(!Tr||!e.isStringLiteralLike(ur.moduleSpecifier))){var n=Tr.name,Er=Tr.namedBindings;if(!(Tr.isTypeOnly&&!(Ir===0&&Er))){var br=M(Se,!1,dr,Br,ge,Fe);if(!(Ir===1&&(n||br===2&&Er))&&!(Ir===0&&(Er==null?void 0:Er.kind)===267))return{kind:2,importClauseOrBindingPattern:Tr,importKind:Ir,moduleSpecifier:ur.moduleSpecifier.text,addAsTypeOnly:br}}}}})}function ie(ye,Se,ge,Fe){var cr=ye.moduleSymbol,ur=ye.exportKind,Ir=ye.targetFlags,dr=ye.symbol;if(!(Ir&111551)&&e.isSourceFileJS(ge))return e.emptyArray;var Br=J(ge,ur,Fe);return e.mapDefined(ge.imports,function(Tr){var n=e.importFromModuleSpecifier(Tr);if(e.isVariableDeclarationInitializedToRequire(n.parent))return Se.resolveExternalModuleName(Tr)===cr?{declaration:n.parent,importKind:Br,symbol:dr,targetFlags:Ir}:void 0;if(n.kind===265||n.kind===264)return Se.getSymbolAtLocation(Tr)===cr?{declaration:n,importKind:Br,symbol:dr,targetFlags:Ir}:void 0})}function _e(ye,Se){if(!e.isSourceFileJS(ye))return!1;if(ye.commonJsModuleIndicator&&!ye.externalModuleIndicator)return!0;if(ye.externalModuleIndicator&&!ye.commonJsModuleIndicator)return!1;var ge=Se.getCompilerOptions();if(ge.configFile)return e.getEmitModuleKind(ge)<e.ModuleKind.ES2015;for(var Fe=0,cr=Se.getSourceFiles();Fe<cr.length;Fe++){var ur=cr[Fe];if(!(ur===ye||!e.isSourceFileJS(ur)||Se.isSourceFileFromExternalLibrary(ur))){if(ur.commonJsModuleIndicator&&!ur.externalModuleIndicator)return!0;if(ur.externalModuleIndicator&&!ur.commonJsModuleIndicator)return!1}}return!0}function Y(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=e.isSourceFileJS(Se),n=ye.getCompilerOptions(),Er=e.createModuleSpecifierResolutionHost(ye,Ir),br=e.memoizeOne(function(Xe){return Xe?Ir.getPackageJsonAutoImportProvider().getTypeChecker():ye.getTypeChecker()}),Pr=Br?function(Xe){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(Xe,Se,Er,dr),computedWithoutCache:!1}}:function(Xe,Cr){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(Xe,Cr,n,Se,Er,dr)},Ce=0,Le=e.flatMap(ur,function(Xe,Cr){var Lr=br(Xe.isFromPackageJson),Jr=Pr(Xe.moduleSymbol,Lr),Rr=Jr.computedWithoutCache,ci=Jr.moduleSpecifiers,be=!!(Xe.targetFlags&111551),or=M(Fe,!0,Xe.symbol,Xe.targetFlags,Lr,n);return Ce+=Rr?1:0,ci==null?void 0:ci.map(function(Kr){return!be&&Tr&&ge!==void 0?{kind:1,moduleSpecifier:Kr,position:ge,exportInfo:Xe,isReExport:Cr>0}:{kind:3,moduleSpecifier:Kr,importKind:J(Se,Xe.exportKind,n),useRequire:cr,addAsTypeOnly:or,exportInfo:Xe,isReExport:Cr>0}})});return{computedWithoutCacheCount:Ce,fixes:Le}}function Z(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr=e.firstDefined(Se,function(n){return k(n,ur,Ir,ge.getTypeChecker(),ge.getCompilerOptions())});return Tr?[Tr]:Y(ge,Fe,cr,ur,Ir,ye,dr,Br).fixes}function k(ye,Se,ge,Fe,cr){var ur=ye.declaration,Ir=ye.importKind,dr=ye.symbol,Br=ye.targetFlags,Tr=e.tryGetModuleSpecifierFromDeclaration(ur);if(Tr){var n=ge?4:M(Se,!0,dr,Br,Fe,cr);return{kind:3,moduleSpecifier:Tr,importKind:Ir,addAsTypeOnly:n,useRequire:ge}}}function I(ye,Se,ge,Fe){var cr=e.getTokenAtPosition(ye.sourceFile,ge),ur;if(Se===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)ur=l(ye,cr);else if(e.isIdentifier(cr))if(Se===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var Ir=y(ye.sourceFile,ye.program.getTypeChecker(),cr,ye.program.getCompilerOptions()),dr=U(ye.sourceFile,cr,Ir,ye.program);return dr&&{fixes:[dr],symbolName:Ir,errorIdentifierText:cr.text}}else ur=j(ye,cr,Fe);else return;var Br=e.createPackageJsonImportFilter(ye.sourceFile,ye.preferences,ye.host);return ur&&Ve(Ve({},ur),{fixes:ne(ur.fixes,ye.sourceFile,ye.program,Br,ye.host)})}function ne(ye,Se,ge,Fe,cr){var ur=function(Ir){return e.toPath(Ir,cr.getCurrentDirectory(),e.hostGetCanonicalFileName(cr))};return e.sort(ye,function(Ir,dr){return e.compareValues(Ir.kind,dr.kind)||A(Ir,dr,Se,ge,Fe.allowsImportingSpecifier,ur)})}function ee(ye,Se,ge,Fe,cr){if(!!e.some(ye))return ye[0].kind===0||ye[0].kind===2?ye[0]:ye.reduce(function(ur,Ir){return A(Ir,ur,Se,ge,Fe.allowsImportingSpecifier,function(dr){return e.toPath(dr,cr.getCurrentDirectory(),e.hostGetCanonicalFileName(cr))})===-1?Ir:ur})}function A(ye,Se,ge,Fe,cr,ur){return ye.kind!==0&&Se.kind!==0?e.compareBooleans(cr(Se.moduleSpecifier),cr(ye.moduleSpecifier))||D(ye.moduleSpecifier,Se.moduleSpecifier,ge,Fe)||e.compareBooleans(f(ye,ge,Fe.getCompilerOptions(),ur),f(Se,ge,Fe.getCompilerOptions(),ur))||e.compareNumberOfDirectorySeparators(ye.moduleSpecifier,Se.moduleSpecifier):0}function f(ye,Se,ge,Fe){var cr;if(ye.isReExport&&((cr=ye.exportInfo)===null||cr===void 0?void 0:cr.moduleFileName)&&e.getEmitModuleResolutionKind(ge)===e.ModuleResolutionKind.NodeJs&&P(ye.exportInfo.moduleFileName)){var ur=Fe(e.getDirectoryPath(ye.exportInfo.moduleFileName));return e.startsWith(Se.path,ur)}return!1}function P(ye){return e.getBaseFileName(ye,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function D(ye,Se,ge,Fe){return e.startsWith(ye,"node:")&&!e.startsWith(Se,"node:")?e.shouldUseUriStyleNodeCoreModules(ge,Fe)?-1:1:e.startsWith(Se,"node:")&&!e.startsWith(ye,"node:")?e.shouldUseUriStyleNodeCoreModules(ge,Fe)?1:-1:0}function l(ye,Se){var ge,Fe=ye.sourceFile,cr=ye.program,ur=ye.host,Ir=ye.preferences,dr=cr.getTypeChecker(),Br=_(Se,dr);if(!!Br){var Tr=dr.getAliasedSymbol(Br),n=Br.name,Er=[{symbol:Br,moduleSymbol:Tr,moduleFileName:void 0,exportKind:3,targetFlags:Tr.flags,isFromPackageJson:!1}],br=_e(Fe,cr),Pr=E(Er,n,e.isIdentifier(Se)?Se.getStart(Fe):void 0,!1,br,cr,Fe,ur,Ir);return{fixes:Pr,symbolName:n,errorIdentifierText:(ge=e.tryCast(Se,e.isIdentifier))===null||ge===void 0?void 0:ge.text}}}function _(ye,Se){var ge=e.isIdentifier(ye)?Se.getSymbolAtLocation(ye):void 0;if(e.isUMDExportSymbol(ge))return ge;var Fe=ye.parent;return e.isJsxOpeningLikeElement(Fe)&&Fe.tagName===ye||e.isJsxOpeningFragment(Fe)?e.tryCast(Se.resolveName(Se.getJsxNamespace(Fe),e.isJsxOpeningLikeElement(Fe)?ye:Fe,111551,!1),e.isUMDExportSymbol):void 0}function J(ye,Se,ge,Fe){switch(Se){case 0:return 0;case 1:return 1;case 2:return ce(ye,ge,!!Fe);case 3:return w(ye,ge,!!Fe);default:return e.Debug.assertNever(Se)}}O.getImportKind=J;function w(ye,Se,ge){if(e.getAllowSyntheticDefaultImports(Se))return 1;var Fe=e.getEmitModuleKind(Se);switch(Fe){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(ye)&&(e.isExternalModule(ye)||ge)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return ye.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(Fe,"Unexpected moduleKind ".concat(Fe))}}function j(ye,Se,ge){var Fe=ye.sourceFile,cr=ye.program,ur=ye.cancellationToken,Ir=ye.host,dr=ye.preferences,Br=cr.getTypeChecker(),Tr=cr.getCompilerOptions(),n=y(Fe,Br,Se,Tr);e.Debug.assert(n!=="default","'default' isn't a legal identifier and couldn't occur here");var Er=e.isValidTypeOnlyAliasUseSite(Se),br=_e(Fe,cr),Pr=ve(n,e.isJSXTagName(Se),e.getMeaningFromLocation(Se),ur,Fe,cr,ge,Ir,dr),Ce=e.arrayFrom(e.flatMapIterator(Pr.entries(),function(Le){var Xe=Le[0],Cr=Le[1];return E(Cr,n,Se.getStart(Fe),Er,br,cr,Fe,Ir,dr)}));return{fixes:Ce,symbolName:n,errorIdentifierText:Se.text}}function U(ye,Se,ge,Fe){var cr=Fe.getTypeChecker(),ur=cr.resolveName(ge,Se,111551,!0);if(!!ur){var Ir=cr.getTypeOnlyAliasDeclaration(ur);if(!(!Ir||e.getSourceFileOfNode(Ir)!==ye))return{kind:4,typeOnlyAliasDeclaration:Ir}}}function z(ye){return ye===2||ye===3}function y(ye,Se,ge,Fe){var cr=ge.parent;if((e.isJsxOpeningLikeElement(cr)||e.isJsxClosingElement(cr))&&cr.tagName===ge&&z(Fe.jsx)){var ur=Se.getJsxNamespace(ye);if(oe(ur,ge,Se))return ur}return ge.text}function oe(ye,Se,ge){if(e.isIntrinsicJsxName(Se.text))return!0;var Fe=ge.resolveName(ye,Se,111551,!0);return!Fe||e.some(Fe.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(Fe.flags&111551)}function ve(ye,Se,ge,Fe,cr,ur,Ir,dr,Br){var Tr,n=e.createMultiMap(),Er=e.createPackageJsonImportFilter(cr,Br,dr),br=(Tr=dr.getModuleSpecifierCache)===null||Tr===void 0?void 0:Tr.call(dr),Pr=e.memoizeOne(function(Le){return e.createModuleSpecifierResolutionHost(Le?dr.getPackageJsonAutoImportProvider():ur,dr)});function Ce(Le,Xe,Cr,Lr,Jr,Rr){var ci=Pr(Rr);if(Xe&&e.isImportableFile(Jr,cr,Xe,Br,Er,ci,br)||!Xe&&Er.allowsImportingAmbientModule(Le,ci)){var be=Jr.getTypeChecker();n.add(e.getUniqueSymbolId(Cr,be).toString(),{symbol:Cr,moduleSymbol:Le,moduleFileName:Xe==null?void 0:Xe.fileName,exportKind:Lr,targetFlags:e.skipAlias(Cr,be).flags,isFromPackageJson:Rr})}}return e.forEachExternalModuleToImportFrom(ur,dr,Ir,function(Le,Xe,Cr,Lr){var Jr=Cr.getTypeChecker();Fe.throwIfCancellationRequested();var Rr=Cr.getCompilerOptions(),ci=e.getDefaultLikeExportInfo(Le,Jr,Rr);ci&&(ci.name===ye||he(Le,e.getEmitScriptTarget(Rr),Se)===ye)&&er(ci.symbolForMeaning,ge)&&Ce(Le,Xe,ci.symbol,ci.exportKind,Cr,Lr);var be=Jr.tryGetMemberInModuleExportsAndProperties(ye,Le);be&&er(be,ge)&&Ce(Le,Xe,be,0,Cr,Lr)}),n}function ce(ye,Se,ge){var Fe=e.getAllowSyntheticDefaultImports(Se),cr=e.isInJSFile(ye);if(!cr&&e.getEmitModuleKind(Se)>=e.ModuleKind.ES2015)return Fe?1:2;if(cr)return e.isExternalModule(ye)||ge?Fe?1:2:3;for(var ur=0,Ir=ye.statements;ur<Ir.length;ur++){var dr=Ir[ur];if(e.isImportEqualsDeclaration(dr)&&!e.nodeIsMissing(dr.moduleReference))return 3}return Fe?1:3}function m(ye,Se,ge,Fe,cr,ur,Ir){var dr,Br=e.textChanges.ChangeTracker.with(ye,function(Tr){dr=de(Tr,Se,ge,Fe,cr,ur,Ir)});return O.createCodeFixAction(O.importFixName,Br,dr,L,e.Diagnostics.Add_all_missing_imports)}function de(ye,Se,ge,Fe,cr,ur,Ir){switch(Fe.kind){case 0:return ke(ye,Se,Fe),[e.Diagnostics.Change_0_to_1,ge,"".concat(Fe.namespacePrefix,".").concat(ge)];case 1:return Ue(ye,Se,Fe,ur),[e.Diagnostics.Change_0_to_1,ge,He(Fe.moduleSpecifier,ur)+ge];case 2:{var dr=Fe.importClauseOrBindingPattern,Br=Fe.importKind,Tr=Fe.addAsTypeOnly,n=Fe.moduleSpecifier;le(ye,Se,dr,Br===1?{name:ge,addAsTypeOnly:Tr}:void 0,Br===0?[{name:ge,addAsTypeOnly:Tr}]:e.emptyArray,Ir);var Er=e.stripQuotes(n);return cr?[e.Diagnostics.Import_0_from_1,ge,Er]:[e.Diagnostics.Update_import_from_0,Er]}case 3:{var Br=Fe.importKind,n=Fe.moduleSpecifier,Tr=Fe.addAsTypeOnly,br=Fe.useRequire,Pr=br?me:gr,Ce=Br===1?{name:ge,addAsTypeOnly:Tr}:void 0,Le=Br===0?[{name:ge,addAsTypeOnly:Tr}]:void 0,Xe=Br===2||Br===3?{importKind:Br,name:ge,addAsTypeOnly:Tr}:void 0;return e.insertImports(ye,Se,Pr(n,ur,Ce,Le,Xe),!0),cr?[e.Diagnostics.Import_0_from_1,ge,n]:[e.Diagnostics.Add_import_from_0,n]}case 4:{var Cr=Fe.typeOnlyAliasDeclaration,Lr=V(ye,Cr,Ir,Se);return Lr.kind===269?[e.Diagnostics.Remove_type_from_import_of_0_from_1,ge,ae(Lr.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,ae(Lr)]}default:return e.Debug.assertNever(Fe,"Unexpected fix kind ".concat(Fe.kind))}}function ae(ye){var Se,ge;return ye.kind===264?((ge=e.tryCast((Se=e.tryCast(ye.moduleReference,e.isExternalModuleReference))===null||Se===void 0?void 0:Se.expression,e.isStringLiteralLike))===null||ge===void 0?void 0:ge.text)||ye.moduleReference.getText():e.cast(ye.parent.moduleSpecifier,e.isStringLiteral).text}function V(ye,Se,ge,Fe){var cr=ge.preserveValueImports&&ge.isolatedModules;switch(Se.kind){case 269:if(Se.isTypeOnly){if(Se.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(Se.parent.elements)){ye.delete(Fe,Se);var ur=e.factory.updateImportSpecifier(Se,!1,Se.propertyName,Se.name),Ir=e.OrganizeImports.getImportSpecifierInsertionIndex(Se.parent.elements,ur);ye.insertImportSpecifierAtIndex(Fe,ur,Se.parent,Ir)}else ye.deleteRange(Fe,Se.getFirstToken());return Se}else return e.Debug.assert(Se.parent.parent.isTypeOnly),dr(Se.parent.parent),Se.parent.parent;case 266:return dr(Se),Se;case 267:return dr(Se.parent),Se.parent;case 264:return ye.deleteRange(Fe,Se.getChildAt(1)),Se;default:e.Debug.failBadSyntaxKind(Se)}function dr(Br){if(ye.delete(Fe,e.getTypeKeywordOfTypeOnlyImport(Br,Fe)),cr){var Tr=e.tryCast(Br.namedBindings,e.isNamedImports);if(Tr&&Tr.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(Tr.elements)&&Se.kind===269&&Tr.elements.indexOf(Se)!==0&&(ye.delete(Fe,Se),ye.insertImportSpecifierAtIndex(Fe,Se,Tr,0));for(var n=0,Er=Tr.elements;n<Er.length;n++){var br=Er[n];br!==Se&&!br.isTypeOnly&&ye.insertModifierBefore(Fe,151,br)}}}}}function le(ye,Se,ge,Fe,cr,ur){var Ir;if(ge.kind===200){Fe&&or(ge,Fe.name,"default");for(var dr=0,Br=cr;dr<Br.length;dr++){var Tr=Br[dr];or(ge,Tr.name,void 0)}return}var n=ge.isTypeOnly&&e.some(qe([Fe],cr,!0),function(Kr){return(Kr==null?void 0:Kr.addAsTypeOnly)===4}),Er=ge.namedBindings&&((Ir=e.tryCast(ge.namedBindings,e.isNamedImports))===null||Ir===void 0?void 0:Ir.elements),br=n&&ur.preserveValueImports&&ur.isolatedModules;if(Fe&&(e.Debug.assert(!ge.name,"Cannot add a default import to an import clause that already has one"),ye.insertNodeAt(Se,ge.getStart(Se),e.factory.createIdentifier(Fe.name),{suffix:", "})),cr.length){var Pr=e.stableSort(cr.map(function(Kr){return e.factory.createImportSpecifier((!ge.isTypeOnly||n)&&ar(Kr),void 0,e.factory.createIdentifier(Kr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((Er==null?void 0:Er.length)&&e.OrganizeImports.importSpecifiersAreSorted(Er))for(var Ce=0,Le=Pr;Ce<Le.length;Ce++){var Xe=Le[Ce],Cr=br&&!Xe.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(Er,Xe);ye.insertImportSpecifierAtIndex(Se,Xe,ge.namedBindings,Cr)}else if(Er!=null&&Er.length)for(var Lr=0,Jr=Pr;Lr<Jr.length;Lr++){var Xe=Jr[Lr];ye.insertNodeInListAfter(Se,e.last(Er),Xe,Er)}else if(Pr.length){var Rr=e.factory.createNamedImports(Pr);ge.namedBindings?ye.replaceNode(Se,ge.namedBindings,Rr):ye.insertNodeAfter(Se,e.Debug.checkDefined(ge.name,"Import clause must have either named imports or a default import"),Rr)}}if(n&&(ye.delete(Se,e.getTypeKeywordOfTypeOnlyImport(ge,Se)),br&&Er))for(var ci=0,be=Er;ci<be.length;ci++){var Tr=be[ci];ye.insertModifierBefore(Se,151,Tr)}function or(Kr,ei,li){var Si=e.factory.createBindingElement(void 0,li,ei);Kr.elements.length?ye.insertNodeInListAfter(Se,e.last(Kr.elements),Si):ye.replaceNode(Se,Kr,e.factory.createObjectBindingPattern([Si]))}}function ke(ye,Se,ge){var Fe=ge.namespacePrefix,cr=ge.position;ye.insertText(Se,cr,Fe+".")}function Ue(ye,Se,ge,Fe){var cr=ge.moduleSpecifier,ur=ge.position;ye.insertText(Se,ur,He(cr,Fe))}function He(ye,Se){var ge=e.getQuoteFromPreference(Se);return"import(".concat(ge).concat(ye).concat(ge,").")}function ar(ye){var Se=ye.addAsTypeOnly;return Se===2}function gr(ye,Se,ge,Fe,cr){var ur=e.makeStringLiteral(ye,Se),Ir;if(ge!==void 0||(Fe==null?void 0:Fe.length)){var dr=(!ge||ar(ge))&&e.every(Fe,ar);Ir=e.combine(Ir,e.makeImport(ge&&e.factory.createIdentifier(ge.name),Fe==null?void 0:Fe.map(function(Tr){var n=Tr.addAsTypeOnly,Er=Tr.name;return e.factory.createImportSpecifier(!dr&&n===2,void 0,e.factory.createIdentifier(Er))}),ye,Se,dr))}if(cr){var Br=cr.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,ar(cr),e.factory.createIdentifier(cr.name),e.factory.createExternalModuleReference(ur)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(ar(cr),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(cr.name))),ur,void 0);Ir=e.combine(Ir,Br)}return e.Debug.checkDefined(Ir)}function me(ye,Se,ge,Fe,cr){var ur=e.makeStringLiteral(ye,Se),Ir;if(ge||(Fe==null?void 0:Fe.length)){var dr=(Fe==null?void 0:Fe.map(function(Tr){var n=Tr.name;return e.factory.createBindingElement(void 0,void 0,n)}))||[];ge&&dr.unshift(e.factory.createBindingElement(void 0,"default",ge.name));var Br=Ge(e.factory.createObjectBindingPattern(dr),ur);Ir=e.combine(Ir,Br)}if(cr){var Br=Ge(cr.name,ur);Ir=e.combine(Ir,Br)}return e.Debug.checkDefined(Ir)}function Ge(ye,Se){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof ye=="string"?e.factory.createIdentifier(ye):ye,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Se]))],2))}function er(ye,Se){var ge=ye.declarations;return e.some(ge,function(Fe){return!!(e.getMeaningFromDeclaration(Fe)&Se)})}function he(ye,Se,ge){return we(e.removeFileExtension(e.stripQuotes(ye.name)),Se,ge)}O.moduleSymbolToValidIdentifier=he;function we(ye,Se,ge){var Fe=e.getBaseFileName(e.removeSuffix(ye,"/index")),cr="",ur=!0,Ir=Fe.charCodeAt(0);e.isIdentifierStart(Ir,Se)?(cr+=String.fromCharCode(Ir),ge&&(cr=cr.toUpperCase())):ur=!1;for(var dr=1;dr<Fe.length;dr++){var Br=Fe.charCodeAt(dr),Tr=e.isIdentifierPart(Br,Se);if(Tr){var n=String.fromCharCode(Br);ur||(n=n.toUpperCase()),cr+=n}ur=Tr}return e.isStringANonContextualKeyword(cr)?"_".concat(cr):cr||"_"}O.moduleSpecifierToValidIdentifier=we})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W="fixOverrideModifier",N="fixAddOverrideModifier",Q="fixRemoveOverrideModifier",pe=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],F=(L={},L[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},L[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},L[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:N,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:Q,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},L);O.registerCodeFix({errorCodes:pe,getCodeActions:function(G){var E=G.errorCode,ue=G.span,B=F[E];if(!B)return e.emptyArray;var re=B.descriptions,M=B.fixId,x=B.fixAllDescriptions,ie=e.textChanges.ChangeTracker.with(G,function(_e){return g(_e,G,E,ue.start)});return[O.createCodeFixActionMaybeFixAll(W,ie,re,M,x)]},fixIds:[W,N,Q],getAllCodeActions:function(C){return O.codeFixAll(C,pe,function(G,E){var ue=E.code,B=E.start,re=F[ue];!re||re.fixId!==C.fixId||g(G,C,ue,B)})}});function g(C,G,E,ue){switch(E){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return S(C,G.sourceFile,ue);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return H(C,G.sourceFile,ue);default:e.Debug.fail("Unexpected error code: "+E)}}function S(C,G,E){var ue=p(G,E);if(e.isSourceFileJS(G)){C.addJSDocTags(G,ue,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);return}var B=ue.modifiers||e.emptyArray,re=e.find(B,e.isStaticModifier),M=e.find(B,e.isAbstractModifier),x=e.find(B,function(Y){return e.isAccessibilityModifier(Y.kind)}),ie=M?M.end:re?re.end:x?x.end:ue.decorators?e.skipTrivia(G.text,ue.decorators.end):ue.getStart(G),_e=x||re||M?{prefix:" "}:{suffix:" "};C.insertModifierAt(G,ie,158,_e)}function H(C,G,E){var ue=p(G,E);if(e.isSourceFileJS(G)){C.filterJSDocTags(G,ue,e.not(e.isJSDocOverrideTag));return}var B=ue.modifiers&&e.find(ue.modifiers,function(re){return re.kind===158});e.Debug.assertIsDefined(B),C.deleteModifier(G,B)}function se(C){switch(C.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(C,C.parent);default:return!1}}function p(C,G){var E=e.getTokenAtPosition(C,G),ue=e.findAncestor(E,function(B){return e.isClassLike(B)?"quit":se(B)});return e.Debug.assert(ue&&se(ue)),ue}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixNoPropertyAccessFromIndexSignature",W=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=pe.preferences,H=Q(F,g.start),se=e.textChanges.ChangeTracker.with(pe,function(p){return N(p,pe.sourceFile,H,S)});return[O.createCodeFixAction(L,se,[e.Diagnostics.Use_element_access_for_0,H.name.text],L,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,Q(g.file,g.start),pe.preferences)})}});function N(pe,F,g,S){var H=e.getQuotePreference(F,S),se=e.factory.createStringLiteral(g.name.text,H===0);pe.replaceNode(F,g,e.isPropertyAccessChain(g)?e.factory.createElementAccessChain(g.expression,g.questionDotToken,se):e.factory.createElementAccessExpression(g.expression,se))}function Q(pe,F){return e.cast(e.getTokenAtPosition(pe,F).parent,e.isPropertyAccessExpression)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixImplicitThis",W=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.program,S=pe.span,H,se=e.textChanges.ChangeTracker.with(pe,function(p){H=N(p,F,S.start,g.getTypeChecker())});return H?[O.createCodeFixAction(L,se,H,L,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){N(pe,F.file,F.start,Q.program.getTypeChecker())})}});function N(Q,pe,F,g){var S=e.getTokenAtPosition(pe,F);if(!!e.isThis(S)){var H=e.getThisContainer(S,!1);if(!(!e.isFunctionDeclaration(H)&&!e.isFunctionExpression(H))&&!e.isSourceFile(e.getThisContainer(H,!1))){var se=e.Debug.checkDefined(e.findChildOfKind(H,98,pe)),p=H.name,C=e.Debug.checkDefined(H.body);return e.isFunctionExpression(H)?p&&e.FindAllReferences.Core.isSymbolReferencedInFile(p,g,pe,C)?void 0:(Q.delete(pe,se),p&&Q.delete(pe,p),Q.insertText(pe,C.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,p?p.text:e.ANONYMOUS]):(Q.replaceNode(pe,se,e.factory.createToken(85)),Q.insertText(pe,p.end," = "),Q.insertText(pe,C.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,p.text])}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixIncorrectNamedTupleSyntax",W=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=N(g,S.start),se=e.textChanges.ChangeTracker.with(F,function(p){return Q(p,g,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,L,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[L]});function N(pe,F){var g=e.getTokenAtPosition(pe,F);return e.findAncestor(g,function(S){return S.kind===196})}function Q(pe,F,g){if(!!g){for(var S=g.type,H=!1,se=!1;S.kind===184||S.kind===185||S.kind===190;)S.kind===184?H=!0:S.kind===185&&(se=!0),S=S.type;var p=e.factory.updateNamedTupleMember(g,g.dotDotDotToken||(se?e.factory.createToken(25):void 0),g.name,g.questionToken||(H?e.factory.createToken(57):void 0),S);p!==g&&pe.replaceNode(F,g,p)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixSpelling",W=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.errorCode,se=N(S,g.span.start,g,H);if(!!se){var p=se.node,C=se.suggestedSymbol,G=e.getEmitScriptTarget(g.host.getCompilationSettings()),E=e.textChanges.ChangeTracker.with(g,function(ue){return Q(ue,S,p,C,G)});return[O.createCodeFixAction("spelling",E,[e.Diagnostics.Change_spelling_to_0,e.symbolName(C)],L,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[L],getAllCodeActions:function(g){return O.codeFixAll(g,W,function(S,H){var se=N(H.file,H.start,g,H.code),p=e.getEmitScriptTarget(g.host.getCompilationSettings());se&&Q(S,g.sourceFile,se.node,se.suggestedSymbol,p)})}});function N(g,S,H,se){var p=e.getTokenAtPosition(g,S),C=p.parent;if(!((se===e.Diagnostics.No_overload_matches_this_call.code||se===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(C))){var G=H.program.getTypeChecker(),E;if(e.isPropertyAccessExpression(C)&&C.name===p){e.Debug.assert(e.isMemberName(p),"Expected an identifier for spelling (property access)");var ue=G.getTypeAtLocation(C.expression);C.flags&32&&(ue=G.getNonNullableType(ue)),E=G.getSuggestedSymbolForNonexistentProperty(p,ue)}else if(e.isBinaryExpression(C)&&C.operatorToken.kind===101&&C.left===p&&e.isPrivateIdentifier(p)){var B=G.getTypeAtLocation(C.right);E=G.getSuggestedSymbolForNonexistentProperty(p,B)}else if(e.isQualifiedName(C)&&C.right===p){var re=G.getSymbolAtLocation(C.left);re&&re.flags&1536&&(E=G.getSuggestedSymbolForNonexistentModule(C.right,re))}else if(e.isImportSpecifier(C)&&C.name===p){e.Debug.assertNode(p,e.isIdentifier,"Expected an identifier for spelling (import)");var M=e.findAncestor(p,e.isImportDeclaration),x=F(g,H,M);x&&x.symbol&&(E=G.getSuggestedSymbolForNonexistentModule(p,x.symbol))}else if(e.isJsxAttribute(C)&&C.name===p){e.Debug.assertNode(p,e.isIdentifier,"Expected an identifier for JSX attribute");var ie=e.findAncestor(p,e.isJsxOpeningLikeElement),_e=G.getContextualTypeForArgumentAtIndex(ie,0);E=G.getSuggestedSymbolForNonexistentJSXAttribute(p,_e)}else if(e.hasSyntacticModifier(C,16384)&&e.isClassElement(C)&&C.name===p){var Y=e.findAncestor(p,e.isClassLike),Z=Y?e.getEffectiveBaseTypeNode(Y):void 0,k=Z?G.getTypeAtLocation(Z):void 0;k&&(E=G.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(p),k))}else{var I=e.getMeaningFromLocation(p),ne=e.getTextOfNode(p);e.Debug.assert(ne!==void 0,"name should be defined"),E=G.getSuggestedSymbolForNonexistentSymbol(p,ne,pe(I))}return E===void 0?void 0:{node:p,suggestedSymbol:E}}}function Q(g,S,H,se,p){var C=e.symbolName(se);if(!e.isIdentifierText(C,p)&&e.isPropertyAccessExpression(H.parent)){var G=se.valueDeclaration;G&&e.isNamedDeclaration(G)&&e.isPrivateIdentifier(G.name)?g.replaceNode(S,H,e.factory.createIdentifier(C)):g.replaceNode(S,H.parent,e.factory.createElementAccessExpression(H.parent.expression,e.factory.createStringLiteral(C)))}else g.replaceNode(S,H,e.factory.createIdentifier(C))}function pe(g){var S=0;return g&4&&(S|=1920),g&2&&(S|=788968),g&1&&(S|=111551),S}function F(g,S,H){if(!(!H||!e.isStringLiteralLike(H.moduleSpecifier))){var se=e.getResolvedModule(g,H.moduleSpecifier.text,e.getModeForUsageLocation(g,H.moduleSpecifier));if(!!se)return S.program.getSourceFile(se.resolvedFileName)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="returnValueCorrect",W="fixAddReturnStatement",N="fixRemoveBracesFromArrowFunctionBody",Q="fixWrapTheBlockWithParen",pe=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],F;(function(M){M[M.MissingReturnStatement=0]="MissingReturnStatement",M[M.MissingParentheses=1]="MissingParentheses"})(F||(F={})),O.registerCodeFix({errorCodes:pe,fixIds:[W,N,Q],getCodeActions:function(x){var ie=x.program,_e=x.sourceFile,Y=x.span.start,Z=x.errorCode,k=se(ie.getTypeChecker(),_e,Y,Z);if(!!k)return k.kind===F.MissingReturnStatement?e.append([ue(x,k.expression,k.statement)],e.isArrowFunction(k.declaration)?B(x,k.declaration,k.expression,k.commentSource):void 0):[re(x,k.declaration,k.expression)]},getAllCodeActions:function(M){return O.codeFixAll(M,pe,function(x,ie){var _e=se(M.program.getTypeChecker(),ie.file,ie.start,ie.code);if(!!_e)switch(M.fixId){case W:C(x,ie.file,_e.expression,_e.statement);break;case N:if(!e.isArrowFunction(_e.declaration))return;G(x,ie.file,_e.declaration,_e.expression,_e.commentSource,!1);break;case Q:if(!e.isArrowFunction(_e.declaration))return;E(x,ie.file,_e.declaration,_e.expression);break;default:e.Debug.fail(JSON.stringify(M.fixId))}})}});function g(M,x,ie){var _e=M.createSymbol(4,x.escapedText);_e.type=M.getTypeAtLocation(ie);var Y=e.createSymbolTable([_e]);return M.createAnonymousType(void 0,Y,[],[],[])}function S(M,x,ie,_e){if(!(!x.body||!e.isBlock(x.body)||e.length(x.body.statements)!==1)){var Y=e.first(x.body.statements);if(e.isExpressionStatement(Y)&&H(M,x,M.getTypeAtLocation(Y.expression),ie,_e))return{declaration:x,kind:F.MissingReturnStatement,expression:Y.expression,statement:Y,commentSource:Y.expression};if(e.isLabeledStatement(Y)&&e.isExpressionStatement(Y.statement)){var Z=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(Y.label,Y.statement.expression)]),k=g(M,Y.label,Y.statement.expression);if(H(M,x,k,ie,_e))return e.isArrowFunction(x)?{declaration:x,kind:F.MissingParentheses,expression:Z,statement:Y,commentSource:Y.statement.expression}:{declaration:x,kind:F.MissingReturnStatement,expression:Z,statement:Y,commentSource:Y.statement.expression}}else if(e.isBlock(Y)&&e.length(Y.statements)===1){var I=e.first(Y.statements);if(e.isLabeledStatement(I)&&e.isExpressionStatement(I.statement)){var Z=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(I.label,I.statement.expression)]),k=g(M,I.label,I.statement.expression);if(H(M,x,k,ie,_e))return{declaration:x,kind:F.MissingReturnStatement,expression:Z,statement:Y,commentSource:I}}}}}function H(M,x,ie,_e,Y){if(Y){var Z=M.getSignatureFromDeclaration(x);if(Z){e.hasSyntacticModifier(x,256)&&(ie=M.createPromiseType(ie));var k=M.createSignature(x,Z.typeParameters,Z.thisParameter,Z.parameters,ie,void 0,Z.minArgumentCount,Z.flags);ie=M.createAnonymousType(void 0,e.createSymbolTable(),[k],[],[])}else ie=M.getAnyType()}return M.isTypeAssignableTo(ie,_e)}function se(M,x,ie,_e){var Y=e.getTokenAtPosition(x,ie);if(!!Y.parent){var Z=e.findAncestor(Y.parent,e.isFunctionLikeDeclaration);switch(_e){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!Z||!Z.body||!Z.type||!e.rangeContainsRange(Z.type,Y)?void 0:S(M,Z,M.getTypeFromTypeNode(Z.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!Z||!e.isCallExpression(Z.parent)||!Z.body)return;var k=Z.parent.arguments.indexOf(Z),I=M.getContextualTypeForArgumentAtIndex(Z.parent,k);return I?S(M,Z,I,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(Y)||!e.isVariableLike(Y.parent)&&!e.isJsxAttribute(Y.parent))return;var ne=p(Y.parent);return!ne||!e.isFunctionLikeDeclaration(ne)||!ne.body?void 0:S(M,ne,M.getTypeAtLocation(Y.parent),!0)}}}function p(M){switch(M.kind){case 253:case 163:case 202:case 166:case 294:return M.initializer;case 284:return M.initializer&&(e.isJsxExpression(M.initializer)?M.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}function C(M,x,ie,_e){e.suppressLeadingAndTrailingTrivia(ie);var Y=e.probablyUsesSemicolons(x);M.replaceNode(x,_e,e.factory.createReturnStatement(ie),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:Y?";":void 0})}function G(M,x,ie,_e,Y,Z){var k=Z||e.needsParentheses(_e)?e.factory.createParenthesizedExpression(_e):_e;e.suppressLeadingAndTrailingTrivia(Y),e.copyComments(Y,k),M.replaceNode(x,ie.body,k)}function E(M,x,ie,_e){M.replaceNode(x,ie.body,e.factory.createParenthesizedExpression(_e))}function ue(M,x,ie){var _e=e.textChanges.ChangeTracker.with(M,function(Y){return C(Y,M.sourceFile,x,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Add_a_return_statement,W,e.Diagnostics.Add_all_missing_return_statement)}function B(M,x,ie,_e){var Y=e.textChanges.ChangeTracker.with(M,function(Z){return G(Z,M.sourceFile,x,ie,_e,!1)});return O.createCodeFixAction(L,Y,e.Diagnostics.Remove_braces_from_arrow_function_body,N,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function re(M,x,ie){var _e=e.textChanges.ChangeTracker.with(M,function(Y){return E(Y,M.sourceFile,x,ie)});return O.createCodeFixAction(L,_e,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Q,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixMissingMember",W="fixMissingProperties",N="fixMissingAttributes",Q="fixMissingFunctionDeclaration",pe=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];O.registerCodeFix({errorCodes:pe,getCodeActions:function(A){var f=A.program.getTypeChecker(),P=g(A.sourceFile,A.span.start,A.errorCode,f,A.program);if(!!P){if(P.kind===3){var D=e.textChanges.ChangeTracker.with(A,function(l){return Z(l,A,P)});return[O.createCodeFixAction(W,D,e.Diagnostics.Add_missing_properties,W,e.Diagnostics.Add_all_missing_properties)]}if(P.kind===4){var D=e.textChanges.ChangeTracker.with(A,function(_){return Y(_,A,P)});return[O.createCodeFixAction(N,D,e.Diagnostics.Add_missing_attributes,N,e.Diagnostics.Add_all_missing_attributes)]}if(P.kind===2){var D=e.textChanges.ChangeTracker.with(A,function(_){return _e(_,A,P)});return[O.createCodeFixAction(Q,D,[e.Diagnostics.Add_missing_function_declaration_0,P.token.text],Q,e.Diagnostics.Add_all_missing_function_declarations)]}if(P.kind===0){var D=e.textChanges.ChangeTracker.with(A,function(_){return ie(_,A.program.getTypeChecker(),P)});return[O.createCodeFixAction(L,D,[e.Diagnostics.Add_missing_enum_member_0,P.token.text],L,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(M(A,P),H(A,P))}},fixIds:[L,Q,W,N],getAllCodeActions:function(A){var f=A.program,P=A.fixId,D=f.getTypeChecker(),l=new e.Map,_=new e.Map;return O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(A,function(J){O.eachDiagnostic(A,pe,function(w){var j=g(w.file,w.start,w.code,D,A.program);if(!(!j||!e.addToSeen(l,e.getNodeId(j.parentDeclaration)+"#"+j.token.text))){if(P===Q&&j.kind===2)_e(J,A,j);else if(P===W&&j.kind===3)Z(J,A,j);else if(P===N&&j.kind===4)Y(J,A,j);else if(j.kind===0&&ie(J,D,j),j.kind===1){var U=j.parentDeclaration,z=j.token,y=e.getOrUpdate(_,U,function(){return[]});y.some(function(oe){return oe.token.text===z.text})||y.push(j)}}}),_.forEach(function(w,j){for(var U=O.getAllSupers(j,D),z=function(ce){if(U.some(function(He){var ar=_.get(He);return!!ar&&ar.some(function(gr){var me=gr.token;return me.text===ce.token.text})}))return"continue";var m=ce.parentDeclaration,de=ce.declSourceFile,ae=ce.modifierFlags,V=ce.token,le=ce.call,ke=ce.isJSFile;if(le&&!e.isPrivateIdentifier(V))x(A,J,le,V,ae&32,m,de);else if(ke&&!e.isInterfaceDeclaration(m))p(J,de,m,V,!!(ae&32));else{var Ue=E(f.getTypeChecker(),m,V);ue(J,de,m,V.text,Ue,ae&32)}},y=0,oe=w;y<oe.length;y++){var ve=oe[y];z(ve)}})}))}});var F;(function(A){A[A.Enum=0]="Enum",A[A.ClassOrInterface=1]="ClassOrInterface",A[A.Function=2]="Function",A[A.ObjectLiteral=3]="ObjectLiteral",A[A.JsxAttributes=4]="JsxAttributes"})(F||(F={}));function g(A,f,P,D,l){var _=e.getTokenAtPosition(A,f),J=_.parent;if(P===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(_.kind===18&&e.isObjectLiteralExpression(J)&&e.isCallExpression(J.parent)))return;var w=e.findIndex(J.parent.arguments,function(Ge){return Ge===J});if(w<0)return;var j=e.singleOrUndefined(D.getSignaturesOfType(D.getTypeAtLocation(J.parent.expression),0));if(!(j&&j.declaration&&j.parameters[w]))return;var U=j.parameters[w].valueDeclaration;if(!(U&&e.isParameter(U)&&e.isIdentifier(U.name)))return;var z=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(J),D.getTypeAtLocation(U),!1,!1));return e.length(z)?{kind:3,token:U.name,properties:z,indentation:0,parentDeclaration:J}:void 0}if(!!e.isMemberName(_)){if(e.isIdentifier(_)&&e.hasInitializer(J)&&J.initializer&&e.isObjectLiteralExpression(J.initializer)){var z=e.arrayFrom(D.getUnmatchedProperties(D.getTypeAtLocation(J.initializer),D.getTypeAtLocation(_),!1,!1));return e.length(z)?{kind:3,token:_,properties:z,indentation:void 0,parentDeclaration:J.initializer}:void 0}if(e.isIdentifier(_)&&e.isJsxOpeningLikeElement(_.parent)){var y=e.getEmitScriptTarget(l.getCompilerOptions()),oe=ee(D,y,_.parent);return e.length(oe)?{kind:4,token:_,attributes:oe,parentDeclaration:_.parent}:void 0}if(e.isIdentifier(_)&&e.isCallExpression(J))return{kind:2,token:_,call:J,sourceFile:A,modifierFlags:0,parentDeclaration:A};if(!!e.isPropertyAccessExpression(J)){var ve=e.skipConstraint(D.getTypeAtLocation(J.expression)),ce=ve.symbol;if(!(!ce||!ce.declarations)){if(e.isIdentifier(_)&&e.isCallExpression(J.parent)){var m=e.find(ce.declarations,e.isModuleDeclaration),de=m==null?void 0:m.getSourceFile();if(m&&de&&!S(l,de))return{kind:2,token:_,call:J.parent,sourceFile:A,modifierFlags:1,parentDeclaration:m};var ae=e.find(ce.declarations,e.isSourceFile);if(A.commonJsModuleIndicator)return;if(ae&&!S(l,ae))return{kind:2,token:_,call:J.parent,sourceFile:ae,modifierFlags:1,parentDeclaration:ae}}var V=e.find(ce.declarations,e.isClassLike);if(!(!V&&e.isPrivateIdentifier(_))){var le=V||e.find(ce.declarations,e.isInterfaceDeclaration);if(le&&!S(l,le.getSourceFile())){var ke=(ve.target||ve)!==D.getDeclaredTypeOfSymbol(ce);if(ke&&(e.isPrivateIdentifier(_)||e.isInterfaceDeclaration(le)))return;var Ue=le.getSourceFile(),He=(ke?32:0)|(e.startsWithUnderscore(_.text)?8:0),ar=e.isSourceFileJS(Ue),gr=e.tryCast(J.parent,e.isCallExpression);return{kind:1,token:_,call:gr,modifierFlags:He,parentDeclaration:le,declSourceFile:Ue,isJSFile:ar}}var me=e.find(ce.declarations,e.isEnumDeclaration);if(me&&!e.isPrivateIdentifier(_)&&!S(l,me.getSourceFile()))return{kind:0,token:_,parentDeclaration:me}}}}}}function S(A,f){return A.isSourceFileFromExternalLibrary(f)||A.isSourceFileDefaultLibrary(f)}function H(A,f){return f.isJSFile?e.singleElementArray(se(A,f)):G(A,f)}function se(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token;if(!e.isInterfaceDeclaration(P)){var J=e.textChanges.ChangeTracker.with(A,function(j){return p(j,D,P,_,!!(l&32))});if(J.length!==0){var w=l&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(_)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return O.createCodeFixAction(L,J,[w,_.text],L,e.Diagnostics.Add_all_missing_members)}}}function p(A,f,P,D,l){var _=D.text;if(l){if(P.kind===225)return;var J=P.name.getText(),w=C(e.factory.createIdentifier(J),_);A.insertNodeAfter(f,P,w)}else if(e.isPrivateIdentifier(D)){var j=e.factory.createPropertyDeclaration(void 0,void 0,_,void 0,void 0,void 0),U=B(P);U?A.insertNodeAfter(f,U,j):A.insertNodeAtClassStart(f,P,j)}else{var z=e.getFirstConstructorWithBody(P);if(!z)return;var y=C(e.factory.createThis(),_);A.insertNodeAtConstructorEnd(f,z,y)}}function C(A,f){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(A,f),I()))}function G(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token,J=_.text,w=l&32,j=E(A.program.getTypeChecker(),P,_),U=function(y){return e.textChanges.ChangeTracker.with(A,function(oe){return ue(oe,D,P,J,j,y)})},z=[O.createCodeFixAction(L,U(l&32),[w?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,J],L,e.Diagnostics.Add_all_missing_members)];return w||e.isPrivateIdentifier(_)||(l&8&&z.unshift(O.createCodeFixActionWithoutFixAll(L,U(8),[e.Diagnostics.Declare_private_property_0,J])),z.push(re(A,D,P,_.text,j))),z}function E(A,f,P){var D;if(P.parent.parent.kind===220){var l=P.parent.parent,_=P.parent===l.left?l.right:l.left,J=A.getWidenedType(A.getBaseTypeOfLiteralType(A.getTypeAtLocation(_)));D=A.typeToTypeNode(J,f,1)}else{var w=A.getContextualType(P.parent);D=w?A.typeToTypeNode(w,void 0,1):void 0}return D||e.factory.createKeywordTypeNode(130)}function ue(A,f,P,D,l,_){var J=e.factory.createPropertyDeclaration(void 0,_?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(_)):void 0,D,void 0,l,void 0),w=B(P);w?A.insertNodeAfter(f,w,J):A.insertNodeAtClassStart(f,P,J)}function B(A){for(var f,P=0,D=A.members;P<D.length;P++){var l=D[P];if(!e.isPropertyDeclaration(l))break;f=l}return f}function re(A,f,P,D,l){var _=e.factory.createKeywordTypeNode(149),J=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,_,void 0),w=e.factory.createIndexSignature(void 0,void 0,[J],l),j=e.textChanges.ChangeTracker.with(A,function(U){return U.insertNodeAtClassStart(f,P,w)});return O.createCodeFixActionWithoutFixAll(L,j,[e.Diagnostics.Add_index_signature_for_property_0,D])}function M(A,f){var P=f.parentDeclaration,D=f.declSourceFile,l=f.modifierFlags,_=f.token,J=f.call;if(J!==void 0&&!e.isPrivateIdentifier(_)){var w=_.text,j=function(z){return e.textChanges.ChangeTracker.with(A,function(y){return x(A,y,J,_,z,P,D)})},U=[O.createCodeFixAction(L,j(l&32),[l&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,w],L,e.Diagnostics.Add_all_missing_members)];return l&8&&U.unshift(O.createCodeFixActionWithoutFixAll(L,j(8),[e.Diagnostics.Declare_private_method_0,w])),U}}function x(A,f,P,D,l,_,J){var w=O.createImportAdder(J,A.program,A.preferences,A.host),j=O.createSignatureDeclarationFromCallExpression(168,A,w,P,D,l,_),U=e.findAncestor(P,function(z){return e.isMethodDeclaration(z)||e.isConstructorDeclaration(z)});U&&U.parent===_?f.insertNodeAfter(J,U,j):f.insertNodeAtClassStart(J,_,j),w.writeFixes(f)}function ie(A,f,P){var D=P.token,l=P.parentDeclaration,_=e.some(l.members,function(w){var j=f.getTypeAtLocation(w);return!!(j&&j.flags&402653316)}),J=e.factory.createEnumMember(D,_?e.factory.createStringLiteral(D.text):void 0);A.replaceNode(l.getSourceFile(),l,e.factory.updateEnumDeclaration(l,l.decorators,l.modifiers,l.name,e.concatenate(l.members,e.singleElementArray(J))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function _e(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=O.createSignatureDeclarationFromCallExpression(255,f,D,P.call,e.idText(P.token),P.modifierFlags,P.parentDeclaration);A.insertNodeAtEndOfScope(P.sourceFile,P.parentDeclaration,l)}function Y(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=e.getQuotePreference(f.sourceFile,f.preferences),_=f.program.getTypeChecker(),J=P.parentDeclaration.attributes,w=e.some(J.properties,e.isJsxSpreadAttribute),j=e.map(P.attributes,function(y){var oe=k(f,_,D,l,_.getTypeOfSymbol(y)),ve=e.factory.createIdentifier(y.name),ce=e.factory.createJsxAttribute(ve,e.factory.createJsxExpression(void 0,oe));return e.setParent(ve,ce),ce}),U=e.factory.createJsxAttributes(w?qe(qe([],j,!0),J.properties,!0):qe(qe([],J.properties,!0),j,!0)),z={prefix:J.pos===J.end?" ":void 0};A.replaceNode(f.sourceFile,J,U,z)}function Z(A,f,P){var D=O.createImportAdder(f.sourceFile,f.program,f.preferences,f.host),l=e.getQuotePreference(f.sourceFile,f.preferences),_=e.getEmitScriptTarget(f.program.getCompilerOptions()),J=f.program.getTypeChecker(),w=e.map(P.properties,function(U){var z=k(f,J,D,l,J.getTypeOfSymbol(U));return e.factory.createPropertyAssignment(e.createPropertyNameNodeForIdentifierOrLiteral(U.name,_,l===0),z)}),j={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:P.indentation};A.replaceNode(f.sourceFile,P.parentDeclaration,e.factory.createObjectLiteralExpression(qe(qe([],P.parentDeclaration.properties,!0),w,!0),!0),j)}function k(A,f,P,D,l){if(l.flags&3)return I();if(l.flags&134217732)return e.factory.createStringLiteral("",D===0);if(l.flags&8)return e.factory.createNumericLiteral(0);if(l.flags&64)return e.factory.createBigIntLiteral("0n");if(l.flags&16)return e.factory.createFalse();if(l.flags&1056){var _=l.symbol.exports?e.firstOrUndefined(e.arrayFrom(l.symbol.exports.values())):l.symbol,J=f.symbolToExpression(l.symbol.parent?l.symbol.parent:l.symbol,111551,void 0,void 0);return _===void 0||J===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(J,f.symbolToString(_))}if(l.flags&256)return e.factory.createNumericLiteral(l.value);if(l.flags&2048)return e.factory.createBigIntLiteral(l.value);if(l.flags&128)return e.factory.createStringLiteral(l.value,D===0);if(l.flags&512)return l===f.getFalseType()||l===f.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(l.flags&65536)return e.factory.createNull();if(l.flags&1048576){var w=e.firstDefined(l.types,function(ce){return k(A,f,P,D,ce)});return w!=null?w:I()}if(f.isArrayLikeType(l))return e.factory.createArrayLiteralExpression();if(ne(l)){var j=e.map(f.getPropertiesOfType(l),function(ce){var m=ce.valueDeclaration?k(A,f,P,D,f.getTypeAtLocation(ce.valueDeclaration)):I();return e.factory.createPropertyAssignment(ce.name,m)});return e.factory.createObjectLiteralExpression(j,!0)}if(e.getObjectFlags(l)&16){var U=e.find(l.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(U===void 0)return I();var z=f.getSignaturesOfType(l,0);if(z===void 0)return I();var y=O.createSignatureDeclarationFromSignature(212,A,D,z[0],O.createStubbedBody(e.Diagnostics.Function_not_implemented.message,D),void 0,void 0,void 0,void 0,P);return y!=null?y:I()}if(e.getObjectFlags(l)&1){var oe=e.getClassLikeDeclarationOfSymbol(l.symbol);if(oe===void 0||e.hasAbstractModifier(oe))return I();var ve=e.getFirstConstructorWithBody(oe);return ve&&e.length(ve.parameters)?I():e.factory.createNewExpression(e.factory.createIdentifier(l.symbol.name),void 0,void 0)}return I()}function I(){return e.factory.createIdentifier("undefined")}function ne(A){return A.flags&524288&&(e.getObjectFlags(A)&128||A.symbol&&e.tryCast(e.singleOrUndefined(A.symbol.declarations),e.isTypeLiteralNode))}function ee(A,f,P){var D=A.getContextualType(P.attributes);if(D===void 0)return e.emptyArray;var l=D.getProperties();if(!e.length(l))return e.emptyArray;for(var _=new e.Set,J=0,w=P.attributes.properties;J<w.length;J++){var j=w[J];if(e.isJsxAttribute(j)&&_.add(j.name.escapedText),e.isJsxSpreadAttribute(j))for(var U=A.getTypeAtLocation(j.expression),z=0,y=U.getProperties();z<y.length;z++){var oe=y[z];_.add(oe.escapedName)}}return e.filter(l,function(ve){return e.isIdentifierText(ve.name,f,1)&&!(ve.flags&16777216||e.getCheckFlags(ve)&48||_.has(ve.escapedName))})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addMissingNewOperator",W=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=e.textChanges.ChangeTracker.with(pe,function(H){return N(H,F,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Add_missing_new_operator_to_call,L,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,pe.sourceFile,g)})}});function N(pe,F,g){var S=e.cast(Q(F,g),e.isCallExpression),H=e.factory.createNewExpression(S.expression,S.typeArguments,S.arguments);pe.replaceNode(F,S,H)}function Q(pe,F){for(var g=e.getTokenAtPosition(pe,F.start),S=e.textSpanEnd(F);g.end<S;)g=g.parent;return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixCannotFindModule",W="installTypesPackage",N=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Q=[N,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];O.registerCodeFix({errorCodes:Q,getCodeActions:function(H){var se=H.host,p=H.sourceFile,C=H.span.start,G=F(p,C);if(G!==void 0){var E=g(G,se,H.errorCode);return E===void 0?[]:[O.createCodeFixAction(L,[],[e.Diagnostics.Install_0,E],W,e.Diagnostics.Install_all_missing_types_packages,pe(p.fileName,E))]}},fixIds:[W],getAllCodeActions:function(S){return O.codeFixAll(S,Q,function(H,se,p){var C=F(se.file,se.start);if(C!==void 0)switch(S.fixId){case W:{var G=g(C,S.host,se.code);G&&p.push(pe(se.file.fileName,G));break}default:e.Debug.fail("Bad fixId: ".concat(S.fixId))}})}});function pe(S,H){return{type:"install package",file:S,packageName:H}}function F(S,H){var se=e.tryCast(e.getTokenAtPosition(S,H),e.isStringLiteral);if(!!se){var p=se.text,C=e.parsePackageName(p).packageName;return e.isExternalModuleNameRelative(C)?void 0:C}}function g(S,H,se){var p;return se===N?e.JsTyping.nodeCoreModules.has(S)?"@types/node":void 0:!((p=H.isKnownTypesPackageName)===null||p===void 0)&&p.call(H,S)?e.getTypesPackageName(S):void 0}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],W="fixClassDoesntImplementInheritedAbstractMember";O.registerCodeFix({errorCodes:L,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=e.textChanges.ChangeTracker.with(g,function(p){return Q(N(S,H.start),S,g,p,g.preferences)});return se.length===0?void 0:[O.createCodeFixAction(W,se,e.Diagnostics.Implement_inherited_abstract_class,W,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[W],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,L,function(H,se){var p=N(se.file,se.start);e.addToSeen(S,e.getNodeId(p))&&Q(p,g.sourceFile,g,H,g.preferences)})}});function N(F,g){var S=e.getTokenAtPosition(F,g);return e.cast(S.parent,e.isClassLike)}function Q(F,g,S,H,se){var p=e.getEffectiveBaseTypeNode(F),C=S.program.getTypeChecker(),G=C.getTypeAtLocation(p),E=C.getPropertiesOfType(G).filter(pe),ue=O.createImportAdder(g,S.program,se,S.host);O.createMissingMemberNodes(F,E,g,S,se,ue,function(B){return H.insertNodeAtClassStart(g,F,B)}),ue.writeFixes(H)}function pe(F){var g=e.getSyntacticModifierFlags(e.first(F.getDeclarations()));return!(g&8)&&!!(g&128)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="classSuperMustPrecedeThisAccess",W=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=Q(g,S.start);if(!!H){var se=H.constructor,p=H.superCall,C=e.textChanges.ChangeTracker.with(F,function(G){return N(G,g,se,p)});return[O.createCodeFixAction(L,C,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,L,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[L],getAllCodeActions:function(F){var g=F.sourceFile,S=new e.Map;return O.codeFixAll(F,W,function(H,se){var p=Q(se.file,se.start);if(!!p){var C=p.constructor,G=p.superCall;e.addToSeen(S,e.getNodeId(C.parent))&&N(H,g,C,G)}})}});function N(F,g,S,H){F.insertNodeAtConstructorStart(g,S,H),F.delete(g,H)}function Q(F,g){var S=e.getTokenAtPosition(F,g);if(S.kind===108){var H=e.getContainingFunction(S),se=pe(H.body);return se&&!se.expression.arguments.some(function(p){return e.isPropertyAccessExpression(p)&&p.expression===S})?{constructor:H,superCall:se}:void 0}}function pe(F){return e.isExpressionStatement(F)&&e.isSuperCall(F.expression)?F:e.isFunctionLike(F)?void 0:e.forEachChild(F,pe)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="constructorForDerivedNeedSuperCall",W=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=N(F,g.start),H=e.textChanges.ChangeTracker.with(pe,function(se){return Q(se,F,S)});return[O.createCodeFixAction(L,H,e.Diagnostics.Add_missing_super_call,L,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return Q(F,pe.sourceFile,N(g.file,g.start))})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);return e.Debug.assert(e.isConstructorDeclaration(g.parent),"token should be at the constructor declaration"),g.parent}function Q(pe,F,g){var S=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));pe.insertNodeAtConstructorStart(F,g,S)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="enableExperimentalDecorators",W=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getCompilerOptions().configFile;if(F!==void 0){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,F)});return[O.createCodeFixActionWithoutFixAll(L,g,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe){var F=Q.program.getCompilerOptions().configFile;F!==void 0&&N(pe,F)})}});function N(Q,pe){O.setJsonCompilerOptionValue(Q,pe,"experimentalDecorators",e.factory.createTrue())}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixEnableJsxFlag",W=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getCompilerOptions().configFile;if(F!==void 0){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,F)});return[O.createCodeFixActionWithoutFixAll(L,g,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe){var F=Q.program.getCompilerOptions().configFile;F!==void 0&&N(pe,F)})}});function N(Q,pe){O.setJsonCompilerOptionValue(Q,pe,"jsx",e.factory.createStringLiteral("react"))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){O.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(W){var N=W.program.getCompilerOptions(),Q=N.configFile;if(Q!==void 0){var pe=[],F=e.getEmitModuleKind(N),g=F>=e.ModuleKind.ES2015&&F<e.ModuleKind.ESNext;if(g){var S=e.textChanges.ChangeTracker.with(W,function(p){O.setJsonCompilerOptionValue(p,Q,"module",e.factory.createStringLiteral("esnext"))});pe.push(O.createCodeFixActionWithoutFixAll("fixModuleOption",S,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var H=e.getEmitScriptTarget(N),se=H<4||H>99;if(se){var S=e.textChanges.ChangeTracker.with(W,function(C){var G=e.getTsConfigObjectLiteralExpression(Q);if(!!G){var E=[["target",e.factory.createStringLiteral("es2017")]];F===e.ModuleKind.CommonJS&&E.push(["module",e.factory.createStringLiteral("commonjs")]),O.setJsonCompilerOptionValues(C,Q,E)}});pe.push(O.createCodeFixActionWithoutFixAll("fixTargetOption",S,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return pe.length?pe:void 0}}})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixPropertyAssignment",W=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=Q(F,g.start),H=e.textChanges.ChangeTracker.with(pe,function(se){return N(se,pe.sourceFile,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Change_0_to_1,"=",":"],L,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,Q(g.file,g.start))})}});function N(pe,F,g){pe.replaceNode(F,g,e.factory.createPropertyAssignment(g.name,g.objectAssignmentInitializer))}function Q(pe,F){return e.cast(e.getTokenAtPosition(pe,F).parent,e.isShorthandPropertyAssignment)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="extendsInterfaceBecomesImplements",W=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=N(F,pe.span.start);if(!!g){var S=g.extendsToken,H=g.heritageClauses,se=e.textChanges.ChangeTracker.with(pe,function(p){return Q(p,F,S,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Change_extends_to_implements,L,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S.extendsToken,S.heritageClauses)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F),S=e.getContainingClass(g).heritageClauses,H=S[0].getFirstToken();return H.kind===94?{extendsToken:H,heritageClauses:S}:void 0}function Q(pe,F,g,S){if(pe.replaceNode(F,g,e.factory.createToken(117)),S.length===2&&S[0].token===94&&S[1].token===117){var H=S[1].getFirstToken(),se=H.getFullStart();pe.replaceRange(F,{pos:se,end:se},e.factory.createToken(27));for(var p=F.text,C=H.end;C<p.length&&e.isWhiteSpaceSingleLine(p.charCodeAt(C));)C++;pe.deleteRange(F,{pos:H.getStart(),end:C})}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="forgottenThisPropertyAccess",W=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,N=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,W];O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=Q(g,F.span.start,F.errorCode);if(!!S){var H=e.textChanges.ChangeTracker.with(F,function(se){return pe(se,g,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Add_0_to_unresolved_variable,S.className||"this"],L,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){var H=Q(S.file,S.start,S.code);H&&pe(g,F.sourceFile,H)})}});function Q(F,g,S){var H=e.getTokenAtPosition(F,g);if(e.isIdentifier(H)||e.isPrivateIdentifier(H))return{node:H,className:S===W?e.getContainingClass(H).name.text:void 0}}function pe(F,g,S){var H=S.node,se=S.className;e.suppressLeadingAndTrailingTrivia(H),F.replaceNode(g,H,e.factory.createPropertyAccessExpression(se?e.factory.createIdentifier(se):e.factory.createThis(),H))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixInvalidJsxCharacters_expression",W="fixInvalidJsxCharacters_htmlEntity",N=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];O.registerCodeFix({errorCodes:N,fixIds:[L,W],getCodeActions:function(g){var S=g.sourceFile,H=g.preferences,se=g.span,p=e.textChanges.ChangeTracker.with(g,function(G){return F(G,H,S,se.start,!1)}),C=e.textChanges.ChangeTracker.with(g,function(G){return F(G,H,S,se.start,!0)});return[O.createCodeFixAction(L,p,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,L,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),O.createCodeFixAction(W,C,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,W,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(g){return O.codeFixAll(g,N,function(S,H){return F(S,g.preferences,H.file,H.start,g.fixId===W)})}});var Q={">":">","}":"}"};function pe(g){return e.hasProperty(Q,g)}function F(g,S,H,se,p){var C=H.getText()[se];if(!!pe(C)){var G=p?Q[C]:"{".concat(e.quote(H,S,C),"}");g.replaceRangeWithText(H,{pos:se,end:se+1},G)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="deleteUnmatchedParameter",W="renameUnmatchedParameter",N=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];O.registerCodeFix({fixIds:[L,W],errorCodes:N,getCodeActions:function(S){var H=S.sourceFile,se=S.span,p=[],C=F(H,se.start);if(C)return e.append(p,Q(S,C)),e.append(p,pe(S,C)),p},getAllCodeActions:function(S){var H=new e.Map;return O.createCombinedCodeActions(e.textChanges.ChangeTracker.with(S,function(se){O.eachDiagnostic(S,N,function(p){var C=p.file,G=p.start,E=F(C,G);E&&H.set(E.signature,e.append(H.get(E.signature),E.jsDocParameterTag))}),H.forEach(function(p,C){if(S.fixId===L){var G=new e.Set(p);se.filterJSDocTags(C.getSourceFile(),C,function(E){return!G.has(E)})}})}))}});function Q(g,S){var H=S.name,se=S.signature,p=S.jsDocParameterTag,C=e.textChanges.ChangeTracker.with(g,function(G){return G.filterJSDocTags(g.sourceFile,se,function(E){return E!==p})});return O.createCodeFixAction(L,C,[e.Diagnostics.Delete_unused_param_tag_0,H.getText(g.sourceFile)],L,e.Diagnostics.Delete_all_unused_param_tags)}function pe(g,S){var H=S.name,se=S.signature,p=S.jsDocParameterTag;if(!!e.length(se.parameters)){for(var C=g.sourceFile,G=e.getJSDocTags(se),E=new e.Set,ue=0,B=G;ue<B.length;ue++){var re=B[ue];e.isJSDocParameterTag(re)&&e.isIdentifier(re.name)&&E.add(re.name.escapedText)}var M=e.firstDefined(se.parameters,function(_e){return e.isIdentifier(_e.name)&&!E.has(_e.name.escapedText)?_e.name.getText(C):void 0});if(M!==void 0){var x=e.factory.updateJSDocParameterTag(p,p.tagName,e.factory.createIdentifier(M),p.isBracketed,p.typeExpression,p.isNameFirst,p.comment),ie=e.textChanges.ChangeTracker.with(g,function(_e){return _e.replaceJSDocComment(C,se,e.map(G,function(Y){return Y===p?x:Y}))});return O.createCodeFixActionWithoutFixAll(W,ie,[e.Diagnostics.Rename_param_tag_name_0_to_1,H.getText(C),M])}}}function F(g,S){var H=e.getTokenAtPosition(g,S);if(H.parent&&e.isJSDocParameterTag(H.parent)&&e.isIdentifier(H.parent.name)){var se=H.parent,p=e.getHostSignatureFromJSDoc(se);if(p)return{signature:p,name:H.parent.name,jsDocParameterTag:se}}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="unusedIdentifier",W="unusedIdentifier_prefix",N="unusedIdentifier_delete",Q="unusedIdentifier_deleteImports",pe="unusedIdentifier_infer",F=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];O.registerCodeFix({errorCodes:F,getCodeActions:function(I){var ne=I.errorCode,ee=I.sourceFile,A=I.program,f=I.cancellationToken,P=A.getTypeChecker(),D=A.getSourceFiles(),l=e.getTokenAtPosition(ee,I.span.start);if(e.isJSDocTemplateTag(l))return[S(e.textChanges.ChangeTracker.with(I,function(ve){return ve.delete(ee,l)}),e.Diagnostics.Remove_template_tag)];if(l.kind===29){var _=e.textChanges.ChangeTracker.with(I,function(ve){return H(ve,ee,l)});return[S(_,e.Diagnostics.Remove_type_parameters)]}var J=p(l);if(J){var _=e.textChanges.ChangeTracker.with(I,function(ce){return ce.delete(ee,J)});return[O.createCodeFixAction(L,_,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(J)],Q,e.Diagnostics.Delete_all_unused_imports)]}else if(se(l)){var w=e.textChanges.ChangeTracker.with(I,function(ve){return re(ee,l,ve,P,D,A,f,!1)});if(w.length)return[O.createCodeFixAction(L,w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,l.getText(ee)],Q,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(l.parent)||e.isArrayBindingPattern(l.parent)){if(e.isParameter(l.parent.parent)){var j=l.parent.elements,U=[j.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(j,function(ve){return ve.getText(ee)}).join(", ")];return[S(e.textChanges.ChangeTracker.with(I,function(ve){return E(ve,ee,l.parent)}),U)]}return[S(e.textChanges.ChangeTracker.with(I,function(ve){return ve.delete(ee,l.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(C(ee,l))return[S(e.textChanges.ChangeTracker.with(I,function(ve){return G(ve,ee,l.parent)}),e.Diagnostics.Remove_variable_statement)];var z=[];if(l.kind===137){var _=e.textChanges.ChangeTracker.with(I,function(ce){return g(ce,ee,l)}),y=e.cast(l.parent,e.isInferTypeNode).typeParameter.name.text;z.push(O.createCodeFixAction(L,_,[e.Diagnostics.Replace_infer_0_with_unknown,y],pe,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var w=e.textChanges.ChangeTracker.with(I,function(ce){return re(ee,l,ce,P,D,A,f,!1)});if(w.length){var y=e.isComputedPropertyName(l.parent)?l.parent:l;z.push(S(w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,y.getText(ee)]))}}var oe=e.textChanges.ChangeTracker.with(I,function(ve){return ue(ve,ne,ee,l)});return oe.length&&z.push(O.createCodeFixAction(L,oe,[e.Diagnostics.Prefix_0_with_an_underscore,l.getText(ee)],W,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),z},fixIds:[W,N,Q,pe],getAllCodeActions:function(I){var ne=I.sourceFile,ee=I.program,A=I.cancellationToken,f=ee.getTypeChecker(),P=ee.getSourceFiles();return O.codeFixAll(I,F,function(D,l){var _=e.getTokenAtPosition(ne,l.start);switch(I.fixId){case W:ue(D,l.code,ne,_);break;case Q:{var J=p(_);J?D.delete(ne,J):se(_)&&re(ne,_,D,f,P,ee,A,!0);break}case N:{if(_.kind===137||se(_))break;if(e.isJSDocTemplateTag(_))D.delete(ne,_);else if(_.kind===29)H(D,ne,_);else if(e.isObjectBindingPattern(_.parent)){if(_.parent.parent.initializer)break;(!e.isParameter(_.parent.parent)||ie(_.parent.parent,f,P))&&D.delete(ne,_.parent.parent)}else{if(e.isArrayBindingPattern(_.parent.parent)&&_.parent.parent.parent.initializer)break;C(ne,_)?G(D,ne,_.parent):re(ne,_,D,f,P,ee,A,!0)}break}case pe:_.kind===137&&g(D,ne,_);break;default:e.Debug.fail(JSON.stringify(I.fixId))}})}});function g(I,ne,ee){I.replaceNode(ne,ee.parent,e.factory.createKeywordTypeNode(154))}function S(I,ne){return O.createCodeFixAction(L,I,ne,N,e.Diagnostics.Delete_all_unused_declarations)}function H(I,ne,ee){I.delete(ne,e.Debug.checkDefined(e.cast(ee.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function se(I){return I.kind===100||I.kind===79&&(I.parent.kind===269||I.parent.kind===266)}function p(I){return I.kind===100?e.tryCast(I.parent,e.isImportDeclaration):void 0}function C(I,ne){return e.isVariableDeclarationList(ne.parent)&&e.first(ne.parent.getChildren(I))===ne}function G(I,ne,ee){I.delete(ne,ee.parent.kind===236?ee.parent:ee)}function E(I,ne,ee){e.forEach(ee.elements,function(A){return I.delete(ne,A)})}function ue(I,ne,ee,A){ne!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(A.kind===137&&(A=e.cast(A.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(A)&&B(A)&&(I.replaceNode(ee,A,e.factory.createIdentifier("_".concat(A.text))),e.isParameter(A.parent)&&e.getJSDocParameterTags(A.parent).forEach(function(f){e.isIdentifier(f.name)&&I.replaceNode(ee,f.name,e.factory.createIdentifier("_".concat(f.name.text)))})))}function B(I){switch(I.parent.kind){case 163:case 162:return!0;case 253:{var ne=I.parent;switch(ne.parent.parent.kind){case 243:case 242:return!0}}}return!1}function re(I,ne,ee,A,f,P,D,l){M(ne,ee,I,A,f,P,D,l),e.isIdentifier(ne)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(ne,A,I,function(_){e.isPropertyAccessExpression(_.parent)&&_.parent.name===_&&(_=_.parent),!l&&k(_)&&ee.delete(I,_.parent.parent)})}function M(I,ne,ee,A,f,P,D,l){var _=I.parent;if(e.isParameter(_))x(ne,ee,_,A,f,P,D,l);else if(!(l&&e.isIdentifier(I)&&e.FindAllReferences.Core.isSymbolReferencedInFile(I,A,ee))){var J=e.isImportClause(_)?I:e.isComputedPropertyName(_)?_.parent:_;e.Debug.assert(J!==ee,"should not delete whole source file"),ne.delete(ee,J)}}function x(I,ne,ee,A,f,P,D,l){l===void 0&&(l=!1),_e(A,ne,ee,f,P,D,l)&&(ee.modifiers&&ee.modifiers.length>0&&(!e.isIdentifier(ee.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(ee.name,A,ne))?ee.modifiers.forEach(function(_){return I.deleteModifier(ne,_)}):!ee.initializer&&ie(ee,A,f)&&I.delete(ne,ee))}function ie(I,ne,ee){var A=I.parent.parameters.indexOf(I);return!e.FindAllReferences.Core.someSignatureUsage(I.parent,ee,ne,function(f,P){return!P||P.arguments.length>A})}function _e(I,ne,ee,A,f,P,D){var l=ee.parent;switch(l.kind){case 168:case 170:var _=l.parameters.indexOf(ee),J=e.isMethodDeclaration(l)?l.name:l,w=e.FindAllReferences.Core.getReferencedSymbolsForNode(l.pos,J,f,A,P);if(w)for(var j=0,U=w;j<U.length;j++)for(var z=U[j],y=0,oe=z.references;y<oe.length;y++){var ve=oe[y];if(ve.kind===1){var ce=e.isSuperKeyword(ve.node)&&e.isCallExpression(ve.node.parent)&&ve.node.parent.arguments.length>_,m=e.isPropertyAccessExpression(ve.node.parent)&&e.isSuperKeyword(ve.node.parent.expression)&&e.isCallExpression(ve.node.parent.parent)&&ve.node.parent.parent.arguments.length>_,de=(e.isMethodDeclaration(ve.node.parent)||e.isMethodSignature(ve.node.parent))&&ve.node.parent!==ee.parent&&ve.node.parent.parameters.length>_;if(ce||m||de)return!1}}return!0;case 255:return l.name&&Y(I,ne,l.name)?Z(l,ee,D):!0;case 212:case 213:return Z(l,ee,D);case 172:return!1;case 171:return!0;default:return e.Debug.failBadSyntaxKind(l)}}function Y(I,ne,ee){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(ee,I,ne,function(A){return e.isIdentifier(A)&&e.isCallExpression(A.parent)&&A.parent.arguments.indexOf(A)>=0})}function Z(I,ne,ee){var A=I.parameters,f=A.indexOf(ne);return e.Debug.assert(f!==-1,"The parameter should already be in the list"),ee?A.slice(f+1).every(function(P){return e.isIdentifier(P.name)&&!P.symbol.isReferenced}):f===A.length-1}function k(I){return(e.isBinaryExpression(I.parent)&&I.parent.left===I||(e.isPostfixUnaryExpression(I.parent)||e.isPrefixUnaryExpression(I.parent))&&I.parent.operand===I)&&e.isExpressionStatement(I.parent.parent)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixUnreachableCode",W=[e.Diagnostics.Unreachable_code_detected.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.program.getSyntacticDiagnostics(pe.sourceFile,pe.cancellationToken);if(!F.length){var g=e.textChanges.ChangeTracker.with(pe,function(S){return N(S,pe.sourceFile,pe.span.start,pe.span.length,pe.errorCode)});return[O.createCodeFixAction(L,g,e.Diagnostics.Remove_unreachable_code,L,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){return N(F,g.file,g.start,g.length,g.code)})}});function N(pe,F,g,S,H){var se=e.getTokenAtPosition(F,g),p=e.findAncestor(se,e.isStatement);if(p.getStart(F)!==se.getStart(F)){var C=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(p.kind),tokenKind:e.Debug.formatSyntaxKind(se.kind),errorCode:H,start:g,length:S});e.Debug.fail("Token and statement should start at the same point. "+C)}var G=(e.isBlock(p.parent)?p.parent:p).parent;if(!e.isBlock(p.parent)||p===e.first(p.parent.statements))switch(G.kind){case 238:if(G.elseStatement){if(e.isBlock(p.parent))break;pe.replaceNode(F,p,e.factory.createBlock(e.emptyArray));return}case 240:case 241:pe.delete(F,G);return}if(e.isBlock(p.parent)){var E=g+S,ue=e.Debug.checkDefined(Q(e.sliceAfter(p.parent.statements,p),function(B){return B.pos<E}),"Some statement should be last");pe.deleteNodeRange(F,p,ue)}else pe.delete(F,p)}function Q(pe,F){for(var g,S=0,H=pe;S<H.length;S++){var se=H[S];if(!F(se))break;g=se}return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixUnusedLabel",W=[e.Diagnostics.Unused_label.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(Q){var pe=e.textChanges.ChangeTracker.with(Q,function(F){return N(F,Q.sourceFile,Q.span.start)});return[O.createCodeFixAction(L,pe,e.Diagnostics.Remove_unused_label,L,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F.start)})}});function N(Q,pe,F){var g=e.getTokenAtPosition(pe,F),S=e.cast(g.parent,e.isLabeledStatement),H=g.getStart(pe),se=S.statement.getStart(pe),p=e.positionsAreOnSameLine(H,se,pe)?se:e.skipTrivia(pe.text,e.findChildOfKind(S,58,pe).end,!0);Q.deleteRange(pe,{pos:H,end:p})}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixJSDocTypes_plain",W="fixJSDocTypes_nullable",N=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];O.registerCodeFix({errorCodes:N,getCodeActions:function(g){var S=g.sourceFile,H=g.program.getTypeChecker(),se=pe(S,g.span.start,H);if(!se)return;var p=se.typeNode,C=se.type,G=p.getText(S),E=[ue(C,L,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return p.kind===312&&E.push(ue(H.getNullableType(C,32768),W,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),E;function ue(B,re,M){var x=e.textChanges.ChangeTracker.with(g,function(ie){return Q(ie,S,p,B,H)});return O.createCodeFixAction("jdocTypes",x,[e.Diagnostics.Change_0_to_1,G,H.typeToString(B)],re,M)}},fixIds:[L,W],getAllCodeActions:function(g){var S=g.fixId,H=g.program,se=g.sourceFile,p=H.getTypeChecker();return O.codeFixAll(g,N,function(C,G){var E=pe(G.file,G.start,p);if(!!E){var ue=E.typeNode,B=E.type,re=ue.kind===312&&S===W?p.getNullableType(B,32768):B;Q(C,se,ue,re,p)}})}});function Q(g,S,H,se,p){g.replaceNode(S,H,p.typeToTypeNode(se,H,void 0))}function pe(g,S,H){var se=e.findAncestor(e.getTokenAtPosition(g,S),F),p=se&&se.type;return p&&{typeNode:p,type:H.getTypeFromTypeNode(p)}}function F(g){switch(g.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixMissingCallParentheses",W=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span,S=Q(F,g.start);if(!!S){var H=e.textChanges.ChangeTracker.with(pe,function(se){return N(se,pe.sourceFile,S)});return[O.createCodeFixAction(L,H,e.Diagnostics.Add_missing_call_parentheses,L,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=Q(g.file,g.start);S&&N(F,g.file,S)})}});function N(pe,F,g){pe.replaceNodeWithText(F,g,"".concat(g.text,"()"))}function Q(pe,F){var g=e.getTokenAtPosition(pe,F);if(e.isPropertyAccessExpression(g.parent)){for(var S=g.parent;e.isPropertyAccessExpression(S.parent);)S=S.parent;return S.name}if(e.isIdentifier(g))return g}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixAwaitInSyncFunction",W=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=Q(g,S.start);if(!!H){var se=e.textChanges.ChangeTracker.with(F,function(p){return pe(p,g,H)});return[O.createCodeFixAction(L,se,e.Diagnostics.Add_async_modifier_to_containing_function,L,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[L],getAllCodeActions:function(g){var S=new e.Map;return O.codeFixAll(g,W,function(H,se){var p=Q(se.file,se.start);!p||!e.addToSeen(S,e.getNodeId(p.insertBefore))||pe(H,g.sourceFile,p)})}});function N(F){if(F.type)return F.type;if(e.isVariableDeclaration(F.parent)&&F.parent.type&&e.isFunctionTypeNode(F.parent.type))return F.parent.type.type}function Q(F,g){var S=e.getTokenAtPosition(F,g),H=e.getContainingFunction(S);if(!!H){var se;switch(H.kind){case 168:se=H.name;break;case 255:case 212:se=e.findChildOfKind(H,98,F);break;case 213:var p=H.typeParameters?29:20;se=e.findChildOfKind(H,p,F)||e.first(H.parameters);break;default:return}return se&&{insertBefore:se,returnType:N(H)}}}function pe(F,g,S){var H=S.insertBefore,se=S.returnType;if(se){var p=e.getEntityNameFromTypeNode(se);(!p||p.kind!==79||p.text!=="Promise")&&F.replaceNode(g,se,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([se])))}F.insertModifierBefore(g,131,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],W="fixPropertyOverrideAccessor";O.registerCodeFix({errorCodes:L,getCodeActions:function(Q){var pe=N(Q.sourceFile,Q.span.start,Q.span.length,Q.errorCode,Q);if(pe)return[O.createCodeFixAction(W,pe,e.Diagnostics.Generate_get_and_set_accessors,W,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[W],getAllCodeActions:function(Q){return O.codeFixAll(Q,L,function(pe,F){var g=N(F.file,F.start,F.length,F.code,Q);if(g)for(var S=0,H=g;S<H.length;S++){var se=H[S];pe.pushRaw(Q.sourceFile,se)}})}});function N(Q,pe,F,g,S){var H,se;if(g===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)H=pe,se=pe+F;else if(g===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var p=S.program.getTypeChecker(),C=e.getTokenAtPosition(Q,pe).parent;e.Debug.assert(e.isAccessor(C),"error span of fixPropertyOverrideAccessor should only be on an accessor");var G=C.parent;e.Debug.assert(e.isClassLike(G),"erroneous accessors should only be inside classes");var E=e.singleOrUndefined(O.getAllSupers(G,p));if(!E)return[];var ue=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(C.name)),B=p.getPropertyOfType(p.getTypeAtLocation(E),ue);if(!B||!B.valueDeclaration)return[];H=B.valueDeclaration.pos,se=B.valueDeclaration.end,Q=e.getSourceFileOfNode(B.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+g);return O.generateAccessorFromProperty(Q,S.program,H,se,S,e.Diagnostics.Generate_get_and_set_accessors.message)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="inferFromUsage",W=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(x){var ie=x.sourceFile,_e=x.program,Y=x.span.start,Z=x.errorCode,k=x.cancellationToken,I=x.host,ne=x.preferences,ee=e.getTokenAtPosition(ie,Y),A,f=e.textChanges.ChangeTracker.with(x,function(D){A=pe(D,ie,ee,Z,_e,k,e.returnTrue,I,ne)}),P=A&&e.getNameOfDeclaration(A);return!P||f.length===0?void 0:[O.createCodeFixAction(L,f,[N(Z,ee),e.getTextOfNode(P)],L,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[L],getAllCodeActions:function(x){var ie=x.sourceFile,_e=x.program,Y=x.cancellationToken,Z=x.host,k=x.preferences,I=e.nodeSeenTracker();return O.codeFixAll(x,W,function(ne,ee){pe(ne,ie,e.getTokenAtPosition(ee.file,ee.start),ee.code,_e,Y,I,Z,k)})}});function N(x,ie){switch(x){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(ie))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function Q(x){switch(x){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return x}function pe(x,ie,_e,Y,Z,k,I,ne,ee){if(!(!e.isParameterPropertyModifier(_e.kind)&&_e.kind!==79&&_e.kind!==25&&_e.kind!==108)){var A=_e.parent,f=O.createImportAdder(ie,Z,ee,ne);switch(Y=Q(Y),Y){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(A)&&I(A)||e.isPropertyDeclaration(A)||e.isPropertySignature(A))return F(x,f,ie,A,Z,ne,k),f.writeFixes(x),A;if(e.isPropertyAccessExpression(A)){var P=ue(A.name,Z,k),D=e.getTypeNodeIfAccessible(P,A,Z,ne);if(D){var l=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(D),void 0);x.addJSDocTags(ie,e.cast(A.parent.parent,e.isExpressionStatement),[l])}return f.writeFixes(x),A}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var _=Z.getTypeChecker().getSymbolAtLocation(_e);return _&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&I(_.valueDeclaration)?(F(x,f,e.getSourceFileOfNode(_.valueDeclaration),_.valueDeclaration,Z,ne,k),f.writeFixes(x),_.valueDeclaration):void 0}}var J=e.getContainingFunction(_e);if(J!==void 0){var w;switch(Y){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(J)){se(x,f,ie,J,Z,ne,k),w=J;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(I(J)){var j=e.cast(A,e.isParameter);g(x,f,ie,j,J,Z,ne,k),w=j}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(J)&&e.isIdentifier(J.name)&&(p(x,f,ie,J,ue(J.name,Z,k),Z,ne),w=J);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(J)&&(se(x,f,ie,J,Z,ne,k),w=J);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(J)&&I(J)&&(S(x,ie,J,Z,ne,k),w=J);break;default:return e.Debug.fail(String(Y))}return f.writeFixes(x),w}}}function F(x,ie,_e,Y,Z,k,I){e.isIdentifier(Y.name)&&p(x,ie,_e,Y,ue(Y.name,Z,I),Z,k)}function g(x,ie,_e,Y,Z,k,I,ne){if(!!e.isIdentifier(Y.name)){var ee=B(Z,_e,k,ne);if(e.Debug.assert(Z.parameters.length===ee.length,"Parameter count and inference count should match"),e.isInJSFile(Z))G(x,_e,ee,k,I);else{var A=e.isArrowFunction(Z)&&!e.findChildOfKind(Z,20,_e);A&&x.insertNodeBefore(_e,e.first(Z.parameters),e.factory.createToken(20));for(var f=0,P=ee;f<P.length;f++){var D=P[f],l=D.declaration,_=D.type;l&&!l.type&&!l.initializer&&p(x,ie,_e,l,_,k,I)}A&&x.insertNodeAfter(_e,e.last(Z.parameters),e.factory.createToken(21))}}}function S(x,ie,_e,Y,Z,k){var I=re(_e,ie,Y,k);if(!(!I||!I.length)){var ne=M(Y,I,k).thisParameter(),ee=e.getTypeNodeIfAccessible(ne,_e,Y,Z);!ee||(e.isInJSFile(_e)?H(x,ie,_e,ee):x.tryInsertThisTypeAnnotation(ie,_e,ee))}}function H(x,ie,_e,Y){x.addJSDocTags(ie,_e,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(Y))])}function se(x,ie,_e,Y,Z,k,I){var ne=e.firstOrUndefined(Y.parameters);if(ne&&e.isIdentifier(Y.name)&&e.isIdentifier(ne.name)){var ee=ue(Y.name,Z,I);ee===Z.getTypeChecker().getAnyType()&&(ee=ue(ne.name,Z,I)),e.isInJSFile(Y)?G(x,_e,[{declaration:ne,type:ee}],Z,k):p(x,ie,_e,ne,ee,Z,k)}}function p(x,ie,_e,Y,Z,k,I){var ne=e.getTypeNodeIfAccessible(Z,Y,k,I);if(ne)if(e.isInJSFile(_e)&&Y.kind!==165){var ee=e.isVariableDeclaration(Y)?e.tryCast(Y.parent.parent,e.isVariableStatement):Y;if(!ee)return;var A=e.factory.createJSDocTypeExpression(ne),f=e.isGetAccessorDeclaration(Y)?e.factory.createJSDocReturnTag(void 0,A,void 0):e.factory.createJSDocTypeTag(void 0,A,void 0);x.addJSDocTags(_e,ee,[f])}else C(ne,Y,_e,x,ie,e.getEmitScriptTarget(k.getCompilerOptions()))||x.tryInsertTypeAnnotation(_e,Y,ne)}function C(x,ie,_e,Y,Z,k){var I=O.tryGetAutoImportableReferenceFromTypeNode(x,k);return I&&Y.tryInsertTypeAnnotation(_e,ie,I.typeNode)?(e.forEach(I.symbols,function(ne){return Z.addImportFromExportedSymbol(ne,!0)}),!0):!1}function G(x,ie,_e,Y,Z){var k=_e.length&&_e[0].declaration.parent;if(!!k){var I=e.mapDefined(_e,function(A){var f=A.declaration;if(!(f.initializer||e.getJSDocType(f)||!e.isIdentifier(f.name))){var P=A.type&&e.getTypeNodeIfAccessible(A.type,f,Y,Z);if(P){var D=e.factory.cloneNode(f.name);return e.setEmitFlags(D,3584),{name:e.factory.cloneNode(f.name),param:f,isOptional:!!A.isOptional,typeNode:P}}}});if(!!I.length)if(e.isArrowFunction(k)||e.isFunctionExpression(k)){var ne=e.isArrowFunction(k)&&!e.findChildOfKind(k,20,ie);ne&&x.insertNodeBefore(ie,e.first(k.parameters),e.factory.createToken(20)),e.forEach(I,function(A){var f=A.typeNode,P=A.param,D=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(f)),l=e.factory.createJSDocComment(void 0,[D]);x.insertNodeAt(ie,P.getStart(ie),l,{suffix:" "})}),ne&&x.insertNodeAfter(ie,e.last(k.parameters),e.factory.createToken(21))}else{var ee=e.map(I,function(A){var f=A.name,P=A.typeNode,D=A.isOptional;return e.factory.createJSDocParameterTag(void 0,f,!!D,e.factory.createJSDocTypeExpression(P),!1,void 0)});x.addJSDocTags(ie,k,ee)}}}function E(x,ie,_e){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,x,ie,ie.getSourceFiles(),_e),function(Y){return Y.kind!==0?e.tryCast(Y.node,e.isIdentifier):void 0})}function ue(x,ie,_e){var Y=E(x,ie,_e);return M(ie,Y,_e).single()}function B(x,ie,_e,Y){var Z=re(x,ie,_e,Y);return Z&&M(_e,Z,Y).parameters(x)||x.parameters.map(function(k){return{declaration:k,type:e.isIdentifier(k.name)?ue(k.name,_e,Y):_e.getTypeChecker().getAnyType()}})}function re(x,ie,_e,Y){var Z;switch(x.kind){case 170:Z=e.findChildOfKind(x,134,ie);break;case 213:case 212:var k=x.parent;Z=(e.isVariableDeclaration(k)||e.isPropertyDeclaration(k))&&e.isIdentifier(k.name)?k.name:x.name;break;case 255:case 168:case 167:Z=x.name;break}if(!!Z)return E(Z,_e,Y)}function M(x,ie,_e){var Y=x.getTypeChecker(),Z={string:function(){return Y.getStringType()},number:function(){return Y.getNumberType()},Array:function(we){return Y.createArrayType(we)},Promise:function(we){return Y.createPromiseType(we)}},k=[Y.getStringType(),Y.getNumberType(),Y.createArrayType(Y.getAnyType()),Y.createPromiseType(Y.getAnyType())];return{single:ee,parameters:A,thisParameter:f};function I(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function ne(we){for(var ye=new e.Map,Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];Fe.properties&&Fe.properties.forEach(function(ur,Ir){ye.has(Ir)||ye.set(Ir,[]),ye.get(Ir).push(ur)})}var cr=new e.Map;return ye.forEach(function(ur,Ir){cr.set(Ir,ne(ur))}),{isNumber:we.some(function(ur){return ur.isNumber}),isString:we.some(function(ur){return ur.isString}),isNumberOrString:we.some(function(ur){return ur.isNumberOrString}),candidateTypes:e.flatMap(we,function(ur){return ur.candidateTypes}),properties:cr,calls:e.flatMap(we,function(ur){return ur.calls}),constructs:e.flatMap(we,function(ur){return ur.constructs}),numberIndex:e.forEach(we,function(ur){return ur.numberIndex}),stringIndex:e.forEach(we,function(ur){return ur.stringIndex}),candidateThisTypes:e.flatMap(we,function(ur){return ur.candidateThisTypes}),inferredTypes:void 0}}function ee(){return de(P(ie))}function A(we){if(!(ie.length===0||!we.parameters)){for(var ye=I(),Se=0,ge=ie;Se<ge.length;Se++){var Fe=ge[Se];_e.throwIfCancellationRequested(),D(Fe,ye)}var cr=qe(qe([],ye.constructs||[],!0),ye.calls||[],!0);return we.parameters.map(function(ur,Ir){for(var dr=[],Br=e.isRestParameter(ur),Tr=!1,n=0,Er=cr;n<Er.length;n++){var br=Er[n];if(br.argumentTypes.length<=Ir)Tr=e.isInJSFile(we),dr.push(Y.getUndefinedType());else if(Br)for(var Pr=Ir;Pr<br.argumentTypes.length;Pr++)dr.push(Y.getBaseTypeOfLiteralType(br.argumentTypes[Pr]));else dr.push(Y.getBaseTypeOfLiteralType(br.argumentTypes[Ir]))}if(e.isIdentifier(ur.name)){var Ce=P(E(ur.name,x,_e));dr.push.apply(dr,Br?e.mapDefined(Ce,Y.getElementTypeOfArrayType):Ce)}var Le=de(dr);return{type:Br?Y.createArrayType(Le):Le,isOptional:Tr&&!Br,declaration:ur}})}}function f(){for(var we=I(),ye=0,Se=ie;ye<Se.length;ye++){var ge=Se[ye];_e.throwIfCancellationRequested(),D(ge,we)}return de(we.candidateThisTypes||e.emptyArray)}function P(we){for(var ye=I(),Se=0,ge=we;Se<ge.length;Se++){var Fe=ge[Se];_e.throwIfCancellationRequested(),D(Fe,ye)}return V(ye)}function D(we,ye){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(we);)we=we.parent;switch(we.parent.kind){case 237:_(we,ye);break;case 219:ye.isNumber=!0;break;case 218:J(we.parent,ye);break;case 220:w(we,we.parent,ye);break;case 288:case 289:j(we.parent,ye);break;case 207:case 208:we.parent.expression===we?U(we.parent,ye):l(we,ye);break;case 205:z(we.parent,ye);break;case 206:y(we.parent,we,ye);break;case 294:case 295:oe(we.parent,ye);break;case 166:ve(we.parent,ye);break;case 253:{var Se=we.parent,ge=Se.name,Fe=Se.initializer;if(we===ge){Fe&&er(ye,Y.getTypeAtLocation(Fe));break}}default:return l(we,ye)}}function l(we,ye){e.isExpressionNode(we)&&er(ye,Y.getContextualType(we))}function _(we,ye){er(ye,e.isCallExpression(we)?Y.getVoidType():Y.getAnyType())}function J(we,ye){switch(we.operator){case 45:case 46:case 40:case 54:ye.isNumber=!0;break;case 39:ye.isNumberOrString=!0;break}}function w(we,ye,Se){switch(ye.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var ge=Y.getTypeAtLocation(ye.left===we?ye.right:ye.left);ge.flags&1056?er(Se,ge):Se.isNumber=!0;break;case 64:case 39:var Fe=Y.getTypeAtLocation(ye.left===we?ye.right:ye.left);Fe.flags&1056?er(Se,Fe):Fe.flags&296?Se.isNumber=!0:Fe.flags&402653316?Se.isString=!0:Fe.flags&1||(Se.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:er(Se,Y.getTypeAtLocation(ye.left===we?ye.right:ye.left));break;case 101:we===ye.left&&(Se.isString=!0);break;case 56:case 60:we===ye.left&&(we.parent.parent.kind===253||e.isAssignmentExpression(we.parent.parent,!0))&&er(Se,Y.getTypeAtLocation(ye.right));break;case 55:case 27:case 102:break}}function j(we,ye){er(ye,Y.getTypeAtLocation(we.parent.parent.expression))}function U(we,ye){var Se={argumentTypes:[],return_:I()};if(we.arguments)for(var ge=0,Fe=we.arguments;ge<Fe.length;ge++){var cr=Fe[ge];Se.argumentTypes.push(Y.getTypeAtLocation(cr))}D(we,Se.return_),we.kind===207?(ye.calls||(ye.calls=[])).push(Se):(ye.constructs||(ye.constructs=[])).push(Se)}function z(we,ye){var Se=e.escapeLeadingUnderscores(we.name.text);ye.properties||(ye.properties=new e.Map);var ge=ye.properties.get(Se)||I();D(we,ge),ye.properties.set(Se,ge)}function y(we,ye,Se){if(ye===we.argumentExpression){Se.isNumberOrString=!0;return}else{var ge=Y.getTypeAtLocation(we.argumentExpression),Fe=I();D(we,Fe),ge.flags&296?Se.numberIndex=Fe:Se.stringIndex=Fe}}function oe(we,ye){var Se=e.isVariableDeclaration(we.parent.parent)?we.parent.parent:we.parent;he(ye,Y.getTypeAtLocation(Se))}function ve(we,ye){he(ye,Y.getTypeAtLocation(we.parent))}function ce(we,ye){for(var Se=[],ge=0,Fe=we;ge<Fe.length;ge++)for(var cr=Fe[ge],ur=0,Ir=ye;ur<Ir.length;ur++){var dr=Ir[ur],Br=dr.high,Tr=dr.low;Br(cr)&&(e.Debug.assert(!Tr(cr),"Priority can't have both low and high"),Se.push(Tr))}return we.filter(function(n){return Se.every(function(Er){return!Er(n)})})}function m(we){return de(V(we))}function de(we){if(!we.length)return Y.getAnyType();var ye=Y.getUnionType([Y.getStringType(),Y.getNumberType()]),Se=[{high:function(cr){return cr===Y.getStringType()||cr===Y.getNumberType()},low:function(cr){return cr===ye}},{high:function(cr){return!(cr.flags&16385)},low:function(cr){return!!(cr.flags&16385)}},{high:function(cr){return!(cr.flags&114689)&&!(e.getObjectFlags(cr)&16)},low:function(cr){return!!(e.getObjectFlags(cr)&16)}}],ge=ce(we,Se),Fe=ge.filter(function(cr){return e.getObjectFlags(cr)&16});return Fe.length&&(ge=ge.filter(function(cr){return!(e.getObjectFlags(cr)&16)}),ge.push(ae(Fe))),Y.getWidenedType(Y.getUnionType(ge.map(Y.getBaseTypeOfLiteralType),2))}function ae(we){if(we.length===1)return we[0];for(var ye=[],Se=[],ge=[],Fe=[],cr=!1,ur=!1,Ir=e.createMultiMap(),dr=0,Br=we;dr<Br.length;dr++){for(var Tr=Br[dr],n=0,Er=Y.getPropertiesOfType(Tr);n<Er.length;n++){var br=Er[n];Ir.add(br.name,br.valueDeclaration?Y.getTypeOfSymbolAtLocation(br,br.valueDeclaration):Y.getAnyType())}ye.push.apply(ye,Y.getSignaturesOfType(Tr,0)),Se.push.apply(Se,Y.getSignaturesOfType(Tr,1));var Pr=Y.getIndexInfoOfType(Tr,0);Pr&&(ge.push(Pr.type),cr=cr||Pr.isReadonly);var Ce=Y.getIndexInfoOfType(Tr,1);Ce&&(Fe.push(Ce.type),ur=ur||Ce.isReadonly)}var Le=e.mapEntries(Ir,function(Cr,Lr){var Jr=Lr.length<we.length?16777216:0,Rr=Y.createSymbol(4|Jr,Cr);return Rr.type=Y.getUnionType(Lr),[Cr,Rr]}),Xe=[];return ge.length&&Xe.push(Y.createIndexInfo(Y.getStringType(),Y.getUnionType(ge),cr)),Fe.length&&Xe.push(Y.createIndexInfo(Y.getNumberType(),Y.getUnionType(Fe),ur)),Y.createAnonymousType(we[0].symbol,Le,ye,Se,Xe)}function V(we){var ye,Se,ge,Fe=[];we.isNumber&&Fe.push(Y.getNumberType()),we.isString&&Fe.push(Y.getStringType()),we.isNumberOrString&&Fe.push(Y.getUnionType([Y.getStringType(),Y.getNumberType()])),we.numberIndex&&Fe.push(Y.createArrayType(m(we.numberIndex))),(((ye=we.properties)===null||ye===void 0?void 0:ye.size)||((Se=we.constructs)===null||Se===void 0?void 0:Se.length)||we.stringIndex)&&Fe.push(le(we));var cr=(we.candidateTypes||[]).map(function(Ir){return Y.getBaseTypeOfLiteralType(Ir)}),ur=!((ge=we.calls)===null||ge===void 0)&&ge.length?le(we):void 0;return ur&&cr?Fe.push(Y.getUnionType(qe([ur],cr,!0),2)):(ur&&Fe.push(ur),e.length(cr)&&Fe.push.apply(Fe,cr)),Fe.push.apply(Fe,ke(we)),Fe}function le(we){var ye=new e.Map;we.properties&&we.properties.forEach(function(cr,ur){var Ir=Y.createSymbol(4,ur);Ir.type=m(cr),ye.set(ur,Ir)});var Se=we.calls?[Ge(we.calls)]:[],ge=we.constructs?[Ge(we.constructs)]:[],Fe=we.stringIndex?[Y.createIndexInfo(Y.getStringType(),m(we.stringIndex),!1)]:[];return Y.createAnonymousType(void 0,ye,Se,ge,Fe)}function ke(we){if(!we.properties||!we.properties.size)return[];var ye=k.filter(function(Se){return Ue(Se,we)});return 0<ye.length&&ye.length<3?ye.map(function(Se){return He(Se,we)}):[]}function Ue(we,ye){return ye.properties?!e.forEachEntry(ye.properties,function(Se,ge){var Fe=Y.getTypeOfPropertyOfType(we,ge);if(!Fe)return!0;if(Se.calls){var cr=Y.getSignaturesOfType(Fe,0);return!cr.length||!Y.isTypeAssignableTo(Fe,me(Se.calls))}else return!Y.isTypeAssignableTo(Fe,m(Se))}):!1}function He(we,ye){if(!(e.getObjectFlags(we)&4)||!ye.properties)return we;var Se=we.target,ge=e.singleOrUndefined(Se.typeParameters);if(!ge)return we;var Fe=[];return ye.properties.forEach(function(cr,ur){var Ir=Y.getTypeOfPropertyOfType(Se,ur);e.Debug.assert(!!Ir,"generic should have all the properties of its reference."),Fe.push.apply(Fe,ar(Ir,m(cr),ge))}),Z[we.symbol.escapedName](de(Fe))}function ar(we,ye,Se){if(we===Se)return[ye];if(we.flags&3145728)return e.flatMap(we.types,function(Br){return ar(Br,ye,Se)});if(e.getObjectFlags(we)&4&&e.getObjectFlags(ye)&4){var ge=Y.getTypeArguments(we),Fe=Y.getTypeArguments(ye),cr=[];if(ge&&Fe)for(var ur=0;ur<ge.length;ur++)Fe[ur]&&cr.push.apply(cr,ar(ge[ur],Fe[ur],Se));return cr}var Ir=Y.getSignaturesOfType(we,0),dr=Y.getSignaturesOfType(ye,0);return Ir.length===1&&dr.length===1?gr(Ir[0],dr[0],Se):[]}function gr(we,ye,Se){for(var ge=[],Fe=0;Fe<we.parameters.length;Fe++){var cr=we.parameters[Fe],ur=ye.parameters[Fe],Ir=we.declaration&&e.isRestParameter(we.declaration.parameters[Fe]);if(!ur)break;var dr=cr.valueDeclaration?Y.getTypeOfSymbolAtLocation(cr,cr.valueDeclaration):Y.getAnyType(),Br=Ir&&Y.getElementTypeOfArrayType(dr);Br&&(dr=Br);var Tr=ur.type||(ur.valueDeclaration?Y.getTypeOfSymbolAtLocation(ur,ur.valueDeclaration):Y.getAnyType());ge.push.apply(ge,ar(dr,Tr,Se))}var n=Y.getReturnTypeOfSignature(we),Er=Y.getReturnTypeOfSignature(ye);return ge.push.apply(ge,ar(n,Er,Se)),ge}function me(we){return Y.createAnonymousType(void 0,e.createSymbolTable(),[Ge(we)],e.emptyArray,e.emptyArray)}function Ge(we){for(var ye=[],Se=Math.max.apply(Math,we.map(function(ur){return ur.argumentTypes.length})),ge=function(ur){var Ir=Y.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(ur)));Ir.type=de(we.map(function(dr){return dr.argumentTypes[ur]||Y.getUndefinedType()})),we.some(function(dr){return dr.argumentTypes[ur]===void 0})&&(Ir.flags|=16777216),ye.push(Ir)},Fe=0;Fe<Se;Fe++)ge(Fe);var cr=m(ne(we.map(function(ur){return ur.return_})));return Y.createSignature(void 0,void 0,void 0,ye,cr,void 0,Se,0)}function er(we,ye){ye&&!(ye.flags&1)&&!(ye.flags&131072)&&(we.candidateTypes||(we.candidateTypes=[])).push(ye)}function he(we,ye){ye&&!(ye.flags&1)&&!(ye.flags&131072)&&(we.candidateThisTypes||(we.candidateThisTypes=[])).push(ye)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixReturnTypeInAsyncFunction",W=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];O.registerCodeFix({errorCodes:W,fixIds:[L],getCodeActions:function(F){var g=F.sourceFile,S=F.program,H=F.span,se=S.getTypeChecker(),p=N(g,S.getTypeChecker(),H.start);if(!!p){var C=p.returnTypeNode,G=p.returnType,E=p.promisedTypeNode,ue=p.promisedType,B=e.textChanges.ChangeTracker.with(F,function(re){return Q(re,g,C,E)});return[O.createCodeFixAction(L,B,[e.Diagnostics.Replace_0_with_Promise_1,se.typeToString(G),se.typeToString(ue)],L,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,pe.program.getTypeChecker(),g.start);S&&Q(F,g.file,S.returnTypeNode,S.promisedTypeNode)})}});function N(pe,F,g){if(!e.isInJSFile(pe)){var S=e.getTokenAtPosition(pe,g),H=e.findAncestor(S,e.isFunctionLikeDeclaration),se=H==null?void 0:H.type;if(!!se){var p=F.getTypeFromTypeNode(se),C=F.getAwaitedType(p)||F.getVoidType(),G=F.typeToTypeNode(C,se,void 0);if(G)return{returnTypeNode:se,returnType:p,promisedTypeNode:G,promisedType:C}}}}function Q(pe,F,g,S){pe.replaceNode(F,g,e.factory.createTypeReferenceNode("Promise",[S]))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="disableJsDiagnostics",W="disableJsDiagnostics",N=e.mapDefined(Object.keys(e.Diagnostics),function(pe){var F=e.Diagnostics[pe];return F.category===e.DiagnosticCategory.Error?F.code:void 0});O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=F.program,H=F.span,se=F.host,p=F.formatContext;if(!(!e.isInJSFile(g)||!e.isCheckJsEnabledForFile(g,S.getCompilerOptions()))){var C=g.checkJsDirective?"":e.getNewLineOrDefaultFromHost(se,p.options),G=[O.createCodeFixActionWithoutFixAll(L,[O.createFileTextChanges(g.fileName,[e.createTextChange(g.checkJsDirective?e.createTextSpanFromBounds(g.checkJsDirective.pos,g.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(C))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(g,H.start)&&G.unshift(O.createCodeFixAction(L,e.textChanges.ChangeTracker.with(F,function(E){return Q(E,g,H.start)}),e.Diagnostics.Ignore_this_error_message,W,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),G}},fixIds:[W],getAllCodeActions:function(pe){var F=new e.Set;return O.codeFixAll(pe,N,function(g,S){e.textChanges.isValidLocationToAddComment(S.file,S.start)&&Q(g,S.file,S.start,F)})}});function Q(pe,F,g,S){var H=e.getLineAndCharacterOfPosition(F,g).line;(!S||e.tryAddToSet(S,H))&&pe.insertCommentBeforeLine(F,H,g," @ts-ignore")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(Y,Z,k,I,ne,ee,A){for(var f=Y.symbol.members,P=0,D=Z;P<D.length;P++){var l=D[P];f.has(l.escapedName)||Q(l,Y,k,I,ne,ee,A,void 0)}}O.createMissingMemberNodes=L;function W(Y){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(Y.program,Y.host)}}O.getNoopSymbolTrackerWithResolver=W;var N;(function(Y){Y[Y.Method=1]="Method",Y[Y.Property=2]="Property",Y[Y.All=3]="All"})(N=O.PreserveOptionalFlags||(O.PreserveOptionalFlags={}));function Q(Y,Z,k,I,ne,ee,A,f,P,D){P===void 0&&(P=3),D===void 0&&(D=!1);var l=Y.getDeclarations();if(!(l&&l.length))return;var _=I.program.getTypeChecker(),J=e.getEmitScriptTarget(I.program.getCompilerOptions()),w=l[0],j=e.getSynthesizedDeepClone(e.getNameOfDeclaration(w),!1),U=E(e.getEffectiveModifierFlags(w)),z=U?e.factory.createNodeArray([U]):void 0,y=_.getWidenedType(_.getTypeOfSymbolAtLocation(Y,Z)),oe=!!(Y.flags&16777216),ve=!!(Z.flags&8388608)||D,ce=e.getQuotePreference(k,ne);switch(w.kind){case 165:case 166:var m=ce===0?268435456:void 0,de=_.typeToTypeNode(y,Z,m,W(I));if(ee){var ae=x(de,J);ae&&(de=ae.typeNode,_e(ee,ae.symbols))}A(e.factory.createPropertyDeclaration(void 0,z,j,oe&&P&2?e.factory.createToken(57):void 0,de,void 0));break;case 171:case 172:{var V=_.typeToTypeNode(y,Z,void 0,W(I)),le=e.getAllAccessorDeclarations(l,w),ke=le.secondAccessor?[le.firstAccessor,le.secondAccessor]:[le.firstAccessor];if(ee){var ae=x(V,J);ae&&(V=ae.typeNode,_e(ee,ae.symbols))}for(var Ue=0,He=ke;Ue<He.length;Ue++){var ar=He[Ue];if(e.isGetAccessorDeclaration(ar))A(e.factory.createGetAccessorDeclaration(void 0,z,j,e.emptyArray,V,ve?void 0:f||C(ce)));else{e.Debug.assertNode(ar,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var gr=e.getSetAccessorValueParameter(ar),me=gr&&e.isIdentifier(gr.name)?e.idText(gr.name):void 0;A(e.factory.createSetAccessorDeclaration(void 0,z,j,S(1,[me],[V],1,!1),ve?void 0:f||C(ce)))}}break}case 167:case 168:var Ge=_.getSignaturesOfType(y,0);if(!e.some(Ge))break;if(l.length===1){e.Debug.assert(Ge.length===1,"One declaration implies one signature");var er=Ge[0];ye(ce,er,z,j,ve?void 0:f||C(ce));break}for(var he=0,we=Ge;he<we.length;he++){var er=we[he];ye(ce,er,e.getSynthesizedDeepClones(z,!1),e.getSynthesizedDeepClone(j,!1))}if(!ve)if(l.length>Ge.length){var er=_.getSignatureFromDeclaration(l[l.length-1]);ye(ce,er,z,j,f||C(ce))}else e.Debug.assert(l.length===Ge.length,"Declarations and signatures should match count"),A(H(_,I,Z,Ge,j,oe&&!!(P&1),z,ce,f));break}function ye(Se,ge,Fe,cr,ur){var Ir=pe(168,I,Se,ge,ur,cr,Fe,oe&&!!(P&1),Z,ee);Ir&&A(Ir)}}O.addNewNodeForMemberSymbol=Q;function pe(Y,Z,k,I,ne,ee,A,f,P,D){var l=Z.program,_=l.getTypeChecker(),J=e.getEmitScriptTarget(l.getCompilerOptions()),w=1073742081|(k===0?268435456:0),j=_.signatureToSignatureDeclaration(I,Y,P,w,W(Z));if(!!j){var U=j.typeParameters,z=j.parameters,y=j.type;if(D){if(U){var oe=e.sameMap(U,function(ae){var V=ae.constraint,le=ae.default;if(V){var ke=x(V,J);ke&&(V=ke.typeNode,_e(D,ke.symbols))}if(le){var ke=x(le,J);ke&&(le=ke.typeNode,_e(D,ke.symbols))}return e.factory.updateTypeParameterDeclaration(ae,ae.name,V,le)});U!==oe&&(U=e.setTextRange(e.factory.createNodeArray(oe,U.hasTrailingComma),U))}var ve=e.sameMap(z,function(ae){var V=x(ae.type,J),le=ae.type;return V&&(le=V.typeNode,_e(D,V.symbols)),e.factory.updateParameterDeclaration(ae,ae.decorators,ae.modifiers,ae.dotDotDotToken,ae.name,ae.questionToken,le,ae.initializer)});if(z!==ve&&(z=e.setTextRange(e.factory.createNodeArray(ve,z.hasTrailingComma),z)),y){var ce=x(y,J);ce&&(y=ce.typeNode,_e(D,ce.symbols))}}var m=f?e.factory.createToken(57):void 0,de=j.asteriskToken;if(e.isFunctionExpression(j))return e.factory.updateFunctionExpression(j,A,j.asteriskToken,e.tryCast(ee,e.isIdentifier),U,z,y,ne!=null?ne:j.body);if(e.isArrowFunction(j))return e.factory.updateArrowFunction(j,A,U,z,y,j.equalsGreaterThanToken,ne!=null?ne:j.body);if(e.isMethodDeclaration(j))return e.factory.updateMethodDeclaration(j,void 0,A,de,ee!=null?ee:e.factory.createIdentifier(""),m,U,z,y,ne)}}O.createSignatureDeclarationFromSignature=pe;function F(Y,Z,k,I,ne,ee,A){var f=e.getQuotePreference(Z.sourceFile,Z.preferences),P=e.getEmitScriptTarget(Z.program.getCompilerOptions()),D=W(Z),l=Z.program.getTypeChecker(),_=e.isInJSFile(A),J=I.typeArguments,w=I.arguments,j=I.parent,U=_?void 0:l.getContextualType(I),z=e.map(w,function(ae){return e.isIdentifier(ae)?ae.text:e.isPropertyAccessExpression(ae)&&e.isIdentifier(ae.name)?ae.name.text:void 0}),y=_?[]:e.map(w,function(ae){return g(l,k,l.getBaseTypeOfLiteralType(l.getTypeAtLocation(ae)),A,P,void 0,D)}),oe=ee?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(ee)):void 0,ve=e.isYieldExpression(j)?e.factory.createToken(41):void 0,ce=_||J===void 0?void 0:e.map(J,function(ae,V){return e.factory.createTypeParameterDeclaration(84+J.length-1<=90?String.fromCharCode(84+V):"T".concat(V))}),m=S(w.length,z,y,void 0,_),de=_||U===void 0?void 0:l.typeToTypeNode(U,A,void 0,D);return Y===168?e.factory.createMethodDeclaration(void 0,oe,ve,ne,void 0,ce,m,de,e.isInterfaceDeclaration(A)?void 0:C(f)):e.factory.createFunctionDeclaration(void 0,oe,ve,ne,ce,m,de,G(e.Diagnostics.Function_not_implemented.message,f))}O.createSignatureDeclarationFromCallExpression=F;function g(Y,Z,k,I,ne,ee,A){var f=Y.typeToTypeNode(k,I,ee,A);if(f&&e.isImportTypeNode(f)){var P=x(f,ne);P&&(_e(Z,P.symbols),f=P.typeNode)}return e.getSynthesizedDeepClone(f)}O.typeToAutoImportableTypeNode=g;function S(Y,Z,k,I,ne){for(var ee=[],A=0;A<Y;A++){var f=e.factory.createParameterDeclaration(void 0,void 0,void 0,Z&&Z[A]||"arg".concat(A),I!==void 0&&A>=I?e.factory.createToken(57):void 0,ne?void 0:k&&k[A]||e.factory.createKeywordTypeNode(130),void 0);ee.push(f)}return ee}function H(Y,Z,k,I,ne,ee,A,f,P){for(var D=I[0],l=I[0].minArgumentCount,_=!1,J=0,w=I;J<w.length;J++){var j=w[J];l=Math.min(j.minArgumentCount,l),e.signatureHasRestParameter(j)&&(_=!0),j.parameters.length>=D.parameters.length&&(!e.signatureHasRestParameter(j)||e.signatureHasRestParameter(D))&&(D=j)}var U=D.parameters.length-(e.signatureHasRestParameter(D)?1:0),z=D.parameters.map(function(ce){return ce.name}),y=S(U,z,void 0,l,!1);if(_){var oe=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),ve=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),z[U]||"rest",U>=l?e.factory.createToken(57):void 0,oe,void 0);y.push(ve)}return p(A,ne,ee,void 0,y,se(I,Y,Z,k),f,P)}function se(Y,Z,k,I){if(e.length(Y)){var ne=Z.getUnionType(e.map(Y,Z.getReturnTypeOfSignature));return Z.typeToTypeNode(ne,I,void 0,W(k))}}function p(Y,Z,k,I,ne,ee,A,f){return e.factory.createMethodDeclaration(void 0,Y,void 0,Z,k?e.factory.createToken(57):void 0,I,ne,ee,f||C(A))}function C(Y){return G(e.Diagnostics.Method_not_implemented.message,Y)}function G(Y,Z){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(Y,Z===0)]))],!0)}O.createStubbedBody=G;function E(Y){if(Y&4)return e.factory.createToken(123);if(Y&16)return e.factory.createToken(122)}function ue(Y,Z,k){var I=e.getTsConfigObjectLiteralExpression(Z);if(!!I){var ne=M(I,"compilerOptions");if(ne===void 0){Y.insertNodeAtObjectStart(Z,I,re("compilerOptions",e.factory.createObjectLiteralExpression(k.map(function(J){var w=J[0],j=J[1];return re(w,j)}),!0)));return}var ee=ne.initializer;if(!!e.isObjectLiteralExpression(ee))for(var A=0,f=k;A<f.length;A++){var P=f[A],D=P[0],l=P[1],_=M(ee,D);_===void 0?Y.insertNodeAtObjectStart(Z,ee,re(D,l)):Y.replaceNode(Z,_.initializer,l)}}}O.setJsonCompilerOptionValues=ue;function B(Y,Z,k,I){ue(Y,Z,[[k,I]])}O.setJsonCompilerOptionValue=B;function re(Y,Z){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(Y),Z)}O.createJsonPropertyAssignment=re;function M(Y,Z){return e.find(Y.properties,function(k){return e.isPropertyAssignment(k)&&!!k.name&&e.isStringLiteral(k.name)&&k.name.text===Z})}O.findJsonProperty=M;function x(Y,Z){var k,I=e.visitNode(Y,ne);if(k&&I)return{typeNode:I,symbols:k};function ne(ee){var A;if(e.isLiteralImportTypeNode(ee)&&ee.qualifier){var f=e.getFirstIdentifier(ee.qualifier),P=e.getNameForExportedSymbol(f.symbol,Z),D=P!==f.text?ie(ee.qualifier,e.factory.createIdentifier(P)):ee.qualifier;k=e.append(k,f.symbol);var l=(A=ee.typeArguments)===null||A===void 0?void 0:A.map(ne);return e.factory.createTypeReferenceNode(D,l)}return e.visitEachChild(ee,ne,e.nullTransformationContext)}}O.tryGetAutoImportableReferenceFromTypeNode=x;function ie(Y,Z){return Y.kind===79?Z:e.factory.createQualifiedName(ie(Y.left,Z),Y.right)}function _e(Y,Z){Z.forEach(function(k){return Y.addImportFromExportedSymbol(k,!0)})}O.importSymbols=_e})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(M,x,ie,_e,Y,Z){var k=S(M,x,ie,_e);if(!(!k||e.refactor.isRefactorErrorInfo(k))){var I=e.textChanges.ChangeTracker.fromContext(Y),ne=k.isStatic,ee=k.isReadonly,A=k.fieldName,f=k.accessorName,P=k.originalName,D=k.type,l=k.container,_=k.declaration;e.suppressLeadingAndTrailingTrivia(A),e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(_),e.suppressLeadingAndTrailingTrivia(l);var J,w;if(e.isClassLike(l)){var j=e.getEffectiveModifierFlags(_);if(e.isSourceFileJS(M)){var U=e.createModifiers(j);J=U,w=U}else J=e.createModifiers(F(j)),w=e.createModifiers(g(j))}G(I,M,_,D,A,w);var z=H(A,f,D,J,ne,l);if(e.suppressLeadingAndTrailingTrivia(z),E(I,M,z,_,l),ee){var y=e.getFirstConstructorWithBody(l);y&&ue(I,M,y,A.text,P)}else{var oe=se(A,f,D,J,ne,l);e.suppressLeadingAndTrailingTrivia(oe),E(I,M,oe,_,l)}return I.getChanges()}}O.generateAccessorFromProperty=L;function W(M){return e.isIdentifier(M)||e.isStringLiteral(M)}function N(M){return e.isParameterPropertyDeclaration(M,M.parent)||e.isPropertyDeclaration(M)||e.isPropertyAssignment(M)}function Q(M,x){return e.isIdentifier(x)?e.factory.createIdentifier(M):e.factory.createStringLiteral(M)}function pe(M,x,ie){var _e=x?ie.name:e.factory.createThis();return e.isIdentifier(M)?e.factory.createPropertyAccessExpression(_e,M):e.factory.createElementAccessExpression(_e,e.factory.createStringLiteralFromNode(M))}function F(M){return M&=-65,M&=-9,M&16||(M|=4),M}function g(M){return M&=-5,M&=-17,M|=8,M}function S(M,x,ie,_e,Y){Y===void 0&&(Y=!0);var Z=e.getTokenAtPosition(M,ie),k=ie===_e&&Y,I=e.findAncestor(Z.parent,N),ne=124;if(!I||!(e.nodeOverlapsWithStartEnd(I.name,M,ie,_e)||k))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!W(I.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(I)|ne)!==ne)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var ee=I.name.text,A=e.startsWithUnderscore(ee),f=Q(A?ee:e.getUniqueName("_".concat(ee),M),I.name),P=Q(A?e.getUniqueName(ee.substring(1),M):ee,I.name);return{isStatic:e.hasStaticModifier(I),isReadonly:e.hasEffectiveReadonlyModifier(I),type:B(I,x),container:I.kind===163?I.parent.parent:I.parent,originalName:I.name.text,declaration:I,fieldName:f,accessorName:P,renameAccessor:A}}O.getAccessorConvertiblePropertyAtPosition=S;function H(M,x,ie,_e,Y,Z){return e.factory.createGetAccessorDeclaration(void 0,_e,x,void 0,ie,e.factory.createBlock([e.factory.createReturnStatement(pe(M,Y,Z))],!0))}function se(M,x,ie,_e,Y,Z){return e.factory.createSetAccessorDeclaration(void 0,_e,x,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,ie)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(pe(M,Y,Z),e.factory.createIdentifier("value")))],!0))}function p(M,x,ie,_e,Y,Z){var k=e.factory.updatePropertyDeclaration(ie,ie.decorators,Z,Y,ie.questionToken||ie.exclamationToken,_e,ie.initializer);M.replaceNode(x,ie,k)}function C(M,x,ie,_e){var Y=e.factory.updatePropertyAssignment(ie,_e,ie.initializer);M.replacePropertyAssignment(x,ie,Y)}function G(M,x,ie,_e,Y,Z){e.isPropertyDeclaration(ie)?p(M,x,ie,_e,Y,Z):e.isPropertyAssignment(ie)?C(M,x,ie,Y):M.replaceNode(x,ie,e.factory.updateParameterDeclaration(ie,ie.decorators,Z,ie.dotDotDotToken,e.cast(Y,e.isIdentifier),ie.questionToken,ie.type,ie.initializer))}function E(M,x,ie,_e,Y){e.isParameterPropertyDeclaration(_e,_e.parent)?M.insertNodeAtClassStart(x,Y,ie):e.isPropertyAssignment(_e)?M.insertNodeAfterComma(x,_e,ie):M.insertNodeAfter(x,_e,ie)}function ue(M,x,ie,_e,Y){!ie.body||ie.body.forEachChild(function Z(k){e.isElementAccessExpression(k)&&k.expression.kind===108&&e.isStringLiteral(k.argumentExpression)&&k.argumentExpression.text===Y&&e.isWriteAccess(k)&&M.replaceNode(x,k.argumentExpression,e.factory.createStringLiteral(_e)),e.isPropertyAccessExpression(k)&&k.expression.kind===108&&k.name.text===Y&&e.isWriteAccess(k)&&M.replaceNode(x,k.name,e.factory.createIdentifier(_e)),!e.isFunctionLike(k)&&!e.isClassLike(k)&&k.forEachChild(Z)})}function B(M,x){var ie=e.getTypeAnnotationNode(M);if(e.isPropertyDeclaration(M)&&ie&&M.questionToken){var _e=x.getTypeChecker(),Y=_e.getTypeFromTypeNode(ie);if(!_e.isTypeAssignableTo(_e.getUndefinedType(),Y)){var Z=e.isUnionTypeNode(ie)?ie.types:[ie];return e.factory.createUnionTypeNode(qe(qe([],Z,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return ie}function re(M,x){for(var ie=[];M;){var _e=e.getClassExtendsHeritageElement(M),Y=_e&&x.getSymbolAtLocation(_e.expression);if(!Y)break;var Z=Y.flags&2097152?x.getAliasedSymbol(Y):Y,k=Z.declarations&&e.find(Z.declarations,e.isClassLike);if(!k)break;ie.push(k),M=k}return ie}O.getAllSupers=re})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="invalidImportSyntax";function W(g,S){var H=e.getSourceFileOfNode(S),se=e.getNamespaceDeclarationNode(S),p=g.program.getCompilerOptions(),C=[];return C.push(N(g,H,S,e.makeImport(se.name,void 0,S.moduleSpecifier,e.getQuotePreference(H,g.preferences)))),e.getEmitModuleKind(p)===e.ModuleKind.CommonJS&&C.push(N(g,H,S,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,se.name,e.factory.createExternalModuleReference(S.moduleSpecifier)))),C}function N(g,S,H,se){var p=e.textChanges.ChangeTracker.with(g,function(C){return C.replaceNode(S,H,se)});return O.createCodeFixActionWithoutFixAll(L,p,[e.Diagnostics.Replace_import_with_0,p[0].textChanges[0].newText])}O.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:Q});function Q(g){var S=g.sourceFile,H=e.Diagnostics.This_expression_is_not_callable.code===g.errorCode?207:208,se=e.findAncestor(e.getTokenAtPosition(S,g.span.start),function(C){return C.kind===H});if(!se)return[];var p=se.expression;return F(g,p)}O.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:pe});function pe(g){var S=g.sourceFile,H=e.findAncestor(e.getTokenAtPosition(S,g.span.start),function(se){return se.getStart()===g.span.start&&se.getEnd()===g.span.start+g.span.length});return H?F(g,H):[]}function F(g,S){var H=g.program.getTypeChecker().getTypeAtLocation(S);if(!(H.symbol&&H.symbol.originatingImport))return[];var se=[],p=H.symbol.originatingImport;if(e.isImportCall(p)||e.addRange(se,W(g,p)),e.isExpression(S)&&!(e.isNamedDeclaration(S.parent)&&S.parent.name===S)){var C=g.sourceFile,G=e.textChanges.ChangeTracker.with(g,function(E){return E.replaceNode(C,S,e.factory.createPropertyAccessExpression(S,"default"),{})});se.push(O.createCodeFixActionWithoutFixAll(L,G,e.Diagnostics.Use_synthetic_default_member))}return se}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="strictClassInitialization",W="addMissingPropertyDefiniteAssignmentAssertions",N="addMissingPropertyUndefinedType",Q="addMissingPropertyInitializer",pe=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];O.registerCodeFix({errorCodes:pe,getCodeActions:function(B){var re=F(B.sourceFile,B.span.start);if(!!re){var M=[];return e.append(M,H(B,re)),e.append(M,g(B,re)),e.append(M,p(B,re)),M}},fixIds:[W,N,Q],getAllCodeActions:function(ue){return O.codeFixAll(ue,pe,function(B,re){var M=F(re.file,re.start);if(!!M)switch(ue.fixId){case W:S(B,re.file,M.prop);break;case N:se(B,re.file,M);break;case Q:var x=ue.program.getTypeChecker(),ie=G(x,M.prop);if(!ie)return;C(B,re.file,M.prop,ie);break;default:e.Debug.fail(JSON.stringify(ue.fixId))}})}});function F(ue,B){var re=e.getTokenAtPosition(ue,B);if(e.isIdentifier(re)&&e.isPropertyDeclaration(re.parent)){var M=e.getEffectiveTypeAnnotationNode(re.parent);if(M)return{type:M,prop:re.parent,isJs:e.isInJSFile(re.parent)}}}function g(ue,B){if(!B.isJs){var re=e.textChanges.ChangeTracker.with(ue,function(M){return S(M,ue.sourceFile,B.prop)});return O.createCodeFixAction(L,re,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,B.prop.getText()],W,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}}function S(ue,B,re){var M=e.factory.updatePropertyDeclaration(re,re.decorators,re.modifiers,re.name,e.factory.createToken(53),re.type,re.initializer);ue.replaceNode(B,re,M)}function H(ue,B){var re=e.textChanges.ChangeTracker.with(ue,function(M){return se(M,ue.sourceFile,B)});return O.createCodeFixAction(L,re,[e.Diagnostics.Add_undefined_type_to_property_0,B.prop.name.getText()],N,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function se(ue,B,re){var M=e.factory.createKeywordTypeNode(152),x=e.isUnionTypeNode(re.type)?re.type.types.concat(M):[re.type,M],ie=e.factory.createUnionTypeNode(x);re.isJs?ue.addJSDocTags(B,re.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(ie))]):ue.replaceNode(B,re.type,ie)}function p(ue,B){if(!B.isJs){var re=ue.program.getTypeChecker(),M=G(re,B.prop);if(!!M){var x=e.textChanges.ChangeTracker.with(ue,function(ie){return C(ie,ue.sourceFile,B.prop,M)});return O.createCodeFixAction(L,x,[e.Diagnostics.Add_initializer_to_property_0,B.prop.name.getText()],Q,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}}function C(ue,B,re,M){var x=e.factory.updatePropertyDeclaration(re,re.decorators,re.modifiers,re.name,re.questionToken,re.type,M);ue.replaceNode(B,re,x)}function G(ue,B){return E(ue,ue.getTypeFromTypeNode(B.type))}function E(ue,B){if(B.flags&512)return B===ue.getFalseType()||B===ue.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(B.isStringLiteral())return e.factory.createStringLiteral(B.value);if(B.isNumberLiteral())return e.factory.createNumericLiteral(B.value);if(B.flags&2048)return e.factory.createBigIntLiteral(B.value);if(B.isUnion())return e.firstDefined(B.types,function(x){return E(ue,x)});if(B.isClass()){var re=e.getClassLikeDeclarationOfSymbol(B.symbol);if(!re||e.hasSyntacticModifier(re,128))return;var M=e.getFirstConstructorWithBody(re);return M&&M.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(B.symbol.name),void 0,void 0)}else if(ue.isArrayLikeType(B))return e.factory.createArrayLiteralExpression()}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="requireInTs",W=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=Q(F.sourceFile,F.program,F.span.start);if(!!g){var S=e.textChanges.ChangeTracker.with(F,function(H){return N(H,F.sourceFile,g)});return[O.createCodeFixAction(L,S,e.Diagnostics.Convert_require_to_import,L,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=Q(S.file,F.program,S.start);H&&N(g,F.sourceFile,H)})}});function N(F,g,S){var H=S.allowSyntheticDefaults,se=S.defaultImportName,p=S.namedImports,C=S.statement,G=S.required;F.replaceNode(g,C,se&&!H?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,se,e.factory.createExternalModuleReference(G)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,se,p),G,void 0))}function Q(F,g,S){var H=e.getTokenAtPosition(F,S).parent;if(!e.isRequireCall(H,!0))throw e.Debug.failBadSyntaxKind(H);var se=e.cast(H.parent,e.isVariableDeclaration),p=e.tryCast(se.name,e.isIdentifier),C=e.isObjectBindingPattern(se.name)?pe(se.name):void 0;if(p||C)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(g.getCompilerOptions()),defaultImportName:p,namedImports:C,statement:e.cast(se.parent.parent,e.isVariableStatement),required:e.first(H.arguments)}}function pe(F){for(var g=[],S=0,H=F.elements;S<H.length;S++){var se=H[S];if(!e.isIdentifier(se.name)||se.initializer)return;g.push(e.factory.createImportSpecifier(!1,e.tryCast(se.propertyName,e.isIdentifier),se.name))}if(g.length)return e.factory.createNamedImports(g)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="useDefaultImport",W=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=pe.sourceFile,g=pe.span.start,S=N(F,g);if(!!S){var H=e.textChanges.ChangeTracker.with(pe,function(se){return Q(se,F,S,pe.preferences)});return[O.createCodeFixAction(L,H,e.Diagnostics.Convert_to_default_import,L,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[L],getAllCodeActions:function(pe){return O.codeFixAll(pe,W,function(F,g){var S=N(g.file,g.start);S&&Q(F,g.file,S,pe.preferences)})}});function N(pe,F){var g=e.getTokenAtPosition(pe,F);if(!!e.isIdentifier(g)){var S=g.parent;if(e.isImportEqualsDeclaration(S)&&e.isExternalModuleReference(S.moduleReference))return{importNode:S,name:g,moduleSpecifier:S.moduleReference.expression};if(e.isNamespaceImport(S)){var H=S.parent.parent;return{importNode:H,name:g,moduleSpecifier:H.moduleSpecifier}}}}function Q(pe,F,g,S){pe.replaceNode(F,g.importNode,e.makeImport(g.name,void 0,g.moduleSpecifier,e.getQuotePreference(F,S)))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="useBigintLiteral",W=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Convert_to_a_bigint_numeric_literal,L,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F)})}});function N(Q,pe,F){var g=e.tryCast(e.getTokenAtPosition(pe,F.start),e.isNumericLiteral);if(!!g){var S=g.getText(pe)+"n";Q.replaceNode(pe,g,e.factory.createBigIntLiteral(S))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixAddModuleReferTypeMissingTypeof",W=L,N=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];O.registerCodeFix({errorCodes:N,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=Q(S,H.start),p=e.textChanges.ChangeTracker.with(g,function(C){return pe(C,S,se)});return[O.createCodeFixAction(W,p,e.Diagnostics.Add_missing_typeof,W,e.Diagnostics.Add_missing_typeof)]},fixIds:[W],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){return pe(g,F.sourceFile,Q(S.file,S.start))})}});function Q(F,g){var S=e.getTokenAtPosition(F,g);return e.Debug.assert(S.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(S.parent.kind===199,"Token parent should be an ImportType"),S.parent}function pe(F,g,S){var H=e.factory.updateImportTypeNode(S,S.argument,S.qualifier,S.typeArguments,!0);F.replaceNode(g,S,H)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="wrapJsxInFragment",W=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);if(!!se){var p=e.textChanges.ChangeTracker.with(g,function(C){return Q(C,S,se)});return[O.createCodeFixAction(L,p,e.Diagnostics.Wrap_in_JSX_fragment,L,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=N(F.sourceFile,S.start);!H||Q(g,F.sourceFile,H)})}});function N(F,g){var S=e.getTokenAtPosition(F,g),H=S.parent,se=H.parent;if(!(!e.isBinaryExpression(se)&&(se=se.parent,!e.isBinaryExpression(se)))&&!!e.nodeIsMissing(se.operatorToken))return se}function Q(F,g,S){var H=pe(S);H&&F.replaceNode(g,S,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),H,e.factory.createJsxJsxClosingFragment()))}function pe(F){for(var g=[],S=F;;)if(e.isBinaryExpression(S)&&e.nodeIsMissing(S.operatorToken)&&S.operatorToken.kind===27){if(g.push(S.left),e.isJsxChild(S.right))return g.push(S.right),g;if(e.isBinaryExpression(S.right)){S=S.right;continue}else return}else return}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixConvertToMappedObjectType",W=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(g){var S=g.sourceFile,H=g.span,se=N(S,H.start);if(!!se){var p=e.textChanges.ChangeTracker.with(g,function(G){return pe(G,S,se)}),C=e.idText(se.container.name);return[O.createCodeFixAction(L,p,[e.Diagnostics.Convert_0_to_mapped_object_type,C],L,[e.Diagnostics.Convert_0_to_mapped_object_type,C])]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,W,function(g,S){var H=N(S.file,S.start);H&&pe(g,S.file,H)})}});function N(F,g){var S=e.getTokenAtPosition(F,g),H=e.tryCast(S.parent.parent,e.isIndexSignatureDeclaration);if(!!H){var se=e.isInterfaceDeclaration(H.parent)?H.parent:e.tryCast(H.parent.parent,e.isTypeAliasDeclaration);if(!!se)return{indexSignature:H,container:se}}}function Q(F,g){return e.factory.createTypeAliasDeclaration(F.decorators,F.modifiers,F.name,F.typeParameters,g)}function pe(F,g,S){var H=S.indexSignature,se=S.container,p=e.isInterfaceDeclaration(se)?se.members:se.type.members,C=p.filter(function(re){return!e.isIndexSignatureDeclaration(re)}),G=e.first(H.parameters),E=e.factory.createTypeParameterDeclaration(e.cast(G.name,e.isIdentifier),G.type),ue=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(H)?e.factory.createModifier(144):void 0,E,void 0,H.questionToken,H.type,void 0),B=e.factory.createIntersectionTypeNode(qe(qe(qe([],e.getAllSuperTypeNodes(se),!0),[ue],!1),C.length?[e.factory.createTypeLiteralNode(C)]:e.emptyArray,!0));F.replaceNode(g,se,Q(se,B))}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="removeAccidentalCallParentheses",W=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(N){var Q=e.findAncestor(e.getTokenAtPosition(N.sourceFile,N.span.start),e.isCallExpression);if(!!Q){var pe=e.textChanges.ChangeTracker.with(N,function(F){F.deleteRange(N.sourceFile,{pos:Q.expression.end,end:Q.end})});return[O.createCodeFixActionWithoutFixAll(L,pe,e.Diagnostics.Remove_parentheses)]}},fixIds:[L]})})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="removeUnnecessaryAwait",W=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(pe){var F=e.textChanges.ChangeTracker.with(pe,function(g){return N(g,pe.sourceFile,pe.span)});if(F.length>0)return[O.createCodeFixAction(L,F,e.Diagnostics.Remove_unnecessary_await,L,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[L],getAllCodeActions:function(Q){return O.codeFixAll(Q,W,function(pe,F){return N(pe,F.file,F)})}});function N(Q,pe,F){var g=e.tryCast(e.getTokenAtPosition(pe,F.start),function(G){return G.kind===132}),S=g&&e.tryCast(g.parent,e.isAwaitExpression);if(!!S){var H=S,se=e.isParenthesizedExpression(S.parent);if(se){var p=e.getLeftmostExpression(S.expression,!1);if(e.isIdentifier(p)){var C=e.findPrecedingToken(S.parent.pos,pe);C&&C.kind!==103&&(H=S.parent)}}Q.replaceNode(pe,H,S.expression)}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],W="splitTypeOnlyImport";O.registerCodeFix({errorCodes:L,fixIds:[W],getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){return Q(S,N(F.sourceFile,F.span),F)});if(g.length)return[O.createCodeFixAction(W,g,e.Diagnostics.Split_into_two_separate_import_declarations,W,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(pe){return O.codeFixAll(pe,L,function(F,g){Q(F,N(pe.sourceFile,g),pe)})}});function N(pe,F){return e.findAncestor(e.getTokenAtPosition(pe,F.start),e.isImportDeclaration)}function Q(pe,F,g){if(!!F){var S=e.Debug.checkDefined(F.importClause);pe.replaceNode(g.sourceFile,F,e.factory.updateImportDeclaration(F,F.decorators,F.modifiers,e.factory.updateImportClause(S,S.isTypeOnly,S.name,void 0),F.moduleSpecifier,F.assertClause)),pe.insertNodeAfter(g.sourceFile,F,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(S,S.isTypeOnly,void 0,S.namedBindings),F.moduleSpecifier,F.assertClause))}}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixConvertConstToLet",W=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];O.registerCodeFix({errorCodes:W,getCodeActions:function(F){var g=F.sourceFile,S=F.span,H=F.program,se=N(g,S.start,H);if(se!==void 0){var p=e.textChanges.ChangeTracker.with(F,function(C){return Q(C,g,se)});return[O.createCodeFixAction(L,p,e.Diagnostics.Convert_const_to_let,L,e.Diagnostics.Convert_const_to_let)]}},fixIds:[L]});function N(pe,F,g){var S,H=g.getTypeChecker(),se=H.getSymbolAtLocation(e.getTokenAtPosition(pe,F)),p=e.tryCast((S=se==null?void 0:se.valueDeclaration)===null||S===void 0?void 0:S.parent,e.isVariableDeclarationList);if(p!==void 0){var C=e.findChildOfKind(p,85,pe);if(C!==void 0)return e.createRange(C.pos,C.end)}}function Q(pe,F,g){pe.replaceRangeWithText(F,g,"let")}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="fixExpectedComma",W=e.Diagnostics._0_expected.code,N=[W];O.registerCodeFix({errorCodes:N,getCodeActions:function(F){var g=F.sourceFile,S=Q(g,F.span.start,F.errorCode);if(!!S){var H=e.textChanges.ChangeTracker.with(F,function(se){return pe(se,g,S)});return[O.createCodeFixAction(L,H,[e.Diagnostics.Change_0_to_1,";",","],L,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[L],getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){var H=Q(S.file,S.start,S.code);H&&pe(g,F.sourceFile,H)})}});function Q(F,g,S){var H=e.getTokenAtPosition(F,g);return H.kind===26&&H.parent&&(e.isObjectLiteralExpression(H.parent)||e.isArrayLiteralExpression(H.parent))?{node:H}:void 0}function pe(F,g,S){var H=S.node,se=e.factory.createToken(27);F.replaceNode(g,H,se)}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="addVoidToPromise",W="addVoidToPromise",N=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];O.registerCodeFix({errorCodes:N,fixIds:[W],getCodeActions:function(F){var g=e.textChanges.ChangeTracker.with(F,function(S){return Q(S,F.sourceFile,F.span,F.program)});if(g.length>0)return[O.createCodeFixAction(L,g,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,W,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(F){return O.codeFixAll(F,N,function(g,S){return Q(g,S.file,S,F.program,new e.Set)})}});function Q(F,g,S,H,se){var p=e.getTokenAtPosition(g,S.start);if(!(!e.isIdentifier(p)||!e.isCallExpression(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)){var C=H.getTypeChecker(),G=C.getSymbolAtLocation(p),E=G==null?void 0:G.valueDeclaration;if(!(!E||!e.isParameter(E)||!e.isNewExpression(E.parent.parent))&&!(se!=null&&se.has(E))){se==null||se.add(E);var ue=pe(E.parent.parent);if(e.some(ue)){var B=ue[0],re=!e.isUnionTypeNode(B)&&!e.isParenthesizedTypeNode(B)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([B,e.factory.createKeywordTypeNode(114)]).types[0]);re&&F.insertText(g,B.pos,"("),F.insertText(g,B.end,re?") | void":" | void")}else{var M=C.getResolvedSignature(p.parent),x=M==null?void 0:M.parameters[0],ie=x&&C.getTypeOfSymbolAtLocation(x,E.parent.parent);e.isInJSFile(E)?(!ie||ie.flags&3)&&(F.insertText(g,E.parent.parent.end,")"),F.insertText(g,e.skipTrivia(g.text,E.parent.parent.pos),"/** @type {Promise<void>} */(")):(!ie||ie.flags&2)&&F.insertText(g,E.parent.parent.expression.end,"<void>")}}}}function pe(F){var g;if(e.isInJSFile(F)){if(e.isParenthesizedExpression(F.parent)){var S=(g=e.getJSDocTypeTag(F.parent))===null||g===void 0?void 0:g.typeExpression.type;if(S&&e.isTypeReferenceNode(S)&&e.isIdentifier(S.typeName)&&e.idText(S.typeName)==="Promise")return S.typeArguments}}else return F.typeArguments}})(a=e.codefix||(e.codefix={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Convert export",W={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},N={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};O.registerRefactor(L,{kinds:[W.kind,N.kind],getAvailableActions:function(G){var E=Q(G,G.triggerReason==="invoked");if(!E)return e.emptyArray;if(!O.isRefactorErrorInfo(E)){var ue=E.wasDefault?W:N;return[{name:L,description:ue.description,actions:[ue]}]}return G.preferences.provideRefactorNotApplicableReason?[{name:L,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Ve(Ve({},W),{notApplicableReason:E.error}),Ve(Ve({},N),{notApplicableReason:E.error})]}]:e.emptyArray},getEditsForAction:function(G,E){e.Debug.assert(E===W.name||E===N.name,"Unexpected action name");var ue=Q(G);e.Debug.assert(ue&&!O.isRefactorErrorInfo(ue),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(G,function(re){return pe(G.file,G.program,ue,re,G.cancellationToken)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function Q(C,G){G===void 0&&(G=!0);var E=C.file,ue=C.program,B=e.getRefactorContextSpan(C),re=e.getTokenAtPosition(E,B.start),M=!!(re.parent&&e.getSyntacticModifierFlags(re.parent)&1)&&G?re.parent:e.getParentNodeInSpan(re,E,B);if(!M||!e.isSourceFile(M.parent)&&!(e.isModuleBlock(M.parent)&&e.isAmbientModule(M.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var x=e.isSourceFile(M.parent)?M.parent.symbol:M.parent.parent.symbol,ie=e.getSyntacticModifierFlags(M)||(e.isExportAssignment(M)&&!M.isExportEquals?513:0),_e=!!(ie&512);if(!(ie&1)||!_e&&x.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var Y=ue.getTypeChecker(),Z=function(ee){return e.isIdentifier(ee)&&Y.getSymbolAtLocation(ee)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(M.kind){case 255:case 256:case 257:case 259:case 258:case 260:{var k=M;return k.name?Z(k.name)||{exportNode:k,exportName:k.name,wasDefault:_e,exportingModuleSymbol:x}:void 0}case 236:{var I=M;if(!(I.declarationList.flags&2)||I.declarationList.declarations.length!==1)return;var ne=e.first(I.declarationList.declarations);return ne.initializer?(e.Debug.assert(!_e,"Can't have a default flag here"),Z(ne.name)||{exportNode:I,exportName:ne.name,wasDefault:_e,exportingModuleSymbol:x}):void 0}case 270:{var k=M;return k.isExportEquals?void 0:Z(k.expression)||{exportNode:k,exportName:k.expression,wasDefault:_e,exportingModuleSymbol:x}}default:return}}function pe(C,G,E,ue,B){F(C,E,ue,G.getTypeChecker()),g(G,E,ue,B)}function F(C,G,E,ue){var B=G.wasDefault,re=G.exportNode,M=G.exportName;if(B)if(e.isExportAssignment(re)&&!re.isExportEquals){var x=re.expression,ie=p(x.text,x.text);E.replaceNode(C,re,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([ie])))}else E.delete(C,e.Debug.checkDefined(e.findModifier(re,88),"Should find a default keyword in modifier list"));else{var _e=e.Debug.checkDefined(e.findModifier(re,93),"Should find an export keyword in modifier list");switch(re.kind){case 255:case 256:case 257:E.insertNodeAfter(C,_e,e.factory.createToken(88));break;case 236:var Y=e.first(re.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(M,ue,C)&&!Y.type){E.replaceNode(C,re,e.factory.createExportDefault(e.Debug.checkDefined(Y.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:E.deleteModifier(C,_e),E.insertNodeAfter(C,re,e.factory.createExportDefault(e.factory.createIdentifier(M.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(re.kind))}}}function g(C,G,E,ue){var B=G.wasDefault,re=G.exportName,M=G.exportingModuleSymbol,x=C.getTypeChecker(),ie=e.Debug.checkDefined(x.getSymbolAtLocation(re),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(C.getSourceFiles(),x,ue,ie,M,re.text,B,function(_e){var Y=_e.getSourceFile();B?S(Y,_e,E,re.text):H(Y,_e,E)})}function S(C,G,E,ue){var B=G.parent;switch(B.kind){case 205:E.replaceNode(C,G,e.factory.createIdentifier(ue));break;case 269:case 274:{var re=B;E.replaceNode(C,re,se(ue,re.name.text));break}case 266:{var M=B;e.Debug.assert(M.name===G,"Import clause name should match provided ref");var re=se(ue,G.text),x=M.namedBindings;if(!x)E.replaceNode(C,G,e.factory.createNamedImports([re]));else if(x.kind===267){E.deleteRange(C,{pos:G.getStart(C),end:x.getStart(C)});var ie=e.isStringLiteral(M.parent.moduleSpecifier)?e.quotePreferenceFromString(M.parent.moduleSpecifier,C):1,_e=e.makeImport(void 0,[se(ue,G.text)],M.parent.moduleSpecifier,ie);E.insertNodeAfter(C,M.parent,_e)}else E.delete(C,G),E.insertNodeAtEndOfList(C,x.elements,re);break}default:e.Debug.failBadSyntaxKind(B)}}function H(C,G,E){var ue=G.parent;switch(ue.kind){case 205:E.replaceNode(C,G,e.factory.createIdentifier("default"));break;case 269:{var B=e.factory.createIdentifier(ue.name.text);ue.parent.elements.length===1?E.replaceNode(C,ue.parent,B):(E.delete(C,ue),E.insertNodeBefore(C,ue.parent,B));break}case 274:{E.replaceNode(C,ue,p("default",ue.name.text));break}default:e.Debug.assertNever(ue,"Unexpected parent kind ".concat(ue.kind))}}function se(C,G){return e.factory.createImportSpecifier(!1,C===G?void 0:e.factory.createIdentifier(C),e.factory.createIdentifier(G))}function p(C,G){return e.factory.createExportSpecifier(!1,C===G?void 0:e.factory.createIdentifier(C),e.factory.createIdentifier(G))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L,W="Convert import",N=(L={},L[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},L[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},L[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},L);O.registerRefactor(W,{kinds:e.getOwnValues(N).map(function(C){return C.kind}),getAvailableActions:function(G){var E=Q(G,G.triggerReason==="invoked");if(!E)return e.emptyArray;if(!O.isRefactorErrorInfo(E)){var ue=N[E.convertTo];return[{name:W,description:ue.description,actions:[ue]}]}return G.preferences.provideRefactorNotApplicableReason?e.getOwnValues(N).map(function(B){return{name:W,description:B.description,actions:[Ve(Ve({},B),{notApplicableReason:E.error})]}}):e.emptyArray},getEditsForAction:function(G,E){e.Debug.assert(e.some(e.getOwnValues(N),function(re){return re.name===E}),"Unexpected action name");var ue=Q(G);e.Debug.assert(ue&&!O.isRefactorErrorInfo(ue),"Expected applicable refactor info");var B=e.textChanges.ChangeTracker.with(G,function(re){return pe(G.file,G.program,re,ue)});return{edits:B,renameFilename:void 0,renameLocation:void 0}}});function Q(C,G){G===void 0&&(G=!0);var E=C.file,ue=e.getRefactorContextSpan(C),B=e.getTokenAtPosition(E,ue.start),re=G?e.findAncestor(B,e.isImportDeclaration):e.getParentNodeInSpan(B,E,ue);if(!re||!e.isImportDeclaration(re))return{error:"Selection is not an import declaration."};var M=ue.start+ue.length,x=e.findNextToken(re,re.parent,E);if(!(x&&M>x.getStart())){var ie=re.importClause;if(!ie)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)};if(!ie.namedBindings)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)};if(ie.namedBindings.kind===267)return{convertTo:0,import:ie.namedBindings};var _e=C.program.getCompilerOptions(),Y=e.getAllowSyntheticDefaultImports(_e)&&se(ie.parent.moduleSpecifier,C.program.getTypeChecker());return Y?{convertTo:1,import:ie.namedBindings}:{convertTo:2,import:ie.namedBindings}}}function pe(C,G,E,ue){var B=G.getTypeChecker();ue.convertTo===0?F(C,B,E,ue.import,e.getAllowSyntheticDefaultImports(G.getCompilerOptions())):H(C,B,E,ue.import,ue.convertTo===1)}function F(C,G,E,ue,B){var re=!1,M=[],x=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(ue.name,G,C,function(A){if(!e.isPropertyAccessOrQualifiedName(A.parent))re=!0;else{var f=g(A.parent).text;G.resolveName(f,A,67108863,!0)&&x.set(f,!0),e.Debug.assert(S(A.parent)===A,"Parent expression should match id"),M.push(A.parent)}});for(var ie=new e.Map,_e=0,Y=M;_e<Y.length;_e++){var Z=Y[_e],k=g(Z).text,I=ie.get(k);I===void 0&&ie.set(k,I=x.has(k)?e.getUniqueName(k,C):k),E.replaceNode(C,Z,e.factory.createIdentifier(I))}var ne=[];ie.forEach(function(A,f){ne.push(e.factory.createImportSpecifier(!1,A===f?void 0:e.factory.createIdentifier(f),e.factory.createIdentifier(A)))});var ee=ue.parent.parent;re&&!B?E.insertNodeAfter(C,ee,p(ee,void 0,ne)):E.replaceNode(C,ee,p(ee,re?e.factory.createIdentifier(ue.name.text):void 0,ne))}function g(C){return e.isPropertyAccessExpression(C)?C.name:C.right}function S(C){return e.isPropertyAccessExpression(C)?C.expression:C.left}function H(C,G,E,ue,B){var re=ue.parent.parent,M=re.moduleSpecifier,x=new e.Set;ue.elements.forEach(function(P){var D=G.getSymbolAtLocation(P.name);D&&x.add(D)});var ie=M&&e.isStringLiteral(M)?e.codefix.moduleSpecifierToValidIdentifier(M.text,99):"module";function _e(P){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,G,C,function(D){var l=G.resolveName(ie,D,67108863,!0);return l?x.has(l)?e.isExportSpecifier(D.parent):!0:!1})}for(var Y=ue.elements.some(_e),Z=Y?e.getUniqueName(ie,C):ie,k=new e.Set,I=function(P){var D=(P.propertyName||P.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(P.name,G,C,function(l){var _=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(Z),D);e.isShorthandPropertyAssignment(l.parent)?E.replaceNode(C,l.parent,e.factory.createPropertyAssignment(l.text,_)):e.isExportSpecifier(l.parent)?k.add(P):E.replaceNode(C,l,_)})},ne=0,ee=ue.elements;ne<ee.length;ne++){var A=ee[ne];I(A)}if(E.replaceNode(C,ue,B?e.factory.createIdentifier(Z):e.factory.createNamespaceImport(e.factory.createIdentifier(Z))),k.size){var f=e.arrayFrom(k.values()).map(function(P){return e.factory.createImportSpecifier(P.isTypeOnly,P.propertyName&&e.factory.createIdentifier(P.propertyName.text),e.factory.createIdentifier(P.name.text))});E.insertNodeAfter(C,ue.parent.parent,p(re,void 0,f))}}function se(C,G){var E=G.resolveExternalModuleName(C);if(!E)return!1;var ue=G.resolveExternalModuleSymbol(E);return E!==ue}function p(C,G,E){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,G,E&&E.length?e.factory.createNamedImports(E):void 0),C.moduleSpecifier,void 0)}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert to optional chain expression",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),pe={name:N,description:Q,kind:"refactor.rewrite.expression.optionalChain"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:g,getAvailableActions:F});function F(k){var I=p(k,k.triggerReason==="invoked");return I?O.isRefactorErrorInfo(I)?k.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:I.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function g(k,I){var ne=p(k);e.Debug.assert(ne&&!O.isRefactorErrorInfo(ne),"Expected applicable refactor info");var ee=e.textChanges.ChangeTracker.with(k,function(A){return Z(k.file,k.program.getTypeChecker(),A,ne,I)});return{edits:ee,renameFilename:void 0,renameLocation:void 0}}function S(k){return e.isBinaryExpression(k)||e.isConditionalExpression(k)}function H(k){return e.isExpressionStatement(k)||e.isReturnStatement(k)||e.isVariableStatement(k)}function se(k){return S(k)||H(k)}function p(k,I){I===void 0&&(I=!0);var ne=k.file,ee=k.program,A=e.getRefactorContextSpan(k),f=A.length===0;if(!(f&&!I)){var P=e.getTokenAtPosition(ne,A.start),D=e.findTokenOnLeftOfPosition(ne,A.start+A.length),l=e.createTextSpanFromBounds(P.pos,D&&D.end>=P.pos?D.getEnd():P.getEnd()),_=f?x(P):M(P,l),J=_&&se(_)?ie(_):void 0;if(!J)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var w=ee.getTypeChecker();return e.isConditionalExpression(J)?C(J,w):G(J)}}function C(k,I){var ne=k.condition,ee=_e(k.whenTrue);if(!ee||I.isNullableType(I.getTypeAtLocation(ee)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(ne)||e.isIdentifier(ne))&&ue(ne,ee.expression))return{finalExpression:ee,occurrences:[ne],expression:k};if(e.isBinaryExpression(ne)){var A=E(ee.expression,ne);return A?{finalExpression:ee,occurrences:A,expression:k}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function G(k){if(k.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var I=_e(k.right);if(!I)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var ne=E(I.expression,k.left);return ne?{finalExpression:I,occurrences:ne,expression:k}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function E(k,I){for(var ne=[];e.isBinaryExpression(I)&&I.operatorToken.kind===55;){var ee=ue(e.skipParentheses(k),e.skipParentheses(I.right));if(!ee)break;ne.push(ee),k=ee,I=I.left}var A=ue(k,I);return A&&ne.push(A),ne.length>0?ne:void 0}function ue(k,I){if(!(!e.isIdentifier(I)&&!e.isPropertyAccessExpression(I)&&!e.isElementAccessExpression(I)))return B(k,I)?I:void 0}function B(k,I){for(;(e.isCallExpression(k)||e.isPropertyAccessExpression(k)||e.isElementAccessExpression(k))&&re(k)!==re(I);)k=k.expression;for(;e.isPropertyAccessExpression(k)&&e.isPropertyAccessExpression(I)||e.isElementAccessExpression(k)&&e.isElementAccessExpression(I);){if(re(k)!==re(I))return!1;k=k.expression,I=I.expression}return e.isIdentifier(k)&&e.isIdentifier(I)&&k.getText()===I.getText()}function re(k){if(e.isIdentifier(k)||e.isStringOrNumericLiteralLike(k))return k.getText();if(e.isPropertyAccessExpression(k))return re(k.name);if(e.isElementAccessExpression(k))return re(k.argumentExpression)}function M(k,I){for(;k.parent;){if(se(k)&&I.length!==0&&k.end>=I.start+I.length)return k;k=k.parent}}function x(k){for(;k.parent;){if(se(k)&&!se(k.parent))return k;k=k.parent}}function ie(k){if(S(k))return k;if(e.isVariableStatement(k)){var I=e.getSingleVariableOfVariableStatement(k),ne=I==null?void 0:I.initializer;return ne&&S(ne)?ne:void 0}return k.expression&&S(k.expression)?k.expression:void 0}function _e(k){if(k=e.skipParentheses(k),e.isBinaryExpression(k))return _e(k.left);if((e.isPropertyAccessExpression(k)||e.isElementAccessExpression(k)||e.isCallExpression(k))&&!e.isOptionalChain(k))return k}function Y(k,I,ne){if(e.isPropertyAccessExpression(I)||e.isElementAccessExpression(I)||e.isCallExpression(I)){var ee=Y(k,I.expression,ne),A=ne.length>0?ne[ne.length-1]:void 0,f=(A==null?void 0:A.getText())===I.expression.getText();if(f&&ne.pop(),e.isCallExpression(I))return f?e.factory.createCallChain(ee,e.factory.createToken(28),I.typeArguments,I.arguments):e.factory.createCallChain(ee,I.questionDotToken,I.typeArguments,I.arguments);if(e.isPropertyAccessExpression(I))return f?e.factory.createPropertyAccessChain(ee,e.factory.createToken(28),I.name):e.factory.createPropertyAccessChain(ee,I.questionDotToken,I.name);if(e.isElementAccessExpression(I))return f?e.factory.createElementAccessChain(ee,e.factory.createToken(28),I.argumentExpression):e.factory.createElementAccessChain(ee,I.questionDotToken,I.argumentExpression)}return I}function Z(k,I,ne,ee,A){var f=ee.finalExpression,P=ee.occurrences,D=ee.expression,l=P[P.length-1],_=Y(I,f,P);_&&(e.isPropertyAccessExpression(_)||e.isElementAccessExpression(_)||e.isCallExpression(_))&&(e.isBinaryExpression(D)?ne.replaceNodeRange(k,l,f,_):e.isConditionalExpression(D)&&ne.replaceNode(k,D,e.factory.createBinaryExpression(_,e.factory.createToken(60),D.whenFalse)))}})(L=O.convertToOptionalChainExpression||(O.convertToOptionalChainExpression={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert overload list to single signature",Q=e.Diagnostics.Convert_overload_list_to_single_signature.message,pe={name:N,description:Q,kind:"refactor.rewrite.function.overloadList"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:g,getAvailableActions:F});function F(se){var p=se.file,C=se.startPosition,G=se.program,E=H(p,C,G);return E?[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function g(se){var p=se.file,C=se.startPosition,G=se.program,E=H(p,C,G);if(!E)return;var ue=G.getTypeChecker(),B=E[E.length-1],re=B;switch(B.kind){case 167:{re=e.factory.updateMethodSignature(B,B.modifiers,B.name,B.questionToken,B.typeParameters,x(E),B.type);break}case 168:{re=e.factory.updateMethodDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.questionToken,B.typeParameters,x(E),B.type,B.body);break}case 173:{re=e.factory.updateCallSignature(B,B.typeParameters,x(E),B.type);break}case 170:{re=e.factory.updateConstructorDeclaration(B,B.decorators,B.modifiers,x(E),B.body);break}case 174:{re=e.factory.updateConstructSignature(B,B.typeParameters,x(E),B.type);break}case 255:{re=e.factory.updateFunctionDeclaration(B,B.decorators,B.modifiers,B.asteriskToken,B.name,B.typeParameters,x(E),B.type,B.body);break}default:return e.Debug.failBadSyntaxKind(B,"Unhandled signature kind in overload list conversion refactoring")}if(re===B)return;var M=e.textChanges.ChangeTracker.with(se,function(Y){Y.replaceNodeRange(p,E[0],E[E.length-1],re)});return{renameFilename:void 0,renameLocation:void 0,edits:M};function x(Y){var Z=Y[Y.length-1];return e.isFunctionLikeDeclaration(Z)&&Z.body&&(Y=Y.slice(0,Y.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(Y,ie)))])}function ie(Y){var Z=e.map(Y.parameters,_e);return e.setEmitFlags(e.factory.createTupleTypeNode(Z),e.some(Z,function(k){return!!e.length(e.getSyntheticLeadingComments(k))})?0:1)}function _e(Y){e.Debug.assert(e.isIdentifier(Y.name));var Z=e.setTextRange(e.factory.createNamedTupleMember(Y.dotDotDotToken,Y.name,Y.questionToken,Y.type||e.factory.createKeywordTypeNode(130)),Y),k=Y.symbol&&Y.symbol.getDocumentationComment(ue);if(k){var I=e.displayPartsToString(k);I.length&&e.setSyntheticLeadingComments(Z,[{text:`*
|
|
`.concat(I.split(`
|
|
`).map(function(ne){return" * ".concat(ne)}).join(`
|
|
`),`
|
|
`),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return Z}}function S(se){switch(se.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function H(se,p,C){var G=e.getTokenAtPosition(se,p),E=e.findAncestor(G,S);if(!!E){var ue=C.getTypeChecker(),B=E.symbol;if(!!B){var re=B.declarations;if(!(e.length(re)<=1)&&!!e.every(re,function(Y){return e.getSourceFileOfNode(Y)===se})&&!!S(re[0])){var M=re[0].kind;if(!!e.every(re,function(Y){return Y.kind===M})){var x=re;if(!e.some(x,function(Y){return!!Y.typeParameters||e.some(Y.parameters,function(Z){return!!Z.decorators||!!Z.modifiers||!e.isIdentifier(Z.name)})})){var ie=e.mapDefined(x,function(Y){return ue.getSignatureFromDeclaration(Y)});if(e.length(ie)===e.length(re)){var _e=ue.getReturnTypeOfSignature(ie[0]);if(!!e.every(ie,function(Y){return ue.getReturnTypeOfSignature(Y)===_e}))return x}}}}}}}})(L=O.addOrRemoveBracesToArrowFunction||(O.addOrRemoveBracesToArrowFunction={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Extract Symbol",Q={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},pe={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};O.registerRefactor(N,{kinds:[Q.kind,pe.kind],getEditsForAction:g,getAvailableActions:F});function F(V){var le=V.kind,ke=se(V.file,e.getRefactorContextSpan(V),V.triggerReason==="invoked"),Ue=ke.targetRange;if(Ue===void 0){if(!ke.errors||ke.errors.length===0||!V.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var He=[];return O.refactorKindBeginsWith(pe.kind,le)&&He.push({name:N,description:pe.description,actions:[Ve(Ve({},pe),{notApplicableReason:Tr(ke.errors)})]}),O.refactorKindBeginsWith(Q.kind,le)&&He.push({name:N,description:Q.description,actions:[Ve(Ve({},Q),{notApplicableReason:Tr(ke.errors)})]}),He}var ar=re(Ue,V);if(ar===void 0)return e.emptyArray;for(var gr=[],me=new e.Map,Ge,er=[],he=new e.Map,we,ye=0,Se=0,ge=ar;Se<ge.length;Se++){var Fe=ge[Se],cr=Fe.functionExtraction,ur=Fe.constantExtraction,Ir=cr.description;if(O.refactorKindBeginsWith(pe.kind,le)&&(cr.errors.length===0?me.has(Ir)||(me.set(Ir,!0),gr.push({description:Ir,name:"function_scope_".concat(ye),kind:pe.kind})):Ge||(Ge={description:Ir,name:"function_scope_".concat(ye),notApplicableReason:Tr(cr.errors),kind:pe.kind})),O.refactorKindBeginsWith(Q.kind,le))if(ur.errors.length===0){var dr=ur.description;he.has(dr)||(he.set(dr,!0),er.push({description:dr,name:"constant_scope_".concat(ye),kind:Q.kind}))}else we||(we={description:Ir,name:"constant_scope_".concat(ye),notApplicableReason:Tr(ur.errors),kind:Q.kind});ye++}var Br=[];return gr.length?Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:gr}):V.preferences.provideRefactorNotApplicableReason&&Ge&&Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[Ge]}),er.length?Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:er}):V.preferences.provideRefactorNotApplicableReason&&we&&Br.push({name:N,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[we]}),Br.length?Br:e.emptyArray;function Tr(n){var Er=n[0].messageText;return typeof Er!="string"&&(Er=Er.messageText),Er}}W.getRefactorActionsToExtractSymbol=F;function g(V,le){var ke=se(V.file,e.getRefactorContextSpan(V)),Ue=ke.targetRange,He=/^function_scope_(\d+)$/.exec(le);if(He){var ar=+He[1];return e.Debug.assert(isFinite(ar),"Expected to parse a finite number from the function scope index"),ue(Ue,V,ar)}var gr=/^constant_scope_(\d+)$/.exec(le);if(gr){var ar=+gr[1];return e.Debug.assert(isFinite(ar),"Expected to parse a finite number from the constant scope index"),B(Ue,V,ar)}e.Debug.fail("Unrecognized action name")}W.getRefactorEditsToExtractSymbol=g;var S;(function(V){function le(ke){return{message:ke,code:0,category:e.DiagnosticCategory.Message,key:ke}}V.cannotExtractRange=le("Cannot extract range."),V.cannotExtractImport=le("Cannot extract import statement."),V.cannotExtractSuper=le("Cannot extract super call."),V.cannotExtractJSDoc=le("Cannot extract JSDoc."),V.cannotExtractEmpty=le("Cannot extract empty range."),V.expressionExpected=le("expression expected."),V.uselessConstantType=le("No reason to extract constant of type."),V.statementOrExpressionExpected=le("Statement or expression expected."),V.cannotExtractRangeContainingConditionalBreakOrContinueStatements=le("Cannot extract range containing conditional break or continue statements."),V.cannotExtractRangeContainingConditionalReturnStatement=le("Cannot extract range containing conditional return statement."),V.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=le("Cannot extract range containing labeled break or continue with target outside of the range."),V.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=le("Cannot extract range containing writes to references located outside of the target range in generators."),V.typeWillNotBeVisibleInTheNewScope=le("Type will not visible in the new scope."),V.functionWillNotBeVisibleInTheNewScope=le("Function will not visible in the new scope."),V.cannotExtractIdentifier=le("Select more than a single identifier."),V.cannotExtractExportedEntity=le("Cannot extract exported declaration"),V.cannotWriteInExpression=le("Cannot write back side-effects when extracting an expression"),V.cannotExtractReadonlyPropertyInitializerOutsideConstructor=le("Cannot move initialization of read-only class property outside of the constructor"),V.cannotExtractAmbientBlock=le("Cannot extract code from ambient contexts"),V.cannotAccessVariablesFromNestedScopes=le("Cannot access variables from nested scopes"),V.cannotExtractToJSClass=le("Cannot extract constant to a class scope in JS"),V.cannotExtractToExpressionArrowFunction=le("Cannot extract constant to an arrow function without a block")})(S=W.Messages||(W.Messages={}));var H;(function(V){V[V.None=0]="None",V[V.HasReturn=1]="HasReturn",V[V.IsGenerator=2]="IsGenerator",V[V.IsAsyncFunction=4]="IsAsyncFunction",V[V.UsesThis=8]="UsesThis",V[V.InStaticRegion=16]="InStaticRegion"})(H||(H={}));function se(V,le,ke){ke===void 0&&(ke=!0);var Ue=le.length;if(Ue===0&&!ke)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractEmpty)]};var He=Ue===0&&ke,ar=e.findFirstNonJsxWhitespaceToken(V,le.start),gr=e.findTokenOnLeftOfPosition(V,e.textSpanEnd(le)),me=ar&&gr&&ke?p(ar,gr,V):le,Ge=He?ce(ar):e.getParentNodeInSpan(ar,V,me),er=He?Ge:e.getParentNodeInSpan(gr,V,me),he=[],we=H.None;if(!Ge||!er)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};if(Ge.flags&4194304)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractJSDoc)]};if(Ge.parent!==er.parent)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};if(Ge!==er){if(!de(Ge.parent))return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};for(var ye=[],Se=0,ge=Ge.parent.statements;Se<ge.length;Se++){var Fe=ge[Se];if(Fe===Ge||ye.length){var cr=n(Fe);if(cr)return{errors:cr};ye.push(Fe)}if(Fe===er)break}return ye.length?{targetRange:{range:ye,facts:we,declarations:he}}:{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]}}if(e.isReturnStatement(Ge)&&!Ge.expression)return{errors:[e.createFileDiagnostic(V,le.start,Ue,S.cannotExtractRange)]};var ur=dr(Ge),Ir=Br(ur)||n(ur);if(Ir)return{errors:Ir};return{targetRange:{range:C(ur),facts:we,declarations:he}};function dr(Er){if(e.isReturnStatement(Er)){if(Er.expression)return Er.expression}else if(e.isVariableStatement(Er)||e.isVariableDeclarationList(Er)){for(var br=e.isVariableStatement(Er)?Er.declarationList.declarations:Er.declarations,Pr=0,Ce=void 0,Le=0,Xe=br;Le<Xe.length;Le++){var Cr=Xe[Le];Cr.initializer&&(Pr++,Ce=Cr.initializer)}if(Pr===1)return Ce}else if(e.isVariableDeclaration(Er)&&Er.initializer)return Er.initializer;return Er}function Br(Er){if(e.isIdentifier(e.isExpressionStatement(Er)?Er.expression:Er))return[e.createDiagnosticForNode(Er,S.cannotExtractIdentifier)]}function Tr(Er,br){for(var Pr=Er;Pr!==br;){if(Pr.kind===166){e.isStatic(Pr)&&(we|=H.InStaticRegion);break}else if(Pr.kind===163){var Ce=e.getContainingFunction(Pr);Ce.kind===170&&(we|=H.InStaticRegion);break}else Pr.kind===168&&e.isStatic(Pr)&&(we|=H.InStaticRegion);Pr=Pr.parent}}function n(Er){var br;if(function(Lr){Lr[Lr.None=0]="None",Lr[Lr.Break=1]="Break",Lr[Lr.Continue=2]="Continue",Lr[Lr.Return=4]="Return"}(br||(br={})),e.Debug.assert(Er.pos<=Er.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(Er.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(Er)&&!(e.isExpressionNode(Er)&&m(Er)))return[e.createDiagnosticForNode(Er,S.statementOrExpressionExpected)];if(Er.flags&8388608)return[e.createDiagnosticForNode(Er,S.cannotExtractAmbientBlock)];var Pr=e.getContainingClass(Er);Pr&&Tr(Er,Pr);var Ce,Le=4,Xe;return Cr(Er),Ce;function Cr(Lr){if(Ce)return!0;if(e.isDeclaration(Lr)){var Jr=Lr.kind===253?Lr.parent.parent:Lr;if(e.hasSyntacticModifier(Jr,1))return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractExportedEntity)),!0;he.push(Lr.symbol)}switch(Lr.kind){case 265:return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractImport)),!0;case 270:return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractExportedEntity)),!0;case 106:if(Lr.parent.kind===207){var Rr=e.getContainingClass(Lr);if(Rr===void 0||Rr.pos<le.start||Rr.end>=le.start+le.length)return(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractSuper)),!0}else we|=H.UsesThis;break;case 213:e.forEachChild(Lr,function or(Kr){if(e.isThis(Kr))we|=H.UsesThis;else{if(e.isClassLike(Kr)||e.isFunctionLike(Kr)&&!e.isArrowFunction(Kr))return!1;e.forEachChild(Kr,or)}});case 256:case 255:e.isSourceFile(Lr.parent)&&Lr.parent.externalModuleIndicator===void 0&&(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var ci=Le;switch(Lr.kind){case 238:Le=0;break;case 251:Le=0;break;case 234:Lr.parent&&Lr.parent.kind===251&&Lr.parent.finallyBlock===Lr&&(Le=4);break;case 289:case 288:Le|=1;break;default:e.isIterationStatement(Lr,!1)&&(Le|=3);break}switch(Lr.kind){case 191:case 108:we|=H.UsesThis;break;case 249:{var be=Lr.label;(Xe||(Xe=[])).push(be.escapedText),e.forEachChild(Lr,Cr),Xe.pop();break}case 245:case 244:{var be=Lr.label;be?e.contains(Xe,be.escapedText)||(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Le&(Lr.kind===245?1:2)||(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 217:we|=H.IsAsyncFunction;break;case 223:we|=H.IsGenerator;break;case 246:Le&4?we|=H.HasReturn:(Ce||(Ce=[])).push(e.createDiagnosticForNode(Lr,S.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(Lr,Cr);break}Le=ci}}}W.getRangeToExtract=se;function p(V,le,ke){var Ue=V.getStart(ke),He=le.getEnd();return ke.text.charCodeAt(He)===59&&He++,{start:Ue,length:He-Ue}}function C(V){if(e.isStatement(V))return[V];if(e.isExpressionNode(V))return e.isExpressionStatement(V.parent)?[V.parent]:V}function G(V){return e.isFunctionLikeDeclaration(V)||e.isSourceFile(V)||e.isModuleBlock(V)||e.isClassLike(V)}function E(V){var le=z(V.range)?e.first(V.range):V.range;if(V.facts&H.UsesThis){var ke=e.getContainingClass(le);if(ke){var Ue=e.findAncestor(le,e.isFunctionLikeDeclaration);return Ue?[Ue,ke]:[ke]}}for(var He=[];;)if(le=le.parent,le.kind===163&&(le=e.findAncestor(le,function(ar){return e.isFunctionLikeDeclaration(ar)}).parent),G(le)&&(He.push(le),le.kind===303))return He}function ue(V,le,ke){var Ue=M(V,le),He=Ue.scopes,ar=Ue.readsAndWrites,gr=ar.target,me=ar.usagesPerScope,Ge=ar.functionErrorsPerScope,er=ar.exposedVariableDeclarations;return e.Debug.assert(!Ge[ke].length,"The extraction went missing? How?"),le.cancellationToken.throwIfCancellationRequested(),I(gr,He[ke],me[ke],er,V,le)}function B(V,le,ke){var Ue=M(V,le),He=Ue.scopes,ar=Ue.readsAndWrites,gr=ar.target,me=ar.usagesPerScope,Ge=ar.constantErrorsPerScope,er=ar.exposedVariableDeclarations;e.Debug.assert(!Ge[ke].length,"The extraction went missing? How?"),e.Debug.assert(er.length===0,"Extract constant accepted a range containing a variable declaration?"),le.cancellationToken.throwIfCancellationRequested();var he=e.isExpression(gr)?gr:gr.statements[0].expression;return ne(he,He[ke],me[ke],V.facts,le)}function re(V,le){var ke=M(V,le),Ue=ke.scopes,He=ke.readsAndWrites,ar=He.functionErrorsPerScope,gr=He.constantErrorsPerScope,me=Ue.map(function(Ge,er){var he=x(Ge),we=ie(Ge),ye=e.isFunctionLikeDeclaration(Ge)?_e(Ge):e.isClassLike(Ge)?Y(Ge):Z(Ge),Se,ge;return ye===1?(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[he,"global"]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"global"])):ye===0?(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[he,"module"]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[we,"module"])):(Se=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[he,ye]),ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[we,ye])),er===0&&!e.isClassLike(Ge)&&(ge=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[we])),{functionExtraction:{description:Se,errors:ar[er]},constantExtraction:{description:ge,errors:gr[er]}}});return me}function M(V,le){var ke=le.file,Ue=E(V),He=y(V,ke),ar=ve(V,Ue,He,ke,le.program.getTypeChecker(),le.cancellationToken);return{scopes:Ue,readsAndWrites:ar}}function x(V){return e.isFunctionLikeDeclaration(V)?"inner function":e.isClassLike(V)?"method":"function"}function ie(V){return e.isClassLike(V)?"readonly field":"constant"}function _e(V){switch(V.kind){case 170:return"constructor";case 212:case 255:return V.name?"function '".concat(V.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(V.name.getText(),"'");case 171:return"'get ".concat(V.name.getText(),"'");case 172:return"'set ".concat(V.name.getText(),"'");default:throw e.Debug.assertNever(V,"Unexpected scope kind ".concat(V.kind))}}function Y(V){return V.kind===256?V.name?"class '".concat(V.name.text,"'"):"anonymous class declaration":V.name?"class expression '".concat(V.name.text,"'"):"anonymous class expression"}function Z(V){return V.kind===261?"namespace '".concat(V.parent.name.getText(),"'"):V.externalModuleIndicator?0:1}var k;(function(V){V[V.Module=0]="Module",V[V.Global=1]="Global"})(k||(k={}));function I(V,le,ke,Ue,He,ar){var gr=ke.usages,me=ke.typeParameterUsages,Ge=ke.substitutions,er=ar.program.getTypeChecker(),he=e.getEmitScriptTarget(ar.program.getCompilerOptions()),we=e.codefix.createImportAdder(ar.file,ar.program,ar.preferences,ar.host),ye=le.getSourceFile(),Se=e.getUniqueName(e.isClassLike(le)?"newMethod":"newFunction",ye),ge=e.isInJSFile(le),Fe=e.factory.createIdentifier(Se),cr,ur=[],Ir=[],dr;gr.forEach(function(Me,v){var xe;if(!ge){var ze=er.getTypeOfSymbolAtLocation(Me.symbol,Me.node);ze=er.getBaseTypeOfLiteralType(ze),xe=e.codefix.typeToAutoImportableTypeNode(er,we,ze,le,he,1)}var Je=e.factory.createParameterDeclaration(void 0,void 0,void 0,v,void 0,xe);ur.push(Je),Me.usage===2&&(dr||(dr=[])).push(Me),Ir.push(e.factory.createIdentifier(v))});var Br=e.arrayFrom(me.values()).map(function(Me){return{type:Me,declaration:A(Me)}}),Tr=Br.sort(f),n=Tr.length===0?void 0:Tr.map(function(Me){return Me.declaration}),Er=n!==void 0?n.map(function(Me){return e.factory.createTypeReferenceNode(Me.name,void 0)}):void 0;if(e.isExpression(V)&&!ge){var br=er.getContextualType(V);cr=er.typeToTypeNode(br,le,1)}var Pr=D(V,Ue,dr,Ge,!!(He.facts&H.HasReturn)),Ce=Pr.body,Le=Pr.returnValueProperty;e.suppressLeadingAndTrailingTrivia(Ce);var Xe;if(e.isClassLike(le)){var Cr=ge?[]:[e.factory.createModifier(121)];He.facts&H.InStaticRegion&&Cr.push(e.factory.createModifier(124)),He.facts&H.IsAsyncFunction&&Cr.push(e.factory.createModifier(131)),Xe=e.factory.createMethodDeclaration(void 0,Cr.length?Cr:void 0,He.facts&H.IsGenerator?e.factory.createToken(41):void 0,Fe,void 0,n,ur,cr,Ce)}else Xe=e.factory.createFunctionDeclaration(void 0,He.facts&H.IsAsyncFunction?[e.factory.createToken(131)]:void 0,He.facts&H.IsGenerator?e.factory.createToken(41):void 0,Fe,n,ur,cr,Ce);var Lr=e.textChanges.ChangeTracker.fromContext(ar),Jr=(z(He.range)?e.last(He.range):He.range).end,Rr=J(Jr,le);Rr?Lr.insertNodeBefore(ar.file,Rr,Xe,!0):Lr.insertNodeAtEndOfScope(ar.file,le,Xe),we.writeFixes(Lr);var ci=[],be=P(le,He,Se),or=e.factory.createCallExpression(be,Er,Ir);if(He.facts&H.IsGenerator&&(or=e.factory.createYieldExpression(e.factory.createToken(41),or)),He.facts&H.IsAsyncFunction&&(or=e.factory.createAwaitExpression(or)),ae(V)&&(or=e.factory.createJsxExpression(void 0,or)),Ue.length&&!dr)if(e.Debug.assert(!Le,"Expected no returnValueProperty"),e.Debug.assert(!(He.facts&H.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ue.length===1){var Kr=Ue[0];ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Kr.name),void 0,e.getSynthesizedDeepClone(Kr.type),or)],Kr.parent.flags)))}else{for(var ei=[],li=[],Si=Ue[0].parent.flags,qi=!1,ft=0,bt=Ue;ft<bt.length;ft++){var Kr=bt[ft];ei.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Kr.name)));var aa=er.typeToTypeNode(er.getBaseTypeOfLiteralType(er.getTypeAtLocation(Kr)),le,1);li.push(e.factory.createPropertySignature(void 0,Kr.symbol.name,void 0,aa)),qi=qi||Kr.type!==void 0,Si=Si&Kr.parent.flags}var sr=qi?e.factory.createTypeLiteralNode(li):void 0;sr&&e.setEmitFlags(sr,1),ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(ei),void 0,sr,or)],Si)))}else if(Ue.length||dr){if(Ue.length)for(var Ji=0,di=Ue;Ji<di.length;Ji++){var Kr=di[Ji],X=Kr.parent.flags;X&2&&(X=X&-3|1),ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Kr.symbol.name,void 0,Dr(Kr.type))],X)))}Le&&ci.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Le,void 0,Dr(cr))],1)));var Ye=U(Ue,dr);Le&&Ye.unshift(e.factory.createShorthandPropertyAssignment(Le)),Ye.length===1?(e.Debug.assert(!Le,"Shouldn't have returnValueProperty here"),ci.push(e.factory.createExpressionStatement(e.factory.createAssignment(Ye[0].name,or))),He.facts&H.HasReturn&&ci.push(e.factory.createReturnStatement())):(ci.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Ye),or))),Le&&ci.push(e.factory.createReturnStatement(e.factory.createIdentifier(Le))))}else He.facts&H.HasReturn?ci.push(e.factory.createReturnStatement(or)):z(He.range)?ci.push(e.factory.createExpressionStatement(or)):ci.push(or);z(He.range)?Lr.replaceNodeRangeWithNodes(ar.file,e.first(He.range),e.last(He.range),ci):Lr.replaceNodeWithNodes(ar.file,He.range,ci);var Be=Lr.getChanges(),Qe=z(He.range)?e.first(He.range):He.range,_r=Qe.getSourceFile().fileName,hr=e.getRenameLocation(Be,_r,Se,!1);return{renameFilename:_r,renameLocation:hr,edits:Be};function Dr(Me){if(Me!==void 0){for(var v=e.getSynthesizedDeepClone(Me),xe=v;e.isParenthesizedTypeNode(xe);)xe=xe.type;return e.isUnionTypeNode(xe)&&e.find(xe.types,function(ze){return ze.kind===152})?v:e.factory.createUnionTypeNode([v,e.factory.createKeywordTypeNode(152)])}}}function ne(V,le,ke,Ue,He){var ar,gr=ke.substitutions,me=He.program.getTypeChecker(),Ge=le.getSourceFile(),er=e.getUniqueName(e.isClassLike(le)?"newProperty":"newLocal",Ge),he=e.isInJSFile(le),we=he||!me.isContextSensitive(V)?void 0:me.typeToTypeNode(me.getContextualType(V),le,1),ye=l(e.skipParentheses(V),gr);ar=Pr(we,ye),we=ar.variableType,ye=ar.initializer,e.suppressLeadingAndTrailingTrivia(ye);var Se=e.textChanges.ChangeTracker.fromContext(He);if(e.isClassLike(le)){e.Debug.assert(!he,"Cannot extract to a JS class");var ge=[];ge.push(e.factory.createModifier(121)),Ue&H.InStaticRegion&&ge.push(e.factory.createModifier(124)),ge.push(e.factory.createModifier(144));var Fe=e.factory.createPropertyDeclaration(void 0,ge,er,void 0,we,ye),cr=e.factory.createPropertyAccessExpression(Ue&H.InStaticRegion?e.factory.createIdentifier(le.name.getText()):e.factory.createThis(),e.factory.createIdentifier(er));ae(V)&&(cr=e.factory.createJsxExpression(void 0,cr));var ur=V.pos,Ir=w(ur,le);Se.insertNodeBefore(He.file,Ir,Fe,!0),Se.replaceNode(He.file,V,cr)}else{var dr=e.factory.createVariableDeclaration(er,void 0,we,ye),Br=ee(V,le);if(Br){Se.insertNodeBefore(He.file,Br,dr);var cr=e.factory.createIdentifier(er);Se.replaceNode(He.file,V,cr)}else if(V.parent.kind===237&&le===e.findAncestor(V,G)){var Tr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([dr],2));Se.replaceNode(He.file,V.parent,Tr)}else{var Tr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([dr],2)),Ir=j(V,le);if(Ir.pos===0?Se.insertNodeAtTopOfFile(He.file,Tr,!1):Se.insertNodeBefore(He.file,Ir,Tr,!1),V.parent.kind===237)Se.delete(He.file,V.parent);else{var cr=e.factory.createIdentifier(er);ae(V)&&(cr=e.factory.createJsxExpression(void 0,cr)),Se.replaceNode(He.file,V,cr)}}}var n=Se.getChanges(),Er=V.getSourceFile().fileName,br=e.getRenameLocation(n,Er,er,!0);return{renameFilename:Er,renameLocation:br,edits:n};function Pr(Ce,Le){if(Ce===void 0)return{variableType:Ce,initializer:Le};if(!e.isFunctionExpression(Le)&&!e.isArrowFunction(Le)||!!Le.typeParameters)return{variableType:Ce,initializer:Le};var Xe=me.getTypeAtLocation(V),Cr=e.singleOrUndefined(me.getSignaturesOfType(Xe,0));if(!Cr)return{variableType:Ce,initializer:Le};if(Cr.getTypeParameters())return{variableType:Ce,initializer:Le};for(var Lr=[],Jr=!1,Rr=0,ci=Le.parameters;Rr<ci.length;Rr++){var be=ci[Rr];if(be.type)Lr.push(be);else{var or=me.getTypeAtLocation(be);or===me.getAnyType()&&(Jr=!0),Lr.push(e.factory.updateParameterDeclaration(be,be.decorators,be.modifiers,be.dotDotDotToken,be.name,be.questionToken,be.type||me.typeToTypeNode(or,le,1),be.initializer))}}if(Jr)return{variableType:Ce,initializer:Le};if(Ce=void 0,e.isArrowFunction(Le))Le=e.factory.updateArrowFunction(Le,V.modifiers,Le.typeParameters,Lr,Le.type||me.typeToTypeNode(Cr.getReturnType(),le,1),Le.equalsGreaterThanToken,Le.body);else{if(Cr&&!!Cr.thisParameter){var Kr=e.firstOrUndefined(Lr);if(!Kr||e.isIdentifier(Kr.name)&&Kr.name.escapedText!=="this"){var ei=me.getTypeOfSymbolAtLocation(Cr.thisParameter,V);Lr.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,me.typeToTypeNode(ei,le,1)))}}Le=e.factory.updateFunctionExpression(Le,V.modifiers,Le.asteriskToken,Le.name,Le.typeParameters,Lr,Le.type||me.typeToTypeNode(Cr.getReturnType(),le,1),Le.body)}return{variableType:Ce,initializer:Le}}}function ee(V,le){for(var ke;V!==void 0&&V!==le;){if(e.isVariableDeclaration(V)&&V.initializer===ke&&e.isVariableDeclarationList(V.parent)&&V.parent.declarations.length>1)return V;ke=V,V=V.parent}}function A(V){var le,ke=V.symbol;if(ke&&ke.declarations)for(var Ue=0,He=ke.declarations;Ue<He.length;Ue++){var ar=He[Ue];(le===void 0||ar.pos<le.pos)&&(le=ar)}return le}function f(V,le){var ke=V.type,Ue=V.declaration,He=le.type,ar=le.declaration;return e.compareProperties(Ue,ar,"pos",e.compareValues)||e.compareStringsCaseSensitive(ke.symbol?ke.symbol.getName():"",He.symbol?He.symbol.getName():"")||e.compareValues(ke.id,He.id)}function P(V,le,ke){var Ue=e.factory.createIdentifier(ke);if(e.isClassLike(V)){var He=le.facts&H.InStaticRegion?e.factory.createIdentifier(V.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(He,Ue)}else return Ue}function D(V,le,ke,Ue,He){var ar=ke!==void 0||le.length>0;if(e.isBlock(V)&&!ar&&Ue.size===0)return{body:e.factory.createBlock(V.statements,!0),returnValueProperty:void 0};var gr,me=!1,Ge=e.factory.createNodeArray(e.isBlock(V)?V.statements.slice(0):[e.isStatement(V)?V:e.factory.createReturnStatement(e.skipParentheses(V))]);if(ar||Ue.size){var er=e.visitNodes(Ge,we).slice();if(ar&&!He&&e.isStatement(V)){var he=U(le,ke);he.length===1?er.push(e.factory.createReturnStatement(he[0].name)):er.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(he)))}return{body:e.factory.createBlock(er,!0),returnValueProperty:gr}}else return{body:e.factory.createBlock(Ge,!0),returnValueProperty:void 0};function we(ye){if(!me&&e.isReturnStatement(ye)&&ar){var Se=U(le,ke);return ye.expression&&(gr||(gr="__return"),Se.unshift(e.factory.createPropertyAssignment(gr,e.visitNode(ye.expression,we)))),Se.length===1?e.factory.createReturnStatement(Se[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Se))}else{var ge=me;me=me||e.isFunctionLikeDeclaration(ye)||e.isClassLike(ye);var Fe=Ue.get(e.getNodeId(ye).toString()),cr=Fe?e.getSynthesizedDeepClone(Fe):e.visitEachChild(ye,we,e.nullTransformationContext);return me=ge,cr}}}function l(V,le){return le.size?ke(V):V;function ke(Ue){var He=le.get(e.getNodeId(Ue).toString());return He?e.getSynthesizedDeepClone(He):e.visitEachChild(Ue,ke,e.nullTransformationContext)}}function _(V){if(e.isFunctionLikeDeclaration(V)){var le=V.body;if(e.isBlock(le))return le.statements}else{if(e.isModuleBlock(V)||e.isSourceFile(V))return V.statements;if(e.isClassLike(V))return V.members;e.assertType(V)}return e.emptyArray}function J(V,le){return e.find(_(le),function(ke){return ke.pos>=V&&e.isFunctionLikeDeclaration(ke)&&!e.isConstructorDeclaration(ke)})}function w(V,le){var ke=le.members;e.Debug.assert(ke.length>0,"Found no members");for(var Ue,He=!0,ar=0,gr=ke;ar<gr.length;ar++){var me=gr[ar];if(me.pos>V)return Ue||ke[0];if(He&&!e.isPropertyDeclaration(me)){if(Ue!==void 0)return me;He=!1}Ue=me}return Ue===void 0?e.Debug.fail():Ue}function j(V,le){e.Debug.assert(!e.isClassLike(le));for(var ke,Ue=V;Ue!==le;Ue=Ue.parent)G(Ue)&&(ke=Ue);for(var Ue=(ke||V).parent;;Ue=Ue.parent){if(de(Ue)){for(var He=void 0,ar=0,gr=Ue.statements;ar<gr.length;ar++){var me=gr[ar];if(me.pos>V.pos)break;He=me}return!He&&e.isCaseClause(Ue)?(e.Debug.assert(e.isSwitchStatement(Ue.parent.parent),"Grandparent isn't a switch statement"),Ue.parent.parent):e.Debug.checkDefined(He,"prevStatement failed to get set")}e.Debug.assert(Ue!==le,"Didn't encounter a block-like before encountering scope")}}function U(V,le){var ke=e.map(V,function(He){return e.factory.createShorthandPropertyAssignment(He.symbol.name)}),Ue=e.map(le,function(He){return e.factory.createShorthandPropertyAssignment(He.symbol.name)});return ke===void 0?Ue:Ue===void 0?ke:ke.concat(Ue)}function z(V){return e.isArray(V)}function y(V,le){return z(V.range)?{pos:e.first(V.range).getStart(le),end:e.last(V.range).getEnd()}:V.range}var oe;(function(V){V[V.Read=1]="Read",V[V.Write=2]="Write"})(oe||(oe={}));function ve(V,le,ke,Ue,He,ar){var gr=new e.Map,me=[],Ge=[],er=[],he=[],we=[],ye=new e.Map,Se=[],ge,Fe=z(V.range)?V.range.length===1&&e.isExpressionStatement(V.range[0])?V.range[0].expression:void 0:V.range,cr;if(Fe===void 0){var ur=V.range,Ir=e.first(ur).getStart(),dr=e.last(ur).end;cr=e.createFileDiagnostic(Ue,Ir,dr-Ir,S.expressionExpected)}else He.getTypeAtLocation(Fe).flags&147456&&(cr=e.createDiagnosticForNode(Fe,S.uselessConstantType));for(var Br=0,Tr=le;Br<Tr.length;Br++){var n=Tr[Br];me.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),Ge.push(new e.Map),er.push([]);var Er=[];cr&&Er.push(cr),e.isClassLike(n)&&e.isInJSFile(n)&&Er.push(e.createDiagnosticForNode(n,S.cannotExtractToJSClass)),e.isArrowFunction(n)&&!e.isBlock(n.body)&&Er.push(e.createDiagnosticForNode(n,S.cannotExtractToExpressionArrowFunction)),he.push(Er)}var br=new e.Map,Pr=z(V.range)?e.factory.createBlock(V.range):V.range,Ce=z(V.range)?e.first(V.range):V.range,Le=Si(Ce);if(ft(Pr),Le&&!z(V.range)){var Xe=He.getContextualType(V.range);qi(Xe)}if(gr.size>0){for(var Cr=new e.Map,Lr=0,Jr=Ce;Jr!==void 0&&Lr<le.length;Jr=Jr.parent)if(Jr===le[Lr]&&(Cr.forEach(function(X,Ye){me[Lr].typeParameterUsages.set(Ye,X)}),Lr++),e.isDeclarationWithTypeParameters(Jr))for(var Rr=0,ci=e.getEffectiveTypeParameterDeclarations(Jr);Rr<ci.length;Rr++){var be=ci[Rr],or=He.getTypeAtLocation(be);gr.has(or.id.toString())&&Cr.set(or.id.toString(),or)}e.Debug.assert(Lr===le.length,"Should have iterated all scopes")}if(we.length){var Kr=e.isBlockScope(le[0],le[0].parent)?le[0]:e.getEnclosingBlockScopeContainer(le[0]);e.forEachChild(Kr,sr)}for(var ei=function(X){var Ye=me[X];if(X>0&&(Ye.usages.size>0||Ye.typeParameterUsages.size>0)){var Be=z(V.range)?V.range[0]:V.range;he[X].push(e.createDiagnosticForNode(Be,S.cannotAccessVariablesFromNestedScopes))}var Qe=!1,_r;if(me[X].usages.forEach(function(Dr){Dr.usage===2&&(Qe=!0,Dr.symbol.flags&106500&&Dr.symbol.valueDeclaration&&e.hasEffectiveModifier(Dr.symbol.valueDeclaration,64)&&(_r=Dr.symbol.valueDeclaration))}),e.Debug.assert(z(V.range)||Se.length===0,"No variable declarations expected if something was extracted"),Qe&&!z(V.range)){var hr=e.createDiagnosticForNode(V.range,S.cannotWriteInExpression);er[X].push(hr),he[X].push(hr)}else if(_r&&X>0){var hr=e.createDiagnosticForNode(_r,S.cannotExtractReadonlyPropertyInitializerOutsideConstructor);er[X].push(hr),he[X].push(hr)}else if(ge){var hr=e.createDiagnosticForNode(ge,S.cannotExtractExportedEntity);er[X].push(hr),he[X].push(hr)}},li=0;li<le.length;li++)ei(li);return{target:Pr,usagesPerScope:me,functionErrorsPerScope:er,constantErrorsPerScope:he,exposedVariableDeclarations:Se};function Si(X){return!!e.findAncestor(X,function(Ye){return e.isDeclarationWithTypeParameters(Ye)&&e.getEffectiveTypeParameterDeclarations(Ye).length!==0})}function qi(X){for(var Ye=He.getSymbolWalker(function(){return ar.throwIfCancellationRequested(),!0}),Be=Ye.walkType(X).visitedTypes,Qe=0,_r=Be;Qe<_r.length;Qe++){var hr=_r[Qe];hr.isTypeParameter()&&gr.set(hr.id.toString(),hr)}}function ft(X,Ye){if(Ye===void 0&&(Ye=1),Le){var Be=He.getTypeAtLocation(X);qi(Be)}if(e.isDeclaration(X)&&X.symbol&&we.push(X),e.isAssignmentExpression(X))ft(X.left,2),ft(X.right);else if(e.isUnaryExpressionWithWrite(X))ft(X.operand,2);else if(e.isPropertyAccessExpression(X)||e.isElementAccessExpression(X))e.forEachChild(X,ft);else if(e.isIdentifier(X)){if(!X.parent||e.isQualifiedName(X.parent)&&X!==X.parent.left||e.isPropertyAccessExpression(X.parent)&&X!==X.parent.expression)return;bt(X,Ye,e.isPartOfTypeNode(X))}else e.forEachChild(X,ft)}function bt(X,Ye,Be){var Qe=aa(X,Ye,Be);if(Qe)for(var _r=0;_r<le.length;_r++){var hr=Ge[_r].get(Qe);hr&&me[_r].substitutions.set(e.getNodeId(X).toString(),hr)}}function aa(X,Ye,Be){var Qe=Ji(X);if(!!Qe){var _r=e.getSymbolId(Qe).toString(),hr=br.get(_r);if(hr&&hr>=Ye)return _r;if(br.set(_r,Ye),hr){for(var Dr=0,Me=me;Dr<Me.length;Dr++){var v=Me[Dr],xe=v.usages.get(X.text);xe&&v.usages.set(X.text,{usage:Ye,symbol:Qe,node:X})}return _r}var ze=Qe.getDeclarations(),Je=ze&&e.find(ze,function(Ti){return Ti.getSourceFile()===Ue});if(!!Je&&!e.rangeContainsStartEnd(ke,Je.getStart(),Je.end)){if(V.facts&H.IsGenerator&&Ye===2){for(var Oe=e.createDiagnosticForNode(X,S.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Fr=0,Xr=er;Fr<Xr.length;Fr++){var Or=Xr[Fr];Or.push(Oe)}for(var We=0,mr=he;We<mr.length;We++){var Or=mr[We];Or.push(Oe)}}for(var Nr=0;Nr<le.length;Nr++){var Ur=le[Nr],si=He.resolveName(Qe.name,Ur,Qe.flags,!1);if(si!==Qe&&!Ge[Nr].has(_r)){var mi=di(Qe.exportSymbol||Qe,Ur,Be);if(mi)Ge[Nr].set(_r,mi);else if(Be){if(!(Qe.flags&262144)){var Oe=e.createDiagnosticForNode(X,S.typeWillNotBeVisibleInTheNewScope);er[Nr].push(Oe),he[Nr].push(Oe)}}else me[Nr].usages.set(X.text,{usage:Ye,symbol:Qe,node:X})}}return _r}}}function sr(X){if(!(X===V.range||z(V.range)&&V.range.indexOf(X)>=0)){var Ye=e.isIdentifier(X)?Ji(X):He.getSymbolAtLocation(X);if(Ye){var Be=e.find(we,function(_r){return _r.symbol===Ye});if(Be)if(e.isVariableDeclaration(Be)){var Qe=Be.symbol.id.toString();ye.has(Qe)||(Se.push(Be),ye.set(Qe,!0))}else ge=ge||Be}e.forEachChild(X,sr)}}function Ji(X){return X.parent&&e.isShorthandPropertyAssignment(X.parent)&&X.parent.name===X?He.getShorthandAssignmentValueSymbol(X.parent):He.getSymbolAtLocation(X)}function di(X,Ye,Be){if(!!X){var Qe=X.getDeclarations();if(Qe&&Qe.some(function(hr){return hr.parent===Ye}))return e.factory.createIdentifier(X.name);var _r=di(X.parent,Ye,Be);if(_r!==void 0)return Be?e.factory.createQualifiedName(_r,e.factory.createIdentifier(X.name)):e.factory.createPropertyAccessExpression(_r,X.name)}}}function ce(V){return e.findAncestor(V,function(le){return le.parent&&m(le)&&!e.isBinaryExpression(le.parent)})}function m(V){var le=V.parent;switch(le.kind){case 297:return!1}switch(V.kind){case 10:return le.kind!==265&&le.kind!==269;case 224:case 200:case 202:return!1;case 79:return le.kind!==202&&le.kind!==269&&le.kind!==274}return!0}function de(V){switch(V.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function ae(V){return(e.isJsxElement(V)||e.isJsxSelfClosingElement(V)||e.isJsxFragment(V))&&(e.isJsxElement(V.parent)||e.isJsxFragment(V.parent))}})(L=O.extractSymbol||(O.extractSymbol={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Extract type",W={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},N={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},Q={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};O.registerRefactor(L,{kinds:[W.kind,N.kind,Q.kind],getAvailableActions:function(G){var E=pe(G,G.triggerReason==="invoked");return E?O.isRefactorErrorInfo(E)?G.preferences.provideRefactorNotApplicableReason?[{name:L,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Ve(Ve({},Q),{notApplicableReason:E.error}),Ve(Ve({},W),{notApplicableReason:E.error}),Ve(Ve({},N),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:L,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:E.isJS?[Q]:e.append([W],E.typeElements&&N)}]:e.emptyArray},getEditsForAction:function(G,E){var ue=G.file,B=pe(G);e.Debug.assert(B&&!O.isRefactorErrorInfo(B),"Expected to find a range to extract");var re=e.getUniqueName("NewType",ue),M=e.textChanges.ChangeTracker.with(G,function(_e){switch(E){case W.name:return e.Debug.assert(!B.isJS,"Invalid actionName/JS combo"),H(_e,ue,re,B);case Q.name:return e.Debug.assert(B.isJS,"Invalid actionName/JS combo"),p(_e,ue,re,B);case N.name:return e.Debug.assert(!B.isJS&&!!B.typeElements,"Invalid actionName/JS combo"),se(_e,ue,re,B);default:e.Debug.fail("Unexpected action name")}}),x=ue.fileName,ie=e.getRenameLocation(M,x,re,!1);return{edits:M,renameFilename:x,renameLocation:ie}}});function pe(C,G){G===void 0&&(G=!0);var E=C.file,ue=C.startPosition,B=e.isSourceFileJS(E),re=e.getTokenAtPosition(E,ue),M=e.createTextRangeFromSpan(e.getRefactorContextSpan(C)),x=M.pos===M.end&&G,ie=e.findAncestor(re,function(I){return I.parent&&e.isTypeNode(I)&&!g(M,I.parent,E)&&(x||e.nodeOverlapsWithStartEnd(re,E,M.pos,M.end))});if(!ie||!e.isTypeNode(ie))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var _e=C.program.getTypeChecker(),Y=e.Debug.checkDefined(e.findAncestor(ie,e.isStatement),"Should find a statement"),Z=S(_e,ie,Y,E);if(!Z)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var k=F(_e,ie);return{isJS:B,selection:ie,firstStatement:Y,typeParameters:Z,typeElements:k}}function F(C,G){if(!!G)if(e.isIntersectionTypeNode(G)){for(var E=[],ue=new e.Map,B=0,re=G.types;B<re.length;B++){var M=re[B],x=F(C,M);if(!x||!x.every(function(ie){return ie.name&&e.addToSeen(ue,e.getNameFromPropertyName(ie.name))}))return;e.addRange(E,x)}return E}else{if(e.isParenthesizedTypeNode(G))return F(C,G.type);if(e.isTypeLiteralNode(G))return G.members}}function g(C,G,E){return e.rangeContainsStartEnd(C,e.skipTrivia(E.text,G.pos),G.end)}function S(C,G,E,ue){var B=[];return re(G)?void 0:B;function re(M){if(e.isTypeReferenceNode(M)){if(e.isIdentifier(M.typeName))for(var x=M.typeName,ie=C.resolveName(x.text,x,262144,!0),_e=0,Y=(ie==null?void 0:ie.declarations)||e.emptyArray;_e<Y.length;_e++){var Z=Y[_e];if(e.isTypeParameterDeclaration(Z)&&Z.getSourceFile()===ue){if(Z.name.escapedText===x.escapedText&&g(Z,G,ue))return!0;if(g(E,Z,ue)&&!g(G,Z,ue)){e.pushIfUnique(B,Z);break}}}}else if(e.isInferTypeNode(M)){var k=e.findAncestor(M,function(ne){return e.isConditionalTypeNode(ne)&&g(ne.extendsType,M,ue)});if(!k||!g(G,k,ue))return!0}else if(e.isTypePredicateNode(M)||e.isThisTypeNode(M)){var I=e.findAncestor(M.parent,e.isFunctionLike);if(I&&I.type&&g(I.type,M,ue)&&!g(G,I,ue))return!0}else if(e.isTypeQueryNode(M)){if(e.isIdentifier(M.exprName)){var ie=C.resolveName(M.exprName.text,M.exprName,111551,!1);if((ie==null?void 0:ie.valueDeclaration)&&g(E,ie.valueDeclaration,ue)&&!g(G,ie.valueDeclaration,ue))return!0}else if(e.isThisIdentifier(M.exprName.left)&&!g(G,M.parent,ue))return!0}return ue&&e.isTupleTypeNode(M)&&e.getLineAndCharacterOfPosition(ue,M.pos).line===e.getLineAndCharacterOfPosition(ue,M.end).line&&e.setEmitFlags(M,1),e.forEachChild(M,re)}}function H(C,G,E,ue){var B=ue.firstStatement,re=ue.selection,M=ue.typeParameters,x=e.factory.createTypeAliasDeclaration(void 0,void 0,E,M.map(function(ie){return e.factory.updateTypeParameterDeclaration(ie,ie.name,ie.constraint,void 0)}),re);C.insertNodeBefore(G,B,e.ignoreSourceNewlines(x),!0),C.replaceNode(G,re,e.factory.createTypeReferenceNode(E,M.map(function(ie){return e.factory.createTypeReferenceNode(ie.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function se(C,G,E,ue){var B,re=ue.firstStatement,M=ue.selection,x=ue.typeParameters,ie=ue.typeElements,_e=e.factory.createInterfaceDeclaration(void 0,void 0,E,x,void 0,ie);e.setTextRange(_e,(B=ie[0])===null||B===void 0?void 0:B.parent),C.insertNodeBefore(G,re,e.ignoreSourceNewlines(_e),!0),C.replaceNode(G,M,e.factory.createTypeReferenceNode(E,x.map(function(Y){return e.factory.createTypeReferenceNode(Y.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function p(C,G,E,ue){var B=ue.firstStatement,re=ue.selection,M=ue.typeParameters,x=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(re),e.factory.createIdentifier(E)),ie=[];e.forEach(M,function(_e){var Y=e.getEffectiveConstraintOfTypeParameter(_e),Z=e.factory.createTypeParameterDeclaration(_e.name),k=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),Y&&e.cast(Y,e.isJSDocTypeExpression),[Z]);ie.push(k)}),C.insertNodeBefore(G,B,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(ie,[x]))),!0),C.replaceNode(G,re,e.factory.createTypeReferenceNode(E,M.map(function(_e){return e.factory.createTypeReferenceNode(_e.name,void 0)})))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Generate 'get' and 'set' accessors",Q=e.Diagnostics.Generate_get_and_set_accessors.message,pe={name:N,description:Q,kind:"refactor.rewrite.property.generateAccessors"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:function(g,S){if(!!g.endPosition){var H=e.codefix.getAccessorConvertiblePropertyAtPosition(g.file,g.program,g.startPosition,g.endPosition);e.Debug.assert(H&&!O.isRefactorErrorInfo(H),"Expected applicable refactor info");var se=e.codefix.generateAccessorFromProperty(g.file,g.program,g.startPosition,g.endPosition,g,S);if(!!se){var p=g.file.fileName,C=H.renameAccessor?H.accessorName:H.fieldName,G=e.isIdentifier(C)?0:-1,E=G+e.getRenameLocation(se,p,C.text,e.isParameter(H.declaration));return{renameFilename:p,renameLocation:E,edits:se}}}},getAvailableActions:function(F){if(!F.endPosition)return e.emptyArray;var g=e.codefix.getAccessorConvertiblePropertyAtPosition(F.file,F.program,F.startPosition,F.endPosition,F.triggerReason==="invoked");return g?O.isRefactorErrorInfo(g)?F.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:g.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}})})(L=O.generateGetAccessorAndSetAccessor||(O.generateGetAccessorAndSetAccessor={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(N){return N.error!==void 0}O.isRefactorErrorInfo=L;function W(N,Q){return Q?N.substr(0,Q.length)===Q:!0}O.refactorKindBeginsWith=W})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L="Move to a new file",W=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),N={name:L,description:W,kind:"refactor.move.newFile"};O.registerRefactor(L,{kinds:[N.kind],getAvailableActions:function(Ge){var er=F(Ge);return Ge.preferences.allowTextChangesInNewFiles&&er?[{name:L,description:W,actions:[N]}]:Ge.preferences.provideRefactorNotApplicableReason?[{name:L,description:W,actions:[Ve(Ve({},N),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(Ge,er){e.Debug.assert(er===L,"Wrong refactor invoked");var he=e.Debug.checkDefined(F(Ge)),we=e.textChanges.ChangeTracker.with(Ge,function(ye){return pe(Ge.file,Ge.program,he,ye,Ge.host,Ge.preferences)});return{edits:we,renameFilename:void 0,renameLocation:void 0}}});function Q(me){var Ge=me.file,er=e.createTextRangeFromSpan(e.getRefactorContextSpan(me)),he=Ge.statements,we=e.findIndex(he,function(ge){return ge.end>er.pos});if(we!==-1){var ye=he[we];if(e.isNamedDeclaration(ye)&&ye.name&&e.rangeContainsRange(ye.name,er))return{toMove:[he[we]],afterLast:he[we+1]};if(!(er.pos>ye.getStart(Ge))){var Se=e.findIndex(he,function(ge){return ge.end>er.end},we);if(!(Se!==-1&&(Se===0||he[Se].getStart(Ge)<er.end)))return{toMove:he.slice(we,Se===-1?he.length:Se),afterLast:Se===-1?void 0:he[Se]}}}}function pe(me,Ge,er,he,we,ye){var Se=Ge.getTypeChecker(),ge=P(me,er.all,Se),Fe=e.getDirectoryPath(me.fileName),cr=e.extensionFromPath(me.fileName),ur=A(f(ge.movedSymbols),cr,Fe,we),Ir=ur+cr;he.createNewFile(me,e.combinePaths(Fe,Ir),se(me,ge,he,er,Ge,ur,ye)),H(Ge,he,me.fileName,Ir,e.hostGetCanonicalFileName(we))}function F(me){var Ge=Q(me);if(Ge!==void 0){var er=[],he=[],we=Ge.toMove,ye=Ge.afterLast;return e.getRangesWhere(we,g,function(Se,ge){for(var Fe=Se;Fe<ge;Fe++)er.push(we[Fe]);he.push({first:we[Se],afterLast:ye})}),er.length===0?void 0:{all:er,ranges:he}}}function g(me){return!S(me)&&!e.isPrologueDirective(me)}function S(me){switch(me.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(me,1);case 236:return me.declarationList.declarations.every(function(Ge){return!!Ge.initializer&&e.isRequireCall(Ge.initializer,!0)});default:return!1}}function H(me,Ge,er,he,we){var ye=me.getCompilerOptions().configFile;if(!!ye){var Se=e.normalizePath(e.combinePaths(er,"..",he)),ge=e.getRelativePathFromFile(ye.fileName,Se,we),Fe=ye.statements[0]&&e.tryCast(ye.statements[0].expression,e.isObjectLiteralExpression),cr=Fe&&e.find(Fe.properties,function(ur){return e.isPropertyAssignment(ur)&&e.isStringLiteral(ur.name)&&ur.name.text==="files"});cr&&e.isArrayLiteralExpression(cr.initializer)&&Ge.insertNodeInListAfter(ye,e.last(cr.initializer.elements),e.factory.createStringLiteral(ge),cr.initializer.elements)}}function se(me,Ge,er,he,we,ye,Se){var ge=we.getTypeChecker(),Fe=e.takeWhile(me.statements,e.isPrologueDirective);if(!me.externalModuleIndicator&&!me.commonJsModuleIndicator)return p(me,he.ranges,er),qe(qe([],Fe,!0),he.all,!0);var cr=!!me.externalModuleIndicator,ur=e.getQuotePreference(me,Se),Ir=x(Ge.oldFileImportsFromNewFile,ye,cr,ur);Ir&&e.insertImports(er,me,Ir,!0),C(me,he.all,er,Ge.unusedImportsFromOldFile,ge),p(me,he.ranges,er),G(er,we,me,Ge.movedSymbols,ye);var dr=ee(me,Ge.oldImportsNeededByNewFile,Ge.newFileImportsFromOldFile,er,ge,cr,ur),Br=Z(me,he.all,Ge.oldFileImportsFromNewFile,cr);return dr.length&&Br.length?qe(qe(qe(qe([],Fe,!0),dr,!0),[4],!1),Br,!0):qe(qe(qe([],Fe,!0),dr,!0),Br,!0)}function p(me,Ge,er){for(var he=0,we=Ge;he<we.length;he++){var ye=we[he],Se=ye.first,ge=ye.afterLast;er.deleteNodeRangeExcludingEnd(me,Se,ge)}}function C(me,Ge,er,he,we){for(var ye=0,Se=me.statements;ye<Se.length;ye++){var ge=Se[ye];e.contains(Ge,ge)||M(ge,function(Fe){return k(me,Fe,er,function(cr){return he.has(we.getSymbolAtLocation(cr))})})}}function G(me,Ge,er,he,we){for(var ye=Ge.getTypeChecker(),Se=function(ur){if(ur===er)return"continue";for(var Ir=function(n){M(n,function(Er){if(ye.getSymbolAtLocation(re(Er))===er.symbol){var br=function(Xe){var Cr=e.isBindingElement(Xe.parent)?e.getPropertySymbolFromBindingElement(ye,Xe.parent):e.skipAlias(ye.getSymbolAtLocation(Xe),ye);return!!Cr&&he.has(Cr)};k(ur,Er,me,br);var Pr=e.combinePaths(e.getDirectoryPath(re(Er).text),we),Ce=_(Er,e.factory.createStringLiteral(Pr),br);Ce&&me.insertNodeAfter(ur,n,Ce);var Le=E(Er);Le&&ue(me,ur,ye,he,we,Pr,Le,Er)}})},dr=0,Br=ur.statements;dr<Br.length;dr++){var Tr=Br[dr];Ir(Tr)}},ge=0,Fe=Ge.getSourceFiles();ge<Fe.length;ge++){var cr=Fe[ge];Se(cr)}}function E(me){switch(me.kind){case 265:return me.importClause&&me.importClause.namedBindings&&me.importClause.namedBindings.kind===267?me.importClause.namedBindings.name:void 0;case 264:return me.name;case 253:return e.tryCast(me.name,e.isIdentifier);default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function ue(me,Ge,er,he,we,ye,Se,ge){var Fe=e.codefix.moduleSpecifierToValidIdentifier(we,99),cr=!1,ur=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Se,er,Ge,function(n){!e.isPropertyAccessExpression(n.parent)||(cr=cr||!!er.resolveName(Fe,n,67108863,!0),he.has(er.getSymbolAtLocation(n.parent.name))&&ur.push(n))}),ur.length){for(var Ir=cr?e.getUniqueName(Fe,Ge):Fe,dr=0,Br=ur;dr<Br.length;dr++){var Tr=Br[dr];me.replaceNode(Ge,Tr,e.factory.createIdentifier(Ir))}me.insertNodeAfter(Ge,ge,B(ge,we,ye))}}function B(me,Ge,er){var he=e.factory.createIdentifier(Ge),we=e.factory.createStringLiteral(er);switch(me.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(he)),we,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,he,e.factory.createExternalModuleReference(we));case 253:return e.factory.createVariableDeclaration(he,void 0,void 0,Y(we));default:return e.Debug.assertNever(me,"Unexpected node kind ".concat(me.kind))}}function re(me){return me.kind===265?me.moduleSpecifier:me.kind===264?me.moduleReference.expression:me.initializer.arguments[0]}function M(me,Ge){if(e.isImportDeclaration(me))e.isStringLiteral(me.moduleSpecifier)&&Ge(me);else if(e.isImportEqualsDeclaration(me))e.isExternalModuleReference(me.moduleReference)&&e.isStringLiteralLike(me.moduleReference.expression)&&Ge(me);else if(e.isVariableStatement(me))for(var er=0,he=me.declarationList.declarations;er<he.length;er++){var we=he[er];we.initializer&&e.isRequireCall(we.initializer,!0)&&Ge(we)}}function x(me,Ge,er,he){var we,ye=[];return me.forEach(function(Se){Se.escapedName==="default"?we=e.factory.createIdentifier(e.symbolNameNoDefault(Se)):ye.push(Se.name)}),ie(we,ye,Ge,er,he)}function ie(me,Ge,er,he,we){if(er=e.ensurePathIsNonModuleName(er),he){var ye=Ge.map(function(ge){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(ge))});return e.makeImportIfNecessary(me,ye,er,we)}else{e.Debug.assert(!me,"No default import should exist");var Se=Ge.map(function(ge){return e.factory.createBindingElement(void 0,void 0,ge)});return Se.length?_e(e.factory.createObjectBindingPattern(Se),void 0,Y(e.factory.createStringLiteral(er))):void 0}}function _e(me,Ge,er,he){return he===void 0&&(he=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(me,void 0,Ge,er)],he))}function Y(me){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[me])}function Z(me,Ge,er,he){return e.flatMap(Ge,function(we){if(oe(we)&&!le(me,we,he)&&ce(we,function(Se){return er.has(e.Debug.checkDefined(Se.symbol))})){var ye=ke(we,he);if(ye)return ye}return we})}function k(me,Ge,er,he){switch(Ge.kind){case 265:I(me,Ge,er,he);break;case 264:he(Ge.name)&&er.delete(me,Ge);break;case 253:ne(me,Ge,er,he);break;default:e.Debug.assertNever(Ge,"Unexpected import decl kind ".concat(Ge.kind))}}function I(me,Ge,er,he){if(!!Ge.importClause){var we=Ge.importClause,ye=we.name,Se=we.namedBindings,ge=!ye||he(ye),Fe=!Se||(Se.kind===267?he(Se.name):Se.elements.length!==0&&Se.elements.every(function(dr){return he(dr.name)}));if(ge&&Fe)er.delete(me,Ge);else if(ye&&ge&&er.delete(me,ye),Se){if(Fe)er.replaceNode(me,Ge.importClause,e.factory.updateImportClause(Ge.importClause,Ge.importClause.isTypeOnly,ye,void 0));else if(Se.kind===268)for(var cr=0,ur=Se.elements;cr<ur.length;cr++){var Ir=ur[cr];he(Ir.name)&&er.delete(me,Ir)}}}}function ne(me,Ge,er,he){var we=Ge.name;switch(we.kind){case 79:he(we)&&er.delete(me,we);break;case 201:break;case 200:if(we.elements.every(function(Fe){return e.isIdentifier(Fe.name)&&he(Fe.name)}))er.delete(me,e.isVariableDeclarationList(Ge.parent)&&Ge.parent.declarations.length===1?Ge.parent.parent:Ge);else for(var ye=0,Se=we.elements;ye<Se.length;ye++){var ge=Se[ye];e.isIdentifier(ge.name)&&he(ge.name)&&er.delete(me,ge.name)}break}}function ee(me,Ge,er,he,we,ye,Se){for(var ge=[],Fe=0,cr=me.statements;Fe<cr.length;Fe++){var ur=cr[Fe];M(ur,function(Tr){e.append(ge,_(Tr,re(Tr),function(n){return Ge.has(we.getSymbolAtLocation(n))}))})}var Ir,dr=[],Br=e.nodeSeenTracker();return er.forEach(function(Tr){if(!!Tr.declarations)for(var n=0,Er=Tr.declarations;n<Er.length;n++){var br=Er[n];if(!!z(br)){var Pr=de(br);if(!!Pr){var Ce=ae(br);Br(Ce)&&V(me,Ce,Pr,he,ye),e.hasSyntacticModifier(br,512)?Ir=Pr:dr.push(Pr.text)}}}}),e.append(ge,ie(Ir,dr,e.removeFileExtension(e.getBaseFileName(me.fileName)),ye,Se)),ge}function A(me,Ge,er,he){for(var we=me,ye=1;;ye++){var Se=e.combinePaths(er,we+Ge);if(!he.fileExists(Se))return we;we="".concat(me,".").concat(ye)}}function f(me){return me.forEachEntry(e.symbolNameNoDefault)||"newFile"}function P(me,Ge,er){var he=new U,we=new U,ye=new U,Se=e.find(Ge,function(Pr){return!!(Pr.transformFlags&2)}),ge=br(Se);ge&&we.add(ge);for(var Fe=0,cr=Ge;Fe<cr.length;Fe++){var ur=cr[Fe];ce(ur,function(Pr){he.add(e.Debug.checkDefined(e.isExpressionStatement(Pr)?er.getSymbolAtLocation(Pr.expression.left):Pr.symbol,"Need a symbol here"))})}for(var Ir=0,dr=Ge;Ir<dr.length;Ir++){var ur=dr[Ir];j(ur,er,function(Ce){if(!!Ce.declarations)for(var Le=0,Xe=Ce.declarations;Le<Xe.length;Le++){var Cr=Xe[Le];D(Cr)?we.add(Ce):z(Cr)&&y(Cr)===me&&!he.has(Ce)&&ye.add(Ce)}})}for(var Br=we.clone(),Tr=new U,n=0,Er=me.statements;n<Er.length;n++){var ur=Er[n];e.contains(Ge,ur)||(ge&&!!(ur.transformFlags&2)&&Br.delete(ge),j(ur,er,function(Ce){he.has(Ce)&&Tr.add(Ce),Br.delete(Ce)}))}return{movedSymbols:he,newFileImportsFromOldFile:ye,oldFileImportsFromNewFile:Tr,oldImportsNeededByNewFile:we,unusedImportsFromOldFile:Br};function br(Pr){if(Pr!==void 0){var Ce=er.getJsxNamespace(Pr),Le=er.resolveName(Ce,Pr,1920,!0);return!!Le&&e.some(Le.declarations,D)?Le:void 0}}}function D(me){switch(me.kind){case 264:case 269:case 266:case 267:return!0;case 253:return l(me);case 202:return e.isVariableDeclaration(me.parent.parent)&&l(me.parent.parent);default:return!1}}function l(me){return e.isSourceFile(me.parent.parent.parent)&&!!me.initializer&&e.isRequireCall(me.initializer,!0)}function _(me,Ge,er){switch(me.kind){case 265:{var he=me.importClause;if(!he)return;var we=he.name&&er(he.name)?he.name:void 0,ye=he.namedBindings&&J(he.namedBindings,er);return we||ye?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,we,ye),Ge,void 0):void 0}case 264:return er(me.name)?me:void 0;case 253:{var Se=w(me.name,er);return Se?_e(Se,me.type,Y(Ge),me.parent.flags):void 0}default:return e.Debug.assertNever(me,"Unexpected import kind ".concat(me.kind))}}function J(me,Ge){if(me.kind===267)return Ge(me.name)?me:void 0;var er=me.elements.filter(function(he){return Ge(he.name)});return er.length?e.factory.createNamedImports(er):void 0}function w(me,Ge){switch(me.kind){case 79:return Ge(me)?me:void 0;case 201:return me;case 200:{var er=me.elements.filter(function(he){return he.propertyName||!e.isIdentifier(he.name)||Ge(he.name)});return er.length?e.factory.createObjectBindingPattern(er):void 0}}}function j(me,Ge,er){me.forEachChild(function he(we){if(e.isIdentifier(we)&&!e.isDeclarationName(we)){var ye=Ge.getSymbolAtLocation(we);ye&&er(ye)}else we.forEachChild(he)})}var U=function(){function me(){this.map=new e.Map}return me.prototype.add=function(Ge){this.map.set(String(e.getSymbolId(Ge)),Ge)},me.prototype.has=function(Ge){return this.map.has(String(e.getSymbolId(Ge)))},me.prototype.delete=function(Ge){this.map.delete(String(e.getSymbolId(Ge)))},me.prototype.forEach=function(Ge){this.map.forEach(Ge)},me.prototype.forEachEntry=function(Ge){return e.forEachEntry(this.map,Ge)},me.prototype.clone=function(){var Ge=new me;return e.copyEntries(this.map,Ge.map),Ge},me}();function z(me){return ve(me)&&e.isSourceFile(me.parent)||e.isVariableDeclaration(me)&&e.isSourceFile(me.parent.parent.parent)}function y(me){return e.isVariableDeclaration(me)?me.parent.parent.parent:me.parent}function oe(me){return e.Debug.assert(e.isSourceFile(me.parent),"Node parent should be a SourceFile"),ve(me)||e.isVariableStatement(me)}function ve(me){switch(me.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function ce(me,Ge){switch(me.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return Ge(me);case 236:return e.firstDefined(me.declarationList.declarations,function(he){return m(he.name,Ge)});case 237:{var er=me.expression;return e.isBinaryExpression(er)&&e.getAssignmentDeclarationKind(er)===1?Ge(me):void 0}}}function m(me,Ge){switch(me.kind){case 79:return Ge(e.cast(me.parent,function(er){return e.isVariableDeclaration(er)||e.isBindingElement(er)}));case 201:case 200:return e.firstDefined(me.elements,function(er){return e.isOmittedExpression(er)?void 0:m(er.name,Ge)});default:return e.Debug.assertNever(me,"Unexpected name kind ".concat(me.kind))}}function de(me){return e.isExpressionStatement(me)?e.tryCast(me.expression.left.name,e.isIdentifier):e.tryCast(me.name,e.isIdentifier)}function ae(me){switch(me.kind){case 253:return me.parent.parent;case 202:return ae(e.cast(me.parent.parent,function(Ge){return e.isVariableDeclaration(Ge)||e.isBindingElement(Ge)}));default:return me}}function V(me,Ge,er,he,we){if(!le(me,Ge,we,er))if(we)e.isExpressionStatement(Ge)||he.insertExportModifier(me,Ge);else{var ye=ar(Ge);ye.length!==0&&he.insertNodesAfter(me,Ge,ye.map(gr))}}function le(me,Ge,er,he){var we;return er?!e.isExpressionStatement(Ge)&&e.hasSyntacticModifier(Ge,1)||!!(he&&((we=me.symbol.exports)===null||we===void 0?void 0:we.has(he.escapedText))):ar(Ge).some(function(ye){return me.symbol.exports.has(e.escapeLeadingUnderscores(ye))})}function ke(me,Ge){return Ge?[Ue(me)]:He(me)}function Ue(me){var Ge=e.concatenate([e.factory.createModifier(93)],me.modifiers);switch(me.kind){case 255:return e.factory.updateFunctionDeclaration(me,me.decorators,Ge,me.asteriskToken,me.name,me.typeParameters,me.parameters,me.type,me.body);case 256:return e.factory.updateClassDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.heritageClauses,me.members);case 236:return e.factory.updateVariableStatement(me,Ge,me.declarationList);case 260:return e.factory.updateModuleDeclaration(me,me.decorators,Ge,me.name,me.body);case 259:return e.factory.updateEnumDeclaration(me,me.decorators,Ge,me.name,me.members);case 258:return e.factory.updateTypeAliasDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.type);case 257:return e.factory.updateInterfaceDeclaration(me,me.decorators,Ge,me.name,me.typeParameters,me.heritageClauses,me.members);case 264:return e.factory.updateImportEqualsDeclaration(me,me.decorators,Ge,me.isTypeOnly,me.name,me.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(me,"Unexpected declaration kind ".concat(me.kind))}}function He(me){return qe([me],ar(me).map(gr),!0)}function ar(me){switch(me.kind){case 255:case 256:return[me.name.text];case 236:return e.mapDefined(me.declarationList.declarations,function(Ge){return e.isIdentifier(Ge.name)?Ge.name.text:void 0});case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(me,"Unexpected decl kind ".concat(me.kind))}}function gr(me){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(me)),63,e.factory.createIdentifier(me)))}})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Add or remove braces in an arrow function",Q=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,pe={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},F={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};O.registerRefactor(N,{kinds:[F.kind],getEditsForAction:S,getAvailableActions:g});function g(se){var p=se.file,C=se.startPosition,G=se.triggerReason,E=H(p,C,G==="invoked");return E?O.isRefactorErrorInfo(E)?se.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:E.error}),Ve(Ve({},F),{notApplicableReason:E.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[E.addBraces?pe:F]}]:e.emptyArray}function S(se,p){var C=se.file,G=se.startPosition,E=H(C,G);e.Debug.assert(E&&!O.isRefactorErrorInfo(E),"Expected applicable refactor info");var ue=E.expression,B=E.returnStatement,re=E.func,M;if(p===pe.name){var x=e.factory.createReturnStatement(ue);M=e.factory.createBlock([x],!0),e.copyLeadingComments(ue,x,C,3,!0)}else if(p===F.name&&B){var ie=ue||e.factory.createVoidZero();M=e.needsParentheses(ie)?e.factory.createParenthesizedExpression(ie):ie,e.copyTrailingAsLeadingComments(B,M,C,3,!1),e.copyLeadingComments(B,M,C,3,!1),e.copyTrailingComments(B,M,C,3,!1)}else e.Debug.fail("invalid action");var _e=e.textChanges.ChangeTracker.with(se,function(Y){Y.replaceNode(C,re.body,M)});return{renameFilename:void 0,renameLocation:void 0,edits:_e}}function H(se,p,C,G){C===void 0&&(C=!0);var E=e.getTokenAtPosition(se,p),ue=e.getContainingFunction(E);if(!ue)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(ue))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(ue,E)||e.rangeContainsRange(ue.body,E)&&!C)){if(O.refactorKindBeginsWith(pe.kind,G)&&e.isExpression(ue.body))return{func:ue,addBraces:!0,expression:ue.body};if(O.refactorKindBeginsWith(F.kind,G)&&e.isBlock(ue.body)&&ue.body.statements.length===1){var B=e.first(ue.body.statements);if(e.isReturnStatement(B))return{func:ue,addBraces:!1,expression:B.expression,returnStatement:B}}}}})(L=O.addOrRemoveBracesToArrowFunction||(O.addOrRemoveBracesToArrowFunction={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert parameters to destructured object",Q=1,pe=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),F={name:N,description:pe,kind:"refactor.rewrite.parameters.toDestructured"};O.registerRefactor(N,{kinds:[F.kind],getEditsForAction:S,getAvailableActions:g});function g(w){var j=w.file,U=w.startPosition,z=e.isSourceFileJS(j);if(z)return e.emptyArray;var y=re(j,U,w.program.getTypeChecker());return y?[{name:N,description:pe,actions:[F]}]:e.emptyArray}function S(w,j){e.Debug.assert(j===N,"Unexpected action name");var U=w.file,z=w.startPosition,y=w.program,oe=w.cancellationToken,ve=w.host,ce=re(U,z,y.getTypeChecker());if(!(!ce||!oe)){var m=se(ce,y,oe);if(m.valid){var de=e.textChanges.ChangeTracker.with(w,function(ae){return H(U,y,ve,ae,ce,m)});return{renameFilename:void 0,renameLocation:void 0,edits:de}}return{edits:[]}}}function H(w,j,U,z,y,oe){var ve=oe.signature,ce=e.map(D(y,j,U),function(He){return e.getSynthesizedDeepClone(He)});if(ve){var m=e.map(D(ve,j,U),function(He){return e.getSynthesizedDeepClone(He)});Ue(ve,m)}Ue(y,ce);for(var de=e.sortAndDeduplicate(oe.functionCalls,function(He,ar){return e.compareValues(He.pos,ar.pos)}),ae=0,V=de;ae<V.length;ae++){var le=V[ae];if(le.arguments&&le.arguments.length){var ke=e.getSynthesizedDeepClone(P(y,le.arguments),!0);z.replaceNodeRange(e.getSourceFileOfNode(le),e.first(le.arguments),e.last(le.arguments),ke,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Ue(He,ar){z.replaceNodeRangeWithNodes(w,e.first(He.parameters),e.last(He.parameters),ar,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function se(w,j,U){var z=J(w),y=e.isConstructorDeclaration(w)?_(w):[],oe=e.deduplicate(qe(qe([],z,!0),y,!0),e.equateValues),ve=j.getTypeChecker(),ce=e.flatMap(oe,function(V){return e.FindAllReferences.getReferenceEntriesForNode(-1,V,j,j.getSourceFiles(),U)}),m=de(ce);return e.every(m.declarations,function(V){return e.contains(oe,V)})||(m.valid=!1),m;function de(V){for(var le={accessExpressions:[],typeUsages:[]},ke={functionCalls:[],declarations:[],classReferences:le,valid:!0},Ue=e.map(z,ae),He=e.map(y,ae),ar=e.isConstructorDeclaration(w),gr=e.map(z,function(cr){return p(cr,ve)}),me=0,Ge=V;me<Ge.length;me++){var er=Ge[me];if(er.kind===0){ke.valid=!1;continue}if(e.contains(gr,ae(er.node))){if(x(er.node.parent)){ke.signature=er.node.parent;continue}var he=E(er);if(he){ke.functionCalls.push(he);continue}}var we=p(er.node,ve);if(we&&e.contains(gr,we)){var ye=G(er);if(ye){ke.declarations.push(ye);continue}}if(e.contains(Ue,ae(er.node))||e.isNewExpressionTarget(er.node)){var Se=C(er);if(Se)continue;var ye=G(er);if(ye){ke.declarations.push(ye);continue}var he=E(er);if(he){ke.functionCalls.push(he);continue}}if(ar&&e.contains(He,ae(er.node))){var Se=C(er);if(Se)continue;var ye=G(er);if(ye){ke.declarations.push(ye);continue}var ge=ue(er);if(ge){le.accessExpressions.push(ge);continue}if(e.isClassDeclaration(w.parent)){var Fe=B(er);if(Fe){le.typeUsages.push(Fe);continue}}}ke.valid=!1}return ke}function ae(V){var le=ve.getSymbolAtLocation(V);return le&&e.getSymbolTarget(le,ve)}}function p(w,j){var U=e.getContainingObjectLiteralElement(w);if(U){var z=j.getContextualTypeForObjectLiteralElement(U),y=z==null?void 0:z.getSymbol();if(y&&!(e.getCheckFlags(y)&6))return y}}function C(w){var j=w.node;if(e.isImportSpecifier(j.parent)||e.isImportClause(j.parent)||e.isImportEqualsDeclaration(j.parent)||e.isNamespaceImport(j.parent)||e.isExportSpecifier(j.parent)||e.isExportAssignment(j.parent))return j}function G(w){if(e.isDeclaration(w.node.parent))return w.node}function E(w){if(w.node.parent){var j=w.node,U=j.parent;switch(U.kind){case 207:case 208:var z=e.tryCast(U,e.isCallOrNewExpression);if(z&&z.expression===j)return z;break;case 205:var y=e.tryCast(U,e.isPropertyAccessExpression);if(y&&y.parent&&y.name===j){var oe=e.tryCast(y.parent,e.isCallOrNewExpression);if(oe&&oe.expression===y)return oe}break;case 206:var ve=e.tryCast(U,e.isElementAccessExpression);if(ve&&ve.parent&&ve.argumentExpression===j){var ce=e.tryCast(ve.parent,e.isCallOrNewExpression);if(ce&&ce.expression===ve)return ce}break}}}function ue(w){if(w.node.parent){var j=w.node,U=j.parent;switch(U.kind){case 205:var z=e.tryCast(U,e.isPropertyAccessExpression);if(z&&z.expression===j)return z;break;case 206:var y=e.tryCast(U,e.isElementAccessExpression);if(y&&y.expression===j)return y;break}}}function B(w){var j=w.node;if(e.getMeaningFromLocation(j)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(j.parent))return j}function re(w,j,U){var z=e.getTouchingToken(w,j),y=e.getContainingFunctionDeclaration(z);if(!M(z)&&y&&ie(y,U)&&e.rangeContainsRange(y,z)&&!(y.body&&e.rangeContainsRange(y.body,z)))return y}function M(w){var j=e.findAncestor(w,e.isJSDocNode);if(j){var U=e.findAncestor(j,function(z){return!e.isJSDocNode(z)});return!!U&&e.isFunctionLikeDeclaration(U)}return!1}function x(w){return e.isMethodSignature(w)&&(e.isInterfaceDeclaration(w.parent)||e.isTypeLiteralNode(w.parent))}function ie(w,j){var U;if(!Z(w.parameters,j))return!1;switch(w.kind){case 255:return Y(w)&&_e(w,j);case 168:if(e.isObjectLiteralExpression(w.parent)){var z=p(w.name,j);return((U=z==null?void 0:z.declarations)===null||U===void 0?void 0:U.length)===1&&_e(w,j)}return _e(w,j);case 170:return e.isClassDeclaration(w.parent)?Y(w.parent)&&_e(w,j):I(w.parent.parent)&&_e(w,j);case 212:case 213:return I(w.parent)}return!1}function _e(w,j){return!!w.body&&!j.isImplementationOfOverload(w)}function Y(w){if(!w.name){var j=e.findModifier(w,88);return!!j}return!0}function Z(w,j){return ee(w)>=Q&&e.every(w,function(U){return k(U,j)})}function k(w,j){if(e.isRestParameter(w)){var U=j.getTypeAtLocation(w);if(!j.isArrayType(U)&&!j.isTupleType(U))return!1}return!w.modifiers&&!w.decorators&&e.isIdentifier(w.name)}function I(w){return e.isVariableDeclaration(w)&&e.isVarConst(w)&&e.isIdentifier(w.name)&&!w.type}function ne(w){return w.length>0&&e.isThis(w[0].name)}function ee(w){return ne(w)?w.length-1:w.length}function A(w){return ne(w)&&(w=e.factory.createNodeArray(w.slice(1),w.hasTrailingComma)),w}function f(w,j){return e.isIdentifier(j)&&e.getTextOfIdentifierOrLiteral(j)===w?e.factory.createShorthandPropertyAssignment(w):e.factory.createPropertyAssignment(w,j)}function P(w,j){var U=A(w.parameters),z=e.isRestParameter(e.last(U)),y=z?j.slice(0,U.length-1):j,oe=e.map(y,function(de,ae){var V=l(U[ae]),le=f(V,de);return e.suppressLeadingAndTrailingTrivia(le.name),e.isPropertyAssignment(le)&&e.suppressLeadingAndTrailingTrivia(le.initializer),e.copyComments(de,le),le});if(z&&j.length>=U.length){var ve=j.slice(U.length-1),ce=e.factory.createPropertyAssignment(l(e.last(U)),e.factory.createArrayLiteralExpression(ve));oe.push(ce)}var m=e.factory.createObjectLiteralExpression(oe,!1);return m}function D(w,j,U){var z=j.getTypeChecker(),y=A(w.parameters),oe=e.map(y,le),ve=e.factory.createObjectBindingPattern(oe),ce=ke(y),m;e.every(y,ar)&&(m=e.factory.createObjectLiteralExpression());var de=e.factory.createParameterDeclaration(void 0,void 0,void 0,ve,void 0,ce,m);if(ne(w.parameters)){var ae=w.parameters[0],V=e.factory.createParameterDeclaration(void 0,void 0,void 0,ae.name,void 0,ae.type);return e.suppressLeadingAndTrailingTrivia(V.name),e.copyComments(ae.name,V.name),ae.type&&(e.suppressLeadingAndTrailingTrivia(V.type),e.copyComments(ae.type,V.type)),e.factory.createNodeArray([V,de])}return e.factory.createNodeArray([de]);function le(gr){var me=e.factory.createBindingElement(void 0,void 0,l(gr),e.isRestParameter(gr)&&ar(gr)?e.factory.createArrayLiteralExpression():gr.initializer);return e.suppressLeadingAndTrailingTrivia(me),gr.initializer&&me.initializer&&e.copyComments(gr.initializer,me.initializer),me}function ke(gr){var me=e.map(gr,Ue),Ge=e.addEmitFlags(e.factory.createTypeLiteralNode(me),1);return Ge}function Ue(gr){var me=gr.type;!me&&(gr.initializer||e.isRestParameter(gr))&&(me=He(gr));var Ge=e.factory.createPropertySignature(void 0,l(gr),ar(gr)?e.factory.createToken(57):gr.questionToken,me);return e.suppressLeadingAndTrailingTrivia(Ge),e.copyComments(gr.name,Ge.name),gr.type&&Ge.type&&e.copyComments(gr.type,Ge.type),Ge}function He(gr){var me=z.getTypeAtLocation(gr);return e.getTypeNodeIfAccessible(me,gr,j,U)}function ar(gr){if(e.isRestParameter(gr)){var me=z.getTypeAtLocation(gr);return!z.isTupleType(me)}return z.isOptionalParameter(gr)}}function l(w){return e.getTextOfIdentifierOrLiteral(w.name)}function _(w){switch(w.parent.kind){case 256:var j=w.parent;if(j.name)return[j.name];var U=e.Debug.checkDefined(e.findModifier(j,88),"Nameless class declaration should be a default export");return[U];case 225:var z=w.parent,y=w.parent.parent,oe=z.name;return oe?[oe,y.name]:[y.name]}}function J(w){switch(w.kind){case 255:if(w.name)return[w.name];var j=e.Debug.checkDefined(e.findModifier(w,88),"Nameless function declaration should be a default export");return[j];case 168:return[w.name];case 170:var U=e.Debug.checkDefined(e.findChildOfKind(w,134,w.getSourceFile()),"Constructor declaration should have constructor keyword");if(w.parent.kind===225){var z=w.parent.parent;return[z.name,U]}return[U];case 213:return[w.parent.name];case 212:return w.name?[w.name,w.parent.name]:[w.parent.name];default:return e.Debug.assertNever(w,"Unexpected function declaration kind ".concat(w.kind))}}})(L=O.convertParamsToDestructuredObject||(O.convertParamsToDestructuredObject={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert to template string",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),pe={name:N,description:Q,kind:"refactor.rewrite.string"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:S,getAvailableActions:F});function F(_e){var Y=_e.file,Z=_e.startPosition,k=g(Y,Z),I=p(k),ne={name:N,description:Q,actions:[]};return e.isBinaryExpression(I)&&C(I).isValidConcatenation?(ne.actions.push(pe),[ne]):_e.preferences.provideRefactorNotApplicableReason?(ne.actions.push(Ve(Ve({},pe),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[ne]):e.emptyArray}function g(_e,Y){var Z=e.getTokenAtPosition(_e,Y),k=p(Z),I=!C(k).isValidConcatenation;return I&&e.isParenthesizedExpression(k.parent)&&e.isBinaryExpression(k.parent.parent)?k.parent.parent:Z}function S(_e,Y){var Z=_e.file,k=_e.startPosition,I=g(Z,k);switch(Y){case Q:return{edits:H(_e,I)};default:return e.Debug.fail("invalid action")}}function H(_e,Y){var Z=p(Y),k=_e.file,I=M(C(Z),k),ne=e.getTrailingCommentRanges(k.text,Z.end);if(ne){var ee=ne[ne.length-1],A={pos:ne[0].pos,end:ee.end};return e.textChanges.ChangeTracker.with(_e,function(f){f.deleteRange(k,A),f.replaceNode(k,Z,I)})}else return e.textChanges.ChangeTracker.with(_e,function(f){return f.replaceNode(k,Z,I)})}function se(_e){return _e.operatorToken.kind!==63}function p(_e){var Y=e.findAncestor(_e.parent,function(Z){switch(Z.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(Z.parent)&&se(Z.parent));default:return"quit"}});return Y||_e}function C(_e){var Y=function(A){if(!e.isBinaryExpression(A))return{nodes:[A],operators:[],validOperators:!0,hasString:e.isStringLiteral(A)||e.isNoSubstitutionTemplateLiteral(A)};var f=Y(A.left),P=f.nodes,D=f.operators,l=f.hasString,_=f.validOperators;if(!(l||e.isStringLiteral(A.right)||e.isTemplateExpression(A.right)))return{nodes:[A],operators:[],hasString:!1,validOperators:!0};var J=A.operatorToken.kind===39,w=_&&J;return P.push(A.right),D.push(A.operatorToken),{nodes:P,operators:D,hasString:!0,validOperators:w}},Z=Y(_e),k=Z.nodes,I=Z.operators,ne=Z.validOperators,ee=Z.hasString;return{nodes:k,operators:I,isValidConcatenation:ne&&ee}}var G=function(_e,Y){return function(Z,k){Z<_e.length&&e.copyTrailingComments(_e[Z],k,Y,3,!1)}},E=function(_e,Y,Z){return function(k,I){for(;k.length>0;){var ne=k.shift();e.copyTrailingComments(_e[ne],I,Y,3,!1),Z(ne,I)}}};function ue(_e){return _e.replace(/\\.|[$`]/g,function(Y){return Y[0]==="\\"?Y:"\\"+Y})}function B(_e){var Y=e.isTemplateHead(_e)||e.isTemplateMiddle(_e)?-2:-1;return e.getTextOfNode(_e).slice(1,Y)}function re(_e,Y){for(var Z=[],k="",I="";_e<Y.length;){var ne=Y[_e];if(e.isStringLiteralLike(ne))k+=ne.text,I+=ue(e.getTextOfNode(ne).slice(1,-1)),Z.push(_e),_e++;else if(e.isTemplateExpression(ne)){k+=ne.head.text,I+=B(ne.head);break}else break}return[_e,k,I,Z]}function M(_e,Y){var Z=_e.nodes,k=_e.operators,I=G(k,Y),ne=E(Z,Y,I),ee=re(0,Z),A=ee[0],f=ee[1],P=ee[2],D=ee[3];if(A===Z.length){var l=e.factory.createNoSubstitutionTemplateLiteral(f,P);return ne(D,l),l}var _=[],J=e.factory.createTemplateHead(f,P);ne(D,J);for(var w=function(z){var y=ie(Z[z]);I(z,y);var oe=re(z+1,Z),ve=oe[0],ce=oe[1],m=oe[2],de=oe[3];z=ve-1;var ae=z===Z.length-1;if(e.isTemplateExpression(y)){var V=e.map(y.templateSpans,function(ke,Ue){x(ke);var He=Ue===y.templateSpans.length-1,ar=ke.literal.text+(He?ce:""),gr=B(ke.literal)+(He?m:"");return e.factory.createTemplateSpan(ke.expression,ae?e.factory.createTemplateTail(ar,gr):e.factory.createTemplateMiddle(ar,gr))});_.push.apply(_,V)}else{var le=ae?e.factory.createTemplateTail(ce,m):e.factory.createTemplateMiddle(ce,m);ne(de,le),_.push(e.factory.createTemplateSpan(y,le))}j=z},j,U=A;U<Z.length;U++)w(U),U=j;return e.factory.createTemplateExpression(J,_)}function x(_e){var Y=_e.getSourceFile();e.copyTrailingComments(_e,_e.expression,Y,3,!1),e.copyTrailingAsLeadingComments(_e.expression,_e.expression,Y,3,!1)}function ie(_e){return e.isParenthesizedExpression(_e)&&(x(_e),_e=_e.expression),_e}})(L=O.convertStringOrTemplateLiteral||(O.convertStringOrTemplateLiteral={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Convert arrow function or function expression",Q=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),pe={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},F={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},g={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};O.registerRefactor(N,{kinds:[pe.kind,F.kind,g.kind],getEditsForAction:H,getAvailableActions:S});function S(_e){var Y=_e.file,Z=_e.startPosition,k=_e.program,I=_e.kind,ne=p(Y,Z,k);if(!ne)return e.emptyArray;var ee=ne.selectedVariableDeclaration,A=ne.func,f=[],P=[];if(O.refactorKindBeginsWith(F.kind,I)){var D=ee||e.isArrowFunction(A)&&e.isVariableDeclaration(A.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);D?P.push(Ve(Ve({},F),{notApplicableReason:D})):f.push(F)}if(O.refactorKindBeginsWith(pe.kind,I)){var D=!ee&&e.isArrowFunction(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);D?P.push(Ve(Ve({},pe),{notApplicableReason:D})):f.push(pe)}if(O.refactorKindBeginsWith(g.kind,I)){var D=e.isFunctionExpression(A)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);D?P.push(Ve(Ve({},g),{notApplicableReason:D})):f.push(g)}return[{name:N,description:Q,actions:f.length===0&&_e.preferences.provideRefactorNotApplicableReason?P:f}]}function H(_e,Y){var Z=_e.file,k=_e.startPosition,I=_e.program,ne=p(Z,k,I);if(!!ne){var ee=ne.func,A=[];switch(Y){case pe.name:A.push.apply(A,B(_e,ee));break;case F.name:var f=ue(ee);if(!f)return;A.push.apply(A,re(_e,ee,f));break;case g.name:if(!e.isFunctionExpression(ee))return;A.push.apply(A,M(_e,ee));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:A}}}function se(_e){var Y=!1;return _e.forEachChild(function Z(k){if(e.isThis(k)){Y=!0;return}!e.isClassLike(k)&&!e.isFunctionDeclaration(k)&&!e.isFunctionExpression(k)&&e.forEachChild(k,Z)}),Y}function p(_e,Y,Z){var k=e.getTokenAtPosition(_e,Y),I=Z.getTypeChecker(),ne=G(_e,I,k.parent);if(ne&&!se(ne.body)&&!I.containsArgumentsReference(ne))return{selectedVariableDeclaration:!0,func:ne};var ee=e.getContainingFunction(k);if(ee&&(e.isFunctionExpression(ee)||e.isArrowFunction(ee))&&!e.rangeContainsRange(ee.body,k)&&!se(ee.body)&&!I.containsArgumentsReference(ee))return e.isFunctionExpression(ee)&&ie(_e,I,ee)?void 0:{selectedVariableDeclaration:!1,func:ee}}function C(_e){return e.isVariableDeclaration(_e)||e.isVariableDeclarationList(_e)&&_e.declarations.length===1}function G(_e,Y,Z){if(!!C(Z)){var k=e.isVariableDeclaration(Z)?Z:e.first(Z.declarations),I=k.initializer;if(I&&(e.isArrowFunction(I)||e.isFunctionExpression(I)&&!ie(_e,Y,I)))return I}}function E(_e){if(e.isExpression(_e)){var Y=e.factory.createReturnStatement(_e),Z=_e.getSourceFile();return e.suppressLeadingAndTrailingTrivia(Y),e.copyTrailingAsLeadingComments(_e,Y,Z,void 0,!0),e.factory.createBlock([Y],!0)}else return _e}function ue(_e){var Y=_e.parent;if(!(!e.isVariableDeclaration(Y)||!e.isVariableDeclarationInVariableStatement(Y))){var Z=Y.parent,k=Z.parent;if(!(!e.isVariableDeclarationList(Z)||!e.isVariableStatement(k)||!e.isIdentifier(Y.name)))return{variableDeclaration:Y,variableDeclarationList:Z,statement:k,name:Y.name}}}function B(_e,Y){var Z=_e.file,k=E(Y.body),I=e.factory.createFunctionExpression(Y.modifiers,Y.asteriskToken,void 0,Y.typeParameters,Y.parameters,Y.type,k);return e.textChanges.ChangeTracker.with(_e,function(ne){return ne.replaceNode(Z,Y,I)})}function re(_e,Y,Z){var k=_e.file,I=E(Y.body),ne=Z.variableDeclaration,ee=Z.variableDeclarationList,A=Z.statement,f=Z.name;e.suppressLeadingTrivia(A);var P=e.getCombinedModifierFlags(ne)&1|e.getEffectiveModifierFlags(Y),D=e.factory.createModifiersFromModifierFlags(P),l=e.factory.createFunctionDeclaration(Y.decorators,e.length(D)?D:void 0,Y.asteriskToken,f,Y.typeParameters,Y.parameters,Y.type,I);return ee.declarations.length===1?e.textChanges.ChangeTracker.with(_e,function(_){return _.replaceNode(k,A,l)}):e.textChanges.ChangeTracker.with(_e,function(_){_.delete(k,ne),_.insertNodeAfter(k,A,l)})}function M(_e,Y){var Z=_e.file,k=Y.body.statements,I=k[0],ne;x(Y.body,I)?(ne=I.expression,e.suppressLeadingAndTrailingTrivia(ne),e.copyComments(I,ne)):ne=Y.body;var ee=e.factory.createArrowFunction(Y.modifiers,Y.typeParameters,Y.parameters,Y.type,e.factory.createToken(38),ne);return e.textChanges.ChangeTracker.with(_e,function(A){return A.replaceNode(Z,Y,ee)})}function x(_e,Y){return _e.statements.length===1&&e.isReturnStatement(Y)&&!!Y.expression}function ie(_e,Y,Z){return!!Z.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(Z.name,Y,_e)}})(L=O.convertArrowFunctionOrFunctionExpression||(O.convertArrowFunctionOrFunctionExpression={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){var L;(function(W){var N="Infer function return type",Q=e.Diagnostics.Infer_function_return_type.message,pe={name:N,description:Q,kind:"refactor.rewrite.function.returnType"};O.registerRefactor(N,{kinds:[pe.kind],getEditsForAction:F,getAvailableActions:g});function F(C){var G=H(C);if(G&&!O.isRefactorErrorInfo(G)){var E=e.textChanges.ChangeTracker.with(C,function(ue){return S(C.file,ue,G.declaration,G.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:E}}}function g(C){var G=H(C);return G?O.isRefactorErrorInfo(G)?C.preferences.provideRefactorNotApplicableReason?[{name:N,description:Q,actions:[Ve(Ve({},pe),{notApplicableReason:G.error})]}]:e.emptyArray:[{name:N,description:Q,actions:[pe]}]:e.emptyArray}function S(C,G,E,ue){var B=e.findChildOfKind(E,21,C),re=e.isArrowFunction(E)&&B===void 0,M=re?e.first(E.parameters):B;M&&(re&&(G.insertNodeBefore(C,M,e.factory.createToken(20)),G.insertNodeAfter(C,M,e.factory.createToken(21))),G.insertNodeAt(C,M.end,ue,{prefix:": "}))}function H(C){if(!(e.isInJSFile(C.file)||!O.refactorKindBeginsWith(pe.kind,C.kind))){var G=e.getTokenAtPosition(C.file,C.startPosition),E=e.findAncestor(G,function(M){return e.isBlock(M)||M.parent&&e.isArrowFunction(M.parent)&&(M.kind===38||M.parent.body===M)?"quit":se(M)});if(!E||!E.body||E.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var ue=C.program.getTypeChecker(),B=p(ue,E);if(!B)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var re=ue.typeToTypeNode(B,E,1);if(re)return{declaration:E,returnTypeNode:re}}}function se(C){switch(C.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}function p(C,G){if(C.isImplementationOfOverload(G)){var E=C.getTypeAtLocation(G).getCallSignatures();if(E.length>1)return C.getUnionType(e.mapDefined(E,function(B){return B.getReturnType()}))}var ue=C.getSignatureFromDeclaration(G);if(ue)return C.getReturnTypeOfSignature(ue)}})(L=O.inferFunctionReturnType||(O.inferFunctionReturnType={}))})(a=e.refactor||(e.refactor={}))})(Pe||(Pe={}));var Pe;(function(e){e.servicesVersion="0.8";function a(m,de,ae,V){var le=e.isNodeKind(m)?new O(m,de,ae):m===79?new g(79,de,ae):m===80?new S(80,de,ae):new F(m,de,ae);return le.parent=V,le.flags=V.flags&25358336,le}var O=function(){function m(de,ae,V){this.pos=ae,this.end=V,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=de}return m.prototype.assertHasRealPosition=function(de){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),de||"Node must have a real position for this operation")},m.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},m.prototype.getStart=function(de,ae){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,de,ae)},m.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},m.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},m.prototype.getWidth=function(de){return this.assertHasRealPosition(),this.getEnd()-this.getStart(de)},m.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},m.prototype.getLeadingTriviaWidth=function(de){return this.assertHasRealPosition(),this.getStart(de)-this.pos},m.prototype.getFullText=function(de){return this.assertHasRealPosition(),(de||this.getSourceFile()).text.substring(this.pos,this.end)},m.prototype.getText=function(de){return this.assertHasRealPosition(),de||(de=this.getSourceFile()),de.text.substring(this.getStart(de),this.getEnd())},m.prototype.getChildCount=function(de){return this.getChildren(de).length},m.prototype.getChildAt=function(de,ae){return this.getChildren(ae)[de]},m.prototype.getChildren=function(de){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=L(this,de))},m.prototype.getFirstToken=function(de){this.assertHasRealPosition();var ae=this.getChildren(de);if(!!ae.length){var V=e.find(ae,function(le){return le.kind<307||le.kind>345});return V.kind<160?V:V.getFirstToken(de)}},m.prototype.getLastToken=function(de){this.assertHasRealPosition();var ae=this.getChildren(de),V=e.lastOrUndefined(ae);if(!!V)return V.kind<160?V:V.getLastToken(de)},m.prototype.forEachChild=function(de,ae){return e.forEachChild(this,de,ae)},m}();function L(m,de){if(!e.isNodeKind(m.kind))return e.emptyArray;var ae=[];if(e.isJSDocCommentContainingNode(m))return m.forEachChild(function(Ue){ae.push(Ue)}),ae;e.scanner.setText((de||m.getSourceFile()).text);var V=m.pos,le=function(Ue){W(ae,V,Ue.pos,m),ae.push(Ue),V=Ue.end},ke=function(Ue){W(ae,V,Ue.pos,m),ae.push(N(Ue,m)),V=Ue.end};return e.forEach(m.jsDoc,le),V=m.pos,m.forEachChild(le,ke),W(ae,V,m.end,m),e.scanner.setText(void 0),ae}function W(m,de,ae,V){for(e.scanner.setTextPos(de);de<ae;){var le=e.scanner.scan(),ke=e.scanner.getTextPos();if(ke<=ae&&(le===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(V.kind)," to have an Identifier in its trivia")),m.push(a(le,de,ke,V))),de=ke,le===1)break}}function N(m,de){var ae=a(346,m.pos,m.end,de);ae._children=[];for(var V=m.pos,le=0,ke=m;le<ke.length;le++){var Ue=ke[le];W(ae._children,V,Ue.pos,de),ae._children.push(Ue),V=Ue.end}return W(ae._children,V,m.end,de),ae}var Q=function(){function m(de,ae){this.pos=de,this.end=ae,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return m.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},m.prototype.getStart=function(de,ae){return e.getTokenPosOfNode(this,de,ae)},m.prototype.getFullStart=function(){return this.pos},m.prototype.getEnd=function(){return this.end},m.prototype.getWidth=function(de){return this.getEnd()-this.getStart(de)},m.prototype.getFullWidth=function(){return this.end-this.pos},m.prototype.getLeadingTriviaWidth=function(de){return this.getStart(de)-this.pos},m.prototype.getFullText=function(de){return(de||this.getSourceFile()).text.substring(this.pos,this.end)},m.prototype.getText=function(de){return de||(de=this.getSourceFile()),de.text.substring(this.getStart(de),this.getEnd())},m.prototype.getChildCount=function(){return this.getChildren().length},m.prototype.getChildAt=function(de){return this.getChildren()[de]},m.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},m.prototype.getFirstToken=function(){},m.prototype.getLastToken=function(){},m.prototype.forEachChild=function(){},m}(),pe=function(){function m(de,ae){this.flags=de,this.escapedName=ae}return m.prototype.getFlags=function(){return this.flags},Object.defineProperty(m.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),m.prototype.getEscapedName=function(){return this.escapedName},m.prototype.getName=function(){return this.name},m.prototype.getDeclarations=function(){return this.declarations},m.prototype.getDocumentationComment=function(de){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var ae=this.target.tupleLabelDeclaration;this.documentationComment=G([ae],de)}else this.documentationComment=G(this.declarations,de);return this.documentationComment},m.prototype.getContextualDocumentationComment=function(de,ae){switch(de==null?void 0:de.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=G(e.filter(this.declarations,e.isGetAccessor),ae)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=G(e.filter(this.declarations,e.isSetAccessor),ae)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(ae)}},m.prototype.getJsDocTags=function(de){return this.tags===void 0&&(this.tags=C(this.declarations,de)),this.tags},m.prototype.getContextualJsDocTags=function(de,ae){switch(de==null?void 0:de.kind){case 171:return this.contextualGetAccessorTags||(this.contextualGetAccessorTags=C(e.filter(this.declarations,e.isGetAccessor),ae)),this.contextualGetAccessorTags;case 172:return this.contextualSetAccessorTags||(this.contextualSetAccessorTags=C(e.filter(this.declarations,e.isSetAccessor),ae)),this.contextualSetAccessorTags;default:return this.getJsDocTags(ae)}},m}(),F=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,V,le)||this;return ke.kind=ae,ke}return de}(Q),g=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,V,le)||this;return ke.kind=79,ke}return Object.defineProperty(de.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),de}(Q);g.prototype.kind=79;var S=function(m){Mr(de,m);function de(ae,V,le){return m.call(this,V,le)||this}return Object.defineProperty(de.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),de}(Q);S.prototype.kind=80;var H=function(){function m(de,ae){this.checker=de,this.flags=ae}return m.prototype.getFlags=function(){return this.flags},m.prototype.getSymbol=function(){return this.symbol},m.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},m.prototype.getProperty=function(de){return this.checker.getPropertyOfType(this,de)},m.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},m.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},m.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},m.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},m.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},m.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},m.prototype.isNullableType=function(){return this.checker.isNullableType(this)},m.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},m.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},m.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},m.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},m.prototype.isUnion=function(){return!!(this.flags&1048576)},m.prototype.isIntersection=function(){return!!(this.flags&2097152)},m.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},m.prototype.isLiteral=function(){return!!(this.flags&384)},m.prototype.isStringLiteral=function(){return!!(this.flags&128)},m.prototype.isNumberLiteral=function(){return!!(this.flags&256)},m.prototype.isTypeParameter=function(){return!!(this.flags&262144)},m.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},m.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},m.prototype.isIndexType=function(){return!!(this.flags&4194304)},Object.defineProperty(m.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),m}(),se=function(){function m(de,ae){this.checker=de,this.flags=ae}return m.prototype.getDeclaration=function(){return this.declaration},m.prototype.getTypeParameters=function(){return this.typeParameters},m.prototype.getParameters=function(){return this.parameters},m.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},m.prototype.getTypeParameterAtPosition=function(de){var ae=this.checker.getParameterType(this,de);if(ae.isIndexType()&&e.isThisTypeParameter(ae.type)){var V=ae.type.getConstraint();if(V)return this.checker.getIndexType(V)}return ae},m.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=G(e.singleElementArray(this.declaration),this.checker))},m.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=C(e.singleElementArray(this.declaration),this.checker))},m}();function p(m){return e.getJSDocTags(m).some(function(de){return de.tagName.text==="inheritDoc"})}function C(m,de){if(!m)return e.emptyArray;var ae=e.JsDoc.getJsDocTagsFromDeclarations(m,de);if(de&&(ae.length===0||m.some(p)))for(var V=new e.Set,le=function(ar){var gr=E(de,ar,function(me){var Ge;if(!V.has(me))return V.add(me),ar.kind===171||ar.kind===172?me.getContextualJsDocTags(ar,de):((Ge=me.declarations)===null||Ge===void 0?void 0:Ge.length)===1?me.getJsDocTags():void 0});gr&&(ae=qe(qe([],gr,!0),ae,!0))},ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];le(He)}return ae}function G(m,de){if(!m)return e.emptyArray;var ae=e.JsDoc.getJsDocCommentsFromDeclarations(m,de);if(de&&(ae.length===0||m.some(p)))for(var V=new e.Set,le=function(ar){var gr=E(de,ar,function(me){if(!V.has(me))return V.add(me),ar.kind===171||ar.kind===172?me.getContextualDocumentationComment(ar,de):me.getDocumentationComment(de)});gr&&(ae=ae.length===0?gr.slice():gr.concat(e.lineBreakPart(),ae))},ke=0,Ue=m;ke<Ue.length;ke++){var He=Ue[ke];le(He)}return ae}function E(m,de,ae){var V;if(!e.hasStaticModifier(de)){var le=((V=de.parent)===null||V===void 0?void 0:V.kind)===170?de.parent.parent:de.parent;if(!!le)return e.firstDefined(e.getAllSuperTypeNodes(le),function(ke){var Ue=m.getPropertyOfType(m.getTypeAtLocation(ke),de.symbol.name);return Ue?ae(Ue):void 0})}}var ue=function(m){Mr(de,m);function de(ae,V,le){var ke=m.call(this,ae,V,le)||this;return ke.kind=303,ke}return de.prototype.update=function(ae,V){return e.updateSourceFile(this,ae,V)},de.prototype.getLineAndCharacterOfPosition=function(ae){return e.getLineAndCharacterOfPosition(this,ae)},de.prototype.getLineStarts=function(){return e.getLineStarts(this)},de.prototype.getPositionOfLineAndCharacter=function(ae,V,le){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),ae,V,this.text,le)},de.prototype.getLineEndOfPosition=function(ae){var V=this.getLineAndCharacterOfPosition(ae).line,le=this.getLineStarts(),ke;V+1>=le.length&&(ke=this.getEnd()),ke||(ke=le[V+1]-1);var Ue=this.getFullText();return Ue[ke]===`
|
|
`&&Ue[ke-1]==="\r"?ke-1:ke},de.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},de.prototype.computeNamedDeclarations=function(){var ae=e.createMultiMap();return this.forEachChild(Ue),ae;function V(He){var ar=ke(He);ar&&ae.add(ar,He)}function le(He){var ar=ae.get(He);return ar||ae.set(He,ar=[]),ar}function ke(He){var ar=e.getNonAssignedNameOfDeclaration(He);return ar&&(e.isComputedPropertyName(ar)&&e.isPropertyAccessExpression(ar.expression)?ar.expression.name.text:e.isPropertyName(ar)?e.getNameFromPropertyName(ar):void 0)}function Ue(He){switch(He.kind){case 255:case 212:case 168:case 167:var ar=He,gr=ke(ar);if(gr){var me=le(gr),Ge=e.lastOrUndefined(me);Ge&&ar.parent===Ge.parent&&ar.symbol===Ge.symbol?ar.body&&!Ge.body&&(me[me.length-1]=ar):me.push(ar)}e.forEachChild(He,Ue);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:V(He),e.forEachChild(He,Ue);break;case 163:if(!e.hasSyntacticModifier(He,16476))break;case 253:case 202:{var er=He;if(e.isBindingPattern(er.name)){e.forEachChild(er.name,Ue);break}er.initializer&&Ue(er.initializer)}case 297:case 166:case 165:V(He);break;case 271:var he=He;he.exportClause&&(e.isNamedExports(he.exportClause)?e.forEach(he.exportClause.elements,Ue):Ue(he.exportClause.name));break;case 265:var we=He.importClause;we&&(we.name&&V(we.name),we.namedBindings&&(we.namedBindings.kind===267?V(we.namedBindings):e.forEach(we.namedBindings.elements,Ue)));break;case 220:e.getAssignmentDeclarationKind(He)!==0&&V(He);default:e.forEachChild(He,Ue)}}},de}(O),B=function(){function m(de,ae,V){this.fileName=de,this.text=ae,this.skipTrivia=V}return m.prototype.getLineAndCharacterOfPosition=function(de){return e.getLineAndCharacterOfPosition(this,de)},m}();function re(){return{getNodeConstructor:function(){return O},getTokenConstructor:function(){return F},getIdentifierConstructor:function(){return g},getPrivateIdentifierConstructor:function(){return S},getSourceFileConstructor:function(){return ue},getSymbolConstructor:function(){return pe},getTypeConstructor:function(){return H},getSignatureConstructor:function(){return se},getSourceMapSourceConstructor:function(){return B}}}function M(m){var de=!0;for(var ae in m)if(e.hasProperty(m,ae)&&!x(ae)){de=!1;break}if(de)return m;var V={};for(var ae in m)if(e.hasProperty(m,ae)){var le=x(ae)?ae:ae.charAt(0).toLowerCase()+ae.substr(1);V[le]=m[ae]}return V}e.toEditorSettings=M;function x(m){return!m.length||m.charAt(0)===m.charAt(0).toLowerCase()}function ie(m){return m?e.map(m,function(de){return de.text}).join(""):""}e.displayPartsToString=ie;function _e(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=_e;function Y(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=Y;var Z=function(){function m(de,ae){this.host=de,this.currentDirectory=de.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var V=de.getScriptFileNames(),le=0,ke=V;le<ke.length;le++){var Ue=ke[le];this.createEntry(Ue,e.toPath(Ue,this.currentDirectory,ae))}}return m.prototype.createEntry=function(de,ae){var V,le=this.host.getScriptSnapshot(de);return le?V={hostFileName:de,version:this.host.getScriptVersion(de),scriptSnapshot:le,scriptKind:e.getScriptKind(de,this.host)}:V=de,this.fileNameToEntry.set(ae,V),V},m.prototype.getEntryByPath=function(de){return this.fileNameToEntry.get(de)},m.prototype.getHostFileInformation=function(de){var ae=this.fileNameToEntry.get(de);return e.isString(ae)?void 0:ae},m.prototype.getOrCreateEntryByPath=function(de,ae){var V=this.getEntryByPath(ae)||this.createEntry(de,ae);return e.isString(V)?void 0:V},m.prototype.getRootFileNames=function(){var de=[];return this.fileNameToEntry.forEach(function(ae){e.isString(ae)?de.push(ae):de.push(ae.hostFileName)}),de},m.prototype.getScriptSnapshot=function(de){var ae=this.getHostFileInformation(de);return ae&&ae.scriptSnapshot},m}(),k=function(){function m(de){this.host=de}return m.prototype.getCurrentSourceFile=function(de){var ae=this.host.getScriptSnapshot(de);if(!ae)throw new Error("Could not find file: '"+de+"'.");var V=e.getScriptKind(de,this.host),le=this.host.getScriptVersion(de),ke;if(this.currentFileName!==de)ke=ne(de,ae,99,le,!0,V);else if(this.currentFileVersion!==le){var Ue=ae.getChangeRange(this.currentFileScriptSnapshot);ke=ee(this.currentSourceFile,ae,le,Ue)}return ke&&(this.currentFileVersion=le,this.currentFileName=de,this.currentFileScriptSnapshot=ae,this.currentSourceFile=ke),this.currentSourceFile},m}();function I(m,de,ae){m.version=ae,m.scriptSnapshot=de}function ne(m,de,ae,V,le,ke){var Ue=e.createSourceFile(m,e.getSnapshotText(de),ae,le,ke);return I(Ue,de,V),Ue}e.createLanguageServiceSourceFile=ne;function ee(m,de,ae,V,le){if(V&&ae!==m.version){var ke=void 0,Ue=V.span.start!==0?m.text.substr(0,V.span.start):"",He=e.textSpanEnd(V.span)!==m.text.length?m.text.substr(e.textSpanEnd(V.span)):"";if(V.newLength===0)ke=Ue&&He?Ue+He:Ue||He;else{var ar=de.getText(V.span.start,V.span.start+V.newLength);ke=Ue&&He?Ue+ar+He:Ue?Ue+ar:ar+He}var gr=e.updateSourceFile(m,ke,V,le);return I(gr,de,ae),gr.nameTable=void 0,m!==gr&&m.scriptSnapshot&&(m.scriptSnapshot.dispose&&m.scriptSnapshot.dispose(),m.scriptSnapshot=void 0),gr}return ne(m.fileName,de,m.languageVersion,ae,!0,m.scriptKind)}e.updateLanguageServiceSourceFile=ee;var A={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},f=function(){function m(de){this.cancellationToken=de}return m.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},m.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},m}(),P=function(){function m(de,ae){ae===void 0&&(ae=20),this.hostCancellationToken=de,this.throttleWaitMilliseconds=ae,this.lastCancellationCheckTime=0}return m.prototype.isCancellationRequested=function(){var de=e.timestamp(),ae=Math.abs(de-this.lastCancellationCheckTime);return ae>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=de,this.hostCancellationToken.isCancellationRequested()):!1},m.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},m}();e.ThrottledCancellationToken=P;var D=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],l=qe(qe([],D,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function _(m,de,ae){var V,le;de===void 0&&(de=e.createDocumentRegistry(m.useCaseSensitiveFileNames&&m.useCaseSensitiveFileNames(),m.getCurrentDirectory()));var ke;ae===void 0?ke=e.LanguageServiceMode.Semantic:typeof ae=="boolean"?ke=ae?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:ke=ae;var Ue=new k(m),He,ar,gr=0,me=m.getCancellationToken?new f(m.getCancellationToken()):A,Ge=m.getCurrentDirectory();e.maybeSetLocalizedDiagnosticMessages((le=m.getLocalizedDiagnosticMessages)===null||le===void 0?void 0:le.bind(m));function er(Pi){m.log&&m.log(Pi)}var he=e.hostUsesCaseSensitiveFileNames(m),we=e.createGetCanonicalFileName(he),ye=e.getSourceMapper({useCaseSensitiveFileNames:function(){return he},getCurrentDirectory:function(){return Ge},getProgram:Fe,fileExists:e.maybeBind(m,m.fileExists),readFile:e.maybeBind(m,m.readFile),getDocumentPositionMapper:e.maybeBind(m,m.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(m,m.getSourceFileLike),log:er});function Se(Pi){var Oi=He.getSourceFile(Pi);if(!Oi){var wi=new Error("Could not find source file: '".concat(Pi,"'."));throw wi.ProgramFiles=He.getSourceFiles().map(function(Qr){return Qr.fileName}),wi}return Oi}function ge(){var Pi,Oi,wi;if(e.Debug.assert(ke!==e.LanguageServiceMode.Syntactic),m.getProjectVersion){var Qr=m.getProjectVersion();if(Qr){if(ar===Qr&&!(!((Pi=m.hasChangedAutomaticTypeDirectiveNames)===null||Pi===void 0)&&Pi.call(m)))return;ar=Qr}}var Ct=m.getTypeRootsVersion?m.getTypeRootsVersion():0;gr!==Ct&&(er("TypeRoots version has changed; provide new program"),He=void 0,gr=Ct);var tt=new Z(m,we),ta=tt.getRootFileNames(),Xa=m.getCompilationSettings()||_e(),on=m.hasInvalidatedResolution||e.returnFalse,qr=e.maybeBind(m,m.hasChangedAutomaticTypeDirectiveNames),bn=(Oi=m.getProjectReferences)===null||Oi===void 0?void 0:Oi.call(m),Rn,Sn={useCaseSensitiveFileNames:he,fileExists:ro,readFile:Ko,readDirectory:rs,trace:e.maybeBind(m,m.trace),getCurrentDirectory:function(){return Ge},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(He,ta,Xa,function(pn,Qn){return m.getScriptVersion(Qn)},ro,on,qr,Vo,bn))return;var zn={getSourceFile:Do,getSourceFileByPath:io,getCancellationToken:function(){return me},getCanonicalFileName:we,useCaseSensitiveFileNames:function(){return he},getNewLine:function(){return e.getNewLineCharacter(Xa,function(){return e.getNewLineOrDefaultFromHost(m)})},getDefaultLibFileName:function(pn){return m.getDefaultLibFileName(pn)},writeFile:e.noop,getCurrentDirectory:function(){return Ge},fileExists:ro,readFile:Ko,getSymlinkCache:e.maybeBind(m,m.getSymlinkCache),realpath:e.maybeBind(m,m.realpath),directoryExists:function(pn){return e.directoryProbablyExists(pn,m)},getDirectories:function(pn){return m.getDirectories?m.getDirectories(pn):[]},readDirectory:rs,onReleaseOldSourceFile:rn,onReleaseParsedCommandLine:go,hasInvalidatedResolution:on,hasChangedAutomaticTypeDirectiveNames:qr,trace:Sn.trace,resolveModuleNames:e.maybeBind(m,m.resolveModuleNames),getModuleResolutionCache:e.maybeBind(m,m.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(m,m.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(m,m.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Vo};(wi=m.setCompilerHost)===null||wi===void 0||wi.call(m,zn);var Zn=de.getKeyForCompilationSettings(Xa),ho={rootNames:ta,options:Xa,host:zn,oldProgram:He,projectReferences:bn};He=e.createProgram(ho),tt=void 0,Rn=void 0,ye.clearCache(),He.getTypeChecker();return;function Vo(pn){var Qn=e.toPath(pn,Ge,we),wo=Rn==null?void 0:Rn.get(Qn);if(wo!==void 0)return wo||void 0;var xo=m.getParsedCommandLine?m.getParsedCommandLine(pn):Cn(pn);return(Rn||(Rn=new e.Map)).set(Qn,xo||!1),xo}function Cn(pn){var Qn=Do(pn,100);if(!!Qn)return Qn.path=e.toPath(pn,Ge,we),Qn.resolvedPath=Qn.path,Qn.originalFileName=Qn.fileName,e.parseJsonSourceFileConfigFileContent(Qn,Sn,e.getNormalizedAbsolutePath(e.getDirectoryPath(pn),Ge),void 0,e.getNormalizedAbsolutePath(pn,Ge))}function go(pn,Qn,wo){var xo;m.getParsedCommandLine?(xo=m.onReleaseParsedCommandLine)===null||xo===void 0||xo.call(m,pn,Qn,wo):Qn&&rn(Qn.sourceFile,wo)}function ro(pn){var Qn=e.toPath(pn,Ge,we),wo=tt&&tt.getEntryByPath(Qn);return wo?!e.isString(wo):!!m.fileExists&&m.fileExists(pn)}function Ko(pn){var Qn=e.toPath(pn,Ge,we),wo=tt&&tt.getEntryByPath(Qn);return wo?e.isString(wo)?void 0:e.getSnapshotText(wo.scriptSnapshot):m.readFile&&m.readFile(pn)}function rs(pn,Qn,wo,xo,ds){return e.Debug.checkDefined(m.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),m.readDirectory(pn,Qn,wo,xo,ds)}function rn(pn,Qn){var wo=de.getKeyForCompilationSettings(Qn);de.releaseDocumentWithKey(pn.resolvedPath,wo,pn.scriptKind)}function Do(pn,Qn,wo,xo){return io(pn,e.toPath(pn,Ge,we),Qn,wo,xo)}function io(pn,Qn,wo,xo,ds){e.Debug.assert(tt!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var No=tt&&tt.getOrCreateEntryByPath(pn,Qn);if(!!No){if(!ds){var Ts=He&&He.getSourceFileByPath(Qn);if(Ts){if(No.scriptKind===Ts.scriptKind)return de.updateDocumentWithKey(pn,Qn,Xa,Zn,No.scriptSnapshot,No.version,No.scriptKind);de.releaseDocumentWithKey(Ts.resolvedPath,de.getKeyForCompilationSettings(He.getCompilerOptions()),Ts.scriptKind)}}return de.acquireDocumentWithKey(pn,Qn,Xa,Zn,No.scriptSnapshot,No.version,No.scriptKind)}}}function Fe(){if(ke===e.LanguageServiceMode.Syntactic){e.Debug.assert(He===void 0);return}return ge(),He}function cr(){var Pi;return(Pi=m.getPackageJsonAutoImportProvider)===null||Pi===void 0?void 0:Pi.call(m)}function ur(){He=void 0}function Ir(){if(He){var Pi=de.getKeyForCompilationSettings(He.getCompilerOptions());e.forEach(He.getSourceFiles(),function(Oi){return de.releaseDocumentWithKey(Oi.resolvedPath,Pi,Oi.scriptKind)}),He=void 0}m=void 0}function dr(Pi){return ge(),He.getSyntacticDiagnostics(Se(Pi),me).slice()}function Br(Pi){ge();var Oi=Se(Pi),wi=He.getSemanticDiagnostics(Oi,me);if(!e.getEmitDeclarations(He.getCompilerOptions()))return wi.slice();var Qr=He.getDeclarationDiagnostics(Oi,me);return qe(qe([],wi,!0),Qr,!0)}function Tr(Pi){return ge(),e.computeSuggestionDiagnostics(Se(Pi),He,me)}function n(){return ge(),qe(qe([],He.getOptionsDiagnostics(me),!0),He.getGlobalDiagnostics(me),!0)}function Er(Pi,Oi,wi,Qr){wi===void 0&&(wi=e.emptyOptions);var Ct=Ve(Ve({},e.identity(wi)),{includeCompletionsForModuleExports:wi.includeCompletionsForModuleExports||wi.includeExternalModuleExports,includeCompletionsWithInsertText:wi.includeCompletionsWithInsertText||wi.includeInsertTextCompletions});return ge(),e.Completions.getCompletionsAtPosition(m,He,er,Se(Pi),Oi,Ct,wi.triggerCharacter,wi.triggerKind,me,Qr&&e.formatting.getFormatContext(Qr,m))}function br(Pi,Oi,wi,Qr,Ct,tt,ta){return tt===void 0&&(tt=e.emptyOptions),ge(),e.Completions.getCompletionEntryDetails(He,er,Se(Pi),Oi,{name:wi,source:Ct,data:ta},m,Qr&&e.formatting.getFormatContext(Qr,m),tt,me)}function Pr(Pi,Oi,wi,Qr,Ct){return Ct===void 0&&(Ct=e.emptyOptions),ge(),e.Completions.getCompletionEntrySymbol(He,er,Se(Pi),Oi,{name:wi,source:Qr},m,Ct)}function Ce(Pi,Oi){ge();var wi=Se(Pi),Qr=e.getTouchingPropertyName(wi,Oi);if(Qr!==wi){var Ct=He.getTypeChecker(),tt=Le(Qr),ta=y(tt,Ct);if(!ta||Ct.isUnknownSymbol(ta)){var Xa=Xe(wi,tt,Oi)?Ct.getTypeAtLocation(tt):void 0;return Xa&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(tt,wi),displayParts:Ct.runWithCancellationToken(me,function(zn){return e.typeToDisplayParts(zn,Xa,e.getContainerNode(tt))}),documentation:Xa.symbol?Xa.symbol.getDocumentationComment(Ct):void 0,tags:Xa.symbol?Xa.symbol.getJsDocTags(Ct):void 0}}var on=Ct.runWithCancellationToken(me,function(zn){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(zn,ta,wi,e.getContainerNode(tt),tt)}),qr=on.symbolKind,bn=on.displayParts,Rn=on.documentation,Sn=on.tags;return{kind:qr,kindModifiers:e.SymbolDisplay.getSymbolModifiers(Ct,ta),textSpan:e.createTextSpanFromNode(tt,wi),displayParts:bn,documentation:Rn,tags:Sn}}}function Le(Pi){return e.isNewExpression(Pi.parent)&&Pi.pos===Pi.parent.pos?Pi.parent.expression:e.isNamedTupleMember(Pi.parent)&&Pi.pos===Pi.parent.pos?Pi.parent:Pi}function Xe(Pi,Oi,wi){switch(Oi.kind){case 79:return!e.isLabelName(Oi)&&!e.isTagName(Oi)&&!e.isConstTypeReference(Oi.parent);case 205:case 160:return!e.isInComment(Pi,wi);case 108:case 191:case 106:case 196:return!0;default:return!1}}function Cr(Pi,Oi){return ge(),e.GoToDefinition.getDefinitionAtPosition(He,Se(Pi),Oi)}function Lr(Pi,Oi){return ge(),e.GoToDefinition.getDefinitionAndBoundSpan(He,Se(Pi),Oi)}function Jr(Pi,Oi){return ge(),e.GoToDefinition.getTypeDefinitionAtPosition(He.getTypeChecker(),Se(Pi),Oi)}function Rr(Pi,Oi){return ge(),e.FindAllReferences.getImplementationsAtPosition(He,me,He.getSourceFiles(),Se(Pi),Oi)}function ci(Pi,Oi){return e.flatMap(be(Pi,Oi,[Pi]),function(wi){return wi.highlightSpans.map(function(Qr){return Ve(Ve({fileName:wi.fileName,textSpan:Qr.textSpan,isWriteAccess:Qr.kind==="writtenReference",isDefinition:!1},Qr.isInString&&{isInString:!0}),Qr.contextSpan&&{contextSpan:Qr.contextSpan})})})}function be(Pi,Oi,wi){var Qr=e.normalizePath(Pi);e.Debug.assert(wi.some(function(ta){return e.normalizePath(ta)===Qr})),ge();var Ct=e.mapDefined(wi,function(ta){return He.getSourceFile(ta)}),tt=Se(Pi);return e.DocumentHighlights.getDocumentHighlights(He,me,tt,Oi,Ct)}function or(Pi,Oi,wi,Qr,Ct){ge();var tt=Se(Pi),ta=e.getAdjustedRenameLocation(e.getTouchingPropertyName(tt,Oi));if(!!e.Rename.nodeIsEligibleForRename(ta))if(e.isIdentifier(ta)&&(e.isJsxOpeningElement(ta.parent)||e.isJsxClosingElement(ta.parent))&&e.isIntrinsicJsxName(ta.escapedText)){var Xa=ta.parent.parent,on=Xa.openingElement,qr=Xa.closingElement;return[on,qr].map(function(bn){var Rn=e.createTextSpanFromNode(bn.tagName,tt);return Ve({fileName:tt.fileName,textSpan:Rn},e.FindAllReferences.toContextSpan(Rn,tt,bn.parent))})}else return ei(ta,Oi,{findInStrings:wi,findInComments:Qr,providePrefixAndSuffixTextForRename:Ct,use:2},function(bn,Rn,Sn){return e.FindAllReferences.toRenameLocation(bn,Rn,Sn,Ct||!1)})}function Kr(Pi,Oi){return ge(),ei(e.getTouchingPropertyName(Se(Pi),Oi),Oi,{use:1},function(wi,Qr,Ct){return e.FindAllReferences.toReferenceEntry(wi,Ct.getSymbolAtLocation(Qr))})}function ei(Pi,Oi,wi,Qr){ge();var Ct=wi&&wi.use===2?He.getSourceFiles().filter(function(tt){return!He.isSourceFileDefaultLibrary(tt)}):He.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(He,me,Ct,Pi,Oi,wi,Qr)}function li(Pi,Oi){return ge(),e.FindAllReferences.findReferencedSymbols(He,me,He.getSourceFiles(),Se(Pi),Oi)}function Si(Pi){var Oi;ge();var wi=(Oi=He.getSourceFile(Pi))===null||Oi===void 0?void 0:Oi.symbol;return e.FindAllReferences.Core.getReferencesForFileName(Pi,He,He.getSourceFiles()).map(function(Qr){return e.FindAllReferences.toReferenceEntry(Qr,wi)})}function qi(Pi,Oi,wi,Qr){Qr===void 0&&(Qr=!1),ge();var Ct=wi?[Se(wi)]:He.getSourceFiles();return e.NavigateTo.getNavigateToItems(Ct,He.getTypeChecker(),me,Pi,Oi,Qr)}function ft(Pi,Oi,wi){ge();var Qr=Se(Pi),Ct=m.getCustomTransformers&&m.getCustomTransformers();return e.getFileEmitOutput(He,Qr,!!Oi,me,Ct,wi)}function bt(Pi,Oi,wi){var Qr=wi===void 0?e.emptyOptions:wi,Ct=Qr.triggerReason;ge();var tt=Se(Pi);return e.SignatureHelp.getSignatureHelpItems(He,tt,Oi,Ct,me)}function aa(Pi){return Ue.getCurrentSourceFile(Pi)}function sr(Pi,Oi,wi){var Qr=Ue.getCurrentSourceFile(Pi),Ct=e.getTouchingPropertyName(Qr,Oi);if(Ct!==Qr){switch(Ct.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var tt=Ct;;)if(e.isRightSideOfPropertyAccess(tt)||e.isRightSideOfQualifiedName(tt))tt=tt.parent;else if(e.isNameOfModuleDeclaration(tt))if(tt.parent.parent.kind===260&&tt.parent.parent.body===tt.parent)tt=tt.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(tt.getStart(),Ct.getEnd())}}function Ji(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi);return e.BreakpointResolver.spanInSourceFileAtLocation(wi,Oi)}function di(Pi){return e.NavigationBar.getNavigationBarItems(Ue.getCurrentSourceFile(Pi),me)}function X(Pi){return e.NavigationBar.getNavigationTree(Ue.getCurrentSourceFile(Pi),me)}function Ye(Pi,Oi,wi){ge();var Qr=wi||"original";return Qr==="2020"?e.classifier.v2020.getSemanticClassifications(He,me,Se(Pi),Oi):e.getSemanticClassifications(He.getTypeChecker(),me,Se(Pi),He.getClassifiableNames(),Oi)}function Be(Pi,Oi,wi){ge();var Qr=wi||"original";return Qr==="original"?e.getEncodedSemanticClassifications(He.getTypeChecker(),me,Se(Pi),He.getClassifiableNames(),Oi):e.classifier.v2020.getEncodedSemanticClassifications(He,me,Se(Pi),Oi)}function Qe(Pi,Oi){return e.getSyntacticClassifications(me,Ue.getCurrentSourceFile(Pi),Oi)}function _r(Pi,Oi){return e.getEncodedSyntacticClassifications(me,Ue.getCurrentSourceFile(Pi),Oi)}function hr(Pi){var Oi=Ue.getCurrentSourceFile(Pi);return e.OutliningElementsCollector.collectElements(Oi,me)}var Dr=new e.Map(e.getEntries((V={},V[18]=19,V[20]=21,V[22]=23,V[31]=29,V)));Dr.forEach(function(Pi,Oi){return Dr.set(Pi.toString(),Number(Oi))});function Me(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=e.getTouchingToken(wi,Oi),Ct=Qr.getStart(wi)===Oi?Dr.get(Qr.kind.toString()):void 0,tt=Ct&&e.findChildOfKind(Qr.parent,Ct,wi);return tt?[e.createTextSpanFromNode(Qr,wi),e.createTextSpanFromNode(tt,wi)].sort(function(ta,Xa){return ta.start-Xa.start}):e.emptyArray}function v(Pi,Oi,wi){var Qr=e.timestamp(),Ct=M(wi),tt=Ue.getCurrentSourceFile(Pi);er("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-Qr)),Qr=e.timestamp();var ta=e.formatting.SmartIndenter.getIndentation(Oi,tt,Ct);return er("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-Qr)),ta}function xe(Pi,Oi,wi,Qr){var Ct=Ue.getCurrentSourceFile(Pi);return e.formatting.formatSelection(Oi,wi,Ct,e.formatting.getFormatContext(M(Qr),m))}function ze(Pi,Oi){return e.formatting.formatDocument(Ue.getCurrentSourceFile(Pi),e.formatting.getFormatContext(M(Oi),m))}function Je(Pi,Oi,wi,Qr){var Ct=Ue.getCurrentSourceFile(Pi),tt=e.formatting.getFormatContext(M(Qr),m);if(!e.isInComment(Ct,Oi))switch(wi){case"{":return e.formatting.formatOnOpeningCurly(Oi,Ct,tt);case"}":return e.formatting.formatOnClosingCurly(Oi,Ct,tt);case";":return e.formatting.formatOnSemicolon(Oi,Ct,tt);case`
|
|
`:return e.formatting.formatOnEnter(Oi,Ct,tt)}return[]}function Oe(Pi,Oi,wi,Qr,Ct,tt){tt===void 0&&(tt=e.emptyOptions),ge();var ta=Se(Pi),Xa=e.createTextSpanFromBounds(Oi,wi),on=e.formatting.getFormatContext(Ct,m);return e.flatMap(e.deduplicate(Qr,e.equateValues,e.compareValues),function(qr){return me.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:qr,sourceFile:ta,span:Xa,program:He,host:m,cancellationToken:me,formatContext:on,preferences:tt})})}function Fr(Pi,Oi,wi,Qr){Qr===void 0&&(Qr=e.emptyOptions),ge(),e.Debug.assert(Pi.type==="file");var Ct=Se(Pi.fileName),tt=e.formatting.getFormatContext(wi,m);return e.codefix.getAllFixes({fixId:Oi,sourceFile:Ct,program:He,host:m,cancellationToken:me,formatContext:tt,preferences:Qr})}function Xr(Pi,Oi,wi){wi===void 0&&(wi=e.emptyOptions),ge(),e.Debug.assert(Pi.type==="file");var Qr=Se(Pi.fileName),Ct=e.formatting.getFormatContext(Oi,m);return e.OrganizeImports.organizeImports(Qr,Ct,m,He,wi,Pi.skipDestructiveCodeActions)}function Or(Pi,Oi,wi,Qr){return Qr===void 0&&(Qr=e.emptyOptions),e.getEditsForFileRename(Fe(),Pi,Oi,m,e.formatting.getFormatContext(wi,m),Qr,ye)}function We(Pi,Oi){var wi=typeof Pi=="string"?Oi:Pi;return e.isArray(wi)?Promise.all(wi.map(function(Qr){return mr(Qr)})):mr(wi)}function mr(Pi){var Oi=function(wi){return e.toPath(wi,Ge,we)};return e.Debug.assertEqual(Pi.type,"install package"),m.installPackage?m.installPackage({fileName:Oi(Pi.file),packageName:Pi.packageName}):Promise.reject("Host does not implement `installPackage`")}function Nr(Pi,Oi,wi){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(m),Ue.getCurrentSourceFile(Pi),Oi,wi)}function Ur(Pi,Oi,wi){if(wi===60)return!1;var Qr=Ue.getCurrentSourceFile(Pi);if(e.isInString(Qr,Oi))return!1;if(e.isInsideJsxElementOrAttribute(Qr,Oi))return wi===123;if(e.isInTemplateString(Qr,Oi))return!1;switch(wi){case 39:case 34:case 96:return!e.isInComment(Qr,Oi)}return!0}function si(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=e.findPrecedingToken(Oi,wi);if(!!Qr){var Ct=Qr.kind===31&&e.isJsxOpeningElement(Qr.parent)?Qr.parent.parent:e.isJsxText(Qr)&&e.isJsxElement(Qr.parent)?Qr.parent:void 0;if(Ct&&zi(Ct))return{newText:"</".concat(Ct.openingElement.tagName.getText(wi),">")};var tt=Qr.kind===31&&e.isJsxOpeningFragment(Qr.parent)?Qr.parent.parent:e.isJsxText(Qr)&&e.isJsxFragment(Qr.parent)?Qr.parent:void 0;if(tt&&ri(tt))return{newText:"</>"}}}function mi(Pi,Oi){return{lineStarts:Pi.getLineStarts(),firstLine:Pi.getLineAndCharacterOfPosition(Oi.pos).line,lastLine:Pi.getLineAndCharacterOfPosition(Oi.end).line}}function Ti(Pi,Oi,wi){for(var Qr=Ue.getCurrentSourceFile(Pi),Ct=[],tt=mi(Qr,Oi),ta=tt.lineStarts,Xa=tt.firstLine,on=tt.lastLine,qr=wi||!1,bn=Number.MAX_VALUE,Rn=new e.Map,Sn=new RegExp(/\S/),zn=e.isInsideJsxElement(Qr,ta[Xa]),Zn=zn?"{/*":"//",ho=Xa;ho<=on;ho++){var Vo=Qr.text.substring(ta[ho],Qr.getLineEndOfPosition(ta[ho])),Cn=Sn.exec(Vo);Cn&&(bn=Math.min(bn,Cn.index),Rn.set(ho.toString(),Cn.index),Vo.substr(Cn.index,Zn.length)!==Zn&&(qr=wi===void 0||wi))}for(var ho=Xa;ho<=on;ho++)if(!(Xa!==on&&ta[ho]===Oi.end)){var go=Rn.get(ho.toString());go!==void 0&&(zn?Ct.push.apply(Ct,hi(Pi,{pos:ta[ho]+bn,end:Qr.getLineEndOfPosition(ta[ho])},qr,zn)):qr?Ct.push({newText:Zn,span:{length:0,start:ta[ho]+bn}}):Qr.text.substr(ta[ho]+go,Zn.length)===Zn&&Ct.push({newText:"",span:{length:Zn.length,start:ta[ho]+go}}))}return Ct}function hi(Pi,Oi,wi,Qr){for(var Ct,tt=Ue.getCurrentSourceFile(Pi),ta=[],Xa=tt.text,on=!1,qr=wi||!1,bn=[],Rn=Oi.pos,Sn=Qr!==void 0?Qr:e.isInsideJsxElement(tt,Rn),zn=Sn?"{/*":"/*",Zn=Sn?"*/}":"*/",ho=Sn?"\\{\\/\\*":"\\/\\*",Vo=Sn?"\\*\\/\\}":"\\*\\/";Rn<=Oi.end;){var Cn=Xa.substr(Rn,zn.length)===zn?zn.length:0,go=e.isInComment(tt,Rn+Cn);if(go)Sn&&(go.pos--,go.end++),bn.push(go.pos),go.kind===3&&bn.push(go.end),on=!0,Rn=go.end+1;else{var ro=Xa.substring(Rn,Oi.end).search("(".concat(ho,")|(").concat(Vo,")"));qr=wi!==void 0?wi:qr||!e.isTextWhiteSpaceLike(Xa,Rn,ro===-1?Oi.end:Rn+ro),Rn=ro===-1?Oi.end+1:Rn+ro+Zn.length}}if(qr||!on){((Ct=e.isInComment(tt,Oi.pos))===null||Ct===void 0?void 0:Ct.kind)!==2&&e.insertSorted(bn,Oi.pos,e.compareValues),e.insertSorted(bn,Oi.end,e.compareValues);var Ko=bn[0];Xa.substr(Ko,zn.length)!==zn&&ta.push({newText:zn,span:{length:0,start:Ko}});for(var rs=1;rs<bn.length-1;rs++)Xa.substr(bn[rs]-Zn.length,Zn.length)!==Zn&&ta.push({newText:Zn,span:{length:0,start:bn[rs]}}),Xa.substr(bn[rs],zn.length)!==zn&&ta.push({newText:zn,span:{length:0,start:bn[rs]}});ta.length%2!==0&&ta.push({newText:Zn,span:{length:0,start:bn[bn.length-1]}})}else for(var rn=0,Do=bn;rn<Do.length;rn++){var io=Do[rn],pn=io-Zn.length>0?io-Zn.length:0,Cn=Xa.substr(pn,Zn.length)===Zn?Zn.length:0;ta.push({newText:"",span:{length:zn.length,start:io-Cn}})}return ta}function ki(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=mi(wi,Oi),Ct=Qr.firstLine,tt=Qr.lastLine;return Ct===tt&&Oi.pos!==Oi.end?hi(Pi,Oi,!0):Ti(Pi,Oi,!0)}function Ui(Pi,Oi){var wi=Ue.getCurrentSourceFile(Pi),Qr=[],Ct=Oi.pos,tt=Oi.end;Ct===tt&&(tt+=e.isInsideJsxElement(wi,Ct)?2:1);for(var ta=Ct;ta<=tt;ta++){var Xa=e.isInComment(wi,ta);if(Xa){switch(Xa.kind){case 2:Qr.push.apply(Qr,Ti(Pi,{end:Xa.end,pos:Xa.pos+1},!1));break;case 3:Qr.push.apply(Qr,hi(Pi,{end:Xa.end,pos:Xa.pos+1},!1))}ta=Xa.end+1}}return Qr}function zi(Pi){var Oi=Pi.openingElement,wi=Pi.closingElement,Qr=Pi.parent;return!e.tagNamesAreEquivalent(Oi.tagName,wi.tagName)||e.isJsxElement(Qr)&&e.tagNamesAreEquivalent(Oi.tagName,Qr.openingElement.tagName)&&zi(Qr)}function ri(Pi){var Oi=Pi.closingFragment,wi=Pi.parent;return!!(Oi.flags&65536)||e.isJsxFragment(wi)&&ri(wi)}function Gi(Pi,Oi,wi){var Qr=Ue.getCurrentSourceFile(Pi),Ct=e.formatting.getRangeOfEnclosingComment(Qr,Oi);return Ct&&(!wi||Ct.kind===3)?e.createTextSpanFromRange(Ct):void 0}function Rt(Pi,Oi){ge();var wi=Se(Pi);me.throwIfCancellationRequested();var Qr=wi.text,Ct=[];if(Oi.length>0&&!Vo(wi.fileName))for(var tt=Zn(),ta=void 0;ta=tt.exec(Qr);){me.throwIfCancellationRequested();var Xa=3;e.Debug.assert(ta.length===Oi.length+Xa);var on=ta[1],qr=ta.index+on.length;if(!!e.isInComment(wi,qr)){for(var bn=void 0,Rn=0;Rn<Oi.length;Rn++)ta[Rn+Xa]&&(bn=Oi[Rn]);if(bn===void 0)return e.Debug.fail();if(!ho(Qr.charCodeAt(qr+bn.text.length))){var Sn=ta[2];Ct.push({descriptor:bn,message:Sn,position:qr})}}}return Ct;function zn(Cn){return Cn.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zn(){var Cn=/(?:\/\/+\s*)/.source,go=/(?:\/\*+\s*)/.source,ro=/(?:^(?:\s|\*)*)/.source,Ko="("+ro+"|"+Cn+"|"+go+")",rs="(?:"+e.map(Oi,function(Qn){return"("+zn(Qn.text)+")"}).join("|")+")",rn=/(?:$|\*\/)/.source,Do=/(?:.*?)/.source,io="("+rs+Do+")",pn=Ko+io+rn;return new RegExp(pn,"gim")}function ho(Cn){return Cn>=97&&Cn<=122||Cn>=65&&Cn<=90||Cn>=48&&Cn<=57}function Vo(Cn){return e.stringContains(Cn,"/node_modules/")}}function pa(Pi,Oi,wi){return ge(),e.Rename.getRenameInfo(He,Se(Pi),Oi,wi)}function xt(Pi,Oi,wi,Qr,Ct,tt){var ta=typeof Oi=="number"?[Oi,void 0]:[Oi.pos,Oi.end],Xa=ta[0],on=ta[1];return{file:Pi,startPosition:Xa,endPosition:on,program:Fe(),host:m,formatContext:e.formatting.getFormatContext(Qr,m),cancellationToken:me,preferences:wi,triggerReason:Ct,kind:tt}}function ua(Pi,Oi,wi){return{file:Pi,program:Fe(),host:m,span:Oi,preferences:wi,cancellationToken:me}}function Vt(Pi,Oi){return e.SmartSelectionRange.getSmartSelectionRange(Oi,Ue.getCurrentSourceFile(Pi))}function St(Pi,Oi,wi,Qr,Ct){wi===void 0&&(wi=e.emptyOptions),ge();var tt=Se(Pi);return e.refactor.getApplicableRefactors(xt(tt,Oi,wi,e.emptyOptions,Qr,Ct))}function Ci(Pi,Oi,wi,Qr,Ct,tt){tt===void 0&&(tt=e.emptyOptions),ge();var ta=Se(Pi);return e.refactor.getEditsForRefactor(xt(ta,wi,tt,Oi),Qr,Ct)}function Hi(Pi,Oi){return Oi===0?{line:0,character:0}:ye.toLineColumnOffset(Pi,Oi)}function Yi(Pi,Oi){ge();var wi=e.CallHierarchy.resolveCallHierarchyDeclaration(He,e.getTouchingPropertyName(Se(Pi),Oi));return wi&&e.mapOneOrMany(wi,function(Qr){return e.CallHierarchy.createCallHierarchyItem(He,Qr)})}function yt(Pi,Oi){ge();var wi=Se(Pi),Qr=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(He,Oi===0?wi:e.getTouchingPropertyName(wi,Oi)));return Qr?e.CallHierarchy.getIncomingCalls(He,Qr,me):[]}function gt(Pi,Oi){ge();var wi=Se(Pi),Qr=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(He,Oi===0?wi:e.getTouchingPropertyName(wi,Oi)));return Qr?e.CallHierarchy.getOutgoingCalls(He,Qr):[]}function oa(Pi,Oi,wi){wi===void 0&&(wi=e.emptyOptions),ge();var Qr=Se(Pi);return e.InlayHints.provideInlayHints(ua(Qr,Oi,wi))}var Bt={dispose:Ir,cleanupSemanticCache:ur,getSyntacticDiagnostics:dr,getSemanticDiagnostics:Br,getSuggestionDiagnostics:Tr,getCompilerOptionsDiagnostics:n,getSyntacticClassifications:Qe,getSemanticClassifications:Ye,getEncodedSyntacticClassifications:_r,getEncodedSemanticClassifications:Be,getCompletionsAtPosition:Er,getCompletionEntryDetails:br,getCompletionEntrySymbol:Pr,getSignatureHelpItems:bt,getQuickInfoAtPosition:Ce,getDefinitionAtPosition:Cr,getDefinitionAndBoundSpan:Lr,getImplementationAtPosition:Rr,getTypeDefinitionAtPosition:Jr,getReferencesAtPosition:Kr,findReferences:li,getFileReferences:Si,getOccurrencesAtPosition:ci,getDocumentHighlights:be,getNameOrDottedNameSpan:sr,getBreakpointStatementAtPosition:Ji,getNavigateToItems:qi,getRenameInfo:pa,getSmartSelectionRange:Vt,findRenameLocations:or,getNavigationBarItems:di,getNavigationTree:X,getOutliningSpans:hr,getTodoComments:Rt,getBraceMatchingAtPosition:Me,getIndentationAtPosition:v,getFormattingEditsForRange:xe,getFormattingEditsForDocument:ze,getFormattingEditsAfterKeystroke:Je,getDocCommentTemplateAtPosition:Nr,isValidBraceCompletionAtPosition:Ur,getJsxClosingTagAtPosition:si,getSpanOfEnclosingComment:Gi,getCodeFixesAtPosition:Oe,getCombinedCodeFix:Fr,applyCodeActionCommand:We,organizeImports:Xr,getEditsForFileRename:Or,getEmitOutput:ft,getNonBoundSourceFile:aa,getProgram:Fe,getAutoImportProvider:cr,getApplicableRefactors:St,getEditsForRefactor:Ci,toLineColumnOffset:Hi,getSourceMapper:function(){return ye},clearSourceMapperCache:function(){return ye.clearCache()},prepareCallHierarchy:Yi,provideCallHierarchyIncomingCalls:yt,provideCallHierarchyOutgoingCalls:gt,toggleLineComment:Ti,toggleMultilineComment:hi,commentSelection:ki,uncommentSelection:Ui,provideInlayHints:oa};switch(ke){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:D.forEach(function(Pi){return Bt[Pi]=function(){throw new Error("LanguageService Operation: ".concat(Pi," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:l.forEach(function(Pi){return Bt[Pi]=function(){throw new Error("LanguageService Operation: ".concat(Pi," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(ke)}return Bt}e.createLanguageService=_;function J(m){return m.nameTable||w(m),m.nameTable}e.getNameTable=J;function w(m){var de=m.nameTable=new e.Map;m.forEachChild(function ae(V){if(e.isIdentifier(V)&&!e.isTagName(V)&&V.escapedText||e.isStringOrNumericLiteralLike(V)&&j(V)){var le=e.getEscapedTextOfIdentifierOrLiteral(V);de.set(le,de.get(le)===void 0?V.pos:-1)}else if(e.isPrivateIdentifier(V)){var le=V.escapedText;de.set(le,de.get(le)===void 0?V.pos:-1)}if(e.forEachChild(V,ae),e.hasJSDocNodes(V))for(var ke=0,Ue=V.jsDoc;ke<Ue.length;ke++){var He=Ue[ke];e.forEachChild(He,ae)}})}function j(m){return e.isDeclarationName(m)||m.parent.kind===276||ve(m)||e.isLiteralComputedPropertyDeclarationName(m)}function U(m){var de=z(m);return de&&(e.isObjectLiteralExpression(de.parent)||e.isJsxAttributes(de.parent))?de:void 0}e.getContainingObjectLiteralElement=U;function z(m){switch(m.kind){case 10:case 14:case 8:if(m.parent.kind===161)return e.isObjectLiteralElement(m.parent.parent)?m.parent.parent:void 0;case 79:return e.isObjectLiteralElement(m.parent)&&(m.parent.parent.kind===204||m.parent.parent.kind===285)&&m.parent.name===m?m.parent:void 0}}function y(m,de){var ae=U(m);if(ae){var V=de.getContextualType(ae.parent),le=V&&oe(ae,de,V,!1);if(le&&le.length===1)return e.first(le)}return de.getSymbolAtLocation(m)}function oe(m,de,ae,V){var le=e.getNameFromPropertyName(m.name);if(!le)return e.emptyArray;if(!ae.isUnion()){var ke=ae.getProperty(le);return ke?[ke]:e.emptyArray}var Ue=e.mapDefined(ae.types,function(He){return(e.isObjectLiteralExpression(m.parent)||e.isJsxAttributes(m.parent))&&de.isTypeInvalidDueToUnionDiscriminant(He,m.parent)?void 0:He.getProperty(le)});if(V&&(Ue.length===0||Ue.length===ae.types.length)){var ke=ae.getProperty(le);if(ke)return[ke]}return Ue.length===0?e.mapDefined(ae.types,function(He){return He.getProperty(le)}):Ue}e.getPropertySymbolsFromContextualType=oe;function ve(m){return m&&m.parent&&m.parent.kind===206&&m.parent.argumentExpression===m}function ce(m){return"/prettier-security-dirname-placeholder"+e.directorySeparator+e.getDefaultLibFileName(m)}e.getDefaultLibFilePath=ce,e.setObjectAllocator(re())})(Pe||(Pe={}));var Pe;(function(e){var a;(function(O){function L(W,N){if(W.isDeclarationFile)return;var Q=e.getTokenAtPosition(W,N),pe=W.getLineAndCharacterOfPosition(N).line;if(W.getLineAndCharacterOfPosition(Q.getStart(W)).line>pe){var F=e.findPrecedingToken(Q.pos,W);if(!F||W.getLineAndCharacterOfPosition(F.getEnd()).line!==pe)return;Q=F}if(Q.flags&8388608)return;return G(Q);function g(E,ue){var B=E.decorators?e.skipTrivia(W.text,E.decorators.end):E.getStart(W);return e.createTextSpanFromBounds(B,(ue||E).getEnd())}function S(E,ue){return g(E,e.findNextToken(ue,ue.parent,W))}function H(E,ue){return E&&pe===W.getLineAndCharacterOfPosition(E.getStart(W)).line?G(E):G(ue)}function se(E){return e.createTextSpanFromBounds(e.skipTrivia(W.text,E.pos),E.end)}function p(E){return G(e.findPrecedingToken(E.pos,W))}function C(E){return G(e.findNextToken(E,E.parent,W))}function G(E){if(E){var ue=E.parent;switch(E.kind){case 236:return Z(E.declarationList.declarations[0]);case 253:case 166:case 165:return Z(E);case 163:return I(E);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return ee(E);case 234:if(e.isFunctionBlock(E))return A(E);case 261:return f(E);case 291:return f(E.block);case 237:return g(E.expression);case 246:return g(E.getChildAt(0),E.expression);case 240:return S(E,E.expression);case 239:return G(E.statement);case 252:return g(E.getChildAt(0));case 238:return S(E,E.expression);case 249:return G(E.statement);case 245:case 244:return g(E.getChildAt(0),E.label);case 241:return D(E);case 242:return S(E,E.expression);case 243:return P(E);case 248:return S(E,E.expression);case 288:case 289:return G(E.statements[0]);case 251:return f(E.tryBlock);case 250:return g(E,E.expression);case 270:return g(E,E.expression);case 264:return g(E,E.moduleReference);case 265:return g(E,E.moduleSpecifier);case 271:return g(E,E.moduleSpecifier);case 260:if(e.getModuleInstanceState(E)!==1)return;case 256:case 259:case 297:case 202:return g(E);case 247:return G(E.statement);case 164:return se(ue.decorators);case 200:case 201:return l(E);case 257:case 258:return;case 26:case 1:return H(e.findPrecedingToken(E.pos,W));case 27:return p(E);case 18:return J(E);case 19:return w(E);case 23:return j(E);case 20:return U(E);case 21:return z(E);case 58:return y(E);case 31:case 29:return oe(E);case 115:return ve(E);case 91:case 83:case 96:return C(E);case 159:return ce(E);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(E))return _(E);if((E.kind===79||E.kind===224||E.kind===294||E.kind===295)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(ue))return g(E);if(E.kind===220){var B=E,re=B.left,M=B.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(re))return _(re);if(M.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent))return g(E);if(M.kind===27)return G(re)}if(e.isExpressionNode(E))switch(ue.kind){case 239:return p(E);case 164:return G(E.parent);case 241:case 243:return g(E);case 220:if(E.parent.operatorToken.kind===27)return g(E);break;case 213:if(E.parent.body===E)return g(E);break}switch(E.parent.kind){case 294:if(E.parent.name===E&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent.parent))return G(E.parent.initializer);break;case 210:if(E.parent.type===E)return C(E.parent.type);break;case 253:case 163:{var x=E.parent,ie=x.initializer,_e=x.type;if(ie===E||_e===E||e.isAssignmentOperator(E.kind))return p(E);break}case 220:{var re=E.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(re)&&E!==re)return p(E);break}default:if(e.isFunctionLike(E.parent)&&E.parent.type===E)return p(E)}return G(E.parent)}}function Y(m){return e.isVariableDeclarationList(m.parent)&&m.parent.declarations[0]===m?g(e.findPrecedingToken(m.pos,W,m.parent),m):g(m)}function Z(m){if(m.parent.parent.kind===242)return G(m.parent.parent);var de=m.parent;if(e.isBindingPattern(m.name))return l(m.name);if(m.initializer||e.hasSyntacticModifier(m,1)||de.parent.kind===243)return Y(m);if(e.isVariableDeclarationList(m.parent)&&m.parent.declarations[0]!==m)return G(e.findPrecedingToken(m.pos,W,m.parent))}function k(m){return!!m.initializer||m.dotDotDotToken!==void 0||e.hasSyntacticModifier(m,12)}function I(m){if(e.isBindingPattern(m.name))return l(m.name);if(k(m))return g(m);var de=m.parent,ae=de.parameters.indexOf(m);return e.Debug.assert(ae!==-1),ae!==0?I(de.parameters[ae-1]):G(de.body)}function ne(m){return e.hasSyntacticModifier(m,1)||m.parent.kind===256&&m.kind!==170}function ee(m){if(!!m.body)return ne(m)?g(m):G(m.body)}function A(m){var de=m.statements.length?m.statements[0]:m.getLastToken();return ne(m.parent)?H(m.parent,de):G(de)}function f(m){switch(m.parent.kind){case 260:if(e.getModuleInstanceState(m.parent)!==1)return;case 240:case 238:case 242:return H(m.parent,m.statements[0]);case 241:case 243:return H(e.findPrecedingToken(m.pos,W,m.parent),m.statements[0])}return G(m.statements[0])}function P(m){if(m.initializer.kind===254){var de=m.initializer;if(de.declarations.length>0)return G(de.declarations[0])}else return G(m.initializer)}function D(m){if(m.initializer)return P(m);if(m.condition)return g(m.condition);if(m.incrementor)return g(m.incrementor)}function l(m){var de=e.forEach(m.elements,function(ae){return ae.kind!==226?ae:void 0});return de?G(de):m.parent.kind===202?g(m.parent):Y(m.parent)}function _(m){e.Debug.assert(m.kind!==201&&m.kind!==200);var de=m.kind===203?m.elements:m.properties,ae=e.forEach(de,function(V){return V.kind!==226?V:void 0});return ae?G(ae):g(m.parent.kind===220?m.parent:m)}function J(m){switch(m.parent.kind){case 259:var de=m.parent;return H(e.findPrecedingToken(m.pos,W,m.parent),de.members.length?de.members[0]:de.getLastToken(W));case 256:var ae=m.parent;return H(e.findPrecedingToken(m.pos,W,m.parent),ae.members.length?ae.members[0]:ae.getLastToken(W));case 262:return H(m.parent.parent,m.parent.clauses[0])}return G(m.parent)}function w(m){switch(m.parent.kind){case 261:if(e.getModuleInstanceState(m.parent.parent)!==1)return;case 259:case 256:return g(m);case 234:if(e.isFunctionBlock(m.parent))return g(m);case 291:return G(e.lastOrUndefined(m.parent.statements));case 262:var de=m.parent,ae=e.lastOrUndefined(de.clauses);return ae?G(e.lastOrUndefined(ae.statements)):void 0;case 200:var V=m.parent;return G(e.lastOrUndefined(V.elements)||V);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m.parent)){var le=m.parent;return g(e.lastOrUndefined(le.properties)||le)}return G(m.parent)}}function j(m){switch(m.parent.kind){case 201:var de=m.parent;return g(e.lastOrUndefined(de.elements)||de);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(m.parent)){var ae=m.parent;return g(e.lastOrUndefined(ae.elements)||ae)}return G(m.parent)}}function U(m){return m.parent.kind===239||m.parent.kind===207||m.parent.kind===208?p(m):m.parent.kind===211?C(m):G(m.parent)}function z(m){switch(m.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return p(m);default:return G(m.parent)}}function y(m){return e.isFunctionLike(m.parent)||m.parent.kind===294||m.parent.kind===163?p(m):G(m.parent)}function oe(m){return m.parent.kind===210?C(m):G(m.parent)}function ve(m){return m.parent.kind===239?S(m,m.parent.expression):G(m.parent)}function ce(m){return m.parent.kind===243?C(m):G(m.parent)}}}O.spanInSourceFileAtLocation=L})(a=e.BreakpointResolver||(e.BreakpointResolver={}))})(Pe||(Pe={}));var Pe;(function(e){function a(O,L,W){var N=[];W=e.fixupCompilerOptions(W,N);var Q=e.isArray(O)?O:[O],pe=e.transformNodes(void 0,void 0,e.factory,W,Q,L,!0);return pe.diagnostics=e.concatenate(pe.diagnostics,N),pe}e.transform=a})(Pe||(Pe={}));var ir=function(){return this}(),Pe;(function(e){function a(S,H){S&&S.log("*INTERNAL ERROR* - Exception in typescript services: "+H.message)}var O=void 0,L=void 0;e.LanguageServiceShimHostAdapter=L;var W=void 0;e.CoreServicesShimHostAdapter=W;var N=void 0;e.realizeDiagnostics=void 0;var Q=void 0,pe=void 0,F=void 0,g=void 0;e.TypeScriptServicesFactory=void 0})(Pe||(Pe={})),function(){return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),typeof te<"u"&&te.exports&&(te.exports=Pe);var Pe;(function(e){var a={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,a),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,a),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,a),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,a),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,a),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,a),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,a),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,a),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,a),e.createSuper=e.Debug.deprecate(e.factory.createSuper,a),e.createThis=e.Debug.deprecate(e.factory.createThis,a),e.createNull=e.Debug.deprecate(e.factory.createNull,a),e.createTrue=e.Debug.deprecate(e.factory.createTrue,a),e.createFalse=e.Debug.deprecate(e.factory.createFalse,a),e.createModifier=e.Debug.deprecate(e.factory.createModifier,a),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,a),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,a),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,a),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,a),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,a),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,a),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,a),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,a),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,a),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,a),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,a),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,a),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,a),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,a),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,a),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,a),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,a),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,a),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,a),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,a),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,a),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,a),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,a),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,a),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,a),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,a),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,a),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,a),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,a),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,a),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,a),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,a),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,a),e.createConstructorTypeNode=e.Debug.deprecate(function(O,L,W){return e.factory.createConstructorTypeNode(void 0,O,L,W)},a),e.updateConstructorTypeNode=e.Debug.deprecate(function(O,L,W,N){return e.factory.updateConstructorTypeNode(O,O.modifiers,L,W,N)},a),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,a),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,a),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,a),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,a),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,a),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,a),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,a),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,a),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,a),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,a),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,a),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,a),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,a),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,a),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,a),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,a),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,a),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,a),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,a),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,a),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,a),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,a),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,a),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,a),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,a),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,a),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,a),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,a),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,a),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,a),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,a),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,a),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,a),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,a),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,a),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,a),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,a),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,a),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,a),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,a),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,a),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,a),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,a),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,a),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,a),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,a),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,a),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,a),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,a),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,a),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,a),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,a),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,a),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,a),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,a),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,a),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,a),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,a),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,a),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,a),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,a),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,a),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,a),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,a),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,a),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,a),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,a),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,a),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,a),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,a),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,a),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,a),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,a),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,a),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,a),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,a),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,a),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,a),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,a),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,a),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,a),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,a),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,a),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,a),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,a),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,a),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,a),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,a),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,a),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,a),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,a),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,a),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,a),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,a),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,a),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,a),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,a),e.createBlock=e.Debug.deprecate(e.factory.createBlock,a),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,a),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,a),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,a),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,a),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,a),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,a),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,a),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,a),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,a),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,a),e.createFor=e.Debug.deprecate(e.factory.createForStatement,a),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,a),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,a),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,a),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,a),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,a),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,a),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,a),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,a),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,a),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,a),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,a),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,a),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,a),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,a),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,a),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,a),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,a),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,a),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,a),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,a),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,a),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,a),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,a),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,a),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,a),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,a),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,a),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,a),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,a),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,a),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,a),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,a),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,a),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,a),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,a),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,a),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,a),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,a),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,a),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,a),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,a),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,a),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,a),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,a),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,a),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,a),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,a),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,a),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,a),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,a),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,a),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,a),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,a),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,a),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,a),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,a),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,a),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,a),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,a),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,a),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,a),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,a),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,a),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,a),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,a),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,a),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,a),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,a),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,a),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,a),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,a),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,a),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,a),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,a),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,a),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,a),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,a),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,a),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,a),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,a),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,a),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,a),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,a),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,a),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,a),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,a),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,a),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,a),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,a),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,a),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,a),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,a),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,a),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,a),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,a),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,a),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,a),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,a),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,a),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,a),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,a),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,a),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,a),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,a),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,a),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,a),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,a),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,a),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,a),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,a),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,a),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,a),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,a),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,a),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,a),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,a),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,a),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,a),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,a),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,a),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,a),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,a),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,a),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,a),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,a),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,a),e.createBundle=e.Debug.deprecate(e.factory.createBundle,a),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,a),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,a),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,a),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,a),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,a),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,a),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,a),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,a),e.createToken=e.Debug.deprecate(function(L){return e.factory.createToken(L)},a),e.createIdentifier=e.Debug.deprecate(function(L){return e.factory.createIdentifier(L,void 0,void 0)},a),e.createTempVariable=e.Debug.deprecate(function(L){return e.factory.createTempVariable(L,void 0)},a),e.getGeneratedNameForNode=e.Debug.deprecate(function(L){return e.factory.getGeneratedNameForNode(L,void 0)},a),e.createOptimisticUniqueName=e.Debug.deprecate(function(L){return e.factory.createUniqueName(L,16)},a),e.createFileLevelUniqueName=e.Debug.deprecate(function(L){return e.factory.createUniqueName(L,48)},a),e.createIndexSignature=e.Debug.deprecate(function(L,W,N,Q){return e.factory.createIndexSignature(L,W,N,Q)},a),e.createTypePredicateNode=e.Debug.deprecate(function(L,W){return e.factory.createTypePredicateNode(void 0,L,W)},a),e.updateTypePredicateNode=e.Debug.deprecate(function(L,W,N){return e.factory.updateTypePredicateNode(L,void 0,W,N)},a),e.createLiteral=e.Debug.deprecate(function(L){return typeof L=="number"?e.factory.createNumericLiteral(L):typeof L=="object"&&"base10Value"in L?e.factory.createBigIntLiteral(L):typeof L=="boolean"?L?e.factory.createTrue():e.factory.createFalse():typeof L=="string"?e.factory.createStringLiteral(L,void 0):e.factory.createStringLiteralFromNode(L)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(L,W,N,Q,pe){return e.factory.createMethodSignature(void 0,Q,pe,L,W,N)},a),e.updateMethodSignature=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateMethodSignature(L,L.modifiers,pe,F,W,N,Q)},a),e.createTypeOperatorNode=e.Debug.deprecate(function(L,W){var N;return W?N=L:(W=L,N=140),e.factory.createTypeOperatorNode(N,W)},a),e.createTaggedTemplate=e.Debug.deprecate(function(L,W,N){var Q;return N?Q=W:N=W,e.factory.createTaggedTemplateExpression(L,Q,N)},a),e.updateTaggedTemplate=e.Debug.deprecate(function(L,W,N,Q){var pe;return Q?pe=N:Q=N,e.factory.updateTaggedTemplateExpression(L,W,pe,Q)},a),e.updateBinary=e.Debug.deprecate(function(L,W,N,Q){return Q===void 0&&(Q=L.operatorToken),typeof Q=="number"&&(Q=Q===L.operatorToken.kind?L.operatorToken:e.factory.createToken(Q)),e.factory.updateBinaryExpression(L,W,Q,N)},a),e.createConditional=e.Debug.deprecate(function(L,W,N,Q,pe){return arguments.length===5?e.factory.createConditionalExpression(L,W,N,Q,pe):arguments.length===3?e.factory.createConditionalExpression(L,e.factory.createToken(57),W,e.factory.createToken(58),N):e.Debug.fail("Argument count mismatch")},a),e.createYield=e.Debug.deprecate(function(L,W){var N;return W?N=L:W=L,e.factory.createYieldExpression(N,W)},a),e.createClassExpression=e.Debug.deprecate(function(L,W,N,Q,pe){return e.factory.createClassExpression(void 0,L,W,N,Q,pe)},a),e.updateClassExpression=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateClassExpression(L,void 0,W,N,Q,pe,F)},a),e.createPropertySignature=e.Debug.deprecate(function(L,W,N,Q,pe){var F=e.factory.createPropertySignature(L,W,N,Q);return F.initializer=pe,F},a),e.updatePropertySignature=e.Debug.deprecate(function(L,W,N,Q,pe,F){var g=e.factory.updatePropertySignature(L,W,N,Q,pe);return L.initializer!==F&&(g===L&&(g=e.factory.cloneNode(L)),g.initializer=F),g},a),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(L,W){return e.factory.createExpressionWithTypeArguments(W,L)},a),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(L,W,N){return e.factory.updateExpressionWithTypeArguments(L,N,W)},a),e.createArrowFunction=e.Debug.deprecate(function(L,W,N,Q,pe,F){return arguments.length===6?e.factory.createArrowFunction(L,W,N,Q,pe,F):arguments.length===5?e.factory.createArrowFunction(L,W,N,Q,void 0,pe):e.Debug.fail("Argument count mismatch")},a),e.updateArrowFunction=e.Debug.deprecate(function(L,W,N,Q,pe,F,g){return arguments.length===7?e.factory.updateArrowFunction(L,W,N,Q,pe,F,g):arguments.length===6?e.factory.updateArrowFunction(L,W,N,Q,pe,L.equalsGreaterThanToken,F):e.Debug.fail("Argument count mismatch")},a),e.createVariableDeclaration=e.Debug.deprecate(function(L,W,N,Q){return arguments.length===4?e.factory.createVariableDeclaration(L,W,N,Q):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(L,void 0,W,N):e.Debug.fail("Argument count mismatch")},a),e.updateVariableDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe){return arguments.length===5?e.factory.updateVariableDeclaration(L,W,N,Q,pe):arguments.length===4?e.factory.updateVariableDeclaration(L,W,L.exclamationToken,N,Q):e.Debug.fail("Argument count mismatch")},a),e.createImportClause=e.Debug.deprecate(function(L,W,N){return N===void 0&&(N=!1),e.factory.createImportClause(N,L,W)},a),e.updateImportClause=e.Debug.deprecate(function(L,W,N,Q){return e.factory.updateImportClause(L,Q,W,N)},a),e.createExportDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe){return pe===void 0&&(pe=!1),e.factory.createExportDeclaration(L,W,pe,N,Q)},a),e.updateExportDeclaration=e.Debug.deprecate(function(L,W,N,Q,pe,F){return e.factory.updateExportDeclaration(L,W,N,F,Q,pe,L.assertClause)},a),e.createJSDocParamTag=e.Debug.deprecate(function(L,W,N,Q){return e.factory.createJSDocParameterTag(void 0,L,W,N,!1,Q?e.factory.createNodeArray([e.factory.createJSDocText(Q)]):void 0)},a),e.createComma=e.Debug.deprecate(function(L,W){return e.factory.createComma(L,W)},a),e.createLessThan=e.Debug.deprecate(function(L,W){return e.factory.createLessThan(L,W)},a),e.createAssignment=e.Debug.deprecate(function(L,W){return e.factory.createAssignment(L,W)},a),e.createStrictEquality=e.Debug.deprecate(function(L,W){return e.factory.createStrictEquality(L,W)},a),e.createStrictInequality=e.Debug.deprecate(function(L,W){return e.factory.createStrictInequality(L,W)},a),e.createAdd=e.Debug.deprecate(function(L,W){return e.factory.createAdd(L,W)},a),e.createSubtract=e.Debug.deprecate(function(L,W){return e.factory.createSubtract(L,W)},a),e.createLogicalAnd=e.Debug.deprecate(function(L,W){return e.factory.createLogicalAnd(L,W)},a),e.createLogicalOr=e.Debug.deprecate(function(L,W){return e.factory.createLogicalOr(L,W)},a),e.createPostfixIncrement=e.Debug.deprecate(function(L){return e.factory.createPostfixIncrement(L)},a),e.createLogicalNot=e.Debug.deprecate(function(L){return e.factory.createLogicalNot(L)},a),e.createNode=e.Debug.deprecate(function(L,W,N){return W===void 0&&(W=0),N===void 0&&(N=0),e.setTextRangePosEnd(L===303?e.parseBaseNodeFactory.createBaseSourceFileNode(L):L===79?e.parseBaseNodeFactory.createBaseIdentifierNode(L):L===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(L):e.isNodeKind(L)?e.parseBaseNodeFactory.createBaseNode(L):e.parseBaseNodeFactory.createBaseTokenNode(L),W,N)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(L){var W=e.factory.cloneNode(L);return e.setTextRange(W,L),e.setParent(W,L.parent),W},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(L){return L.kind===210},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(L){return e.isMemberName(L)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Pe||(Pe={}))}}),EN=Aa({"node_modules/@typescript-eslint/types/dist/generated/ast-spec.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var te;(function(Ve){Ve.ArrayExpression="ArrayExpression",Ve.ArrayPattern="ArrayPattern",Ve.ArrowFunctionExpression="ArrowFunctionExpression",Ve.AssignmentExpression="AssignmentExpression",Ve.AssignmentPattern="AssignmentPattern",Ve.AwaitExpression="AwaitExpression",Ve.BinaryExpression="BinaryExpression",Ve.BlockStatement="BlockStatement",Ve.BreakStatement="BreakStatement",Ve.CallExpression="CallExpression",Ve.CatchClause="CatchClause",Ve.ChainExpression="ChainExpression",Ve.ClassBody="ClassBody",Ve.ClassDeclaration="ClassDeclaration",Ve.ClassExpression="ClassExpression",Ve.ConditionalExpression="ConditionalExpression",Ve.ContinueStatement="ContinueStatement",Ve.DebuggerStatement="DebuggerStatement",Ve.Decorator="Decorator",Ve.DoWhileStatement="DoWhileStatement",Ve.EmptyStatement="EmptyStatement",Ve.ExportAllDeclaration="ExportAllDeclaration",Ve.ExportDefaultDeclaration="ExportDefaultDeclaration",Ve.ExportNamedDeclaration="ExportNamedDeclaration",Ve.ExportSpecifier="ExportSpecifier",Ve.ExpressionStatement="ExpressionStatement",Ve.ForInStatement="ForInStatement",Ve.ForOfStatement="ForOfStatement",Ve.ForStatement="ForStatement",Ve.FunctionDeclaration="FunctionDeclaration",Ve.FunctionExpression="FunctionExpression",Ve.Identifier="Identifier",Ve.IfStatement="IfStatement",Ve.ImportAttribute="ImportAttribute",Ve.ImportDeclaration="ImportDeclaration",Ve.ImportDefaultSpecifier="ImportDefaultSpecifier",Ve.ImportExpression="ImportExpression",Ve.ImportNamespaceSpecifier="ImportNamespaceSpecifier",Ve.ImportSpecifier="ImportSpecifier",Ve.JSXAttribute="JSXAttribute",Ve.JSXClosingElement="JSXClosingElement",Ve.JSXClosingFragment="JSXClosingFragment",Ve.JSXElement="JSXElement",Ve.JSXEmptyExpression="JSXEmptyExpression",Ve.JSXExpressionContainer="JSXExpressionContainer",Ve.JSXFragment="JSXFragment",Ve.JSXIdentifier="JSXIdentifier",Ve.JSXMemberExpression="JSXMemberExpression",Ve.JSXNamespacedName="JSXNamespacedName",Ve.JSXOpeningElement="JSXOpeningElement",Ve.JSXOpeningFragment="JSXOpeningFragment",Ve.JSXSpreadAttribute="JSXSpreadAttribute",Ve.JSXSpreadChild="JSXSpreadChild",Ve.JSXText="JSXText",Ve.LabeledStatement="LabeledStatement",Ve.Literal="Literal",Ve.LogicalExpression="LogicalExpression",Ve.MemberExpression="MemberExpression",Ve.MetaProperty="MetaProperty",Ve.MethodDefinition="MethodDefinition",Ve.NewExpression="NewExpression",Ve.ObjectExpression="ObjectExpression",Ve.ObjectPattern="ObjectPattern",Ve.PrivateIdentifier="PrivateIdentifier",Ve.Program="Program",Ve.Property="Property",Ve.PropertyDefinition="PropertyDefinition",Ve.RestElement="RestElement",Ve.ReturnStatement="ReturnStatement",Ve.SequenceExpression="SequenceExpression",Ve.SpreadElement="SpreadElement",Ve.StaticBlock="StaticBlock",Ve.Super="Super",Ve.SwitchCase="SwitchCase",Ve.SwitchStatement="SwitchStatement",Ve.TaggedTemplateExpression="TaggedTemplateExpression",Ve.TemplateElement="TemplateElement",Ve.TemplateLiteral="TemplateLiteral",Ve.ThisExpression="ThisExpression",Ve.ThrowStatement="ThrowStatement",Ve.TryStatement="TryStatement",Ve.UnaryExpression="UnaryExpression",Ve.UpdateExpression="UpdateExpression",Ve.VariableDeclaration="VariableDeclaration",Ve.VariableDeclarator="VariableDeclarator",Ve.WhileStatement="WhileStatement",Ve.WithStatement="WithStatement",Ve.YieldExpression="YieldExpression",Ve.TSAbstractKeyword="TSAbstractKeyword",Ve.TSAbstractMethodDefinition="TSAbstractMethodDefinition",Ve.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",Ve.TSAnyKeyword="TSAnyKeyword",Ve.TSArrayType="TSArrayType",Ve.TSAsExpression="TSAsExpression",Ve.TSAsyncKeyword="TSAsyncKeyword",Ve.TSBigIntKeyword="TSBigIntKeyword",Ve.TSBooleanKeyword="TSBooleanKeyword",Ve.TSCallSignatureDeclaration="TSCallSignatureDeclaration",Ve.TSClassImplements="TSClassImplements",Ve.TSConditionalType="TSConditionalType",Ve.TSConstructorType="TSConstructorType",Ve.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",Ve.TSDeclareFunction="TSDeclareFunction",Ve.TSDeclareKeyword="TSDeclareKeyword",Ve.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",Ve.TSEnumDeclaration="TSEnumDeclaration",Ve.TSEnumMember="TSEnumMember",Ve.TSExportAssignment="TSExportAssignment",Ve.TSExportKeyword="TSExportKeyword",Ve.TSExternalModuleReference="TSExternalModuleReference",Ve.TSFunctionType="TSFunctionType",Ve.TSImportEqualsDeclaration="TSImportEqualsDeclaration",Ve.TSImportType="TSImportType",Ve.TSIndexedAccessType="TSIndexedAccessType",Ve.TSIndexSignature="TSIndexSignature",Ve.TSInferType="TSInferType",Ve.TSInterfaceBody="TSInterfaceBody",Ve.TSInterfaceDeclaration="TSInterfaceDeclaration",Ve.TSInterfaceHeritage="TSInterfaceHeritage",Ve.TSIntersectionType="TSIntersectionType",Ve.TSIntrinsicKeyword="TSIntrinsicKeyword",Ve.TSLiteralType="TSLiteralType",Ve.TSMappedType="TSMappedType",Ve.TSMethodSignature="TSMethodSignature",Ve.TSModuleBlock="TSModuleBlock",Ve.TSModuleDeclaration="TSModuleDeclaration",Ve.TSNamedTupleMember="TSNamedTupleMember",Ve.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",Ve.TSNeverKeyword="TSNeverKeyword",Ve.TSNonNullExpression="TSNonNullExpression",Ve.TSNullKeyword="TSNullKeyword",Ve.TSNumberKeyword="TSNumberKeyword",Ve.TSObjectKeyword="TSObjectKeyword",Ve.TSOptionalType="TSOptionalType",Ve.TSParameterProperty="TSParameterProperty",Ve.TSPrivateKeyword="TSPrivateKeyword",Ve.TSPropertySignature="TSPropertySignature",Ve.TSProtectedKeyword="TSProtectedKeyword",Ve.TSPublicKeyword="TSPublicKeyword",Ve.TSQualifiedName="TSQualifiedName",Ve.TSReadonlyKeyword="TSReadonlyKeyword",Ve.TSRestType="TSRestType",Ve.TSStaticKeyword="TSStaticKeyword",Ve.TSStringKeyword="TSStringKeyword",Ve.TSSymbolKeyword="TSSymbolKeyword",Ve.TSTemplateLiteralType="TSTemplateLiteralType",Ve.TSThisType="TSThisType",Ve.TSTupleType="TSTupleType",Ve.TSTypeAliasDeclaration="TSTypeAliasDeclaration",Ve.TSTypeAnnotation="TSTypeAnnotation",Ve.TSTypeAssertion="TSTypeAssertion",Ve.TSTypeLiteral="TSTypeLiteral",Ve.TSTypeOperator="TSTypeOperator",Ve.TSTypeParameter="TSTypeParameter",Ve.TSTypeParameterDeclaration="TSTypeParameterDeclaration",Ve.TSTypeParameterInstantiation="TSTypeParameterInstantiation",Ve.TSTypePredicate="TSTypePredicate",Ve.TSTypeQuery="TSTypeQuery",Ve.TSTypeReference="TSTypeReference",Ve.TSUndefinedKeyword="TSUndefinedKeyword",Ve.TSUnionType="TSUnionType",Ve.TSUnknownKeyword="TSUnknownKeyword",Ve.TSVoidKeyword="TSVoidKeyword"})(te=R.AST_NODE_TYPES||(R.AST_NODE_TYPES={}));var qe;(function(Ve){Ve.Boolean="Boolean",Ve.Identifier="Identifier",Ve.JSXIdentifier="JSXIdentifier",Ve.JSXText="JSXText",Ve.Keyword="Keyword",Ve.Null="Null",Ve.Numeric="Numeric",Ve.Punctuator="Punctuator",Ve.RegularExpression="RegularExpression",Ve.String="String",Ve.Template="Template",Ve.Block="Block",Ve.Line="Line"})(qe=R.AST_TOKEN_TYPES||(R.AST_TOKEN_TYPES={}))}}),qj=Aa({"node_modules/@typescript-eslint/types/dist/lib.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Vj=Aa({"node_modules/@typescript-eslint/types/dist/parser-options.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Kj=Aa({"node_modules/@typescript-eslint/types/dist/ts-estree.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__setModuleDefault||(Object.create?function(ni,wr){Object.defineProperty(ni,"default",{enumerable:!0,value:wr})}:function(ni,wr){ni.default=wr}),Ve=R&&R.__importStar||function(ni){if(ni&&ni.__esModule)return ni;var wr={};if(ni!=null)for(var fr in ni)fr!=="default"&&Object.prototype.hasOwnProperty.call(ni,fr)&&te(wr,ni,fr);return qe(wr,ni),wr};Object.defineProperty(R,"__esModule",{value:!0}),R.TSESTree=void 0,R.TSESTree=Ve(EN())}}),CN=Aa({"node_modules/@typescript-eslint/types/dist/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__exportStar||function(ni,wr){for(var fr in ni)fr!=="default"&&!Object.prototype.hasOwnProperty.call(wr,fr)&&te(wr,ni,fr)};Object.defineProperty(R,"__esModule",{value:!0}),R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var Ve=EN();Object.defineProperty(R,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ve.AST_NODE_TYPES}}),Object.defineProperty(R,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ve.AST_TOKEN_TYPES}}),qe(qj(),R),qe(Vj(),R),qe(Kj(),R)}}),Gj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0})}}),Hj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=CN()}}),f1=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr);var ir=Object.getOwnPropertyDescriptor(wr,fr);(!ir||("get"in ir?!wr.__esModule:ir.writable||ir.configurable))&&(ir={enumerable:!0,get:function(){return wr[fr]}}),Object.defineProperty(ni,Mr,ir)}:function(ni,wr,fr,Mr){Mr===void 0&&(Mr=fr),ni[Mr]=wr[fr]}),qe=R&&R.__exportStar||function(ni,wr){for(var fr in ni)fr!=="default"&&!Object.prototype.hasOwnProperty.call(wr,fr)&&te(wr,ni,fr)};Object.defineProperty(R,"__esModule",{value:!0}),R.TSESTree=R.AST_TOKEN_TYPES=R.AST_NODE_TYPES=void 0;var Ve=CN();Object.defineProperty(R,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ve.AST_NODE_TYPES}}),Object.defineProperty(R,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ve.AST_TOKEN_TYPES}}),Object.defineProperty(R,"TSESTree",{enumerable:!0,get:function(){return Ve.TSESTree}}),qe(Gj(),R),qe(Hj(),R)}}),Xj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.xhtmlEntities=void 0,R.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}}}),_1=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(P,D,l,_){_===void 0&&(_=l);var J=Object.getOwnPropertyDescriptor(D,l);(!J||("get"in J?!D.__esModule:J.writable||J.configurable))&&(J={enumerable:!0,get:function(){return D[l]}}),Object.defineProperty(P,_,J)}:function(P,D,l,_){_===void 0&&(_=l),P[_]=D[l]}),qe=R&&R.__setModuleDefault||(Object.create?function(P,D){Object.defineProperty(P,"default",{enumerable:!0,value:D})}:function(P,D){P.default=D}),Ve=R&&R.__importStar||function(P){if(P&&P.__esModule)return P;var D={};if(P!=null)for(var l in P)l!=="default"&&Object.prototype.hasOwnProperty.call(P,l)&&te(D,P,l);return qe(D,P),D};Object.defineProperty(R,"__esModule",{value:!0}),R.firstDefined=R.nodeHasTokens=R.createError=R.TSError=R.convertTokens=R.convertToken=R.getTokenType=R.isChildUnwrappableOptionalChain=R.isChainExpression=R.isOptional=R.isComputedProperty=R.unescapeStringLiteralText=R.hasJSXAncestor=R.findFirstMatchingAncestor=R.findNextToken=R.getTSNodeAccessibility=R.getDeclarationKind=R.isJSXToken=R.isToken=R.getRange=R.canContainDirective=R.getLocFor=R.getLineAndCharacterFor=R.getBinaryExpressionType=R.isJSDocComment=R.isComment=R.isComma=R.getLastModifier=R.hasModifier=R.isESTreeClassMember=R.getTextForTokenKind=R.isLogicalOperator=R.isAssignmentOperator=void 0;var ni=Ve(Lu()),wr=f1(),fr=Xj(),Mr=ni.SyntaxKind,ir=[Mr.BarBarToken,Mr.AmpersandAmpersandToken,Mr.QuestionQuestionToken];function Pe(P){return P.kind>=Mr.FirstAssignment&&P.kind<=Mr.LastAssignment}R.isAssignmentOperator=Pe;function e(P){return ir.includes(P.kind)}R.isLogicalOperator=e;function a(P){return ni.tokenToString(P)}R.getTextForTokenKind=a;function O(P){return P.kind!==Mr.SemicolonClassElement}R.isESTreeClassMember=O;function L(P,D){return!!D.modifiers&&!!D.modifiers.length&&D.modifiers.some(l=>l.kind===P)}R.hasModifier=L;function W(P){return!!P.modifiers&&!!P.modifiers.length&&P.modifiers[P.modifiers.length-1]||null}R.getLastModifier=W;function N(P){return P.kind===Mr.CommaToken}R.isComma=N;function Q(P){return P.kind===Mr.SingleLineCommentTrivia||P.kind===Mr.MultiLineCommentTrivia}R.isComment=Q;function pe(P){return P.kind===Mr.JSDocComment}R.isJSDocComment=pe;function F(P){return Pe(P)?wr.AST_NODE_TYPES.AssignmentExpression:e(P)?wr.AST_NODE_TYPES.LogicalExpression:wr.AST_NODE_TYPES.BinaryExpression}R.getBinaryExpressionType=F;function g(P,D){let l=D.getLineAndCharacterOfPosition(P);return{line:l.line+1,column:l.character}}R.getLineAndCharacterFor=g;function S(P,D,l){return{start:g(P,l),end:g(D,l)}}R.getLocFor=S;function H(P){if(P.kind===ni.SyntaxKind.Block)switch(P.parent.kind){case ni.SyntaxKind.Constructor:case ni.SyntaxKind.GetAccessor:case ni.SyntaxKind.SetAccessor:case ni.SyntaxKind.ArrowFunction:case ni.SyntaxKind.FunctionExpression:case ni.SyntaxKind.FunctionDeclaration:case ni.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0}R.canContainDirective=H;function se(P,D){return[P.getStart(D),P.getEnd()]}R.getRange=se;function p(P){return P.kind>=Mr.FirstToken&&P.kind<=Mr.LastToken}R.isToken=p;function C(P){return P.kind>=Mr.JsxElement&&P.kind<=Mr.JsxAttribute}R.isJSXToken=C;function G(P){return P.flags&ni.NodeFlags.Let?"let":P.flags&ni.NodeFlags.Const?"const":"var"}R.getDeclarationKind=G;function E(P){let D=P.modifiers;if(!D)return null;for(let l=0;l<D.length;l++)switch(D[l].kind){case Mr.PublicKeyword:return"public";case Mr.ProtectedKeyword:return"protected";case Mr.PrivateKeyword:return"private";default:break}return null}R.getTSNodeAccessibility=E;function ue(P,D,l){return _(D);function _(J){return ni.isToken(J)&&J.pos===P.end?J:f(J.getChildren(l),w=>(w.pos<=P.pos&&w.end>P.end||w.pos===P.end)&&A(w,l)?_(w):void 0)}}R.findNextToken=ue;function B(P,D){for(;P;){if(D(P))return P;P=P.parent}}R.findFirstMatchingAncestor=B;function re(P){return!!B(P,C)}R.hasJSXAncestor=re;function M(P){return P.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,D=>{let l=D.slice(1,-1);if(l[0]==="#"){let _=l[1]==="x"?parseInt(l.slice(2),16):parseInt(l.slice(1),10);return _>1114111?D:String.fromCodePoint(_)}return fr.xhtmlEntities[l]||D})}R.unescapeStringLiteralText=M;function x(P){return P.kind===Mr.ComputedPropertyName}R.isComputedProperty=x;function ie(P){return P.questionToken?P.questionToken.kind===Mr.QuestionToken:!1}R.isOptional=ie;function _e(P){return P.type===wr.AST_NODE_TYPES.ChainExpression}R.isChainExpression=_e;function Y(P,D){return _e(D)&&P.expression.kind!==ni.SyntaxKind.ParenthesizedExpression}R.isChildUnwrappableOptionalChain=Y;function Z(P){if("originalKeywordKind"in P&&P.originalKeywordKind)return P.originalKeywordKind===Mr.NullKeyword?wr.AST_TOKEN_TYPES.Null:P.originalKeywordKind>=Mr.FirstFutureReservedWord&&P.originalKeywordKind<=Mr.LastKeyword?wr.AST_TOKEN_TYPES.Identifier:wr.AST_TOKEN_TYPES.Keyword;if(P.kind>=Mr.FirstKeyword&&P.kind<=Mr.LastFutureReservedWord)return P.kind===Mr.FalseKeyword||P.kind===Mr.TrueKeyword?wr.AST_TOKEN_TYPES.Boolean:wr.AST_TOKEN_TYPES.Keyword;if(P.kind>=Mr.FirstPunctuation&&P.kind<=Mr.LastPunctuation)return wr.AST_TOKEN_TYPES.Punctuator;if(P.kind>=Mr.NoSubstitutionTemplateLiteral&&P.kind<=Mr.TemplateTail)return wr.AST_TOKEN_TYPES.Template;switch(P.kind){case Mr.NumericLiteral:return wr.AST_TOKEN_TYPES.Numeric;case Mr.JsxText:return wr.AST_TOKEN_TYPES.JSXText;case Mr.StringLiteral:return P.parent&&(P.parent.kind===Mr.JsxAttribute||P.parent.kind===Mr.JsxElement)?wr.AST_TOKEN_TYPES.JSXText:wr.AST_TOKEN_TYPES.String;case Mr.RegularExpressionLiteral:return wr.AST_TOKEN_TYPES.RegularExpression;case Mr.Identifier:case Mr.ConstructorKeyword:case Mr.GetKeyword:case Mr.SetKeyword:default:}return P.parent&&P.kind===Mr.Identifier&&(C(P.parent)||P.parent.kind===Mr.PropertyAccessExpression&&re(P))?wr.AST_TOKEN_TYPES.JSXIdentifier:wr.AST_TOKEN_TYPES.Identifier}R.getTokenType=Z;function k(P,D){let l=P.kind===Mr.JsxText?P.getFullStart():P.getStart(D),_=P.getEnd(),J=D.text.slice(l,_),w=Z(P);return w===wr.AST_TOKEN_TYPES.RegularExpression?{type:w,value:J,range:[l,_],loc:S(l,_,D),regex:{pattern:J.slice(1,J.lastIndexOf("/")),flags:J.slice(J.lastIndexOf("/")+1)}}:{type:w,value:J,range:[l,_],loc:S(l,_,D)}}R.convertToken=k;function I(P){let D=[];function l(_){if(!(Q(_)||pe(_)))if(p(_)&&_.kind!==Mr.EndOfFileToken){let J=k(_,P);J&&D.push(J)}else _.getChildren(P).forEach(l)}return l(P),D}R.convertTokens=I;var ne=class extends Error{constructor(P,D,l,_,J){super(P);this.fileName=D,this.index=l,this.lineNumber=_,this.column=J,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}};R.TSError=ne;function ee(P,D,l){let _=P.getLineAndCharacterOfPosition(D);return new ne(l,P.fileName,D,_.line+1,_.character)}R.createError=ee;function A(P,D){return P.kind===Mr.EndOfFileToken?!!P.jsDoc:P.getWidth(D)!==0}R.nodeHasTokens=A;function f(P,D){if(P!==void 0)for(let l=0;l<P.length;l++){let _=D(P[l],l);if(_!==void 0)return _}}R.firstDefined=f}}),Qj=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/version-check.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ir,Pe,e,a){a===void 0&&(a=e);var O=Object.getOwnPropertyDescriptor(Pe,e);(!O||("get"in O?!Pe.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return Pe[e]}}),Object.defineProperty(ir,a,O)}:function(ir,Pe,e,a){a===void 0&&(a=e),ir[a]=Pe[e]}),qe=R&&R.__setModuleDefault||(Object.create?function(ir,Pe){Object.defineProperty(ir,"default",{enumerable:!0,value:Pe})}:function(ir,Pe){ir.default=Pe}),Ve=R&&R.__importStar||function(ir){if(ir&&ir.__esModule)return ir;var Pe={};if(ir!=null)for(var e in ir)e!=="default"&&Object.prototype.hasOwnProperty.call(ir,e)&&te(Pe,ir,e);return qe(Pe,ir),Pe};Object.defineProperty(R,"__esModule",{value:!0}),R.typescriptVersionIsAtLeast=void 0;var ni=Ve(PT()),wr=Ve(Lu()),fr=["3.7","3.8","3.9","4.0"],Mr={};R.typescriptVersionIsAtLeast=Mr;for(let ir of fr)Mr[ir]=!0}}),kN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/convert.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(a,O,L,W){W===void 0&&(W=L);var N=Object.getOwnPropertyDescriptor(O,L);(!N||("get"in N?!O.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(a,W,N)}:function(a,O,L,W){W===void 0&&(W=L),a[W]=O[L]}),qe=R&&R.__setModuleDefault||(Object.create?function(a,O){Object.defineProperty(a,"default",{enumerable:!0,value:O})}:function(a,O){a.default=O}),Ve=R&&R.__importStar||function(a){if(a&&a.__esModule)return a;var O={};if(a!=null)for(var L in a)L!=="default"&&Object.prototype.hasOwnProperty.call(a,L)&&te(O,a,L);return qe(O,a),O};Object.defineProperty(R,"__esModule",{value:!0}),R.Converter=R.convertError=void 0;var ni=Ve(Lu()),wr=_1(),fr=f1(),Mr=Qj(),ir=ni.SyntaxKind;function Pe(a){return(0,wr.createError)(a.file,a.start,"message"in a&&a.message||a.messageText)}R.convertError=Pe;var e=class{constructor(a,O){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=a,this.options=Object.assign({},O)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(a,O,L,W){if(!a)return null;let N=this.inTypeMode,Q=this.allowPattern;L!==void 0&&(this.inTypeMode=L),W!==void 0&&(this.allowPattern=W);let pe=this.convertNode(a,O!=null?O:a.parent);return this.registerTSNodeInNodeMap(a,pe),this.inTypeMode=N,this.allowPattern=Q,pe}fixExports(a,O){if(a.modifiers&&a.modifiers[0].kind===ir.ExportKeyword){this.registerTSNodeInNodeMap(a,O);let L=a.modifiers[0],W=a.modifiers[1],N=W&&W.kind===ir.DefaultKeyword,Q=N?(0,wr.findNextToken)(W,this.ast,this.ast):(0,wr.findNextToken)(L,this.ast,this.ast);if(O.range[0]=Q.getStart(this.ast),O.loc=(0,wr.getLocFor)(O.range[0],O.range[1],this.ast),N)return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:O,range:[L.getStart(this.ast),O.range[1]],exportKind:"value"});{let pe=O.type===fr.AST_NODE_TYPES.TSInterfaceDeclaration||O.type===fr.AST_NODE_TYPES.TSTypeAliasDeclaration,F=O.declare===!0;return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportNamedDeclaration,declaration:O,specifiers:[],source:null,exportKind:pe||F?"type":"value",range:[L.getStart(this.ast),O.range[1]],assertions:[]})}}return O}registerTSNodeInNodeMap(a,O){O&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(a)||this.tsNodeToESTreeNodeMap.set(a,O))}convertPattern(a,O){return this.converter(a,O,this.inTypeMode,!0)}convertChild(a,O){return this.converter(a,O,this.inTypeMode,!1)}convertType(a,O){return this.converter(a,O,!0,!1)}createNode(a,O){let L=O;return L.range||(L.range=(0,wr.getRange)(a,this.ast)),L.loc||(L.loc=(0,wr.getLocFor)(L.range[0],L.range[1],this.ast)),L&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(L,a),L}convertBindingNameWithTypeAnnotation(a,O,L){let W=this.convertPattern(a);return O&&(W.typeAnnotation=this.convertTypeAnnotation(O,L),this.fixParentLocation(W,W.typeAnnotation.range)),W}convertTypeAnnotation(a,O){let L=(O==null?void 0:O.kind)===ir.FunctionType||(O==null?void 0:O.kind)===ir.ConstructorType?2:1,W=a.getFullStart()-L,N=(0,wr.getLocFor)(W,a.end,this.ast);return{type:fr.AST_NODE_TYPES.TSTypeAnnotation,loc:N,range:[W,a.end],typeAnnotation:this.convertType(a)}}convertBodyExpressions(a,O){let L=(0,wr.canContainDirective)(O);return a.map(W=>{let N=this.convertChild(W);if(L)if((N==null?void 0:N.expression)&&ni.isExpressionStatement(W)&&ni.isStringLiteral(W.expression)){let Q=N.expression.raw;return N.directive=Q.slice(1,-1),N}else L=!1;return N}).filter(W=>W)}convertTypeArgumentsToTypeParameters(a,O){let L=(0,wr.findNextToken)(a,this.ast,this.ast);return this.createNode(O,{type:fr.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[a.pos-1,L.end],params:a.map(W=>this.convertType(W))})}convertTSTypeParametersToTypeParametersDeclaration(a){let O=(0,wr.findNextToken)(a,this.ast,this.ast);return{type:fr.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[a.pos-1,O.end],loc:(0,wr.getLocFor)(a.pos-1,O.end,this.ast),params:a.map(L=>this.convertType(L))}}convertParameters(a){return!a||!a.length?[]:a.map(O=>{var L;let W=this.convertChild(O);return!((L=O.decorators)===null||L===void 0)&&L.length&&(W.decorators=O.decorators.map(N=>this.convertChild(N))),W})}convertChainExpression(a,O){let{child:L,isOptional:W}=(()=>a.type===fr.AST_NODE_TYPES.MemberExpression?{child:a.object,isOptional:a.optional}:a.type===fr.AST_NODE_TYPES.CallExpression?{child:a.callee,isOptional:a.optional}:{child:a.expression,isOptional:!1})(),N=(0,wr.isChildUnwrappableOptionalChain)(O,L);if(!N&&!W)return a;if(N&&(0,wr.isChainExpression)(L)){let Q=L.expression;a.type===fr.AST_NODE_TYPES.MemberExpression?a.object=Q:a.type===fr.AST_NODE_TYPES.CallExpression?a.callee=Q:a.expression=Q}return this.createNode(O,{type:fr.AST_NODE_TYPES.ChainExpression,expression:a})}deeplyCopy(a){if(a.kind===ni.SyntaxKind.JSDocFunctionType)throw(0,wr.createError)(this.ast,a.pos,"JSDoc types can only be used inside documentation comments.");let O="TS".concat(ir[a.kind]);if(this.options.errorOnUnknownASTType&&!fr.AST_NODE_TYPES[O])throw new Error('Unknown AST_NODE_TYPE: "'.concat(O,'"'));let L=this.createNode(a,{type:O});return"type"in a&&(L.typeAnnotation=a.type&&"kind"in a.type&&ni.isTypeNode(a.type)?this.convertTypeAnnotation(a.type,a):null),"typeArguments"in a&&(L.typeParameters=a.typeArguments&&"pos"in a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):null),"typeParameters"in a&&(L.typeParameters=a.typeParameters&&"pos"in a.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters):null),"decorators"in a&&a.decorators&&a.decorators.length&&(L.decorators=a.decorators.map(W=>this.convertChild(W))),Object.entries(a).filter(W=>{let[N]=W;return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators|transformFlags)$/.test(N)}).forEach(W=>{let[N,Q]=W;Array.isArray(Q)?L[N]=Q.map(pe=>this.convertChild(pe)):Q&&typeof Q=="object"&&Q.kind?L[N]=this.convertChild(Q):L[N]=Q}),L}convertJSXIdentifier(a){let O=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:a.getText()});return this.registerTSNodeInNodeMap(a,O),O}convertJSXNamespaceOrIdentifier(a){let O=a.getText(),L=O.indexOf(":");if(L>0){let W=(0,wr.getRange)(a,this.ast),N=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:O.slice(0,L),range:[W[0],W[0]+L]}),name:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXIdentifier,name:O.slice(L+1),range:[W[0]+L+1,W[1]]}),range:W});return this.registerTSNodeInNodeMap(a,N),N}return this.convertJSXIdentifier(a)}convertJSXTagName(a,O){let L;switch(a.kind){case ir.PropertyAccessExpression:if(a.name.kind===ir.PrivateIdentifier)throw new Error("Non-private identifier expected.");L=this.createNode(a,{type:fr.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(a.expression,O),property:this.convertJSXIdentifier(a.name)});break;case ir.ThisKeyword:case ir.Identifier:default:return this.convertJSXNamespaceOrIdentifier(a)}return this.registerTSNodeInNodeMap(a,L),L}convertMethodSignature(a){let O=this.createNode(a,{type:fr.AST_NODE_TYPES.TSMethodSignature,computed:(0,wr.isComputedProperty)(a.name),key:this.convertChild(a.name),params:this.convertParameters(a.parameters),kind:(()=>{switch(a.kind){case ir.GetAccessor:return"get";case ir.SetAccessor:return"set";case ir.MethodSignature:return"method"}})()});(0,wr.isOptional)(a)&&(O.optional=!0),a.type&&(O.returnType=this.convertTypeAnnotation(a.type,a)),(0,wr.hasModifier)(ir.ReadonlyKeyword,a)&&(O.readonly=!0),a.typeParameters&&(O.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters));let L=(0,wr.getTSNodeAccessibility)(a);return L&&(O.accessibility=L),(0,wr.hasModifier)(ir.ExportKeyword,a)&&(O.export=!0),(0,wr.hasModifier)(ir.StaticKeyword,a)&&(O.static=!0),O}convertAssertClasue(a){return a===void 0?[]:a.elements.map(O=>this.convertChild(O))}applyModifiersToResult(a,O){if(!O||!O.length)return;let L=[];for(let W=0;W<O.length;W++){let N=O[W];switch(N.kind){case ir.ExportKeyword:case ir.DefaultKeyword:break;case ir.ConstKeyword:a.const=!0;break;case ir.DeclareKeyword:a.declare=!0;break;default:L.push(this.convertChild(N));break}}L.length&&(a.modifiers=L)}fixParentLocation(a,O){O[0]<a.range[0]&&(a.range[0]=O[0],a.loc.start=(0,wr.getLineAndCharacterFor)(a.range[0],this.ast)),O[1]>a.range[1]&&(a.range[1]=O[1],a.loc.end=(0,wr.getLineAndCharacterFor)(a.range[1],this.ast))}assertModuleSpecifier(a){if(a.moduleSpecifier&&a.moduleSpecifier.kind!==ir.StringLiteral)throw(0,wr.createError)(this.ast,a.moduleSpecifier.pos,"Module specifier must be a string literal.")}convertNode(a,O){var L,W,N,Q,pe,F,g,S,H,se;switch(a.kind){case ir.SourceFile:return this.createNode(a,{type:fr.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(a.statements,a),sourceType:a.externalModuleIndicator?"module":"script",range:[a.getStart(this.ast),a.endOfFileToken.end]});case ir.Block:return this.createNode(a,{type:fr.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(a.statements,a)});case ir.Identifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.Identifier,name:a.text});case ir.PrivateIdentifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.PrivateIdentifier,name:a.text.slice(1)});case ir.WithStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.WithStatement,object:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ReturnStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(a.expression)});case ir.LabeledStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(a.label),body:this.convertChild(a.statement)});case ir.ContinueStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(a.label)});case ir.BreakStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.BreakStatement,label:this.convertChild(a.label)});case ir.IfStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.IfStatement,test:this.convertChild(a.expression),consequent:this.convertChild(a.thenStatement),alternate:this.convertChild(a.elseStatement)});case ir.SwitchStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(a.expression),cases:a.caseBlock.clauses.map(p=>this.convertChild(p))});case ir.CaseClause:case ir.DefaultClause:return this.createNode(a,{type:fr.AST_NODE_TYPES.SwitchCase,test:a.kind===ir.CaseClause?this.convertChild(a.expression):null,consequent:a.statements.map(p=>this.convertChild(p))});case ir.ThrowStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(a.expression)});case ir.TryStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.TryStatement,block:this.convertChild(a.tryBlock),handler:this.convertChild(a.catchClause),finalizer:this.convertChild(a.finallyBlock)});case ir.CatchClause:return this.createNode(a,{type:fr.AST_NODE_TYPES.CatchClause,param:a.variableDeclaration?this.convertBindingNameWithTypeAnnotation(a.variableDeclaration.name,a.variableDeclaration.type):null,body:this.convertChild(a.block)});case ir.WhileStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.WhileStatement,test:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.DoStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ForStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForStatement,init:this.convertChild(a.initializer),test:this.convertChild(a.condition),update:this.convertChild(a.incrementor),body:this.convertChild(a.statement)});case ir.ForInStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(a.initializer),right:this.convertChild(a.expression),body:this.convertChild(a.statement)});case ir.ForOfStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(a.initializer),right:this.convertChild(a.expression),body:this.convertChild(a.statement),await:Boolean(a.awaitModifier&&a.awaitModifier.kind===ir.AwaitKeyword)});case ir.FunctionDeclaration:{let p=(0,wr.hasModifier)(ir.DeclareKeyword,a),C=this.createNode(a,{type:p||!a.body?fr.AST_NODE_TYPES.TSDeclareFunction:fr.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(a.name),generator:!!a.asteriskToken,expression:!1,async:(0,wr.hasModifier)(ir.AsyncKeyword,a),params:this.convertParameters(a.parameters),body:this.convertChild(a.body)||void 0});return a.type&&(C.returnType=this.convertTypeAnnotation(a.type,a)),p&&(C.declare=!0),a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),this.fixExports(a,C)}case ir.VariableDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(a.name,a.type,a),init:this.convertChild(a.initializer)});return a.exclamationToken&&(p.definite=!0),p}case ir.VariableStatement:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclaration,declarations:a.declarationList.declarations.map(C=>this.convertChild(C)),kind:(0,wr.getDeclarationKind)(a.declarationList)});return a.decorators&&(p.decorators=a.decorators.map(C=>this.convertChild(C))),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(p.declare=!0),this.fixExports(a,p)}case ir.VariableDeclarationList:return this.createNode(a,{type:fr.AST_NODE_TYPES.VariableDeclaration,declarations:a.declarations.map(p=>this.convertChild(p)),kind:(0,wr.getDeclarationKind)(a)});case ir.ExpressionStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(a.expression)});case ir.ThisKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.ThisExpression});case ir.ArrayLiteralExpression:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayPattern,elements:a.elements.map(p=>this.convertPattern(p))}):this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayExpression,elements:a.elements.map(p=>this.convertChild(p))});case ir.ObjectLiteralExpression:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectPattern,properties:a.properties.map(p=>this.convertPattern(p))}):this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectExpression,properties:a.properties.map(p=>this.convertChild(p))});case ir.PropertyAssignment:return this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.converter(a.initializer,a,this.inTypeMode,this.allowPattern),computed:(0,wr.isComputedProperty)(a.name),method:!1,shorthand:!1,kind:"init"});case ir.ShorthandPropertyAssignment:return a.objectAssignmentInitializer?this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(a.name),right:this.convertChild(a.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:this.convertChild(a.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case ir.ComputedPropertyName:return this.convertChild(a.expression);case ir.PropertyDeclaration:{let p=(0,wr.hasModifier)(ir.AbstractKeyword,a),C=this.createNode(a,{type:p?fr.AST_NODE_TYPES.TSAbstractPropertyDefinition:fr.AST_NODE_TYPES.PropertyDefinition,key:this.convertChild(a.name),value:p?null:this.convertChild(a.initializer),computed:(0,wr.isComputedProperty)(a.name),static:(0,wr.hasModifier)(ir.StaticKeyword,a),readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,declare:(0,wr.hasModifier)(ir.DeclareKeyword,a),override:(0,wr.hasModifier)(ir.OverrideKeyword,a)});a.type&&(C.typeAnnotation=this.convertTypeAnnotation(a.type,a)),a.decorators&&(C.decorators=a.decorators.map(E=>this.convertChild(E)));let G=(0,wr.getTSNodeAccessibility)(a);return G&&(C.accessibility=G),(a.name.kind===ir.Identifier||a.name.kind===ir.ComputedPropertyName||a.name.kind===ir.PrivateIdentifier)&&a.questionToken&&(C.optional=!0),a.exclamationToken&&(C.definite=!0),C.key.type===fr.AST_NODE_TYPES.Literal&&a.questionToken&&(C.optional=!0),C}case ir.GetAccessor:case ir.SetAccessor:if(a.parent.kind===ir.InterfaceDeclaration||a.parent.kind===ir.TypeLiteral)return this.convertMethodSignature(a);case ir.MethodDeclaration:{let p=this.createNode(a,{type:a.body?fr.AST_NODE_TYPES.FunctionExpression:fr.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!a.asteriskToken,expression:!1,async:(0,wr.hasModifier)(ir.AsyncKeyword,a),body:this.convertChild(a.body),range:[a.parameters.pos-1,a.end],params:[]});a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters),this.fixParentLocation(p,p.typeParameters.range));let C;if(O.kind===ir.ObjectLiteralExpression)p.params=a.parameters.map(G=>this.convertChild(G)),C=this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild(a.name),value:p,computed:(0,wr.isComputedProperty)(a.name),method:a.kind===ir.MethodDeclaration,shorthand:!1,kind:"init"});else{p.params=this.convertParameters(a.parameters);let G=(0,wr.hasModifier)(ir.AbstractKeyword,a)?fr.AST_NODE_TYPES.TSAbstractMethodDefinition:fr.AST_NODE_TYPES.MethodDefinition;C=this.createNode(a,{type:G,key:this.convertChild(a.name),value:p,computed:(0,wr.isComputedProperty)(a.name),static:(0,wr.hasModifier)(ir.StaticKeyword,a),kind:"method",override:(0,wr.hasModifier)(ir.OverrideKeyword,a)}),a.decorators&&(C.decorators=a.decorators.map(ue=>this.convertChild(ue)));let E=(0,wr.getTSNodeAccessibility)(a);E&&(C.accessibility=E)}return a.questionToken&&(C.optional=!0),a.kind===ir.GetAccessor?C.kind="get":a.kind===ir.SetAccessor?C.kind="set":!C.static&&a.name.kind===ir.StringLiteral&&a.name.text==="constructor"&&C.type!==fr.AST_NODE_TYPES.Property&&(C.kind="constructor"),C}case ir.Constructor:{let p=(0,wr.getLastModifier)(a),C=p&&(0,wr.findNextToken)(p,a,this.ast)||a.getFirstToken(),G=this.createNode(a,{type:a.body?fr.AST_NODE_TYPES.FunctionExpression:fr.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,params:this.convertParameters(a.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(a.body),range:[a.parameters.pos-1,a.end]});a.typeParameters&&(G.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters),this.fixParentLocation(G,G.typeParameters.range)),a.type&&(G.returnType=this.convertTypeAnnotation(a.type,a));let E=this.createNode(a,{type:fr.AST_NODE_TYPES.Identifier,name:"constructor",range:[C.getStart(this.ast),C.end]}),ue=(0,wr.hasModifier)(ir.StaticKeyword,a),B=this.createNode(a,{type:(0,wr.hasModifier)(ir.AbstractKeyword,a)?fr.AST_NODE_TYPES.TSAbstractMethodDefinition:fr.AST_NODE_TYPES.MethodDefinition,key:E,value:G,computed:!1,static:ue,kind:ue?"method":"constructor",override:!1}),re=(0,wr.getTSNodeAccessibility)(a);return re&&(B.accessibility=re),B}case ir.FunctionExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(a.name),generator:!!a.asteriskToken,params:this.convertParameters(a.parameters),body:this.convertChild(a.body),async:(0,wr.hasModifier)(ir.AsyncKeyword,a),expression:!1});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.SuperKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Super});case ir.ArrayBindingPattern:return this.createNode(a,{type:fr.AST_NODE_TYPES.ArrayPattern,elements:a.elements.map(p=>this.convertPattern(p))});case ir.OmittedExpression:return null;case ir.ObjectBindingPattern:return this.createNode(a,{type:fr.AST_NODE_TYPES.ObjectPattern,properties:a.elements.map(p=>this.convertPattern(p))});case ir.BindingElement:if(O.kind===ir.ArrayBindingPattern){let p=this.convertChild(a.name,O);return a.initializer?this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:p,right:this.convertChild(a.initializer)}):a.dotDotDotToken?this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:p}):p}else{let p;return a.dotDotDotToken?p=this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertChild((L=a.propertyName)!==null&&L!==void 0?L:a.name)}):p=this.createNode(a,{type:fr.AST_NODE_TYPES.Property,key:this.convertChild((W=a.propertyName)!==null&&W!==void 0?W:a.name),value:this.convertChild(a.name),computed:Boolean(a.propertyName&&a.propertyName.kind===ir.ComputedPropertyName),method:!1,shorthand:!a.propertyName,kind:"init"}),a.initializer&&(p.value=this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(a.name),right:this.convertChild(a.initializer),range:[a.name.getStart(this.ast),a.initializer.end]})),p}case ir.ArrowFunction:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(a.parameters),body:this.convertChild(a.body),async:(0,wr.hasModifier)(ir.AsyncKeyword,a),expression:a.body.kind!==ir.Block});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.YieldExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.YieldExpression,delegate:!!a.asteriskToken,argument:this.convertChild(a.expression)});case ir.AwaitExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(a.expression)});case ir.NoSubstitutionTemplateLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(a.getStart(this.ast)+1,a.end-1),cooked:a.text},tail:!0})],expressions:[]});case ir.TemplateExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(a.head)],expressions:[]});return a.templateSpans.forEach(C=>{p.expressions.push(this.convertChild(C.expression)),p.quasis.push(this.convertChild(C.literal))}),p}case ir.TaggedTemplateExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,tag:this.convertChild(a.tag),quasi:this.convertChild(a.template)});case ir.TemplateHead:case ir.TemplateMiddle:case ir.TemplateTail:{let p=a.kind===ir.TemplateTail;return this.createNode(a,{type:fr.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(a.getStart(this.ast)+1,a.end-(p?1:2)),cooked:a.text},tail:p})}case ir.SpreadAssignment:case ir.SpreadElement:return this.allowPattern?this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertPattern(a.expression)}):this.createNode(a,{type:fr.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(a.expression)});case ir.Parameter:{let p,C;return a.dotDotDotToken?p=C=this.createNode(a,{type:fr.AST_NODE_TYPES.RestElement,argument:this.convertChild(a.name)}):a.initializer?(p=this.convertChild(a.name),C=this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:p,right:this.convertChild(a.initializer)}),a.modifiers&&(C.range[0]=p.range[0],C.loc=(0,wr.getLocFor)(C.range[0],C.range[1],this.ast))):p=C=this.convertChild(a.name,O),a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a),this.fixParentLocation(p,p.typeAnnotation.range)),a.questionToken&&(a.questionToken.end>p.range[1]&&(p.range[1]=a.questionToken.end,p.loc.end=(0,wr.getLineAndCharacterFor)(p.range[1],this.ast)),p.optional=!0),a.modifiers?this.createNode(a,{type:fr.AST_NODE_TYPES.TSParameterProperty,accessibility:(N=(0,wr.getTSNodeAccessibility)(a))!==null&&N!==void 0?N:void 0,readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,static:(0,wr.hasModifier)(ir.StaticKeyword,a)||void 0,export:(0,wr.hasModifier)(ir.ExportKeyword,a)||void 0,override:(0,wr.hasModifier)(ir.OverrideKeyword,a)||void 0,parameter:C}):C}case ir.ClassDeclaration:case ir.ClassExpression:{let p=(Q=a.heritageClauses)!==null&&Q!==void 0?Q:[],C=a.kind===ir.ClassDeclaration?fr.AST_NODE_TYPES.ClassDeclaration:fr.AST_NODE_TYPES.ClassExpression,G=p.find(re=>re.token===ir.ExtendsKeyword),E=p.find(re=>re.token===ir.ImplementsKeyword),ue=this.createNode(a,{type:C,id:this.convertChild(a.name),body:this.createNode(a,{type:fr.AST_NODE_TYPES.ClassBody,body:[],range:[a.members.pos-1,a.end]}),superClass:G!=null&&G.types[0]?this.convertChild(G.types[0].expression):null});if(G){if(G.types.length>1)throw(0,wr.createError)(this.ast,G.types[1].pos,"Classes can only extend a single class.");!((pe=G.types[0])===null||pe===void 0)&&pe.typeArguments&&(ue.superTypeParameters=this.convertTypeArgumentsToTypeParameters(G.types[0].typeArguments,G.types[0]))}a.typeParameters&&(ue.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),E&&(ue.implements=E.types.map(re=>this.convertChild(re))),(0,wr.hasModifier)(ir.AbstractKeyword,a)&&(ue.abstract=!0),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(ue.declare=!0),a.decorators&&(ue.decorators=a.decorators.map(re=>this.convertChild(re)));let B=a.members.filter(wr.isESTreeClassMember);return B.length&&(ue.body.body=B.map(re=>this.convertChild(re))),this.fixExports(a,ue)}case ir.ModuleBlock:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(a.statements,a)});case ir.ImportDeclaration:{this.assertModuleSpecifier(a);let p=this.createNode(a,{type:fr.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(a.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(a.assertClause)});if(a.importClause&&(a.importClause.isTypeOnly&&(p.importKind="type"),a.importClause.name&&p.specifiers.push(this.convertChild(a.importClause)),a.importClause.namedBindings))switch(a.importClause.namedBindings.kind){case ir.NamespaceImport:p.specifiers.push(this.convertChild(a.importClause.namedBindings));break;case ir.NamedImports:p.specifiers=p.specifiers.concat(a.importClause.namedBindings.elements.map(C=>this.convertChild(C)));break}return p}case ir.NamespaceImport:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(a.name)});case ir.ImportSpecifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(a.name),imported:this.convertChild((F=a.propertyName)!==null&&F!==void 0?F:a.name),importKind:a.isTypeOnly?"type":"value"});case ir.ImportClause:{let p=this.convertChild(a.name);return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportDefaultSpecifier,local:p,range:p.range})}case ir.ExportDeclaration:return this.assertModuleSpecifier(a),((g=a.exportClause)===null||g===void 0?void 0:g.kind)===ir.NamedExports?this.createNode(a,{type:fr.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(a.moduleSpecifier),specifiers:a.exportClause.elements.map(p=>this.convertChild(p)),exportKind:a.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(a.assertClause)}):this.createNode(a,{type:fr.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(a.moduleSpecifier),exportKind:a.isTypeOnly?"type":"value",exported:a.exportClause&&a.exportClause.kind===ir.NamespaceExport?this.convertChild(a.exportClause.name):null,assertions:this.convertAssertClasue(a.assertClause)});case ir.ExportSpecifier:return this.createNode(a,{type:fr.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild((S=a.propertyName)!==null&&S!==void 0?S:a.name),exported:this.convertChild(a.name),exportKind:a.isTypeOnly?"type":"value"});case ir.ExportAssignment:return a.isExportEquals?this.createNode(a,{type:fr.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(a.expression)}):this.createNode(a,{type:fr.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(a.expression),exportKind:"value"});case ir.PrefixUnaryExpression:case ir.PostfixUnaryExpression:{let p=(0,wr.getTextForTokenKind)(a.operator);return p==="++"||p==="--"?this.createNode(a,{type:fr.AST_NODE_TYPES.UpdateExpression,operator:p,prefix:a.kind===ir.PrefixUnaryExpression,argument:this.convertChild(a.operand)}):this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:p,prefix:a.kind===ir.PrefixUnaryExpression,argument:this.convertChild(a.operand)})}case ir.DeleteExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(a.expression)});case ir.VoidExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(a.expression)});case ir.TypeOfExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(a.expression)});case ir.TypeOperator:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeOperator,operator:(0,wr.getTextForTokenKind)(a.operator),typeAnnotation:this.convertChild(a.type)});case ir.BinaryExpression:if((0,wr.isComma)(a.operatorToken)){let p=this.createNode(a,{type:fr.AST_NODE_TYPES.SequenceExpression,expressions:[]}),C=this.convertChild(a.left);return C.type===fr.AST_NODE_TYPES.SequenceExpression&&a.left.kind!==ir.ParenthesizedExpression?p.expressions=p.expressions.concat(C.expressions):p.expressions.push(C),p.expressions.push(this.convertChild(a.right)),p}else{let p=(0,wr.getBinaryExpressionType)(a.operatorToken);return this.allowPattern&&p===fr.AST_NODE_TYPES.AssignmentExpression?this.createNode(a,{type:fr.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(a.left,a),right:this.convertChild(a.right)}):this.createNode(a,{type:p,operator:(0,wr.getTextForTokenKind)(a.operatorToken.kind),left:this.converter(a.left,a,this.inTypeMode,p===fr.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(a.right)})}case ir.PropertyAccessExpression:{let p=this.convertChild(a.expression),C=this.convertChild(a.name),G=!1,E=this.createNode(a,{type:fr.AST_NODE_TYPES.MemberExpression,object:p,property:C,computed:G,optional:a.questionDotToken!==void 0});return this.convertChainExpression(E,a)}case ir.ElementAccessExpression:{let p=this.convertChild(a.expression),C=this.convertChild(a.argumentExpression),G=!0,E=this.createNode(a,{type:fr.AST_NODE_TYPES.MemberExpression,object:p,property:C,computed:G,optional:a.questionDotToken!==void 0});return this.convertChainExpression(E,a)}case ir.CallExpression:{if(a.expression.kind===ir.ImportKeyword){if(a.arguments.length!==1&&a.arguments.length!==2)throw(0,wr.createError)(this.ast,a.arguments.pos,"Dynamic import requires exactly one or two arguments.");return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportExpression,source:this.convertChild(a.arguments[0]),attributes:a.arguments[1]?this.convertChild(a.arguments[1]):null})}let p=this.convertChild(a.expression),C=a.arguments.map(E=>this.convertChild(E)),G=this.createNode(a,{type:fr.AST_NODE_TYPES.CallExpression,callee:p,arguments:C,optional:a.questionDotToken!==void 0});return a.typeArguments&&(G.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),this.convertChainExpression(G,a)}case ir.NewExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.NewExpression,callee:this.convertChild(a.expression),arguments:a.arguments?a.arguments.map(C=>this.convertChild(C)):[]});return a.typeArguments&&(p.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),p}case ir.ConditionalExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(a.condition),consequent:this.convertChild(a.whenTrue),alternate:this.convertChild(a.whenFalse)});case ir.MetaProperty:return this.createNode(a,{type:fr.AST_NODE_TYPES.MetaProperty,meta:this.createNode(a.getFirstToken(),{type:fr.AST_NODE_TYPES.Identifier,name:(0,wr.getTextForTokenKind)(a.keywordToken)}),property:this.convertChild(a.name)});case ir.Decorator:return this.createNode(a,{type:fr.AST_NODE_TYPES.Decorator,expression:this.convertChild(a.expression)});case ir.StringLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:O.kind===ir.JsxAttribute?(0,wr.unescapeStringLiteralText)(a.text):a.text,raw:a.getText()});case ir.NumericLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:Number(a.text),raw:a.getText()});case ir.BigIntLiteral:{let p=(0,wr.getRange)(a,this.ast),C=this.ast.text.slice(p[0],p[1]),G=C.slice(0,-1).replace(/_/g,""),E=typeof BigInt<"u"?BigInt(G):null;return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,raw:C,value:E,bigint:E===null?G:String(E),range:p})}case ir.RegularExpressionLiteral:{let p=a.text.slice(1,a.text.lastIndexOf("/")),C=a.text.slice(a.text.lastIndexOf("/")+1),G=null;try{G=new RegExp(p,C)}catch{G=null}return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:G,raw:a.text,regex:{pattern:p,flags:C}})}case ir.TrueKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case ir.FalseKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case ir.NullKeyword:return!Mr.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(a,{type:fr.AST_NODE_TYPES.TSNullKeyword}):this.createNode(a,{type:fr.AST_NODE_TYPES.Literal,value:null,raw:"null"});case ir.EmptyStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.EmptyStatement});case ir.DebuggerStatement:return this.createNode(a,{type:fr.AST_NODE_TYPES.DebuggerStatement});case ir.JsxElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(a.openingElement),closingElement:this.convertChild(a.closingElement),children:a.children.map(p=>this.convertChild(p))});case ir.JsxFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(a.openingFragment),closingFragment:this.convertChild(a.closingFragment),children:a.children.map(p=>this.convertChild(p))});case ir.JsxSelfClosingElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningElement,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,selfClosing:!0,name:this.convertJSXTagName(a.tagName,a),attributes:a.attributes.properties.map(p=>this.convertChild(p)),range:(0,wr.getRange)(a,this.ast)}),closingElement:null,children:[]});case ir.JsxOpeningElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningElement,typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0,selfClosing:!1,name:this.convertJSXTagName(a.tagName,a),attributes:a.attributes.properties.map(p=>this.convertChild(p))});case ir.JsxClosingElement:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(a.tagName,a)});case ir.JsxOpeningFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXOpeningFragment});case ir.JsxClosingFragment:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXClosingFragment});case ir.JsxExpression:{let p=a.expression?this.convertChild(a.expression):this.createNode(a,{type:fr.AST_NODE_TYPES.JSXEmptyExpression,range:[a.getStart(this.ast)+1,a.getEnd()-1]});return a.dotDotDotToken?this.createNode(a,{type:fr.AST_NODE_TYPES.JSXSpreadChild,expression:p}):this.createNode(a,{type:fr.AST_NODE_TYPES.JSXExpressionContainer,expression:p})}case ir.JsxAttribute:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(a.name),value:this.convertChild(a.initializer)});case ir.JsxText:{let p=a.getFullStart(),C=a.getEnd(),G=this.ast.text.slice(p,C);return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXText,value:(0,wr.unescapeStringLiteralText)(G),raw:G,range:[p,C]})}case ir.JsxSpreadAttribute:return this.createNode(a,{type:fr.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(a.expression)});case ir.QualifiedName:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(a.left),right:this.convertChild(a.right)});case ir.TypeReference:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(a.typeName),typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):void 0});case ir.TypeParameter:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(a.name),constraint:a.constraint?this.convertType(a.constraint):void 0,default:a.default?this.convertType(a.default):void 0});case ir.ThisType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSThisType});case ir.AnyKeyword:case ir.BigIntKeyword:case ir.BooleanKeyword:case ir.NeverKeyword:case ir.NumberKeyword:case ir.ObjectKeyword:case ir.StringKeyword:case ir.SymbolKeyword:case ir.UnknownKeyword:case ir.VoidKeyword:case ir.UndefinedKeyword:case ir.IntrinsicKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES["TS".concat(ir[a.kind])]});case ir.NonNullExpression:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(a.expression)});return this.convertChainExpression(p,a)}case ir.TypeLiteral:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeLiteral,members:a.members.map(p=>this.convertChild(p))});case ir.ArrayType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(a.elementType)});case ir.IndexedAccessType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(a.objectType),indexType:this.convertType(a.indexType)});case ir.ConditionalType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(a.checkType),extendsType:this.convertType(a.extendsType),trueType:this.convertType(a.trueType),falseType:this.convertType(a.falseType)});case ir.TypeQuery:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(a.exprName)});case ir.MappedType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(a.typeParameter),nameType:(H=this.convertType(a.nameType))!==null&&H!==void 0?H:null});return a.readonlyToken&&(a.readonlyToken.kind===ir.ReadonlyKeyword?p.readonly=!0:p.readonly=(0,wr.getTextForTokenKind)(a.readonlyToken.kind)),a.questionToken&&(a.questionToken.kind===ir.QuestionToken?p.optional=!0:p.optional=(0,wr.getTextForTokenKind)(a.questionToken.kind)),a.type&&(p.typeAnnotation=this.convertType(a.type)),p}case ir.ParenthesizedExpression:return this.convertChild(a.expression,O);case ir.TypeAliasDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(a.name),typeAnnotation:this.convertType(a.type)});return(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(p.declare=!0),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),this.fixExports(a,p)}case ir.MethodSignature:return this.convertMethodSignature(a);case ir.PropertySignature:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSPropertySignature,optional:(0,wr.isOptional)(a)||void 0,computed:(0,wr.isComputedProperty)(a.name),key:this.convertChild(a.name),typeAnnotation:a.type?this.convertTypeAnnotation(a.type,a):void 0,initializer:this.convertChild(a.initializer)||void 0,readonly:(0,wr.hasModifier)(ir.ReadonlyKeyword,a)||void 0,static:(0,wr.hasModifier)(ir.StaticKeyword,a)||void 0,export:(0,wr.hasModifier)(ir.ExportKeyword,a)||void 0}),C=(0,wr.getTSNodeAccessibility)(a);return C&&(p.accessibility=C),p}case ir.IndexSignature:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSIndexSignature,parameters:a.parameters.map(G=>this.convertChild(G))});a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a)),(0,wr.hasModifier)(ir.ReadonlyKeyword,a)&&(p.readonly=!0);let C=(0,wr.getTSNodeAccessibility)(a);return C&&(p.accessibility=C),(0,wr.hasModifier)(ir.ExportKeyword,a)&&(p.export=!0),(0,wr.hasModifier)(ir.StaticKeyword,a)&&(p.static=!0),p}case ir.ConstructorType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(a.parameters),abstract:(0,wr.hasModifier)(ir.AbstractKeyword,a)});return a.type&&(p.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(p.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p}case ir.FunctionType:case ir.ConstructSignature:case ir.CallSignature:{let p=a.kind===ir.ConstructSignature?fr.AST_NODE_TYPES.TSConstructSignatureDeclaration:a.kind===ir.CallSignature?fr.AST_NODE_TYPES.TSCallSignatureDeclaration:fr.AST_NODE_TYPES.TSFunctionType,C=this.createNode(a,{type:p,params:this.convertParameters(a.parameters)});return a.type&&(C.returnType=this.convertTypeAnnotation(a.type,a)),a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),C}case ir.ExpressionWithTypeArguments:{let p=this.createNode(a,{type:O&&O.kind===ir.InterfaceDeclaration?fr.AST_NODE_TYPES.TSInterfaceHeritage:fr.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(a.expression)});return a.typeArguments&&(p.typeParameters=this.convertTypeArgumentsToTypeParameters(a.typeArguments,a)),p}case ir.InterfaceDeclaration:{let p=(se=a.heritageClauses)!==null&&se!==void 0?se:[],C=this.createNode(a,{type:fr.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(a,{type:fr.AST_NODE_TYPES.TSInterfaceBody,body:a.members.map(G=>this.convertChild(G)),range:[a.members.pos-1,a.end]}),id:this.convertChild(a.name)});if(a.typeParameters&&(C.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(a.typeParameters)),p.length>0){let G=[],E=[];for(let ue of p)if(ue.token===ir.ExtendsKeyword)for(let B of ue.types)G.push(this.convertChild(B,a));else for(let B of ue.types)E.push(this.convertChild(B,a));G.length&&(C.extends=G),E.length&&(C.implements=E)}return(0,wr.hasModifier)(ir.AbstractKeyword,a)&&(C.abstract=!0),(0,wr.hasModifier)(ir.DeclareKeyword,a)&&(C.declare=!0),this.fixExports(a,C)}case ir.TypePredicate:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypePredicate,asserts:a.assertsModifier!==void 0,parameterName:this.convertChild(a.parameterName),typeAnnotation:null});return a.type&&(p.typeAnnotation=this.convertTypeAnnotation(a.type,a),p.typeAnnotation.loc=p.typeAnnotation.typeAnnotation.loc,p.typeAnnotation.range=p.typeAnnotation.typeAnnotation.range),p}case ir.ImportType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSImportType,isTypeOf:!!a.isTypeOf,parameter:this.convertChild(a.argument),qualifier:this.convertChild(a.qualifier),typeParameters:a.typeArguments?this.convertTypeArgumentsToTypeParameters(a.typeArguments,a):null});case ir.EnumDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(a.name),members:a.members.map(C=>this.convertChild(C))});return this.applyModifiersToResult(p,a.modifiers),this.fixExports(a,p)}case ir.EnumMember:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(a.name)});return a.initializer&&(p.initializer=this.convertChild(a.initializer)),a.name.kind===ni.SyntaxKind.ComputedPropertyName&&(p.computed=!0),p}case ir.ModuleDeclaration:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(a.name)});return a.body&&(p.body=this.convertChild(a.body)),this.applyModifiersToResult(p,a.modifiers),a.flags&ni.NodeFlags.GlobalAugmentation&&(p.global=!0),this.fixExports(a,p)}case ir.ParenthesizedType:return this.convertType(a.type);case ir.UnionType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSUnionType,types:a.types.map(p=>this.convertType(p))});case ir.IntersectionType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSIntersectionType,types:a.types.map(p=>this.convertType(p))});case ir.AsExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(a.expression),typeAnnotation:this.convertType(a.type)});case ir.InferType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(a.typeParameter)});case ir.LiteralType:return Mr.typescriptVersionIsAtLeast["4.0"]&&a.literal.kind===ir.NullKeyword?this.createNode(a.literal,{type:fr.AST_NODE_TYPES.TSNullKeyword}):this.createNode(a,{type:fr.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(a.literal)});case ir.TypeAssertionExpression:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(a.type),expression:this.convertChild(a.expression)});case ir.ImportEqualsDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(a.name),moduleReference:this.convertChild(a.moduleReference),importKind:a.isTypeOnly?"type":"value",isExport:(0,wr.hasModifier)(ir.ExportKeyword,a)});case ir.ExternalModuleReference:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(a.expression)});case ir.NamespaceExportDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(a.name)});case ir.AbstractKeyword:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSAbstractKeyword});case ir.TupleType:{let p="elementTypes"in a?a.elementTypes.map(C=>this.convertType(C)):a.elements.map(C=>this.convertType(C));return this.createNode(a,{type:fr.AST_NODE_TYPES.TSTupleType,elementTypes:p})}case ir.NamedTupleMember:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(a.type,a),label:this.convertChild(a.name,a),optional:a.questionToken!=null});return a.dotDotDotToken?(p.range[0]=p.label.range[0],p.loc.start=p.label.loc.start,this.createNode(a,{type:fr.AST_NODE_TYPES.TSRestType,typeAnnotation:p})):p}case ir.OptionalType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(a.type)});case ir.RestType:return this.createNode(a,{type:fr.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(a.type)});case ir.TemplateLiteralType:{let p=this.createNode(a,{type:fr.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(a.head)],types:[]});return a.templateSpans.forEach(C=>{p.types.push(this.convertChild(C.type)),p.quasis.push(this.convertChild(C.literal))}),p}case ir.ClassStaticBlockDeclaration:return this.createNode(a,{type:fr.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(a.body.statements,a)});case ir.AssertEntry:return this.createNode(a,{type:fr.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(a.name),value:this.convertChild(a.value)});default:return this.deeplyCopy(a)}}};R.Converter=e}}),Ed={};t1(Ed,{__assign:()=>r1,__asyncDelegator:()=>uU,__asyncGenerator:()=>cU,__asyncValues:()=>lU,__await:()=>Fy,__awaiter:()=>iU,__classPrivateFieldGet:()=>dU,__classPrivateFieldSet:()=>gU,__createBinding:()=>aU,__decorate:()=>Zj,__exportStar:()=>nU,__extends:()=>Yj,__generator:()=>tU,__importDefault:()=>pU,__importStar:()=>_U,__makeTemplateObject:()=>fU,__metadata:()=>rU,__param:()=>eU,__read:()=>AN,__rest:()=>$j,__spread:()=>oU,__spreadArrays:()=>sU,__values:()=>DT});function Yj(R,te){e1(R,te);function qe(){this.constructor=R}R.prototype=te===null?Object.create(te):(qe.prototype=te.prototype,new qe)}function $j(R,te){var qe={};for(var Ve in R)Object.prototype.hasOwnProperty.call(R,Ve)&&te.indexOf(Ve)<0&&(qe[Ve]=R[Ve]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,Ve=Object.getOwnPropertySymbols(R);ni<Ve.length;ni++)te.indexOf(Ve[ni])<0&&Object.prototype.propertyIsEnumerable.call(R,Ve[ni])&&(qe[Ve[ni]]=R[Ve[ni]]);return qe}function Zj(R,te,qe,Ve){var ni=arguments.length,wr=ni<3?te:Ve===null?Ve=Object.getOwnPropertyDescriptor(te,qe):Ve,fr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")wr=Reflect.decorate(R,te,qe,Ve);else for(var Mr=R.length-1;Mr>=0;Mr--)(fr=R[Mr])&&(wr=(ni<3?fr(wr):ni>3?fr(te,qe,wr):fr(te,qe))||wr);return ni>3&&wr&&Object.defineProperty(te,qe,wr),wr}function eU(R,te){return function(qe,Ve){te(qe,Ve,R)}}function rU(R,te){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,te)}function iU(R,te,qe,Ve){function ni(wr){return wr instanceof qe?wr:new qe(function(fr){fr(wr)})}return new(qe||(qe=Promise))(function(wr,fr){function Mr(e){try{Pe(Ve.next(e))}catch(a){fr(a)}}function ir(e){try{Pe(Ve.throw(e))}catch(a){fr(a)}}function Pe(e){e.done?wr(e.value):ni(e.value).then(Mr,ir)}Pe((Ve=Ve.apply(R,te||[])).next())})}function tU(R,te){var qe={label:0,sent:function(){if(wr[0]&1)throw wr[1];return wr[1]},trys:[],ops:[]},Ve,ni,wr,fr;return fr={next:Mr(0),throw:Mr(1),return:Mr(2)},typeof Symbol=="function"&&(fr[Symbol.iterator]=function(){return this}),fr;function Mr(Pe){return function(e){return ir([Pe,e])}}function ir(Pe){if(Ve)throw new TypeError("Generator is already executing.");for(;qe;)try{if(Ve=1,ni&&(wr=Pe[0]&2?ni.return:Pe[0]?ni.throw||((wr=ni.return)&&wr.call(ni),0):ni.next)&&!(wr=wr.call(ni,Pe[1])).done)return wr;switch(ni=0,wr&&(Pe=[Pe[0]&2,wr.value]),Pe[0]){case 0:case 1:wr=Pe;break;case 4:return qe.label++,{value:Pe[1],done:!1};case 5:qe.label++,ni=Pe[1],Pe=[0];continue;case 7:Pe=qe.ops.pop(),qe.trys.pop();continue;default:if(wr=qe.trys,!(wr=wr.length>0&&wr[wr.length-1])&&(Pe[0]===6||Pe[0]===2)){qe=0;continue}if(Pe[0]===3&&(!wr||Pe[1]>wr[0]&&Pe[1]<wr[3])){qe.label=Pe[1];break}if(Pe[0]===6&&qe.label<wr[1]){qe.label=wr[1],wr=Pe;break}if(wr&&qe.label<wr[2]){qe.label=wr[2],qe.ops.push(Pe);break}wr[2]&&qe.ops.pop(),qe.trys.pop();continue}Pe=te.call(R,qe)}catch(e){Pe=[6,e],ni=0}finally{Ve=wr=0}if(Pe[0]&5)throw Pe[1];return{value:Pe[0]?Pe[1]:void 0,done:!0}}}function aU(R,te,qe,Ve){Ve===void 0&&(Ve=qe),R[Ve]=te[qe]}function nU(R,te){for(var qe in R)qe!=="default"&&!te.hasOwnProperty(qe)&&(te[qe]=R[qe])}function DT(R){var te=typeof Symbol=="function"&&Symbol.iterator,qe=te&&R[te],Ve=0;if(qe)return qe.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&Ve>=R.length&&(R=void 0),{value:R&&R[Ve++],done:!R}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")}function AN(R,te){var qe=typeof Symbol=="function"&&R[Symbol.iterator];if(!qe)return R;var Ve=qe.call(R),ni,wr=[],fr;try{for(;(te===void 0||te-- >0)&&!(ni=Ve.next()).done;)wr.push(ni.value)}catch(Mr){fr={error:Mr}}finally{try{ni&&!ni.done&&(qe=Ve.return)&&qe.call(Ve)}finally{if(fr)throw fr.error}}return wr}function oU(){for(var R=[],te=0;te<arguments.length;te++)R=R.concat(AN(arguments[te]));return R}function sU(){for(var R=0,te=0,qe=arguments.length;te<qe;te++)R+=arguments[te].length;for(var Ve=Array(R),ni=0,te=0;te<qe;te++)for(var wr=arguments[te],fr=0,Mr=wr.length;fr<Mr;fr++,ni++)Ve[ni]=wr[fr];return Ve}function Fy(R){return this instanceof Fy?(this.v=R,this):new Fy(R)}function cU(R,te,qe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve=qe.apply(R,te||[]),ni,wr=[];return ni={},fr("next"),fr("throw"),fr("return"),ni[Symbol.asyncIterator]=function(){return this},ni;function fr(O){Ve[O]&&(ni[O]=function(L){return new Promise(function(W,N){wr.push([O,L,W,N])>1||Mr(O,L)})})}function Mr(O,L){try{ir(Ve[O](L))}catch(W){a(wr[0][3],W)}}function ir(O){O.value instanceof Fy?Promise.resolve(O.value.v).then(Pe,e):a(wr[0][2],O)}function Pe(O){Mr("next",O)}function e(O){Mr("throw",O)}function a(O,L){O(L),wr.shift(),wr.length&&Mr(wr[0][0],wr[0][1])}}function uU(R){var te,qe;return te={},Ve("next"),Ve("throw",function(ni){throw ni}),Ve("return"),te[Symbol.iterator]=function(){return this},te;function Ve(ni,wr){te[ni]=R[ni]?function(fr){return(qe=!qe)?{value:Fy(R[ni](fr)),done:ni==="return"}:wr?wr(fr):fr}:wr}}function lU(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te=R[Symbol.asyncIterator],qe;return te?te.call(R):(R=typeof DT=="function"?DT(R):R[Symbol.iterator](),qe={},Ve("next"),Ve("throw"),Ve("return"),qe[Symbol.asyncIterator]=function(){return this},qe);function Ve(wr){qe[wr]=R[wr]&&function(fr){return new Promise(function(Mr,ir){fr=R[wr](fr),ni(Mr,ir,fr.done,fr.value)})}}function ni(wr,fr,Mr,ir){Promise.resolve(ir).then(function(Pe){wr({value:Pe,done:Mr})},fr)}}function fU(R,te){return Object.defineProperty?Object.defineProperty(R,"raw",{value:te}):R.raw=te,R}function _U(R){if(R&&R.__esModule)return R;var te={};if(R!=null)for(var qe in R)Object.hasOwnProperty.call(R,qe)&&(te[qe]=R[qe]);return te.default=R,te}function pU(R){return R&&R.__esModule?R:{default:R}}function dU(R,te){if(!te.has(R))throw new TypeError("attempted to get private field on non-instance");return te.get(R)}function gU(R,te,qe){if(!te.has(R))throw new TypeError("attempted to set private field on non-instance");return te.set(R,qe),qe}var e1,r1,Kd=My({"node_modules/tslib/tslib.es6.js"(){Sa(),e1=function(R,te){return e1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,Ve){qe.__proto__=Ve}||function(qe,Ve){for(var ni in Ve)Ve.hasOwnProperty(ni)&&(qe[ni]=Ve[ni])},e1(R,te)},r1=function(){return r1=Object.assign||function(te){for(var qe,Ve=1,ni=arguments.length;Ve<ni;Ve++){qe=arguments[Ve];for(var wr in qe)Object.prototype.hasOwnProperty.call(qe,wr)&&(te[wr]=qe[wr])}return te},r1.apply(this,arguments)}}}),mU=Aa({"node_modules/tsutils/typeguard/2.8/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isExpressionStatement=R.isExpression=R.isExportSpecifier=R.isExportDeclaration=R.isExportAssignment=R.isEnumMember=R.isEnumDeclaration=R.isEntityNameExpression=R.isEntityName=R.isEmptyStatement=R.isElementAccessExpression=R.isDoStatement=R.isDeleteExpression=R.isDefaultClause=R.isDecorator=R.isDebuggerStatement=R.isComputedPropertyName=R.isContinueStatement=R.isConstructSignatureDeclaration=R.isConstructorTypeNode=R.isConstructorDeclaration=R.isConditionalTypeNode=R.isConditionalExpression=R.isCommaListExpression=R.isClassLikeDeclaration=R.isClassExpression=R.isClassDeclaration=R.isCatchClause=R.isCaseOrDefaultClause=R.isCaseClause=R.isCaseBlock=R.isCallSignatureDeclaration=R.isCallLikeExpression=R.isCallExpression=R.isBreakStatement=R.isBreakOrContinueStatement=R.isBooleanLiteral=R.isBlockLike=R.isBlock=R.isBindingPattern=R.isBindingElement=R.isBinaryExpression=R.isAwaitExpression=R.isAssertionExpression=R.isAsExpression=R.isArrowFunction=R.isArrayTypeNode=R.isArrayLiteralExpression=R.isArrayBindingPattern=R.isAccessorDeclaration=void 0,R.isNamespaceImport=R.isNamespaceDeclaration=R.isNamedImports=R.isNamedExports=R.isModuleDeclaration=R.isModuleBlock=R.isMethodSignature=R.isMethodDeclaration=R.isMetaProperty=R.isMappedTypeNode=R.isLiteralTypeNode=R.isLiteralExpression=R.isLabeledStatement=R.isJsxText=R.isJsxSpreadAttribute=R.isJsxSelfClosingElement=R.isJsxOpeningLikeElement=R.isJsxOpeningFragment=R.isJsxOpeningElement=R.isJsxFragment=R.isJsxExpression=R.isJsxElement=R.isJsxClosingFragment=R.isJsxClosingElement=R.isJsxAttributes=R.isJsxAttributeLike=R.isJsxAttribute=R.isJsDoc=R.isIterationStatement=R.isIntersectionTypeNode=R.isInterfaceDeclaration=R.isInferTypeNode=R.isIndexSignatureDeclaration=R.isIndexedAccessTypeNode=R.isImportSpecifier=R.isImportEqualsDeclaration=R.isImportDeclaration=R.isImportClause=R.isIfStatement=R.isIdentifier=R.isGetAccessorDeclaration=R.isFunctionTypeNode=R.isFunctionExpression=R.isFunctionDeclaration=R.isForStatement=R.isForOfStatement=R.isForInOrOfStatement=R.isForInStatement=R.isExternalModuleReference=R.isExpressionWithTypeArguments=void 0,R.isVariableStatement=R.isVariableDeclaration=R.isUnionTypeNode=R.isTypeQueryNode=R.isTypeReferenceNode=R.isTypePredicateNode=R.isTypeParameterDeclaration=R.isTypeOperatorNode=R.isTypeOfExpression=R.isTypeLiteralNode=R.isTypeAssertion=R.isTypeAliasDeclaration=R.isTupleTypeNode=R.isTryStatement=R.isThrowStatement=R.isTextualLiteral=R.isTemplateLiteral=R.isTemplateExpression=R.isTaggedTemplateExpression=R.isSyntaxList=R.isSwitchStatement=R.isStringLiteral=R.isSpreadElement=R.isSpreadAssignment=R.isSourceFile=R.isSignatureDeclaration=R.isShorthandPropertyAssignment=R.isSetAccessorDeclaration=R.isReturnStatement=R.isRegularExpressionLiteral=R.isQualifiedName=R.isPropertySignature=R.isPropertyDeclaration=R.isPropertyAssignment=R.isPropertyAccessExpression=R.isPrefixUnaryExpression=R.isPostfixUnaryExpression=R.isParenthesizedTypeNode=R.isParenthesizedExpression=R.isParameterDeclaration=R.isOmittedExpression=R.isObjectLiteralExpression=R.isObjectBindingPattern=R.isNumericOrStringLikeLiteral=R.isNumericLiteral=R.isNullLiteral=R.isNoSubstitutionTemplateLiteral=R.isNonNullExpression=R.isNewExpression=R.isNamespaceExportDeclaration=void 0,R.isWithStatement=R.isWhileStatement=R.isVoidExpression=R.isVariableDeclarationList=void 0;var te=Lu();function qe(qr){return qr.kind===te.SyntaxKind.GetAccessor||qr.kind===te.SyntaxKind.SetAccessor}R.isAccessorDeclaration=qe;function Ve(qr){return qr.kind===te.SyntaxKind.ArrayBindingPattern}R.isArrayBindingPattern=Ve;function ni(qr){return qr.kind===te.SyntaxKind.ArrayLiteralExpression}R.isArrayLiteralExpression=ni;function wr(qr){return qr.kind===te.SyntaxKind.ArrayType}R.isArrayTypeNode=wr;function fr(qr){return qr.kind===te.SyntaxKind.ArrowFunction}R.isArrowFunction=fr;function Mr(qr){return qr.kind===te.SyntaxKind.AsExpression}R.isAsExpression=Mr;function ir(qr){return qr.kind===te.SyntaxKind.AsExpression||qr.kind===te.SyntaxKind.TypeAssertionExpression}R.isAssertionExpression=ir;function Pe(qr){return qr.kind===te.SyntaxKind.AwaitExpression}R.isAwaitExpression=Pe;function e(qr){return qr.kind===te.SyntaxKind.BinaryExpression}R.isBinaryExpression=e;function a(qr){return qr.kind===te.SyntaxKind.BindingElement}R.isBindingElement=a;function O(qr){return qr.kind===te.SyntaxKind.ArrayBindingPattern||qr.kind===te.SyntaxKind.ObjectBindingPattern}R.isBindingPattern=O;function L(qr){return qr.kind===te.SyntaxKind.Block}R.isBlock=L;function W(qr){return qr.statements!==void 0}R.isBlockLike=W;function N(qr){return qr.kind===te.SyntaxKind.TrueKeyword||qr.kind===te.SyntaxKind.FalseKeyword}R.isBooleanLiteral=N;function Q(qr){return qr.kind===te.SyntaxKind.BreakStatement||qr.kind===te.SyntaxKind.ContinueStatement}R.isBreakOrContinueStatement=Q;function pe(qr){return qr.kind===te.SyntaxKind.BreakStatement}R.isBreakStatement=pe;function F(qr){return qr.kind===te.SyntaxKind.CallExpression}R.isCallExpression=F;function g(qr){switch(qr.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.Decorator:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.NewExpression:case te.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}}R.isCallLikeExpression=g;function S(qr){return qr.kind===te.SyntaxKind.CallSignature}R.isCallSignatureDeclaration=S;function H(qr){return qr.kind===te.SyntaxKind.CaseBlock}R.isCaseBlock=H;function se(qr){return qr.kind===te.SyntaxKind.CaseClause}R.isCaseClause=se;function p(qr){return qr.kind===te.SyntaxKind.CaseClause||qr.kind===te.SyntaxKind.DefaultClause}R.isCaseOrDefaultClause=p;function C(qr){return qr.kind===te.SyntaxKind.CatchClause}R.isCatchClause=C;function G(qr){return qr.kind===te.SyntaxKind.ClassDeclaration}R.isClassDeclaration=G;function E(qr){return qr.kind===te.SyntaxKind.ClassExpression}R.isClassExpression=E;function ue(qr){return qr.kind===te.SyntaxKind.ClassDeclaration||qr.kind===te.SyntaxKind.ClassExpression}R.isClassLikeDeclaration=ue;function B(qr){return qr.kind===te.SyntaxKind.CommaListExpression}R.isCommaListExpression=B;function re(qr){return qr.kind===te.SyntaxKind.ConditionalExpression}R.isConditionalExpression=re;function M(qr){return qr.kind===te.SyntaxKind.ConditionalType}R.isConditionalTypeNode=M;function x(qr){return qr.kind===te.SyntaxKind.Constructor}R.isConstructorDeclaration=x;function ie(qr){return qr.kind===te.SyntaxKind.ConstructorType}R.isConstructorTypeNode=ie;function _e(qr){return qr.kind===te.SyntaxKind.ConstructSignature}R.isConstructSignatureDeclaration=_e;function Y(qr){return qr.kind===te.SyntaxKind.ContinueStatement}R.isContinueStatement=Y;function Z(qr){return qr.kind===te.SyntaxKind.ComputedPropertyName}R.isComputedPropertyName=Z;function k(qr){return qr.kind===te.SyntaxKind.DebuggerStatement}R.isDebuggerStatement=k;function I(qr){return qr.kind===te.SyntaxKind.Decorator}R.isDecorator=I;function ne(qr){return qr.kind===te.SyntaxKind.DefaultClause}R.isDefaultClause=ne;function ee(qr){return qr.kind===te.SyntaxKind.DeleteExpression}R.isDeleteExpression=ee;function A(qr){return qr.kind===te.SyntaxKind.DoStatement}R.isDoStatement=A;function f(qr){return qr.kind===te.SyntaxKind.ElementAccessExpression}R.isElementAccessExpression=f;function P(qr){return qr.kind===te.SyntaxKind.EmptyStatement}R.isEmptyStatement=P;function D(qr){return qr.kind===te.SyntaxKind.Identifier||We(qr)}R.isEntityName=D;function l(qr){return qr.kind===te.SyntaxKind.Identifier||Oe(qr)&&l(qr.expression)}R.isEntityNameExpression=l;function _(qr){return qr.kind===te.SyntaxKind.EnumDeclaration}R.isEnumDeclaration=_;function J(qr){return qr.kind===te.SyntaxKind.EnumMember}R.isEnumMember=J;function w(qr){return qr.kind===te.SyntaxKind.ExportAssignment}R.isExportAssignment=w;function j(qr){return qr.kind===te.SyntaxKind.ExportDeclaration}R.isExportDeclaration=j;function U(qr){return qr.kind===te.SyntaxKind.ExportSpecifier}R.isExportSpecifier=U;function z(qr){switch(qr.kind){case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.AsExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.BinaryExpression:case te.SyntaxKind.CallExpression:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.CommaListExpression:case te.SyntaxKind.ConditionalExpression:case te.SyntaxKind.DeleteExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.FalseKeyword:case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.Identifier:case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxOpeningFragment:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.MetaProperty:case te.SyntaxKind.NewExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.NoSubstitutionTemplateLiteral:case te.SyntaxKind.NullKeyword:case te.SyntaxKind.NumericLiteral:case te.SyntaxKind.ObjectLiteralExpression:case te.SyntaxKind.OmittedExpression:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.PrefixUnaryExpression:case te.SyntaxKind.PropertyAccessExpression:case te.SyntaxKind.RegularExpressionLiteral:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.StringLiteral:case te.SyntaxKind.SuperKeyword:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.TemplateExpression:case te.SyntaxKind.ThisKeyword:case te.SyntaxKind.TrueKeyword:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.YieldExpression:return!0;default:return!1}}R.isExpression=z;function y(qr){return qr.kind===te.SyntaxKind.ExpressionStatement}R.isExpressionStatement=y;function oe(qr){return qr.kind===te.SyntaxKind.ExpressionWithTypeArguments}R.isExpressionWithTypeArguments=oe;function ve(qr){return qr.kind===te.SyntaxKind.ExternalModuleReference}R.isExternalModuleReference=ve;function ce(qr){return qr.kind===te.SyntaxKind.ForInStatement}R.isForInStatement=ce;function m(qr){return qr.kind===te.SyntaxKind.ForOfStatement||qr.kind===te.SyntaxKind.ForInStatement}R.isForInOrOfStatement=m;function de(qr){return qr.kind===te.SyntaxKind.ForOfStatement}R.isForOfStatement=de;function ae(qr){return qr.kind===te.SyntaxKind.ForStatement}R.isForStatement=ae;function V(qr){return qr.kind===te.SyntaxKind.FunctionDeclaration}R.isFunctionDeclaration=V;function le(qr){return qr.kind===te.SyntaxKind.FunctionExpression}R.isFunctionExpression=le;function ke(qr){return qr.kind===te.SyntaxKind.FunctionType}R.isFunctionTypeNode=ke;function Ue(qr){return qr.kind===te.SyntaxKind.GetAccessor}R.isGetAccessorDeclaration=Ue;function He(qr){return qr.kind===te.SyntaxKind.Identifier}R.isIdentifier=He;function ar(qr){return qr.kind===te.SyntaxKind.IfStatement}R.isIfStatement=ar;function gr(qr){return qr.kind===te.SyntaxKind.ImportClause}R.isImportClause=gr;function me(qr){return qr.kind===te.SyntaxKind.ImportDeclaration}R.isImportDeclaration=me;function Ge(qr){return qr.kind===te.SyntaxKind.ImportEqualsDeclaration}R.isImportEqualsDeclaration=Ge;function er(qr){return qr.kind===te.SyntaxKind.ImportSpecifier}R.isImportSpecifier=er;function he(qr){return qr.kind===te.SyntaxKind.IndexedAccessType}R.isIndexedAccessTypeNode=he;function we(qr){return qr.kind===te.SyntaxKind.IndexSignature}R.isIndexSignatureDeclaration=we;function ye(qr){return qr.kind===te.SyntaxKind.InferType}R.isInferTypeNode=ye;function Se(qr){return qr.kind===te.SyntaxKind.InterfaceDeclaration}R.isInterfaceDeclaration=Se;function ge(qr){return qr.kind===te.SyntaxKind.IntersectionType}R.isIntersectionTypeNode=ge;function Fe(qr){switch(qr.kind){case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:return!0;default:return!1}}R.isIterationStatement=Fe;function cr(qr){return qr.kind===te.SyntaxKind.JSDocComment}R.isJsDoc=cr;function ur(qr){return qr.kind===te.SyntaxKind.JsxAttribute}R.isJsxAttribute=ur;function Ir(qr){return qr.kind===te.SyntaxKind.JsxAttribute||qr.kind===te.SyntaxKind.JsxSpreadAttribute}R.isJsxAttributeLike=Ir;function dr(qr){return qr.kind===te.SyntaxKind.JsxAttributes}R.isJsxAttributes=dr;function Br(qr){return qr.kind===te.SyntaxKind.JsxClosingElement}R.isJsxClosingElement=Br;function Tr(qr){return qr.kind===te.SyntaxKind.JsxClosingFragment}R.isJsxClosingFragment=Tr;function n(qr){return qr.kind===te.SyntaxKind.JsxElement}R.isJsxElement=n;function Er(qr){return qr.kind===te.SyntaxKind.JsxExpression}R.isJsxExpression=Er;function br(qr){return qr.kind===te.SyntaxKind.JsxFragment}R.isJsxFragment=br;function Pr(qr){return qr.kind===te.SyntaxKind.JsxOpeningElement}R.isJsxOpeningElement=Pr;function Ce(qr){return qr.kind===te.SyntaxKind.JsxOpeningFragment}R.isJsxOpeningFragment=Ce;function Le(qr){return qr.kind===te.SyntaxKind.JsxOpeningElement||qr.kind===te.SyntaxKind.JsxSelfClosingElement}R.isJsxOpeningLikeElement=Le;function Xe(qr){return qr.kind===te.SyntaxKind.JsxSelfClosingElement}R.isJsxSelfClosingElement=Xe;function Cr(qr){return qr.kind===te.SyntaxKind.JsxSpreadAttribute}R.isJsxSpreadAttribute=Cr;function Lr(qr){return qr.kind===te.SyntaxKind.JsxText}R.isJsxText=Lr;function Jr(qr){return qr.kind===te.SyntaxKind.LabeledStatement}R.isLabeledStatement=Jr;function Rr(qr){return qr.kind>=te.SyntaxKind.FirstLiteralToken&&qr.kind<=te.SyntaxKind.LastLiteralToken}R.isLiteralExpression=Rr;function ci(qr){return qr.kind===te.SyntaxKind.LiteralType}R.isLiteralTypeNode=ci;function be(qr){return qr.kind===te.SyntaxKind.MappedType}R.isMappedTypeNode=be;function or(qr){return qr.kind===te.SyntaxKind.MetaProperty}R.isMetaProperty=or;function Kr(qr){return qr.kind===te.SyntaxKind.MethodDeclaration}R.isMethodDeclaration=Kr;function ei(qr){return qr.kind===te.SyntaxKind.MethodSignature}R.isMethodSignature=ei;function li(qr){return qr.kind===te.SyntaxKind.ModuleBlock}R.isModuleBlock=li;function Si(qr){return qr.kind===te.SyntaxKind.ModuleDeclaration}R.isModuleDeclaration=Si;function qi(qr){return qr.kind===te.SyntaxKind.NamedExports}R.isNamedExports=qi;function ft(qr){return qr.kind===te.SyntaxKind.NamedImports}R.isNamedImports=ft;function bt(qr){return Si(qr)&&qr.name.kind===te.SyntaxKind.Identifier&&qr.body!==void 0&&(qr.body.kind===te.SyntaxKind.ModuleBlock||bt(qr.body))}R.isNamespaceDeclaration=bt;function aa(qr){return qr.kind===te.SyntaxKind.NamespaceImport}R.isNamespaceImport=aa;function sr(qr){return qr.kind===te.SyntaxKind.NamespaceExportDeclaration}R.isNamespaceExportDeclaration=sr;function Ji(qr){return qr.kind===te.SyntaxKind.NewExpression}R.isNewExpression=Ji;function di(qr){return qr.kind===te.SyntaxKind.NonNullExpression}R.isNonNullExpression=di;function X(qr){return qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isNoSubstitutionTemplateLiteral=X;function Ye(qr){return qr.kind===te.SyntaxKind.NullKeyword}R.isNullLiteral=Ye;function Be(qr){return qr.kind===te.SyntaxKind.NumericLiteral}R.isNumericLiteral=Be;function Qe(qr){switch(qr.kind){case te.SyntaxKind.StringLiteral:case te.SyntaxKind.NumericLiteral:case te.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}}R.isNumericOrStringLikeLiteral=Qe;function _r(qr){return qr.kind===te.SyntaxKind.ObjectBindingPattern}R.isObjectBindingPattern=_r;function hr(qr){return qr.kind===te.SyntaxKind.ObjectLiteralExpression}R.isObjectLiteralExpression=hr;function Dr(qr){return qr.kind===te.SyntaxKind.OmittedExpression}R.isOmittedExpression=Dr;function Me(qr){return qr.kind===te.SyntaxKind.Parameter}R.isParameterDeclaration=Me;function v(qr){return qr.kind===te.SyntaxKind.ParenthesizedExpression}R.isParenthesizedExpression=v;function xe(qr){return qr.kind===te.SyntaxKind.ParenthesizedType}R.isParenthesizedTypeNode=xe;function ze(qr){return qr.kind===te.SyntaxKind.PostfixUnaryExpression}R.isPostfixUnaryExpression=ze;function Je(qr){return qr.kind===te.SyntaxKind.PrefixUnaryExpression}R.isPrefixUnaryExpression=Je;function Oe(qr){return qr.kind===te.SyntaxKind.PropertyAccessExpression}R.isPropertyAccessExpression=Oe;function Fr(qr){return qr.kind===te.SyntaxKind.PropertyAssignment}R.isPropertyAssignment=Fr;function Xr(qr){return qr.kind===te.SyntaxKind.PropertyDeclaration}R.isPropertyDeclaration=Xr;function Or(qr){return qr.kind===te.SyntaxKind.PropertySignature}R.isPropertySignature=Or;function We(qr){return qr.kind===te.SyntaxKind.QualifiedName}R.isQualifiedName=We;function mr(qr){return qr.kind===te.SyntaxKind.RegularExpressionLiteral}R.isRegularExpressionLiteral=mr;function Nr(qr){return qr.kind===te.SyntaxKind.ReturnStatement}R.isReturnStatement=Nr;function Ur(qr){return qr.kind===te.SyntaxKind.SetAccessor}R.isSetAccessorDeclaration=Ur;function si(qr){return qr.kind===te.SyntaxKind.ShorthandPropertyAssignment}R.isShorthandPropertyAssignment=si;function mi(qr){return qr.parameters!==void 0}R.isSignatureDeclaration=mi;function Ti(qr){return qr.kind===te.SyntaxKind.SourceFile}R.isSourceFile=Ti;function hi(qr){return qr.kind===te.SyntaxKind.SpreadAssignment}R.isSpreadAssignment=hi;function ki(qr){return qr.kind===te.SyntaxKind.SpreadElement}R.isSpreadElement=ki;function Ui(qr){return qr.kind===te.SyntaxKind.StringLiteral}R.isStringLiteral=Ui;function zi(qr){return qr.kind===te.SyntaxKind.SwitchStatement}R.isSwitchStatement=zi;function ri(qr){return qr.kind===te.SyntaxKind.SyntaxList}R.isSyntaxList=ri;function Gi(qr){return qr.kind===te.SyntaxKind.TaggedTemplateExpression}R.isTaggedTemplateExpression=Gi;function Rt(qr){return qr.kind===te.SyntaxKind.TemplateExpression}R.isTemplateExpression=Rt;function pa(qr){return qr.kind===te.SyntaxKind.TemplateExpression||qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isTemplateLiteral=pa;function xt(qr){return qr.kind===te.SyntaxKind.StringLiteral||qr.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral}R.isTextualLiteral=xt;function ua(qr){return qr.kind===te.SyntaxKind.ThrowStatement}R.isThrowStatement=ua;function Vt(qr){return qr.kind===te.SyntaxKind.TryStatement}R.isTryStatement=Vt;function St(qr){return qr.kind===te.SyntaxKind.TupleType}R.isTupleTypeNode=St;function Ci(qr){return qr.kind===te.SyntaxKind.TypeAliasDeclaration}R.isTypeAliasDeclaration=Ci;function Hi(qr){return qr.kind===te.SyntaxKind.TypeAssertionExpression}R.isTypeAssertion=Hi;function Yi(qr){return qr.kind===te.SyntaxKind.TypeLiteral}R.isTypeLiteralNode=Yi;function yt(qr){return qr.kind===te.SyntaxKind.TypeOfExpression}R.isTypeOfExpression=yt;function gt(qr){return qr.kind===te.SyntaxKind.TypeOperator}R.isTypeOperatorNode=gt;function oa(qr){return qr.kind===te.SyntaxKind.TypeParameter}R.isTypeParameterDeclaration=oa;function Bt(qr){return qr.kind===te.SyntaxKind.TypePredicate}R.isTypePredicateNode=Bt;function Pi(qr){return qr.kind===te.SyntaxKind.TypeReference}R.isTypeReferenceNode=Pi;function Oi(qr){return qr.kind===te.SyntaxKind.TypeQuery}R.isTypeQueryNode=Oi;function wi(qr){return qr.kind===te.SyntaxKind.UnionType}R.isUnionTypeNode=wi;function Qr(qr){return qr.kind===te.SyntaxKind.VariableDeclaration}R.isVariableDeclaration=Qr;function Ct(qr){return qr.kind===te.SyntaxKind.VariableStatement}R.isVariableStatement=Ct;function tt(qr){return qr.kind===te.SyntaxKind.VariableDeclarationList}R.isVariableDeclarationList=tt;function ta(qr){return qr.kind===te.SyntaxKind.VoidExpression}R.isVoidExpression=ta;function Xa(qr){return qr.kind===te.SyntaxKind.WhileStatement}R.isWhileStatement=Xa;function on(qr){return qr.kind===te.SyntaxKind.WithStatement}R.isWithStatement=on}}),vU=Aa({"node_modules/tsutils/typeguard/2.9/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isImportTypeNode=void 0;var te=(Kd(),up(Ed));te.__exportStar(mU(),R);var qe=Lu();function Ve(ni){return ni.kind===qe.SyntaxKind.ImportType}R.isImportTypeNode=Ve}}),yU=Aa({"node_modules/tsutils/typeguard/3.0/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isSyntheticExpression=R.isRestTypeNode=R.isOptionalTypeNode=void 0;var te=(Kd(),up(Ed));te.__exportStar(vU(),R);var qe=Lu();function Ve(fr){return fr.kind===qe.SyntaxKind.OptionalType}R.isOptionalTypeNode=Ve;function ni(fr){return fr.kind===qe.SyntaxKind.RestType}R.isRestTypeNode=ni;function wr(fr){return fr.kind===qe.SyntaxKind.SyntheticExpression}R.isSyntheticExpression=wr}}),PN=Aa({"node_modules/tsutils/typeguard/3.2/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isBigIntLiteral=void 0;var te=(Kd(),up(Ed));te.__exportStar(yU(),R);var qe=Lu();function Ve(ni){return ni.kind===qe.SyntaxKind.BigIntLiteral}R.isBigIntLiteral=Ve}}),NN=Aa({"node_modules/tsutils/typeguard/node.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(PN(),R)}}),hU=Aa({"node_modules/tsutils/typeguard/2.8/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isUniqueESSymbolType=R.isUnionType=R.isUnionOrIntersectionType=R.isTypeVariable=R.isTypeReference=R.isTypeParameter=R.isSubstitutionType=R.isObjectType=R.isLiteralType=R.isIntersectionType=R.isInterfaceType=R.isInstantiableType=R.isIndexedAccessype=R.isIndexedAccessType=R.isGenericType=R.isEnumType=R.isConditionalType=void 0;var te=Lu();function qe(g){return(g.flags&te.TypeFlags.Conditional)!==0}R.isConditionalType=qe;function Ve(g){return(g.flags&te.TypeFlags.Enum)!==0}R.isEnumType=Ve;function ni(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.ClassOrInterface)!==0&&(g.objectFlags&te.ObjectFlags.Reference)!==0}R.isGenericType=ni;function wr(g){return(g.flags&te.TypeFlags.IndexedAccess)!==0}R.isIndexedAccessType=wr;function fr(g){return(g.flags&te.TypeFlags.Index)!==0}R.isIndexedAccessype=fr;function Mr(g){return(g.flags&te.TypeFlags.Instantiable)!==0}R.isInstantiableType=Mr;function ir(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.ClassOrInterface)!==0}R.isInterfaceType=ir;function Pe(g){return(g.flags&te.TypeFlags.Intersection)!==0}R.isIntersectionType=Pe;function e(g){return(g.flags&(te.TypeFlags.StringOrNumberLiteral|te.TypeFlags.BigIntLiteral))!==0}R.isLiteralType=e;function a(g){return(g.flags&te.TypeFlags.Object)!==0}R.isObjectType=a;function O(g){return(g.flags&te.TypeFlags.Substitution)!==0}R.isSubstitutionType=O;function L(g){return(g.flags&te.TypeFlags.TypeParameter)!==0}R.isTypeParameter=L;function W(g){return(g.flags&te.TypeFlags.Object)!==0&&(g.objectFlags&te.ObjectFlags.Reference)!==0}R.isTypeReference=W;function N(g){return(g.flags&te.TypeFlags.TypeVariable)!==0}R.isTypeVariable=N;function Q(g){return(g.flags&te.TypeFlags.UnionOrIntersection)!==0}R.isUnionOrIntersectionType=Q;function pe(g){return(g.flags&te.TypeFlags.Union)!==0}R.isUnionType=pe;function F(g){return(g.flags&te.TypeFlags.UniqueESSymbol)!==0}R.isUniqueESSymbolType=F}}),HP=Aa({"node_modules/tsutils/typeguard/2.9/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(hU(),R)}}),DU=Aa({"node_modules/tsutils/typeguard/3.0/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isTupleTypeReference=R.isTupleType=void 0;var te=(Kd(),up(Ed));te.__exportStar(HP(),R);var qe=Lu(),Ve=HP();function ni(fr){return(fr.flags&qe.TypeFlags.Object&&fr.objectFlags&qe.ObjectFlags.Tuple)!==0}R.isTupleType=ni;function wr(fr){return Ve.isTypeReference(fr)&&ni(fr.target)}R.isTupleTypeReference=wr}}),IN=Aa({"node_modules/tsutils/typeguard/3.2/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(DU(),R)}}),bU=Aa({"node_modules/tsutils/typeguard/3.2/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(PN(),R),te.__exportStar(IN(),R)}}),SU=Aa({"node_modules/tsutils/typeguard/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te=(Kd(),up(Ed));te.__exportStar(IN(),R)}}),TU=Aa({"node_modules/tsutils/util/type.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getBaseClassMemberOfClassElement=R.getIteratorYieldResultFromIteratorResult=R.getInstanceTypeOfClassLikeDeclaration=R.getConstructorTypeOfClassLikeDeclaration=R.getSymbolOfClassLikeDeclaration=R.getPropertyNameFromType=R.symbolHasReadonlyDeclaration=R.isPropertyReadonlyInType=R.getWellKnownSymbolPropertyOfType=R.getPropertyOfType=R.isBooleanLiteralType=R.isFalsyType=R.isThenableType=R.someTypePart=R.intersectionTypeParts=R.unionTypeParts=R.getCallSignaturesOfType=R.isTypeAssignableToString=R.isTypeAssignableToNumber=R.isOptionalChainingUndefinedMarkerType=R.removeOptionalChainingUndefinedMarkerType=R.removeOptionalityFromType=R.isEmptyObjectType=void 0;var te=Lu(),qe=SU(),Ve=wN(),ni=NN();function wr(k){if(qe.isObjectType(k)&&k.objectFlags&te.ObjectFlags.Anonymous&&k.getProperties().length===0&&k.getCallSignatures().length===0&&k.getConstructSignatures().length===0&&k.getStringIndexType()===void 0&&k.getNumberIndexType()===void 0){let I=k.getBaseTypes();return I===void 0||I.every(wr)}return!1}R.isEmptyObjectType=wr;function fr(k,I){if(!Mr(I,te.TypeFlags.Undefined))return I;let ne=Mr(I,te.TypeFlags.Null);return I=k.getNonNullableType(I),ne?k.getNullableType(I,te.TypeFlags.Null):I}R.removeOptionalityFromType=fr;function Mr(k,I){for(let ne of W(k))if(Ve.isTypeFlagSet(ne,I))return!0;return!1}function ir(k,I){if(!qe.isUnionType(I))return Pe(k,I)?I.getNonNullableType():I;let ne=0,ee=!1;for(let A of I.types)Pe(k,A)?ee=!0:ne|=A.flags;return ee?k.getNullableType(I.getNonNullableType(),ne):I}R.removeOptionalChainingUndefinedMarkerType=ir;function Pe(k,I){return Ve.isTypeFlagSet(I,te.TypeFlags.Undefined)&&k.getNullableType(I.getNonNullableType(),te.TypeFlags.Undefined)!==I}R.isOptionalChainingUndefinedMarkerType=Pe;function e(k,I){return O(k,I,te.TypeFlags.NumberLike)}R.isTypeAssignableToNumber=e;function a(k,I){return O(k,I,te.TypeFlags.StringLike)}R.isTypeAssignableToString=a;function O(k,I,ne){ne|=te.TypeFlags.Any;let ee;return function A(f){if(qe.isTypeParameter(f)&&f.symbol!==void 0&&f.symbol.declarations!==void 0){if(ee===void 0)ee=new Set([f]);else if(!ee.has(f))ee.add(f);else return!1;let P=f.symbol.declarations[0];return P.constraint===void 0?!0:A(k.getTypeFromTypeNode(P.constraint))}return qe.isUnionType(f)?f.types.every(A):qe.isIntersectionType(f)?f.types.some(A):Ve.isTypeFlagSet(f,ne)}(I)}function L(k){if(qe.isUnionType(k)){let I=[];for(let ne of k.types)I.push(...L(ne));return I}if(qe.isIntersectionType(k)){let I;for(let ne of k.types){let ee=L(ne);if(ee.length!==0){if(I!==void 0)return[];I=ee}}return I===void 0?[]:I}return k.getCallSignatures()}R.getCallSignaturesOfType=L;function W(k){return qe.isUnionType(k)?k.types:[k]}R.unionTypeParts=W;function N(k){return qe.isIntersectionType(k)?k.types:[k]}R.intersectionTypeParts=N;function Q(k,I,ne){return I(k)?k.types.some(ne):ne(k)}R.someTypePart=Q;function pe(k,I){let ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k.getTypeAtLocation(I);for(let ee of W(k.getApparentType(ne))){let A=ee.getProperty("then");if(A===void 0)continue;let f=k.getTypeOfSymbolAtLocation(A,I);for(let P of W(f))for(let D of P.getCallSignatures())if(D.parameters.length!==0&&F(k,D.parameters[0],I))return!0}return!1}R.isThenableType=pe;function F(k,I,ne){let ee=k.getApparentType(k.getTypeOfSymbolAtLocation(I,ne));if(I.valueDeclaration.dotDotDotToken&&(ee=ee.getNumberIndexType(),ee===void 0))return!1;for(let A of W(ee))if(A.getCallSignatures().length!==0)return!0;return!1}function g(k){return k.flags&(te.TypeFlags.Undefined|te.TypeFlags.Null|te.TypeFlags.Void)?!0:qe.isLiteralType(k)?!k.value:S(k,!1)}R.isFalsyType=g;function S(k,I){return Ve.isTypeFlagSet(k,te.TypeFlags.BooleanLiteral)&&k.intrinsicName===(I?"true":"false")}R.isBooleanLiteralType=S;function H(k,I){return I.startsWith("__")?k.getProperties().find(ne=>ne.escapedName===I):k.getProperty(I)}R.getPropertyOfType=H;function se(k,I,ne){let ee="__@"+I;for(let A of k.getProperties()){if(!A.name.startsWith(ee))continue;let f=ne.getApparentType(ne.getTypeAtLocation(A.valueDeclaration.name.expression)).symbol;if(A.escapedName===p(ne,f,I))return A}}R.getWellKnownSymbolPropertyOfType=se;function p(k,I,ne){let ee=I&&k.getTypeOfSymbolAtLocation(I,I.valueDeclaration).getProperty(ne),A=ee&&k.getTypeOfSymbolAtLocation(ee,ee.valueDeclaration);return A&&qe.isUniqueESSymbolType(A)?A.escapedName:"__@"+ne}function C(k,I,ne){let ee=!1,A=!1;for(let f of W(k))if(H(f,I)===void 0){let P=(Ve.isNumericPropertyName(I)?ne.getIndexInfoOfType(f,te.IndexKind.Number):void 0)||ne.getIndexInfoOfType(f,te.IndexKind.String);if(P!==void 0&&P.isReadonly){if(ee)return!0;A=!0}}else{if(A||G(f,I,ne))return!0;ee=!0}return!1}R.isPropertyReadonlyInType=C;function G(k,I,ne){return Q(k,qe.isIntersectionType,ee=>{let A=H(ee,I);if(A===void 0)return!1;if(A.flags&te.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(I)&&qe.isTupleTypeReference(ee))return ee.target.readonly;switch(E(ee,I,ne)){case!0:return!0;case!1:return!1;default:}}return Ve.isSymbolFlagSet(A,te.SymbolFlags.ValueModule)||ue(A,ne)})}function E(k,I,ne){if(!qe.isObjectType(k)||!Ve.isObjectFlagSet(k,te.ObjectFlags.Mapped))return;let ee=k.symbol.declarations[0];return ee.readonlyToken!==void 0&&!/^__@[^@]+$/.test(I)?ee.readonlyToken.kind!==te.SyntaxKind.MinusToken:C(k.modifiersType,I,ne)}function ue(k,I){return(k.flags&te.SymbolFlags.Accessor)===te.SymbolFlags.GetAccessor||k.declarations!==void 0&&k.declarations.some(ne=>Ve.isModifierFlagSet(ne,te.ModifierFlags.Readonly)||ni.isVariableDeclaration(ne)&&Ve.isNodeFlagSet(ne.parent,te.NodeFlags.Const)||ni.isCallExpression(ne)&&Ve.isReadonlyAssignmentDeclaration(ne,I)||ni.isEnumMember(ne)||(ni.isPropertyAssignment(ne)||ni.isShorthandPropertyAssignment(ne))&&Ve.isInConstContext(ne.parent))}R.symbolHasReadonlyDeclaration=ue;function B(k){if(k.flags&(te.TypeFlags.StringLiteral|te.TypeFlags.NumberLiteral)){let I=String(k.value);return{displayName:I,symbolName:te.escapeLeadingUnderscores(I)}}if(qe.isUniqueESSymbolType(k))return{displayName:"[".concat(k.symbol?"".concat(re(k.symbol)?"Symbol.":"").concat(k.symbol.name):k.escapedName.replace(/^__@|@\d+$/g,""),"]"),symbolName:k.escapedName}}R.getPropertyNameFromType=B;function re(k){return Ve.isSymbolFlagSet(k,te.SymbolFlags.Property)&&k.valueDeclaration!==void 0&&ni.isInterfaceDeclaration(k.valueDeclaration.parent)&&k.valueDeclaration.parent.name.text==="SymbolConstructor"&&M(k.valueDeclaration.parent)}function M(k){return Ve.isNodeFlagSet(k.parent,te.NodeFlags.GlobalAugmentation)||ni.isSourceFile(k.parent)&&!te.isExternalModule(k.parent)}function x(k,I){var ne;return I.getSymbolAtLocation((ne=k.name)!==null&&ne!==void 0?ne:Ve.getChildOfKind(k,te.SyntaxKind.ClassKeyword))}R.getSymbolOfClassLikeDeclaration=x;function ie(k,I){return k.kind===te.SyntaxKind.ClassExpression?I.getTypeAtLocation(k):I.getTypeOfSymbolAtLocation(x(k,I),k)}R.getConstructorTypeOfClassLikeDeclaration=ie;function _e(k,I){return k.kind===te.SyntaxKind.ClassDeclaration?I.getTypeAtLocation(k):I.getDeclaredTypeOfSymbol(x(k,I))}R.getInstanceTypeOfClassLikeDeclaration=_e;function Y(k,I,ne){return qe.isUnionType(k)&&k.types.find(ee=>{let A=ee.getProperty("done");return A!==void 0&&S(fr(ne,ne.getTypeOfSymbolAtLocation(A,I)),!1)})||k}R.getIteratorYieldResultFromIteratorResult=Y;function Z(k,I){if(!ni.isClassLikeDeclaration(k.parent))return;let ne=Ve.getBaseOfClassLikeExpression(k.parent);if(ne===void 0)return;let ee=Ve.getSingleLateBoundPropertyNameOfPropertyName(k.name,I);if(ee===void 0)return;let A=I.getTypeAtLocation(Ve.hasModifier(k.modifiers,te.SyntaxKind.StaticKeyword)?ne.expression:ne);return H(A,ee.symbolName)}R.getBaseClassMemberOfClassElement=Z}}),wN=Aa({"node_modules/tsutils/util/util.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.isValidIdentifier=R.getLineBreakStyle=R.getLineRanges=R.forEachComment=R.forEachTokenWithTrivia=R.forEachToken=R.isFunctionWithBody=R.hasOwnThisReference=R.isBlockScopeBoundary=R.isFunctionScopeBoundary=R.isTypeScopeBoundary=R.isScopeBoundary=R.ScopeBoundarySelector=R.ScopeBoundary=R.isInSingleStatementContext=R.isBlockScopedDeclarationStatement=R.isBlockScopedVariableDeclaration=R.isBlockScopedVariableDeclarationList=R.getVariableDeclarationKind=R.VariableDeclarationKind=R.forEachDeclaredVariable=R.forEachDestructuringIdentifier=R.getPropertyName=R.getWrappedNodeAtPosition=R.getAstNodeAtPosition=R.commentText=R.isPositionInComment=R.getCommentAtPosition=R.getTokenAtPosition=R.getNextToken=R.getPreviousToken=R.getNextStatement=R.getPreviousStatement=R.isModifierFlagSet=R.isObjectFlagSet=R.isSymbolFlagSet=R.isTypeFlagSet=R.isNodeFlagSet=R.hasAccessModifier=R.isParameterProperty=R.hasModifier=R.getModifier=R.isThisParameter=R.isKeywordKind=R.isJsDocKind=R.isTypeNodeKind=R.isAssignmentKind=R.isNodeKind=R.isTokenKind=R.getChildOfKind=void 0,R.getBaseOfClassLikeExpression=R.hasExhaustiveCaseClauses=R.formatPseudoBigInt=R.unwrapParentheses=R.getSingleLateBoundPropertyNameOfPropertyName=R.getLateBoundPropertyNamesOfPropertyName=R.getLateBoundPropertyNames=R.getPropertyNameOfWellKnownSymbol=R.isWellKnownSymbolLiterally=R.isBindableObjectDefinePropertyCall=R.isReadonlyAssignmentDeclaration=R.isInConstContext=R.isConstAssertion=R.getTsCheckDirective=R.getCheckJsDirective=R.isAmbientModule=R.isCompilerOptionEnabled=R.isStrictCompilerOptionEnabled=R.getIIFE=R.isAmbientModuleBlock=R.isStatementInAmbientContext=R.findImportLikeNodes=R.findImports=R.ImportKind=R.parseJsDocOfNode=R.getJsDoc=R.canHaveJsDoc=R.isReassignmentTarget=R.getAccessKind=R.AccessKind=R.isExpressionValueUsed=R.getDeclarationOfBindingElement=R.hasSideEffects=R.SideEffectOptions=R.isSameLine=R.isNumericPropertyName=R.isValidJsxIdentifier=R.isValidNumericLiteral=R.isValidPropertyName=R.isValidPropertyAccess=void 0;var te=Lu(),qe=NN(),Ve=bU(),ni=TU();function wr(X,Ye,Be){for(let Qe of X.getChildren(Be))if(Qe.kind===Ye)return Qe}R.getChildOfKind=wr;function fr(X){return X>=te.SyntaxKind.FirstToken&&X<=te.SyntaxKind.LastToken}R.isTokenKind=fr;function Mr(X){return X>=te.SyntaxKind.FirstNode}R.isNodeKind=Mr;function ir(X){return X>=te.SyntaxKind.FirstAssignment&&X<=te.SyntaxKind.LastAssignment}R.isAssignmentKind=ir;function Pe(X){return X>=te.SyntaxKind.FirstTypeNode&&X<=te.SyntaxKind.LastTypeNode}R.isTypeNodeKind=Pe;function e(X){return X>=te.SyntaxKind.FirstJSDocNode&&X<=te.SyntaxKind.LastJSDocNode}R.isJsDocKind=e;function a(X){return X>=te.SyntaxKind.FirstKeyword&&X<=te.SyntaxKind.LastKeyword}R.isKeywordKind=a;function O(X){return X.name.kind===te.SyntaxKind.Identifier&&X.name.originalKeywordKind===te.SyntaxKind.ThisKeyword}R.isThisParameter=O;function L(X,Ye){if(X.modifiers!==void 0){for(let Be of X.modifiers)if(Be.kind===Ye)return Be}}R.getModifier=L;function W(X){if(X===void 0)return!1;for(var Ye=arguments.length,Be=new Array(Ye>1?Ye-1:0),Qe=1;Qe<Ye;Qe++)Be[Qe-1]=arguments[Qe];for(let _r of X)if(Be.includes(_r.kind))return!0;return!1}R.hasModifier=W;function N(X){return W(X.modifiers,te.SyntaxKind.PublicKeyword,te.SyntaxKind.ProtectedKeyword,te.SyntaxKind.PrivateKeyword,te.SyntaxKind.ReadonlyKeyword)}R.isParameterProperty=N;function Q(X){return g(X,te.ModifierFlags.AccessibilityModifier)}R.hasAccessModifier=Q;function pe(X,Ye){return(X.flags&Ye)!==0}R.isNodeFlagSet=pe,R.isTypeFlagSet=pe,R.isSymbolFlagSet=pe;function F(X,Ye){return(X.objectFlags&Ye)!==0}R.isObjectFlagSet=F;function g(X,Ye){return(te.getCombinedModifierFlags(X)&Ye)!==0}R.isModifierFlagSet=g;function S(X){let Ye=X.parent;if(qe.isBlockLike(Ye)){let Be=Ye.statements.indexOf(X);if(Be>0)return Ye.statements[Be-1]}}R.getPreviousStatement=S;function H(X){let Ye=X.parent;if(qe.isBlockLike(Ye)){let Be=Ye.statements.indexOf(X);if(Be<Ye.statements.length)return Ye.statements[Be+1]}}R.getNextStatement=H;function se(X,Ye){let{pos:Be}=X;if(Be!==0){do X=X.parent;while(X.pos===Be);return G(X,Be-1,Ye!=null?Ye:X.getSourceFile(),!1)}}R.getPreviousToken=se;function p(X,Ye){if(X.kind===te.SyntaxKind.SourceFile||X.kind===te.SyntaxKind.EndOfFileToken)return;let Be=X.end;for(X=X.parent;X.end===Be;){if(X.parent===void 0)return X.endOfFileToken;X=X.parent}return G(X,Be,Ye!=null?Ye:X.getSourceFile(),!1)}R.getNextToken=p;function C(X,Ye,Be,Qe){if(!(Ye<X.pos||Ye>=X.end))return fr(X.kind)?X:G(X,Ye,Be!=null?Be:X.getSourceFile(),Qe===!0)}R.getTokenAtPosition=C;function G(X,Ye,Be,Qe){if(!Qe&&(X=M(X,Ye),fr(X.kind)))return X;e:for(;;){for(let _r of X.getChildren(Be))if(_r.end>Ye&&(Qe||_r.kind!==te.SyntaxKind.JSDocComment)){if(fr(_r.kind))return _r;X=_r;continue e}return}}function E(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X,Qe=C(Be,Ye,X);if(Qe===void 0||Qe.kind===te.SyntaxKind.JsxText||Ye>=Qe.end-(te.tokenToString(Qe.kind)||"").length)return;let _r=Qe.pos===0?(te.getShebang(X.text)||"").length:Qe.pos;return _r!==0&&te.forEachTrailingCommentRange(X.text,_r,ue,Ye)||te.forEachLeadingCommentRange(X.text,_r,ue,Ye)}R.getCommentAtPosition=E;function ue(X,Ye,Be,Qe,_r){return _r>=X&&_r<Ye?{pos:X,end:Ye,kind:Be}:void 0}function B(X,Ye,Be){return E(X,Ye,Be)!==void 0}R.isPositionInComment=B;function re(X,Ye){return X.substring(Ye.pos+2,Ye.kind===te.SyntaxKind.SingleLineCommentTrivia?Ye.end:Ye.end-2)}R.commentText=re;function M(X,Ye){if(!(X.pos>Ye||X.end<=Ye)){for(;Mr(X.kind);){let Be=te.forEachChild(X,Qe=>Qe.pos<=Ye&&Qe.end>Ye?Qe:void 0);if(Be===void 0)break;X=Be}return X}}R.getAstNodeAtPosition=M;function x(X,Ye){if(X.node.pos>Ye||X.node.end<=Ye)return;e:for(;;){for(let Be of X.children){if(Be.node.pos>Ye)return X;if(Be.node.end>Ye){X=Be;continue e}}return X}}R.getWrappedNodeAtPosition=x;function ie(X){if(X.kind===te.SyntaxKind.ComputedPropertyName){let Ye=bt(X.expression);if(qe.isPrefixUnaryExpression(Ye)){let Be=!1;switch(Ye.operator){case te.SyntaxKind.MinusToken:Be=!0;case te.SyntaxKind.PlusToken:return qe.isNumericLiteral(Ye.operand)?"".concat(Be?"-":"").concat(Ye.operand.text):Ve.isBigIntLiteral(Ye.operand)?"".concat(Be?"-":"").concat(Ye.operand.text.slice(0,-1)):void 0;default:return}}return Ve.isBigIntLiteral(Ye)?Ye.text.slice(0,-1):qe.isNumericOrStringLikeLiteral(Ye)?Ye.text:void 0}return X.kind===te.SyntaxKind.PrivateIdentifier?void 0:X.text}R.getPropertyName=ie;function _e(X,Ye){for(let Be of X.elements){if(Be.kind!==te.SyntaxKind.BindingElement)continue;let Qe;if(Be.name.kind===te.SyntaxKind.Identifier?Qe=Ye(Be):Qe=_e(Be.name,Ye),Qe)return Qe}}R.forEachDestructuringIdentifier=_e;function Y(X,Ye){for(let Be of X.declarations){let Qe;if(Be.name.kind===te.SyntaxKind.Identifier?Qe=Ye(Be):Qe=_e(Be.name,Ye),Qe)return Qe}}R.forEachDeclaredVariable=Y;var Z;(function(X){X[X.Var=0]="Var",X[X.Let=1]="Let",X[X.Const=2]="Const"})(Z=R.VariableDeclarationKind||(R.VariableDeclarationKind={}));function k(X){return X.flags&te.NodeFlags.Let?1:X.flags&te.NodeFlags.Const?2:0}R.getVariableDeclarationKind=k;function I(X){return(X.flags&te.NodeFlags.BlockScoped)!==0}R.isBlockScopedVariableDeclarationList=I;function ne(X){let Ye=X.parent;return Ye.kind===te.SyntaxKind.CatchClause||I(Ye)}R.isBlockScopedVariableDeclaration=ne;function ee(X){switch(X.kind){case te.SyntaxKind.VariableStatement:return I(X.declarationList);case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}}R.isBlockScopedDeclarationStatement=ee;function A(X){switch(X.parent.kind){case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.LabeledStatement:return!0;default:return!1}}R.isInSingleStatementContext=A;var f;(function(X){X[X.None=0]="None",X[X.Function=1]="Function",X[X.Block=2]="Block",X[X.Type=4]="Type",X[X.ConditionalType=8]="ConditionalType"})(f=R.ScopeBoundary||(R.ScopeBoundary={}));var P;(function(X){X[X.Function=1]="Function",X[X.Block=3]="Block",X[X.Type=7]="Type",X[X.InferType=8]="InferType"})(P=R.ScopeBoundarySelector||(R.ScopeBoundarySelector={}));function D(X){return _(X)||J(X)||l(X)}R.isScopeBoundary=D;function l(X){switch(X.kind){case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:case te.SyntaxKind.MappedType:return 4;case te.SyntaxKind.ConditionalType:return 8;default:return 0}}R.isTypeScopeBoundary=l;function _(X){switch(X.kind){case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.Constructor:case te.SyntaxKind.ModuleDeclaration:case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.MethodSignature:case te.SyntaxKind.CallSignature:case te.SyntaxKind.ConstructSignature:case te.SyntaxKind.ConstructorType:case te.SyntaxKind.FunctionType:return 1;case te.SyntaxKind.SourceFile:return te.isExternalModule(X)?1:0;default:return 0}}R.isFunctionScopeBoundary=_;function J(X){switch(X.kind){case te.SyntaxKind.Block:let Ye=X.parent;return Ye.kind!==te.SyntaxKind.CatchClause&&(Ye.kind===te.SyntaxKind.SourceFile||!_(Ye))?2:0;case te.SyntaxKind.ForStatement:case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.CaseBlock:case te.SyntaxKind.CatchClause:case te.SyntaxKind.WithStatement:return 2;default:return 0}}R.isBlockScopeBoundary=J;function w(X){switch(X.kind){case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.FunctionExpression:return!0;case te.SyntaxKind.FunctionDeclaration:return X.body!==void 0;case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:return X.parent.kind===te.SyntaxKind.ObjectLiteralExpression;default:return!1}}R.hasOwnThisReference=w;function j(X){switch(X.kind){case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.Constructor:return X.body!==void 0;case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.ArrowFunction:return!0;default:return!1}}R.isFunctionWithBody=j;function U(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=[];for(;;){if(fr(X.kind))Ye(X);else if(X.kind!==te.SyntaxKind.JSDocComment){let _r=X.getChildren(Be);if(_r.length===1){X=_r[0];continue}for(let hr=_r.length-1;hr>=0;--hr)Qe.push(_r[hr])}if(Qe.length===0)break;X=Qe.pop()}}R.forEachToken=U;function z(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=Be.text,_r=te.createScanner(Be.languageVersion,!1,Be.languageVariant,Qe);return U(X,hr=>{let Dr=hr.kind===te.SyntaxKind.JsxText||hr.pos===hr.end?hr.pos:hr.getStart(Be);if(Dr!==hr.pos){_r.setTextPos(hr.pos);let Me=_r.scan(),v=_r.getTokenPos();for(;v<Dr;){let xe=_r.getTextPos();if(Ye(Qe,Me,{pos:v,end:xe},hr.parent),xe===Dr)break;Me=_r.scan(),v=_r.getTokenPos()}}return Ye(Qe,hr.kind,{end:hr.end,pos:Dr},hr.parent)},Be)}R.forEachTokenWithTrivia=z;function y(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile(),Qe=Be.text,_r=Be.languageVariant!==te.LanguageVariant.JSX;return U(X,Dr=>{if(Dr.pos!==Dr.end&&(Dr.kind!==te.SyntaxKind.JsxText&&te.forEachLeadingCommentRange(Qe,Dr.pos===0?(te.getShebang(Qe)||"").length:Dr.pos,hr),_r||oe(Dr)))return te.forEachTrailingCommentRange(Qe,Dr.end,hr)},Be);function hr(Dr,Me,v){Ye(Qe,{pos:Dr,end:Me,kind:v})}}R.forEachComment=y;function oe(X){switch(X.kind){case te.SyntaxKind.CloseBraceToken:return X.parent.kind!==te.SyntaxKind.JsxExpression||!ve(X.parent.parent);case te.SyntaxKind.GreaterThanToken:switch(X.parent.kind){case te.SyntaxKind.JsxOpeningElement:return X.end!==X.parent.end;case te.SyntaxKind.JsxOpeningFragment:return!1;case te.SyntaxKind.JsxSelfClosingElement:return X.end!==X.parent.end||!ve(X.parent.parent);case te.SyntaxKind.JsxClosingElement:case te.SyntaxKind.JsxClosingFragment:return!ve(X.parent.parent.parent)}}return!0}function ve(X){return X.kind===te.SyntaxKind.JsxElement||X.kind===te.SyntaxKind.JsxFragment}function ce(X){let Ye=X.getLineStarts(),Be=[],Qe=Ye.length,_r=X.text,hr=0;for(let Dr=1;Dr<Qe;++Dr){let Me=Ye[Dr],v=Me;for(;v>hr&&te.isLineBreak(_r.charCodeAt(v-1));--v);Be.push({pos:hr,end:Me,contentLength:v-hr}),hr=Me}return Be.push({pos:hr,end:X.end,contentLength:X.end-hr}),Be}R.getLineRanges=ce;function m(X){let Ye=X.getLineStarts();return Ye.length===1||Ye[1]<2||X.text[Ye[1]-2]!=="\r"?`
|
|
`:`\r
|
|
`}R.getLineBreakStyle=m;var de;function ae(X,Ye){return de===void 0?de=te.createScanner(Ye,!1,void 0,X):(de.setScriptTarget(Ye),de.setText(X)),de.scan(),de}function V(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest,Be=ae(X,Ye);return Be.isIdentifier()&&Be.getTextPos()===X.length&&Be.getTokenPos()===0}R.isValidIdentifier=V;function le(X){return X>=65536?2:1}function ke(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(X.length===0)return!1;let Be=X.codePointAt(0);if(!te.isIdentifierStart(Be,Ye))return!1;for(let Qe=le(Be);Qe<X.length;Qe+=le(Be))if(Be=X.codePointAt(Qe),!te.isIdentifierPart(Be,Ye))return!1;return!0}R.isValidPropertyAccess=ke;function Ue(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(ke(X,Ye))return!0;let Be=ae(X,Ye);return Be.getTextPos()===X.length&&Be.getToken()===te.SyntaxKind.NumericLiteral&&Be.getTokenValue()===X}R.isValidPropertyName=Ue;function He(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest,Be=ae(X,Ye);return Be.getToken()===te.SyntaxKind.NumericLiteral&&Be.getTextPos()===X.length&&Be.getTokenPos()===0}R.isValidNumericLiteral=He;function ar(X){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.ScriptTarget.Latest;if(X.length===0)return!1;let Be=!1,Qe=X.codePointAt(0);if(!te.isIdentifierStart(Qe,Ye))return!1;for(let _r=le(Qe);_r<X.length;_r+=le(Qe))if(Qe=X.codePointAt(_r),!te.isIdentifierPart(Qe,Ye)&&Qe!==45)if(!Be&&Qe===58&&_r+le(Qe)!==X.length)Be=!0;else return!1;return!0}R.isValidJsxIdentifier=ar;function gr(X){return String(+X)===X}R.isNumericPropertyName=gr;function me(X,Ye,Be){return te.getLineAndCharacterOfPosition(X,Ye).line===te.getLineAndCharacterOfPosition(X,Be).line}R.isSameLine=me;var Ge;(function(X){X[X.None=0]="None",X[X.TaggedTemplate=1]="TaggedTemplate",X[X.Constructor=2]="Constructor",X[X.JsxElement=4]="JsxElement"})(Ge=R.SideEffectOptions||(R.SideEffectOptions={}));function er(X,Ye){var Be,Qe;let _r=[];for(;;){switch(X.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.DeleteExpression:return!0;case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.PropertyAccessExpression:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.PartiallyEmittedExpression:X=X.expression;continue;case te.SyntaxKind.BinaryExpression:if(ir(X.operatorToken.kind))return!0;_r.push(X.right),X=X.left;continue;case te.SyntaxKind.PrefixUnaryExpression:switch(X.operator){case te.SyntaxKind.PlusPlusToken:case te.SyntaxKind.MinusMinusToken:return!0;default:X=X.operand;continue}case te.SyntaxKind.ElementAccessExpression:X.argumentExpression!==void 0&&_r.push(X.argumentExpression),X=X.expression;continue;case te.SyntaxKind.ConditionalExpression:_r.push(X.whenTrue,X.whenFalse),X=X.condition;continue;case te.SyntaxKind.NewExpression:if(Ye&2)return!0;X.arguments!==void 0&&_r.push(...X.arguments),X=X.expression;continue;case te.SyntaxKind.TaggedTemplateExpression:if(Ye&1)return!0;if(_r.push(X.tag),X=X.template,X.kind===te.SyntaxKind.NoSubstitutionTemplateLiteral)break;case te.SyntaxKind.TemplateExpression:for(let hr of X.templateSpans)_r.push(hr.expression);break;case te.SyntaxKind.ClassExpression:{if(X.decorators!==void 0)return!0;for(let Dr of X.members){if(Dr.decorators!==void 0)return!0;if(!W(Dr.modifiers,te.SyntaxKind.DeclareKeyword))if(((Be=Dr.name)===null||Be===void 0?void 0:Be.kind)===te.SyntaxKind.ComputedPropertyName&&_r.push(Dr.name.expression),qe.isMethodDeclaration(Dr)){for(let Me of Dr.parameters)if(Me.decorators!==void 0)return!0}else qe.isPropertyDeclaration(Dr)&&Dr.initializer!==void 0&&W(Dr.modifiers,te.SyntaxKind.StaticKeyword)&&_r.push(Dr.initializer)}let hr=di(X);if(hr===void 0)break;X=hr.expression;continue}case te.SyntaxKind.ArrayLiteralExpression:_r.push(...X.elements);break;case te.SyntaxKind.ObjectLiteralExpression:for(let hr of X.properties)switch(((Qe=hr.name)===null||Qe===void 0?void 0:Qe.kind)===te.SyntaxKind.ComputedPropertyName&&_r.push(hr.name.expression),hr.kind){case te.SyntaxKind.PropertyAssignment:_r.push(hr.initializer);break;case te.SyntaxKind.SpreadAssignment:_r.push(hr.expression)}break;case te.SyntaxKind.JsxExpression:if(X.expression===void 0)break;X=X.expression;continue;case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:for(let hr of X.children)hr.kind!==te.SyntaxKind.JsxText&&_r.push(hr);if(X.kind===te.SyntaxKind.JsxFragment)break;X=X.openingElement;case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.JsxOpeningElement:if(Ye&4)return!0;for(let hr of X.attributes.properties)hr.kind===te.SyntaxKind.JsxSpreadAttribute?_r.push(hr.expression):hr.initializer!==void 0&&_r.push(hr.initializer);break;case te.SyntaxKind.CommaListExpression:_r.push(...X.elements)}if(_r.length===0)return!1;X=_r.pop()}}R.hasSideEffects=er;function he(X){let Ye=X.parent.parent;for(;Ye.kind===te.SyntaxKind.BindingElement;)Ye=Ye.parent.parent;return Ye}R.getDeclarationOfBindingElement=he;function we(X){for(;;){let Ye=X.parent;switch(Ye.kind){case te.SyntaxKind.CallExpression:case te.SyntaxKind.NewExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.ThrowStatement:case te.SyntaxKind.ReturnStatement:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.JsxSpreadAttribute:case te.SyntaxKind.JsxElement:case te.SyntaxKind.JsxFragment:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.ComputedPropertyName:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.ExportSpecifier:case te.SyntaxKind.ExportAssignment:case te.SyntaxKind.ImportDeclaration:case te.SyntaxKind.ExternalModuleReference:case te.SyntaxKind.Decorator:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.TemplateSpan:case te.SyntaxKind.ExpressionWithTypeArguments:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.LiteralType:case te.SyntaxKind.JsxAttributes:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxClosingElement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.CaseClause:case te.SyntaxKind.SwitchStatement:return!0;case te.SyntaxKind.PropertyAccessExpression:return Ye.expression===X;case te.SyntaxKind.QualifiedName:return Ye.left===X;case te.SyntaxKind.ShorthandPropertyAssignment:return Ye.objectAssignmentInitializer===X||!ye(Ye);case te.SyntaxKind.PropertyAssignment:return Ye.initializer===X&&!ye(Ye);case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.ArrayLiteralExpression:return!ye(Ye);case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.AsExpression:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.PostfixUnaryExpression:case te.SyntaxKind.PrefixUnaryExpression:case te.SyntaxKind.NonNullExpression:X=Ye;continue;case te.SyntaxKind.ForStatement:return Ye.condition===X;case te.SyntaxKind.ForInStatement:case te.SyntaxKind.ForOfStatement:return Ye.expression===X;case te.SyntaxKind.ConditionalExpression:if(Ye.condition===X)return!0;X=Ye;break;case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.BindingElement:case te.SyntaxKind.VariableDeclaration:case te.SyntaxKind.Parameter:case te.SyntaxKind.EnumMember:return Ye.initializer===X;case te.SyntaxKind.ImportEqualsDeclaration:return Ye.moduleReference===X;case te.SyntaxKind.CommaListExpression:if(Ye.elements[Ye.elements.length-1]!==X)return!1;X=Ye;break;case te.SyntaxKind.BinaryExpression:if(Ye.right===X){if(Ye.operatorToken.kind===te.SyntaxKind.CommaToken){X=Ye;break}return!0}switch(Ye.operatorToken.kind){case te.SyntaxKind.CommaToken:case te.SyntaxKind.EqualsToken:return!1;case te.SyntaxKind.EqualsEqualsEqualsToken:case te.SyntaxKind.EqualsEqualsToken:case te.SyntaxKind.ExclamationEqualsEqualsToken:case te.SyntaxKind.ExclamationEqualsToken:case te.SyntaxKind.InstanceOfKeyword:case te.SyntaxKind.PlusToken:case te.SyntaxKind.MinusToken:case te.SyntaxKind.AsteriskToken:case te.SyntaxKind.SlashToken:case te.SyntaxKind.PercentToken:case te.SyntaxKind.AsteriskAsteriskToken:case te.SyntaxKind.GreaterThanToken:case te.SyntaxKind.GreaterThanGreaterThanToken:case te.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case te.SyntaxKind.GreaterThanEqualsToken:case te.SyntaxKind.LessThanToken:case te.SyntaxKind.LessThanLessThanToken:case te.SyntaxKind.LessThanEqualsToken:case te.SyntaxKind.AmpersandToken:case te.SyntaxKind.BarToken:case te.SyntaxKind.CaretToken:case te.SyntaxKind.BarBarToken:case te.SyntaxKind.AmpersandAmpersandToken:case te.SyntaxKind.QuestionQuestionToken:case te.SyntaxKind.InKeyword:case te.SyntaxKind.QuestionQuestionEqualsToken:case te.SyntaxKind.AmpersandAmpersandEqualsToken:case te.SyntaxKind.BarBarEqualsToken:return!0;default:X=Ye}break;default:return!1}}}R.isExpressionValueUsed=we;function ye(X){switch(X.kind){case te.SyntaxKind.ShorthandPropertyAssignment:if(X.objectAssignmentInitializer!==void 0)return!0;case te.SyntaxKind.PropertyAssignment:case te.SyntaxKind.SpreadAssignment:X=X.parent;break;case te.SyntaxKind.SpreadElement:if(X.parent.kind!==te.SyntaxKind.ArrayLiteralExpression)return!1;X=X.parent}for(;;)switch(X.parent.kind){case te.SyntaxKind.BinaryExpression:return X.parent.left===X&&X.parent.operatorToken.kind===te.SyntaxKind.EqualsToken;case te.SyntaxKind.ForOfStatement:return X.parent.initializer===X;case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ObjectLiteralExpression:X=X.parent;break;case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.PropertyAssignment:X=X.parent.parent;break;case te.SyntaxKind.SpreadElement:if(X.parent.parent.kind!==te.SyntaxKind.ArrayLiteralExpression)return!1;X=X.parent.parent;break;default:return!1}}var Se;(function(X){X[X.None=0]="None",X[X.Read=1]="Read",X[X.Write=2]="Write",X[X.Delete=4]="Delete",X[X.ReadWrite=3]="ReadWrite",X[X.Modification=6]="Modification"})(Se=R.AccessKind||(R.AccessKind={}));function ge(X){let Ye=X.parent;switch(Ye.kind){case te.SyntaxKind.DeleteExpression:return 4;case te.SyntaxKind.PostfixUnaryExpression:return 3;case te.SyntaxKind.PrefixUnaryExpression:return Ye.operator===te.SyntaxKind.PlusPlusToken||Ye.operator===te.SyntaxKind.MinusMinusToken?3:1;case te.SyntaxKind.BinaryExpression:return Ye.right===X?1:ir(Ye.operatorToken.kind)?Ye.operatorToken.kind===te.SyntaxKind.EqualsToken?2:3:1;case te.SyntaxKind.ShorthandPropertyAssignment:return Ye.objectAssignmentInitializer===X?1:ye(Ye)?2:1;case te.SyntaxKind.PropertyAssignment:return Ye.name===X?0:ye(Ye)?2:1;case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.SpreadElement:case te.SyntaxKind.SpreadAssignment:return ye(Ye)?2:1;case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.NonNullExpression:case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:return ge(Ye);case te.SyntaxKind.ForOfStatement:case te.SyntaxKind.ForInStatement:return Ye.initializer===X?2:1;case te.SyntaxKind.ExpressionWithTypeArguments:return Ye.parent.token===te.SyntaxKind.ExtendsKeyword&&Ye.parent.parent.kind!==te.SyntaxKind.InterfaceDeclaration?1:0;case te.SyntaxKind.ComputedPropertyName:case te.SyntaxKind.ExpressionStatement:case te.SyntaxKind.TypeOfExpression:case te.SyntaxKind.ElementAccessExpression:case te.SyntaxKind.ForStatement:case te.SyntaxKind.IfStatement:case te.SyntaxKind.DoStatement:case te.SyntaxKind.WhileStatement:case te.SyntaxKind.SwitchStatement:case te.SyntaxKind.WithStatement:case te.SyntaxKind.ThrowStatement:case te.SyntaxKind.CallExpression:case te.SyntaxKind.NewExpression:case te.SyntaxKind.TaggedTemplateExpression:case te.SyntaxKind.JsxExpression:case te.SyntaxKind.Decorator:case te.SyntaxKind.TemplateSpan:case te.SyntaxKind.JsxOpeningElement:case te.SyntaxKind.JsxSelfClosingElement:case te.SyntaxKind.JsxSpreadAttribute:case te.SyntaxKind.VoidExpression:case te.SyntaxKind.ReturnStatement:case te.SyntaxKind.AwaitExpression:case te.SyntaxKind.YieldExpression:case te.SyntaxKind.ConditionalExpression:case te.SyntaxKind.CaseClause:case te.SyntaxKind.JsxElement:return 1;case te.SyntaxKind.ArrowFunction:return Ye.body===X?1:2;case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.VariableDeclaration:case te.SyntaxKind.Parameter:case te.SyntaxKind.EnumMember:case te.SyntaxKind.BindingElement:case te.SyntaxKind.JsxAttribute:return Ye.initializer===X?1:0;case te.SyntaxKind.PropertyAccessExpression:return Ye.expression===X?1:0;case te.SyntaxKind.ExportAssignment:return Ye.isExportEquals?1:0}return 0}R.getAccessKind=ge;function Fe(X){return(ge(X)&2)!==0}R.isReassignmentTarget=Fe;function cr(X){switch(X.kind){case te.SyntaxKind.Parameter:case te.SyntaxKind.CallSignature:case te.SyntaxKind.ConstructSignature:case te.SyntaxKind.MethodSignature:case te.SyntaxKind.PropertySignature:case te.SyntaxKind.ArrowFunction:case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.SpreadAssignment:case te.SyntaxKind.ShorthandPropertyAssignment:case te.SyntaxKind.PropertyAssignment:case te.SyntaxKind.FunctionExpression:case te.SyntaxKind.LabeledStatement:case te.SyntaxKind.ExpressionStatement:case te.SyntaxKind.VariableStatement:case te.SyntaxKind.FunctionDeclaration:case te.SyntaxKind.Constructor:case te.SyntaxKind.MethodDeclaration:case te.SyntaxKind.PropertyDeclaration:case te.SyntaxKind.GetAccessor:case te.SyntaxKind.SetAccessor:case te.SyntaxKind.ClassDeclaration:case te.SyntaxKind.ClassExpression:case te.SyntaxKind.InterfaceDeclaration:case te.SyntaxKind.TypeAliasDeclaration:case te.SyntaxKind.EnumMember:case te.SyntaxKind.EnumDeclaration:case te.SyntaxKind.ModuleDeclaration:case te.SyntaxKind.ImportEqualsDeclaration:case te.SyntaxKind.ImportDeclaration:case te.SyntaxKind.NamespaceExportDeclaration:case te.SyntaxKind.ExportAssignment:case te.SyntaxKind.IndexSignature:case te.SyntaxKind.FunctionType:case te.SyntaxKind.ConstructorType:case te.SyntaxKind.JSDocFunctionType:case te.SyntaxKind.ExportDeclaration:case te.SyntaxKind.NamedTupleMember:case te.SyntaxKind.EndOfFileToken:return!0;default:return!1}}R.canHaveJsDoc=cr;function ur(X,Ye){let Be=[];for(let Qe of X.getChildren(Ye)){if(!qe.isJsDoc(Qe))break;Be.push(Qe)}return Be}R.getJsDoc=ur;function Ir(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.getSourceFile();if(cr(X)&&X.kind!==te.SyntaxKind.EndOfFileToken){let Qe=ur(X,Be);if(Qe.length!==0||!Ye)return Qe}return dr(X,X.getStart(Be),Be,Ye)}R.parseJsDocOfNode=Ir;function dr(X,Ye,Be,Qe){let _r=te[Qe&&me(Be,X.pos,Ye)?"forEachTrailingCommentRange":"forEachLeadingCommentRange"](Be.text,X.pos,(ze,Je,Oe)=>Oe===te.SyntaxKind.MultiLineCommentTrivia&&Be.text[ze+2]==="*"?{pos:ze}:void 0);if(_r===void 0)return[];let hr=_r.pos,Dr=Be.text.slice(hr,Ye),Me=te.createSourceFile("jsdoc.ts","".concat(Dr,"var a;"),Be.languageVersion),v=ur(Me.statements[0],Me);for(let ze of v)xe(ze,X);return v;function xe(ze,Je){return ze.pos+=hr,ze.end+=hr,ze.parent=Je,te.forEachChild(ze,Oe=>xe(Oe,ze),Oe=>{Oe.pos+=hr,Oe.end+=hr;for(let Fr of Oe)xe(Fr,ze)})}}var Br;(function(X){X[X.ImportDeclaration=1]="ImportDeclaration",X[X.ImportEquals=2]="ImportEquals",X[X.ExportFrom=4]="ExportFrom",X[X.DynamicImport=8]="DynamicImport",X[X.Require=16]="Require",X[X.ImportType=32]="ImportType",X[X.All=63]="All",X[X.AllImports=59]="AllImports",X[X.AllStaticImports=3]="AllStaticImports",X[X.AllImportExpressions=24]="AllImportExpressions",X[X.AllRequireLike=18]="AllRequireLike",X[X.AllNestedImports=56]="AllNestedImports",X[X.AllTopLevelImports=7]="AllTopLevelImports"})(Br=R.ImportKind||(R.ImportKind={}));function Tr(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Qe=[];for(let hr of n(X,Ye,Be))switch(hr.kind){case te.SyntaxKind.ImportDeclaration:_r(hr.moduleSpecifier);break;case te.SyntaxKind.ImportEqualsDeclaration:_r(hr.moduleReference.expression);break;case te.SyntaxKind.ExportDeclaration:_r(hr.moduleSpecifier);break;case te.SyntaxKind.CallExpression:_r(hr.arguments[0]);break;case te.SyntaxKind.ImportType:qe.isLiteralTypeNode(hr.argument)&&_r(hr.argument.literal);break;default:throw new Error("unexpected node")}return Qe;function _r(hr){qe.isTextualLiteral(hr)&&Qe.push(hr)}}R.findImports=Tr;function n(X,Ye){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return new Er(X,Ye,Be).find()}R.findImportLikeNodes=n;var Er=class{constructor(X,Ye,Be){this._sourceFile=X,this._options=Ye,this._ignoreFileName=Be,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),this._options&7&&this._findImports(this._sourceFile.statements),this._options&56&&this._findNestedImports(),this._result}_findImports(X){for(let Ye of X)qe.isImportDeclaration(Ye)?this._options&1&&this._result.push(Ye):qe.isImportEqualsDeclaration(Ye)?this._options&2&&Ye.moduleReference.kind===te.SyntaxKind.ExternalModuleReference&&this._result.push(Ye):qe.isExportDeclaration(Ye)?Ye.moduleSpecifier!==void 0&&this._options&4&&this._result.push(Ye):qe.isModuleDeclaration(Ye)&&this._findImportsInModule(Ye)}_findImportsInModule(X){if(X.body!==void 0){if(X.body.kind===te.SyntaxKind.ModuleDeclaration)return this._findImportsInModule(X.body);this._findImports(X.body.statements)}}_findNestedImports(){let X=this._ignoreFileName||(this._sourceFile.flags&te.NodeFlags.JavaScriptFile)!==0,Ye,Be;if((this._options&56)===16){if(!X)return;Ye=/\brequire\s*[</(]/g,Be=!1}else this._options&16&&X?(Ye=/\b(?:import|require)\s*[</(]/g,Be=(this._options&32)!==0):(Ye=/\bimport\s*[</(]/g,Be=X&&(this._options&32)!==0);for(let Qe=Ye.exec(this._sourceFile.text);Qe!==null;Qe=Ye.exec(this._sourceFile.text)){let _r=G(this._sourceFile,Qe.index,this._sourceFile,Qe[0][0]==="i"&&Be);if(_r.kind===te.SyntaxKind.ImportKeyword){if(_r.end-6!==Qe.index)continue;switch(_r.parent.kind){case te.SyntaxKind.ImportType:this._result.push(_r.parent);break;case te.SyntaxKind.CallExpression:_r.parent.arguments.length>1&&this._result.push(_r.parent)}}else _r.kind===te.SyntaxKind.Identifier&&_r.end-7===Qe.index&&_r.parent.kind===te.SyntaxKind.CallExpression&&_r.parent.expression===_r&&_r.parent.arguments.length===1&&this._result.push(_r.parent)}}};function br(X){for(;X.flags&te.NodeFlags.NestedNamespace;)X=X.parent;return W(X.modifiers,te.SyntaxKind.DeclareKeyword)||Pr(X.parent)}R.isStatementInAmbientContext=br;function Pr(X){for(;X.kind===te.SyntaxKind.ModuleBlock;){do X=X.parent;while(X.flags&te.NodeFlags.NestedNamespace);if(W(X.modifiers,te.SyntaxKind.DeclareKeyword))return!0;X=X.parent}return!1}R.isAmbientModuleBlock=Pr;function Ce(X){let Ye=X.parent;for(;Ye.kind===te.SyntaxKind.ParenthesizedExpression;)Ye=Ye.parent;return qe.isCallExpression(Ye)&&X.end<=Ye.expression.end?Ye:void 0}R.getIIFE=Ce;function Le(X,Ye){return(X.strict?X[Ye]!==!1:X[Ye]===!0)&&(Ye!=="strictPropertyInitialization"||Le(X,"strictNullChecks"))}R.isStrictCompilerOptionEnabled=Le;function Xe(X,Ye){switch(Ye){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return X[Ye]===!0&&Xe(X,"declaration");case"declaration":return X.declaration||Xe(X,"composite");case"incremental":return X.incremental===void 0?Xe(X,"composite"):X.incremental;case"skipDefaultLibCheck":return X.skipDefaultLibCheck||Xe(X,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return X.suppressImplicitAnyIndexErrors===!0&&Xe(X,"noImplicitAny");case"allowSyntheticDefaultImports":return X.allowSyntheticDefaultImports!==void 0?X.allowSyntheticDefaultImports:Xe(X,"esModuleInterop")||X.module===te.ModuleKind.System;case"noUncheckedIndexedAccess":return X.noUncheckedIndexedAccess===!0&&Xe(X,"strictNullChecks");case"allowJs":return X.allowJs===void 0?Xe(X,"checkJs"):X.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return Le(X,Ye)}return X[Ye]===!0}R.isCompilerOptionEnabled=Xe;function Cr(X){return X.name.kind===te.SyntaxKind.StringLiteral||(X.flags&te.NodeFlags.GlobalAugmentation)!==0}R.isAmbientModule=Cr;function Lr(X){return Jr(X)}R.getCheckJsDirective=Lr;function Jr(X){let Ye;return te.forEachLeadingCommentRange(X,(te.getShebang(X)||"").length,(Be,Qe,_r)=>{if(_r===te.SyntaxKind.SingleLineCommentTrivia){let hr=X.slice(Be,Qe),Dr=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(hr);Dr!==null&&(Ye={pos:Be,end:Qe,enabled:Dr[1]===void 0})}}),Ye}R.getTsCheckDirective=Jr;function Rr(X){return qe.isTypeReferenceNode(X.type)&&X.type.typeName.kind===te.SyntaxKind.Identifier&&X.type.typeName.escapedText==="const"}R.isConstAssertion=Rr;function ci(X){let Ye=X;for(;;){let Be=Ye.parent;e:switch(Be.kind){case te.SyntaxKind.TypeAssertionExpression:case te.SyntaxKind.AsExpression:return Rr(Be);case te.SyntaxKind.PrefixUnaryExpression:if(Ye.kind!==te.SyntaxKind.NumericLiteral)return!1;switch(Be.operator){case te.SyntaxKind.PlusToken:case te.SyntaxKind.MinusToken:Ye=Be;break e;default:return!1}case te.SyntaxKind.PropertyAssignment:if(Be.initializer!==Ye)return!1;Ye=Be.parent;break;case te.SyntaxKind.ShorthandPropertyAssignment:Ye=Be.parent;break;case te.SyntaxKind.ParenthesizedExpression:case te.SyntaxKind.ArrayLiteralExpression:case te.SyntaxKind.ObjectLiteralExpression:case te.SyntaxKind.TemplateExpression:Ye=Be;break;default:return!1}}}R.isInConstContext=ci;function be(X,Ye){if(!or(X))return!1;let Be=Ye.getTypeAtLocation(X.arguments[2]);if(Be.getProperty("value")===void 0)return Be.getProperty("set")===void 0;let Qe=Be.getProperty("writable");if(Qe===void 0)return!1;let _r=Qe.valueDeclaration!==void 0&&qe.isPropertyAssignment(Qe.valueDeclaration)?Ye.getTypeAtLocation(Qe.valueDeclaration.initializer):Ye.getTypeOfSymbolAtLocation(Qe,X.arguments[2]);return ni.isBooleanLiteralType(_r,!1)}R.isReadonlyAssignmentDeclaration=be;function or(X){return X.arguments.length===3&&qe.isEntityNameExpression(X.arguments[0])&&qe.isNumericOrStringLikeLiteral(X.arguments[1])&&qe.isPropertyAccessExpression(X.expression)&&X.expression.name.escapedText==="defineProperty"&&qe.isIdentifier(X.expression.expression)&&X.expression.expression.escapedText==="Object"}R.isBindableObjectDefinePropertyCall=or;function Kr(X){return te.isPropertyAccessExpression(X)&&te.isIdentifier(X.expression)&&X.expression.escapedText==="Symbol"}R.isWellKnownSymbolLiterally=Kr;function ei(X){return{displayName:"[Symbol.".concat(X.name.text,"]"),symbolName:"__@"+X.name.text}}R.getPropertyNameOfWellKnownSymbol=ei;var li=(X=>{let[Ye,Be]=X;return Ye<"4"||Ye==="4"&&Be<"3"})(te.versionMajorMinor.split("."));function Si(X,Ye){let Be={known:!0,names:[]};if(X=bt(X),li&&Kr(X))Be.names.push(ei(X));else{let Qe=Ye.getTypeAtLocation(X);for(let _r of ni.unionTypeParts(Ye.getBaseConstraintOfType(Qe)||Qe)){let hr=ni.getPropertyNameFromType(_r);hr?Be.names.push(hr):Be.known=!1}}return Be}R.getLateBoundPropertyNames=Si;function qi(X,Ye){let Be=ie(X);return Be!==void 0?{known:!0,names:[{displayName:Be,symbolName:te.escapeLeadingUnderscores(Be)}]}:X.kind===te.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:X.text,symbolName:Ye.getSymbolAtLocation(X).escapedName}]}:Si(X.expression,Ye)}R.getLateBoundPropertyNamesOfPropertyName=qi;function ft(X,Ye){let Be=ie(X);if(Be!==void 0)return{displayName:Be,symbolName:te.escapeLeadingUnderscores(Be)};if(X.kind===te.SyntaxKind.PrivateIdentifier)return{displayName:X.text,symbolName:Ye.getSymbolAtLocation(X).escapedName};let{expression:Qe}=X;return li&&Kr(Qe)?ei(Qe):ni.getPropertyNameFromType(Ye.getTypeAtLocation(Qe))}R.getSingleLateBoundPropertyNameOfPropertyName=ft;function bt(X){for(;X.kind===te.SyntaxKind.ParenthesizedExpression;)X=X.expression;return X}R.unwrapParentheses=bt;function aa(X){return"".concat(X.negative?"-":"").concat(X.base10Value,"n")}R.formatPseudoBigInt=aa;function sr(X,Ye){let Be=X.caseBlock.clauses.filter(qe.isCaseClause);if(Be.length===0)return!1;let Qe=ni.unionTypeParts(Ye.getTypeAtLocation(X.expression));if(Qe.length>Be.length)return!1;let _r=new Set(Qe.map(Ji));if(_r.has(void 0))return!1;let hr=new Set;for(let Dr of Be){let Me=Ye.getTypeAtLocation(Dr.expression);if(R.isTypeFlagSet(Me,te.TypeFlags.Never))continue;let v=Ji(Me);if(_r.has(v))hr.add(v);else if(v!=="null"&&v!=="undefined")return!1}return _r.size===hr.size}R.hasExhaustiveCaseClauses=sr;function Ji(X){if(R.isTypeFlagSet(X,te.TypeFlags.Null))return"null";if(R.isTypeFlagSet(X,te.TypeFlags.Undefined))return"undefined";if(R.isTypeFlagSet(X,te.TypeFlags.NumberLiteral))return"".concat(R.isTypeFlagSet(X,te.TypeFlags.EnumLiteral)?"enum:":"").concat(X.value);if(R.isTypeFlagSet(X,te.TypeFlags.StringLiteral))return"".concat(R.isTypeFlagSet(X,te.TypeFlags.EnumLiteral)?"enum:":"","string:").concat(X.value);if(R.isTypeFlagSet(X,te.TypeFlags.BigIntLiteral))return aa(X.value);if(Ve.isUniqueESSymbolType(X))return X.escapedName;if(ni.isBooleanLiteralType(X,!0))return"true";if(ni.isBooleanLiteralType(X,!1))return"false"}function di(X){var Ye;if(((Ye=X.heritageClauses)===null||Ye===void 0?void 0:Ye[0].token)===te.SyntaxKind.ExtendsKeyword)return X.heritageClauses[0].types[0]}R.getBaseOfClassLikeExpression=di}}),xU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(Pe,e,a,O){O===void 0&&(O=a);var L=Object.getOwnPropertyDescriptor(e,a);(!L||("get"in L?!e.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(Pe,O,L)}:function(Pe,e,a,O){O===void 0&&(O=a),Pe[O]=e[a]}),qe=R&&R.__setModuleDefault||(Object.create?function(Pe,e){Object.defineProperty(Pe,"default",{enumerable:!0,value:e})}:function(Pe,e){Pe.default=e}),Ve=R&&R.__importStar||function(Pe){if(Pe&&Pe.__esModule)return Pe;var e={};if(Pe!=null)for(var a in Pe)a!=="default"&&Object.prototype.hasOwnProperty.call(Pe,a)&&te(e,Pe,a);return qe(e,Pe),e};Object.defineProperty(R,"__esModule",{value:!0}),R.convertComments=void 0;var ni=Ve(Lu()),wr=wN(),fr=_1(),Mr=f1();function ir(Pe,e){let a=[];return(0,wr.forEachComment)(Pe,(O,L)=>{let W=L.kind==ni.SyntaxKind.SingleLineCommentTrivia?Mr.AST_TOKEN_TYPES.Line:Mr.AST_TOKEN_TYPES.Block,N=[L.pos,L.end],Q=(0,fr.getLocFor)(N[0],N[1],Pe),pe=N[0]+2,F=L.kind===ni.SyntaxKind.SingleLineCommentTrivia?N[1]-pe:N[1]-pe-2;a.push({type:W,value:e.slice(pe,pe+F),range:N,loc:Q})},Pe),a}R.convertComments=ir}}),ON=Aa({"node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0});var te={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXClosingFragment:[],JSXOpeningFragment:[],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},qe=Object.keys(te);for(let Mr of qe)Object.freeze(te[Mr]);Object.freeze(te);var Ve=new Set(["parent","leadingComments","trailingComments"]);function ni(Mr){return!Ve.has(Mr)&&Mr[0]!=="_"}function wr(Mr){return Object.keys(Mr).filter(ni)}function fr(Mr){let ir=Object.assign({},te);for(let Pe of Object.keys(Mr))if(Object.prototype.hasOwnProperty.call(ir,Pe)){let e=new Set(Mr[Pe]);for(let a of ir[Pe])e.add(a);ir[Pe]=Object.freeze(Array.from(e))}else ir[Pe]=Object.freeze(Array.from(Mr[Pe]));return Object.freeze(ir)}R.KEYS=te,R.getKeys=wr,R.unionWith=fr}}),EU=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getKeys=void 0;var te=ON(),qe=te.getKeys;R.getKeys=qe}}),CU=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(Mr,ir,Pe,e){e===void 0&&(e=Pe);var a=Object.getOwnPropertyDescriptor(ir,Pe);(!a||("get"in a?!ir.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return ir[Pe]}}),Object.defineProperty(Mr,e,a)}:function(Mr,ir,Pe,e){e===void 0&&(e=Pe),Mr[e]=ir[Pe]}),qe=R&&R.__setModuleDefault||(Object.create?function(Mr,ir){Object.defineProperty(Mr,"default",{enumerable:!0,value:ir})}:function(Mr,ir){Mr.default=ir}),Ve=R&&R.__importStar||function(Mr){if(Mr&&Mr.__esModule)return Mr;var ir={};if(Mr!=null)for(var Pe in Mr)Pe!=="default"&&Object.prototype.hasOwnProperty.call(Mr,Pe)&&te(ir,Mr,Pe);return qe(ir,Mr),ir};Object.defineProperty(R,"__esModule",{value:!0}),R.visitorKeys=void 0;var ni=Ve(ON()),wr={ImportAttribute:["key","value"],ArrayPattern:["decorators","elements","typeAnnotation"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],AssignmentPattern:["decorators","left","right","typeAnnotation"],CallExpression:["callee","typeParameters","arguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ExportAllDeclaration:["exported","source","assertions"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["decorators","typeAnnotation"],ImportDeclaration:["specifiers","source","assertions"],ImportExpression:["source","attributes"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","typeParameters","arguments"],ObjectPattern:["decorators","properties","typeAnnotation"],PropertyDefinition:["decorators","key","typeAnnotation","value"],RestElement:["decorators","argument","typeAnnotation"],TaggedTemplateExpression:["tag","typeParameters","quasi"],StaticBlock:["body"],JSXOpeningElement:["name","typeParameters","attributes"],JSXClosingFragment:[],JSXOpeningFragment:[],JSXSpreadChild:["expression"],Decorator:["expression"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAnyKeyword:[],TSArrayType:["elementType"],TSAsExpression:["expression","typeAnnotation"],TSAsyncKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSCallSignatureDeclaration:["typeParameters","params","returnType"],TSClassImplements:["expression","typeParameters"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSConstructorType:["typeParameters","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","params","returnType"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSExportAssignment:["expression"],TSExportKeyword:[],TSExternalModuleReference:["expression"],TSFunctionType:["typeParameters","params","returnType"],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["parameter","qualifier","typeParameters"],TSIndexedAccessType:["indexType","objectType"],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:["typeParameter"],TSInterfaceBody:["body"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceHeritage:["expression","typeParameters"],TSIntersectionType:["types"],TSIntrinsicKeyword:[],TSLiteralType:["literal"],TSMappedType:["nameType","typeParameter","typeAnnotation"],TSMethodSignature:["typeParameters","key","params","returnType"],TSModuleBlock:["body"],TSModuleDeclaration:["id","body"],TSNamedTupleMember:["elementType"],TSNamespaceExportDeclaration:["id"],TSNeverKeyword:[],TSNonNullExpression:["expression"],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSOptionalType:["typeAnnotation"],TSParameterProperty:["decorators","parameter"],TSPrivateKeyword:[],TSPropertySignature:["typeAnnotation","key","initializer"],TSProtectedKeyword:[],TSPublicKeyword:[],TSQualifiedName:["left","right"],TSReadonlyKeyword:[],TSRestType:["typeAnnotation"],TSStaticKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSTemplateLiteralType:["quasis","types"],TSThisType:[],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:["typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSTypeLiteral:["members"],TSTypeOperator:["typeAnnotation"],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypePredicate:["typeAnnotation","parameterName"],TSTypeQuery:["exprName"],TSTypeReference:["typeName","typeParameters"],TSUndefinedKeyword:[],TSUnionType:["types"],TSUnknownKeyword:[],TSVoidKeyword:[]},fr=ni.unionWith(wr);R.visitorKeys=fr}}),FN=Aa({"node_modules/@typescript-eslint/visitor-keys/dist/index.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.visitorKeys=R.getKeys=void 0;var te=EU();Object.defineProperty(R,"getKeys",{enumerable:!0,get:function(){return te.getKeys}});var qe=CU();Object.defineProperty(R,"visitorKeys",{enumerable:!0,get:function(){return qe.visitorKeys}})}}),MN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.simpleTraverse=void 0;var te=FN();function qe(fr){return fr!==null&&typeof fr=="object"&&typeof fr.type=="string"}function Ve(fr,Mr){let ir=fr[Mr.type];return ir!=null?ir:[]}var ni=class{constructor(fr){let Mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.allVisitorKeys=te.visitorKeys,this.selectors=fr,this.setParentPointers=Mr}traverse(fr,Mr){if(!qe(fr))return;this.setParentPointers&&(fr.parent=Mr),"enter"in this.selectors?this.selectors.enter(fr,Mr):fr.type in this.selectors&&this.selectors[fr.type](fr,Mr);let ir=Ve(this.allVisitorKeys,fr);if(!(ir.length<1))for(let Pe of ir){let e=fr[Pe];if(Array.isArray(e))for(let a of e)this.traverse(a,fr);else this.traverse(e,fr)}}};function wr(fr,Mr){let ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;new ni(Mr,ir).traverse(fr,void 0)}R.simpleTraverse=wr}}),kU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.astConverter=void 0;var te=kN(),qe=xU(),Ve=_1(),ni=MN();function wr(fr,Mr,ir){let{parseDiagnostics:Pe}=fr;if(Pe.length)throw(0,te.convertError)(Pe[0]);let e=new te.Converter(fr,{errorOnUnknownASTType:Mr.errorOnUnknownASTType||!1,shouldPreserveNodeMaps:ir}),a=e.convertProgram();(!Mr.range||!Mr.loc)&&(0,ni.simpleTraverse)(a,{enter:L=>{Mr.range||delete L.range,Mr.loc||delete L.loc}}),Mr.tokens&&(a.tokens=(0,Ve.convertTokens)(fr)),Mr.comment&&(a.comments=(0,qe.convertComments)(fr,Mr.code));let O=e.getASTMaps();return{estree:a,astMaps:O}}R.astConverter=wr}}),xm=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(g,S,H,se){se===void 0&&(se=H);var p=Object.getOwnPropertyDescriptor(S,H);(!p||("get"in p?!S.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return S[H]}}),Object.defineProperty(g,se,p)}:function(g,S,H,se){se===void 0&&(se=H),g[se]=S[H]}),qe=R&&R.__setModuleDefault||(Object.create?function(g,S){Object.defineProperty(g,"default",{enumerable:!0,value:S})}:function(g,S){g.default=S}),Ve=R&&R.__importStar||function(g){if(g&&g.__esModule)return g;var S={};if(g!=null)for(var H in g)H!=="default"&&Object.prototype.hasOwnProperty.call(g,H)&&te(S,g,H);return qe(S,g),S},ni=R&&R.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(R,"__esModule",{value:!0}),R.getModuleResolver=R.getAstFromProgram=R.getScriptKind=R.getCanonicalFileName=R.ensureAbsolutePath=R.createDefaultCompilerOptionsFromExtra=R.canonicalDirname=R.CORE_COMPILER_OPTIONS=void 0;var wr=ni(Ly()),fr=Ve(Lu()),Mr={noEmit:!0,noUnusedLocals:!0,noUnusedParameters:!0};R.CORE_COMPILER_OPTIONS=Mr;var ir=Object.assign(Object.assign({},Mr),{allowNonTsExtensions:!0,allowJs:!0,checkJs:!0});function Pe(g){return g.debugLevel.has("typescript")?Object.assign(Object.assign({},ir),{extendedDiagnostics:!0}):ir}R.createDefaultCompilerOptionsFromExtra=Pe;var e=fr.sys!==void 0?fr.sys.useCaseSensitiveFileNames:!0,a=e?g=>g:g=>g.toLowerCase();function O(g){let S=wr.default.normalize(g);return S.endsWith(wr.default.sep)&&(S=S.slice(0,-1)),a(S)}R.getCanonicalFileName=O;function L(g,S){return wr.default.isAbsolute(g)?g:wr.default.join(S.tsconfigRootDir||"/prettier-security-dirname-placeholder",g)}R.ensureAbsolutePath=L;function W(g){return wr.default.dirname(g)}R.canonicalDirname=W;function N(g){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.filePath;switch(wr.default.extname(S).toLowerCase()){case".ts":return fr.ScriptKind.TS;case".tsx":return fr.ScriptKind.TSX;case".js":return fr.ScriptKind.JS;case".jsx":return fr.ScriptKind.JSX;case".json":return fr.ScriptKind.JSON;default:return g.jsx?fr.ScriptKind.TSX:fr.ScriptKind.TS}}R.getScriptKind=N;function Q(g){return g?g.endsWith(".d.ts")?".d.ts":wr.default.extname(g):null}function pe(g,S){let H=g.getSourceFile(S.filePath),se=Q(S.filePath),p=Q(H==null?void 0:H.fileName);if(se===p)return H&&{ast:H,program:g}}R.getAstFromProgram=pe;function F(g){let S;try{throw new Error("Dynamic require is not supported")}catch{let se=["Could not find the provided parserOptions.moduleResolver.","Hint: use an absolute path if you are not in control over where the ESLint instance runs."];throw new Error(se.join(`
|
|
`))}return S}R.getModuleResolver=F}}),AU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(a,O,L,W){W===void 0&&(W=L);var N=Object.getOwnPropertyDescriptor(O,L);(!N||("get"in N?!O.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return O[L]}}),Object.defineProperty(a,W,N)}:function(a,O,L,W){W===void 0&&(W=L),a[W]=O[L]}),qe=R&&R.__setModuleDefault||(Object.create?function(a,O){Object.defineProperty(a,"default",{enumerable:!0,value:O})}:function(a,O){a.default=O}),Ve=R&&R.__importStar||function(a){if(a&&a.__esModule)return a;var O={};if(a!=null)for(var L in a)L!=="default"&&Object.prototype.hasOwnProperty.call(a,L)&&te(O,a,L);return qe(O,a),O},ni=R&&R.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(R,"__esModule",{value:!0}),R.createDefaultProgram=void 0;var wr=ni(Tm()),fr=ni(Ly()),Mr=Ve(Lu()),ir=xm(),Pe=(0,wr.default)("typescript-eslint:typescript-estree:createDefaultProgram");function e(a,O){if(Pe("Getting default program for: %s",O.filePath||"unnamed file"),!O.projects||O.projects.length!==1)return;let L=O.projects[0],W=Mr.getParsedCommandLineOfConfigFile(L,(0,ir.createDefaultCompilerOptionsFromExtra)(O),Object.assign(Object.assign({},Mr.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!W)return;let N=Mr.createCompilerHost(W.options,!0);O.moduleResolver&&(N.resolveModuleNames=(0,ir.getModuleResolver)(O.moduleResolver).resolveModuleNames);let Q=N.readFile;N.readFile=g=>fr.default.normalize(g)===fr.default.normalize(O.filePath)?a:Q(g);let pe=Mr.createProgram([O.filePath],W.options,N),F=pe.getSourceFile(O.filePath);return F&&{ast:F,program:pe}}R.createDefaultProgram=e}}),PU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(e,a,O,L){L===void 0&&(L=O);var W=Object.getOwnPropertyDescriptor(a,O);(!W||("get"in W?!a.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return a[O]}}),Object.defineProperty(e,L,W)}:function(e,a,O,L){L===void 0&&(L=O),e[L]=a[O]}),qe=R&&R.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),Ve=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var O in e)O!=="default"&&Object.prototype.hasOwnProperty.call(e,O)&&te(a,e,O);return qe(a,e),a},ni=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createIsolatedProgram=void 0;var wr=ni(Tm()),fr=Ve(Lu()),Mr=xm(),ir=(0,wr.default)("typescript-eslint:typescript-estree:createIsolatedProgram");function Pe(e,a){ir("Getting isolated program in %s mode for: %s",a.jsx?"TSX":"TS",a.filePath);let O={fileExists(){return!0},getCanonicalFileName(){return a.filePath},getCurrentDirectory(){return""},getDirectories(){return[]},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return`
|
|
`},getSourceFile(N){return fr.createSourceFile(N,e,fr.ScriptTarget.Latest,!0,(0,Mr.getScriptKind)(a,N))},readFile(){},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},L=fr.createProgram([a.filePath],Object.assign({noResolve:!0,target:fr.ScriptTarget.Latest,jsx:a.jsx?fr.JsxEmit.Preserve:void 0},(0,Mr.createDefaultCompilerOptionsFromExtra)(a)),O),W=L.getSourceFile(a.filePath);if(!W)throw new Error("Expected an ast to be returned for the single-file isolated program.");return{ast:W,program:L}}R.createIsolatedProgram=Pe}}),LN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(B,re,M,x){x===void 0&&(x=M);var ie=Object.getOwnPropertyDescriptor(re,M);(!ie||("get"in ie?!re.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return re[M]}}),Object.defineProperty(B,x,ie)}:function(B,re,M,x){x===void 0&&(x=M),B[x]=re[M]}),qe=R&&R.__setModuleDefault||(Object.create?function(B,re){Object.defineProperty(B,"default",{enumerable:!0,value:re})}:function(B,re){B.default=re}),Ve=R&&R.__importStar||function(B){if(B&&B.__esModule)return B;var re={};if(B!=null)for(var M in B)M!=="default"&&Object.prototype.hasOwnProperty.call(B,M)&&te(re,B,M);return qe(re,B),re},ni=R&&R.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(R,"__esModule",{value:!0}),R.getProgramsForProjects=R.createWatchProgram=R.clearWatchCaches=void 0;var wr=ni(Tm()),fr=ni(OT()),Mr=ni(PT()),ir=Ve(Lu()),Pe=xm(),e=(0,wr.default)("typescript-eslint:typescript-estree:createWatchProgram"),a=new Map,O=new Map,L=new Map,W=new Map,N=new Map,Q=new Map;function pe(){a.clear(),O.clear(),L.clear(),Q.clear(),W.clear(),N.clear()}R.clearWatchCaches=pe;function F(B){return(re,M)=>{let x=(0,Pe.getCanonicalFileName)(re),ie=(()=>{let _e=B.get(x);return _e||(_e=new Set,B.set(x,_e)),_e})();return ie.add(M),{close:()=>{ie.delete(M)}}}}var g={code:"",filePath:""};function S(B){throw new Error(ir.flattenDiagnosticMessageText(B.messageText,ir.sys.newLine))}function H(B){var re;return!((re=ir.sys)===null||re===void 0)&&re.createHash?ir.sys.createHash(B):B}function se(B,re,M){let x=M.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(re.getSourceFiles().map(ie=>(0,Pe.getCanonicalFileName)(ie.fileName))):new Set(re.getRootFileNames().map(ie=>(0,Pe.getCanonicalFileName)(ie)));return W.set(B,x),x}function p(B,re,M){let x=(0,Pe.getCanonicalFileName)(re),ie=[];g.code=B,g.filePath=x;let _e=O.get(x),Y=H(B);Q.get(x)!==Y&&_e&&_e.size>0&&_e.forEach(Z=>Z(x,ir.FileWatcherEventKind.Changed));for(let[Z,k]of a.entries()){let I=W.get(Z),ne=null;if(I||(ne=k.getProgram().getProgram(),I=se(Z,ne,M)),I.has(x))return e("Found existing program for file. %s",x),ne=ne!=null?ne:k.getProgram().getProgram(),ne.getTypeChecker(),[ne]}e("File did not belong to any existing programs, moving to create/update. %s",x);for(let Z of M.projects){let k=a.get(Z);if(k){let A=ue(k,x,Z);if(!A)continue;if(A.getTypeChecker(),se(Z,A,M).has(x))return e("Found updated program for file. %s",x),[A];ie.push(A);continue}let I=G(Z,M);a.set(Z,I);let ne=I.getProgram().getProgram();if(ne.getTypeChecker(),se(Z,ne,M).has(x))return e("Found program for file. %s",x),[ne];ie.push(ne)}return ie}R.getProgramsForProjects=p;var C=Mr.default.satisfies(ir.version,">=3.9.0-beta",{includePrerelease:!0});function G(B,re){e("Creating watch program for %s.",B);let M=ir.createWatchCompilerHost(B,(0,Pe.createDefaultCompilerOptionsFromExtra)(re),ir.sys,ir.createAbstractBuilder,S,()=>{});re.moduleResolver&&(M.resolveModuleNames=(0,Pe.getModuleResolver)(re.moduleResolver).resolveModuleNames);let x=M.readFile;M.readFile=(Z,k)=>{let I=(0,Pe.getCanonicalFileName)(Z),ne=I===g.filePath?g.code:x(I,k);return ne!==void 0&&Q.set(I,H(ne)),ne},M.onUnRecoverableConfigFileDiagnostic=S,M.afterProgramCreate=Z=>{let k=Z.getConfigFileParsingDiagnostics().filter(I=>I.category===ir.DiagnosticCategory.Error&&I.code!==18003);k.length>0&&S(k[0])},M.watchFile=F(O),M.watchDirectory=F(L);let ie=M.onCachedDirectoryStructureHostCreate;M.onCachedDirectoryStructureHostCreate=Z=>{let k=Z.readDirectory;Z.readDirectory=(I,ne,ee,A,f)=>k(I,ne?ne.concat(re.extraFileExtensions):void 0,ee,A,f),ie(Z)},M.extraFileExtensions=re.extraFileExtensions.map(Z=>({extension:Z,isMixedContent:!0,scriptKind:ir.ScriptKind.Deferred})),M.trace=e,M.useSourceOfProjectReferenceRedirect=()=>re.EXPERIMENTAL_useSourceOfProjectReferenceRedirect;let _e;C?(M.setTimeout=void 0,M.clearTimeout=void 0):(e("Running without timeout fix"),M.setTimeout=function(Z,k){for(var I=arguments.length,ne=new Array(I>2?I-2:0),ee=2;ee<I;ee++)ne[ee-2]=arguments[ee];return _e=Z.bind(void 0,...ne),_e},M.clearTimeout=()=>{_e=void 0});let Y=ir.createWatchProgram(M);if(!C){let Z=Y.getProgram;Y.getProgram=()=>(_e&&_e(),_e=void 0,Z.call(Y))}return Y}R.createWatchProgram=G;function E(B){let M=fr.default.statSync(B).mtimeMs,x=N.get(B);return N.set(B,M),x===void 0?!1:Math.abs(x-M)>Number.EPSILON}function ue(B,re,M){let x=B.getProgram().getProgram();if(yl.env.TSESTREE_NO_INVALIDATION==="true")return x;E(M)&&(e("tsconfig has changed - triggering program update. %s",M),O.get(M).forEach(A=>A(M,ir.FileWatcherEventKind.Changed)),W.delete(M));let ie=x.getSourceFile(re);if(ie)return x;e("File was not found in program - triggering folder update. %s",re);let _e=(0,Pe.canonicalDirname)(re),Y=null,Z=_e,k=!1;for(;Y!==Z;){Y=Z;let A=L.get(Y);A&&(A.forEach(f=>{_e!==Y&&f(_e,ir.FileWatcherEventKind.Changed),f(Y,ir.FileWatcherEventKind.Changed)}),k=!0),Z=(0,Pe.canonicalDirname)(Y)}if(!k)return e("No callback found for file, not part of this program. %s",re),null;if(W.delete(M),x=B.getProgram().getProgram(),ie=x.getSourceFile(re),ie)return x;e("File was still not found in program after directory update - checking file deletions. %s",re);let ne=x.getRootFileNames().find(A=>!fr.default.existsSync(A));if(!ne)return null;let ee=O.get((0,Pe.getCanonicalFileName)(ne));return ee?(e("Marking file as deleted. %s",ne),ee.forEach(A=>A(ne,ir.FileWatcherEventKind.Deleted)),W.delete(M),x=B.getProgram().getProgram(),ie=x.getSourceFile(re),ie?x:(e("File was still not found in program after deletion check, assuming it is not part of this program. %s",re),null)):(e("Could not find watch callbacks for root file. %s",ne),x)}}}),NU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js"(R){"use strict";Sa();var te=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createProjectProgram=void 0;var qe=te(Tm()),Ve=te(Ly()),ni=LN(),wr=_1(),fr=xm(),Mr=(0,qe.default)("typescript-eslint:typescript-estree:createProjectProgram"),ir=[".ts",".tsx",".js",".jsx"];function Pe(e,a,O){Mr("Creating project program for: %s",O.filePath);let L=(0,wr.firstDefined)((0,ni.getProgramsForProjects)(e,O.filePath,O),W=>(0,fr.getAstFromProgram)(W,O));if(!L&&!a){let W=['"parserOptions.project" has been set for @typescript-eslint/parser.',"The file does not match your project config: ".concat(Ve.default.relative(O.tsconfigRootDir||"/prettier-security-dirname-placeholder",O.filePath),".")],N=!1,Q=O.extraFileExtensions||[];Q.forEach(F=>{F.startsWith(".")||W.push('Found unexpected extension "'.concat(F,'" specified with the "extraFileExtensions" option. Did you mean ".').concat(F,'"?')),ir.includes(F)&&W.push('You unnecessarily included the extension "'.concat(F,'" with the "extraFileExtensions" option. This extension is already handled by the parser by default.'))});let pe=Ve.default.extname(O.filePath);if(!ir.includes(pe)){let F="The extension for the file (".concat(pe,") is non-standard");Q.length>0?Q.includes(pe)||(W.push("".concat(F,'. It should be added to your existing "parserOptions.extraFileExtensions".')),N=!0):(W.push("".concat(F,'. You should add "parserOptions.extraFileExtensions" to your config.')),N=!0)}throw N||W.push("The file must be included in at least one of the projects provided."),new Error(W.join(`
|
|
`))}return L}R.createProjectProgram=Pe}}),IU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(e,a,O,L){L===void 0&&(L=O);var W=Object.getOwnPropertyDescriptor(a,O);(!W||("get"in W?!a.__esModule:W.writable||W.configurable))&&(W={enumerable:!0,get:function(){return a[O]}}),Object.defineProperty(e,L,W)}:function(e,a,O,L){L===void 0&&(L=O),e[L]=a[O]}),qe=R&&R.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}:function(e,a){e.default=a}),Ve=R&&R.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var O in e)O!=="default"&&Object.prototype.hasOwnProperty.call(e,O)&&te(a,e,O);return qe(a,e),a},ni=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.createSourceFile=void 0;var wr=ni(Tm()),fr=Ve(Lu()),Mr=xm(),ir=(0,wr.default)("typescript-eslint:typescript-estree:createSourceFile");function Pe(e,a){return ir("Getting AST without type information in %s mode for: %s",a.jsx?"TSX":"TS",a.filePath),fr.createSourceFile(a.filePath,e,fr.ScriptTarget.Latest,!0,(0,Mr.getScriptKind)(a))}R.createSourceFile=Pe}}),wU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js"(R){"use strict";Sa(),Object.defineProperty(R,"__esModule",{value:!0}),R.getFirstSemanticOrSyntacticError=void 0;var te=Lu();function qe(wr,fr){try{let Mr=Ve(wr.getSyntacticDiagnostics(fr));if(Mr.length)return ni(Mr[0]);let ir=Ve(wr.getSemanticDiagnostics(fr));return ir.length?ni(ir[0]):void 0}catch(Mr){console.warn('Warning From TSC: "'.concat(Mr.message));return}}R.getFirstSemanticOrSyntacticError=qe;function Ve(wr){return wr.filter(fr=>{switch(fr.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1})}function ni(wr){return Object.assign(Object.assign({},wr),{message:(0,te.flattenDiagnosticMessageText)(wr.messageText,te.sys.newLine)})}}}),RN=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(W,N,Q,pe){pe===void 0&&(pe=Q);var F=Object.getOwnPropertyDescriptor(N,Q);(!F||("get"in F?!N.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return N[Q]}}),Object.defineProperty(W,pe,F)}:function(W,N,Q,pe){pe===void 0&&(pe=Q),W[pe]=N[Q]}),qe=R&&R.__setModuleDefault||(Object.create?function(W,N){Object.defineProperty(W,"default",{enumerable:!0,value:N})}:function(W,N){W.default=N}),Ve=R&&R.__importStar||function(W){if(W&&W.__esModule)return W;var N={};if(W!=null)for(var Q in W)Q!=="default"&&Object.prototype.hasOwnProperty.call(W,Q)&&te(N,W,Q);return qe(N,W),N},ni=R&&R.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(R,"__esModule",{value:!0}),R.createProgramFromConfigFile=R.useProvidedPrograms=void 0;var wr=ni(Tm()),fr=Ve(OT()),Mr=Ve(Ly()),ir=Ve(Lu()),Pe=xm(),e=(0,wr.default)("typescript-eslint:typescript-estree:useProvidedProgram");function a(W,N){e("Retrieving ast for %s from provided program instance(s)",N.filePath);let Q;for(let pe of W)if(Q=(0,Pe.getAstFromProgram)(pe,N),Q)break;if(!Q){let pe=Mr.relative(N.tsconfigRootDir||"/prettier-security-dirname-placeholder",N.filePath),F=['"parserOptions.programs" has been provided for @typescript-eslint/parser.',"The file was not found in any of the provided program instance(s): ".concat(pe)];throw new Error(F.join(`
|
|
`))}return Q.program.getTypeChecker(),Q}R.useProvidedPrograms=a;function O(W,N){if(ir.sys===void 0)throw new Error("`createProgramFromConfigFile` is only supported in a Node-like environment.");let pe=ir.getParsedCommandLineOfConfigFile(W,Pe.CORE_COMPILER_OPTIONS,{onUnRecoverableConfigFileDiagnostic:g=>{throw new Error(L([g]))},fileExists:fr.existsSync,getCurrentDirectory:()=>N&&Mr.resolve(N)||"/prettier-security-dirname-placeholder",readDirectory:ir.sys.readDirectory,readFile:g=>fr.readFileSync(g,"utf-8"),useCaseSensitiveFileNames:ir.sys.useCaseSensitiveFileNames});if(pe.errors.length)throw new Error(L(pe.errors));let F=ir.createCompilerHost(pe.options,!0);return ir.createProgram(pe.fileNames,pe.options,F)}R.createProgramFromConfigFile=O;function L(W){return ir.formatDiagnostics(W,{getCanonicalFileName:N=>N,getCurrentDirectory:yl.cwd,getNewLine:()=>`
|
|
`})}}}),OU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/parser.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(f,P,D,l){l===void 0&&(l=D);var _=Object.getOwnPropertyDescriptor(P,D);(!_||("get"in _?!P.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return P[D]}}),Object.defineProperty(f,l,_)}:function(f,P,D,l){l===void 0&&(l=D),f[l]=P[D]}),qe=R&&R.__setModuleDefault||(Object.create?function(f,P){Object.defineProperty(f,"default",{enumerable:!0,value:P})}:function(f,P){f.default=P}),Ve=R&&R.__importStar||function(f){if(f&&f.__esModule)return f;var P={};if(f!=null)for(var D in f)D!=="default"&&Object.prototype.hasOwnProperty.call(f,D)&&te(P,f,D);return qe(P,f),P},ni=R&&R.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(R,"__esModule",{value:!0}),R.clearParseAndGenerateServicesCalls=R.clearProgramCache=R.parseWithNodeMaps=R.parseAndGenerateServices=R.parse=void 0;var wr=ni(Tm()),fr=ni(gj()),Mr=ni(PT()),ir=Ly(),Pe=Ve(Lu()),e=kU(),a=kN(),O=AU(),L=PU(),W=NU(),N=IU(),Q=wU(),pe=xm(),F=RN(),g=(0,wr.default)("typescript-eslint:typescript-estree:parser"),S=">=3.3.1 <4.7.0",H=[],se=Pe.version,p=Mr.default.satisfies(se,[S].concat(H).join(" || ")),C,G=!1,E=new Map;function ue(){E.clear()}R.clearProgramCache=ue;function B(f){return typeof f!="string"?String(f):f}function re(f,P,D,l){return P&&(0,F.useProvidedPrograms)(P,C)||D&&(0,W.createProjectProgram)(f,l,C)||D&&l&&(0,O.createDefaultProgram)(f,C)||(0,L.createIsolatedProgram)(f,C)}function M(){let{jsx:f}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return f?"estree.tsx":"estree.ts"}function x(){C={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:!1,extraFileExtensions:[],filePath:M(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:!0,programs:null,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:"/prettier-security-dirname-placeholder",singleRun:!1,moduleResolver:""}}function ie(f){var P;if(f.debugLevel===!0?C.debugLevel=new Set(["typescript-eslint"]):Array.isArray(f.debugLevel)&&(C.debugLevel=new Set(f.debugLevel)),C.debugLevel.size>0){let D=[];C.debugLevel.has("typescript-eslint")&&D.push("typescript-eslint:*"),(C.debugLevel.has("eslint")||wr.default.enabled("eslint:*,-eslint:code-path"))&&D.push("eslint:*,-eslint:code-path"),wr.default.enable(D.join(","))}if(C.range=typeof f.range=="boolean"&&f.range,C.loc=typeof f.loc=="boolean"&&f.loc,typeof f.tokens=="boolean"&&f.tokens&&(C.tokens=[]),typeof f.comment=="boolean"&&f.comment&&(C.comment=!0,C.comments=[]),typeof f.jsx=="boolean"&&f.jsx&&(C.jsx=!0),typeof f.filePath=="string"&&f.filePath!=="<input>"?C.filePath=f.filePath:C.filePath=M(C),typeof f.errorOnUnknownASTType=="boolean"&&f.errorOnUnknownASTType&&(C.errorOnUnknownASTType=!0),typeof f.loggerFn=="function"?C.log=f.loggerFn:f.loggerFn===!1&&(C.log=()=>{}),typeof f.tsconfigRootDir=="string"&&(C.tsconfigRootDir=f.tsconfigRootDir),C.filePath=(0,pe.ensureAbsolutePath)(C.filePath,C),Array.isArray(f.programs)){if(!f.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");C.programs=f.programs,g("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!C.programs){let D=((P=f.projectFolderIgnoreList)!==null&&P!==void 0?P:["**/node_modules/**"]).reduce((l,_)=>(typeof _=="string"&&l.push(_),l),[]).map(l=>l.startsWith("!")?l:"!".concat(l));C.projects=[]}Array.isArray(f.extraFileExtensions)&&f.extraFileExtensions.every(D=>typeof D=="string")&&(C.extraFileExtensions=f.extraFileExtensions),typeof f.preserveNodeMaps=="boolean"&&(C.preserveNodeMaps=f.preserveNodeMaps),C.createDefaultProgram=typeof f.createDefaultProgram=="boolean"&&f.createDefaultProgram,C.EXPERIMENTAL_useSourceOfProjectReferenceRedirect=typeof f.EXPERIMENTAL_useSourceOfProjectReferenceRedirect=="boolean"&&f.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,typeof f.moduleResolver=="string"&&(C.moduleResolver=f.moduleResolver)}function _e(){var f;if(!p&&!G){if(typeof yl>"u"?!1:(f=yl.stdout)===null||f===void 0?void 0:f.isTTY){let D="=============",l=[D,"WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(S),"YOUR TYPESCRIPT VERSION: ".concat(se),"Please only submit bug reports when using the officially supported version.",D];C.log(l.join(`
|
|
|
|
`))}G=!0}}function Y(f){if(yl.env.TSESTREE_SINGLE_RUN==="false"){C.singleRun=!1;return}if(yl.env.TSESTREE_SINGLE_RUN==="true"){C.singleRun=!0;return}if(f!=null&&f.allowAutomaticSingleRunInference&&(yl.env.CI==="true"||yl.argv[1].endsWith((0,ir.normalize)("node_modules/.bin/eslint")))){C.singleRun=!0;return}C.singleRun=!1}function Z(f,P){let{ast:D}=k(f,P,!1);return D}R.parse=Z;function k(f,P,D){if(x(),P!=null&&P.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');f=B(f),C.code=f,typeof P<"u"&&ie(P),_e(),Y(P);let l=(0,N.createSourceFile)(f,C),{estree:_,astMaps:J}=(0,e.astConverter)(l,C,D);return{ast:_,esTreeNodeToTSNodeMap:J.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:J.tsNodeToESTreeNodeMap}}function I(f,P){return k(f,P,!0)}R.parseWithNodeMaps=I;var ne={};function ee(){ne={}}R.clearParseAndGenerateServicesCalls=ee;function A(f,P){var D;x(),f=B(f),C.code=f,typeof P<"u"&&(ie(P),typeof P.errorOnTypeScriptSyntacticAndSemanticIssues=="boolean"&&P.errorOnTypeScriptSyntacticAndSemanticIssues&&(C.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),_e(),Y(P),C.singleRun&&!C.programs&&((D=C.projects)===null||D===void 0?void 0:D.length)>0&&(C.programs={*[Symbol.iterator](){for(let z of C.projects){let y=E.get(z);if(y)yield y;else{g("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",z);let oe=(0,F.createProgramFromConfigFile)(z);E.set(z,oe),yield oe}}}});let l=C.programs!=null||C.projects&&C.projects.length>0,_,J;if(C.singleRun&&P.filePath&&(ne[P.filePath]=(ne[P.filePath]||0)+1),C.singleRun&&P.filePath&&ne[P.filePath]>1){let z=(0,L.createIsolatedProgram)(f,C);_=z.ast,J=z.program}else{let z=re(f,C.programs,l,C.createDefaultProgram);_=z.ast,J=z.program}let w=typeof C.preserveNodeMaps=="boolean"?C.preserveNodeMaps:!0,{estree:j,astMaps:U}=(0,e.astConverter)(_,C,w);if(J&&C.errorOnTypeScriptSyntacticAndSemanticIssues){let z=(0,Q.getFirstSemanticOrSyntacticError)(J,_);if(z)throw(0,a.convertError)(z)}return{ast:j,services:{hasFullTypeInformation:l,program:J,esTreeNodeToTSNodeMap:U.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:U.tsNodeToESTreeNodeMap}}}R.parseAndGenerateServices=A}}),FU=Aa({"node_modules/@typescript-eslint/typescript-estree/package.json"(R,te){te.exports={name:"@typescript-eslint/typescript-estree",version:"5.17.0",description:"A parser that converts TypeScript source code into an ESTree compatible form",main:"dist/index.js",types:"dist/index.d.ts",files:["dist","README.md","LICENSE"],engines:{node:"^12.22.0 || ^14.17.0 || >=16.0.0"},repository:{type:"git",url:"https://github.com/typescript-eslint/typescript-eslint.git",directory:"packages/typescript-estree"},bugs:{url:"https://github.com/typescript-eslint/typescript-eslint/issues"},license:"BSD-2-Clause",keywords:["ast","estree","ecmascript","javascript","typescript","parser","syntax"],scripts:{build:"tsc -b tsconfig.build.json",postbuild:"downlevel-dts dist _ts3.4/dist",clean:"tsc -b tsconfig.build.json --clean",postclean:"rimraf dist && rimraf _ts3.4 && rimraf coverage",format:'prettier --write "./**/*.{ts,js,json,md}" --ignore-path ../../.prettierignore',lint:"eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",test:"jest --coverage",typecheck:"tsc -p tsconfig.json --noEmit"},dependencies:{"@typescript-eslint/types":"5.17.0","@typescript-eslint/visitor-keys":"5.17.0",debug:"^4.3.2",globby:"^11.0.4","is-glob":"^4.0.3",semver:"^7.3.5",tsutils:"^3.21.0"},devDependencies:{"@babel/code-frame":"^7.16.0","@babel/parser":"^7.16.0","@types/babel__code-frame":"^7.0.3","@types/debug":"*","@types/glob":"*","@types/is-glob":"*","@types/semver":"*","@types/tmp":"*","@typescript-eslint/shared-fixtures":"5.17.0",glob:"*","jest-specific-snapshot":"*","make-dir":"*",tmp:"*",typescript:"*"},peerDependenciesMeta:{typescript:{optional:!0}},funding:{type:"opencollective",url:"https://opencollective.com/typescript-eslint"},typesVersions:{"<3.8":{"*":["_ts3.4/*"]}},gitHead:"790a1eeac93cd3405a774db80a06da7bc15d0876"}}}),MU=Aa({"node_modules/@typescript-eslint/typescript-estree/dist/index.js"(R){"use strict";Sa();var te=R&&R.__createBinding||(Object.create?function(ir,Pe,e,a){a===void 0&&(a=e);var O=Object.getOwnPropertyDescriptor(Pe,e);(!O||("get"in O?!Pe.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return Pe[e]}}),Object.defineProperty(ir,a,O)}:function(ir,Pe,e,a){a===void 0&&(a=e),ir[a]=Pe[e]}),qe=R&&R.__exportStar||function(ir,Pe){for(var e in ir)e!=="default"&&!Object.prototype.hasOwnProperty.call(Pe,e)&&te(Pe,ir,e)};Object.defineProperty(R,"__esModule",{value:!0}),R.version=R.visitorKeys=R.createProgram=R.clearCaches=R.simpleTraverse=R.clearProgramCache=R.parseWithNodeMaps=R.parseAndGenerateServices=R.parse=void 0;var Ve=OU();Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return Ve.parse}}),Object.defineProperty(R,"parseAndGenerateServices",{enumerable:!0,get:function(){return Ve.parseAndGenerateServices}}),Object.defineProperty(R,"parseWithNodeMaps",{enumerable:!0,get:function(){return Ve.parseWithNodeMaps}}),Object.defineProperty(R,"clearProgramCache",{enumerable:!0,get:function(){return Ve.clearProgramCache}});var ni=MN();Object.defineProperty(R,"simpleTraverse",{enumerable:!0,get:function(){return ni.simpleTraverse}}),qe(f1(),R);var wr=LN();Object.defineProperty(R,"clearCaches",{enumerable:!0,get:function(){return wr.clearWatchCaches}});var fr=RN();Object.defineProperty(R,"createProgram",{enumerable:!0,get:function(){return fr.createProgramFromConfigFile}});var Mr=FN();Object.defineProperty(R,"visitorKeys",{enumerable:!0,get:function(){return Mr.visitorKeys}}),R.version=FU().version}});Sa();var LU=QP(),RU=XJ(),BU=oj(),JU=sj(),jU=pj(),XP={loc:!0,range:!0,comment:!0,jsx:!0,tokens:!0,loggerFn:!1,project:[]};function UU(R){let{message:te,lineNumber:qe,column:Ve}=R;return typeof qe!="number"?R:LU(te,{start:{line:qe,column:Ve+1}})}function zU(R,te){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ve=JU(R),ni=WU(R),{parseWithNodeMaps:wr}=MU(),{result:fr,error:Mr}=RU(()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:ni})),()=>wr(Ve,Object.assign(Object.assign({},XP),{},{jsx:!ni})));if(!fr)throw UU(Mr);return qe.originalText=R,qe.tsParseResult=fr,jU(fr.ast,qe)}function WU(R){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"m").test(R)}BN.exports={parsers:{typescript:BU(zU)}}});"use strict";return qU();}); |